Additionally to JSON and XML, YAML might be a good output format to add to the API. However, this requires the YAML PHP package to be installed, which is not shipped with PHP by default.