Append To Response
Get to know how append_to_response works
append_to_response
provides an easier way to add extra requests to any top-level namespace. The movie, TV show, TV season, TV episode, and person detail methods all support a query parameter called.append_to_response
This allows you 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 movie details and the videos for a movie. Usually you would think you have to issue two requests:
But with append_to_response
you can issue a single request:
Even more powerful, you can issue multiple requests, just comma separate the values:
Note
Each method will still respond to whatever query parameters are supported by each individual request. This is worth pointing out specifically for images since your language parameter will filter images. This is where the include_image_language
parameter can be useful, as outlined in the image language page.