append_to_response
is an easy and efficient way to append extra requests to any top level namespace.
The movie, TV show, TV season, TV episode and person detail methods all support this query parameter.
This makes it possible to make sub requests within the same namespace in a single HTTP request.
Each request will get appended to the response as a new JSON object.
Here’s a quick example,
let’s assume you want the details and the videos for a movie, you can issue a single request with append_to_response
:
Example
For more effectiveness, you can issue multiple requests by using comma
,
to separate the values:Example
Each method will still accept the query parameters supported by that specific request. This is especially important for images, as the language parameter will filter them. In such cases, the
include_image_language
parameter can be helpful, as explained on the image language page.