Tastaturgenveje
Avanceret søgning
Is there a way to display trailers via the API?
Hi @prywaretechnologies,
We only store YouTube and Vimeo IDs, which is to say, we provide a way for you to find the trailer to play, but it's up to you to integrate the YouTube player according to their own terms of service.
curl -v "https://api.themoviedb.org/3/movie/545611/videos?api_key=###" * Trying 18.65.229.12:443... * Connected to api.themoviedb.org (18.65.229.12) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=*.themoviedb.org * start date: Oct 21 00:00:00 2021 GMT * expire date: Nov 18 23:59:59 2022 GMT * subjectAltName: host "api.themoviedb.org" matched cert's "*.themoviedb.org" * issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon * SSL certificate verify ok. * Using HTTP2, server supports multiplexing * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * h2h3 [:method: GET] * h2h3 [:path: /3/movie/545611/videos?api_key=###] * h2h3 [:scheme: https] * h2h3 [:authority: api.themoviedb.org] * h2h3 [user-agent: curl/7.82.0] * h2h3 [accept: */*] * Using Stream ID: 1 (easy handle 0x7fcd08810200) > GET /3/movie/545611/videos?api_key=### HTTP/2 > Host: api.themoviedb.org > user-agent: curl/7.82.0 > accept: */* > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! < HTTP/2 200 < content-type: application/json;charset=utf-8 < content-length: 1189 < date: Fri, 20 May 2022 14:12:31 GMT < server: openresty < access-control-allow-origin: * < access-control-allow-methods: GET, HEAD, POST, PUT, DELETE, OPTIONS < access-control-expose-headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After, Content-Length, Content-Range < cache-control: public, max-age=28800 < x-memc: HIT < x-memc-key: 813f0cda21ab682e441547ae70d7739cabc91fc0 < x-memc-age: 3680 < x-memc-expires: 11070 < etag: W/"40d5981fa849a7765c4abfe7e0cde2ed" < vary: Accept-Encoding,Accept-Encoding,Accept-Encoding < x-cache: Miss from cloudfront < via: 1.1 e95ec8f1dc02e32f0cb9e113963ceb4e.cloudfront.net (CloudFront) < x-amz-cf-pop: SEA73-P1 < x-amz-cf-id: BojIzizFsSwsWEqpa-fmSNdjdiMZPuDPkXy_Eb-6paHUg_bdKT6SyA== < * Connection #0 to host api.themoviedb.org left intact
{ "id": 545611, "results": [ { "iso_639_1": "en", "iso_3166_1": "US", "name": "Everything Everywhere All At Once | Meet the Filmmakers | Official Featurette HD | A24", "key": "A7DgDpURLRY", "site": "YouTube", "size": 1080, "type": "Featurette", "official": true, "published_at": "2022-04-15T21:38:48.000Z", "id": "627eb89263d71300a2079f90" }, { "iso_639_1": "en", "iso_3166_1": "US", "name": "Clip - Love Bomb", "key": "a5X-2dhFvEQ", "site": "YouTube", "size": 1080, "type": "Clip", "official": false, "published_at": "2022-03-24T13:00:00.000Z", "id": "623c706ea34911005dc7f6ba" }, { "iso_639_1": "en", "iso_3166_1": "US", "name": "Official Promo 2", "key": "mQPlarSkdZ8", "site": "YouTube", "size": 1080, "type": "Teaser", "official": true, "published_at": "2022-03-17T17:40:24.000Z", "id": "6235e7a7894ed60046754532" }, { "iso_639_1": "en", "iso_3166_1": "US", "name": "Official Promo 1", "key": "p2FEhTw7XWk", "site": "YouTube", "size": 1080, "type": "Teaser", "official": true, "published_at": "2022-03-17T17:40:14.000Z", "id": "6235e74ed7cd06001cdf6c7b" }, { "iso_639_1": "en", "iso_3166_1": "US", "name": "Official Trailer", "key": "wxN1T1uxQ2g", "site": "YouTube", "size": 1080, "type": "Trailer", "official": true, "published_at": "2021-12-14T13:57:38.000Z", "id": "61b8a5399d8939008f74f7b8" } ] }
Thanks
@prywaretechnologies said: Trailers Is there a way to display trailers via the API?
Only making API Request with Movie ID. Example: https://developers.themoviedb.org/3/movies/get-movie-videos https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=en-US https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=en-US&include_video_language=en,pt,fr
https://developers.themoviedb.org/3/movies/get-movie-details https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US&append_to_response=videos https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US&append_to_response=videos&include_video_language=en,pt,fr
Kan du ikke finde en film eller TV-serie? Log in og opret den.
Log ind
Tilmeld dig
Want to rate or add this item to a list?
Ikke medlem?
Tilmeld dig og deltag i fællesskabet
Svar af Travis Bell
d. 20 maj 2022 kl. 10:13 AM
Hi @prywaretechnologies,
We only store YouTube and Vimeo IDs, which is to say, we provide a way for you to find the trailer to play, but it's up to you to integrate the YouTube player according to their own terms of service.
Request
Response
Svar af prywaretechnologies
d. 20 maj 2022 kl. 10:14 AM
Thanks
Svar af ticao2 🇧🇷 pt-BR
d. 20 maj 2022 kl. 10:20 AM
Only making API Request with Movie ID.
Example:
https://developers.themoviedb.org/3/movies/get-movie-videos
https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=en-US
https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=en-US&include_video_language=en,pt,fr
https://developers.themoviedb.org/3/movies/get-movie-details
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US&append_to_response=videos
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US&append_to_response=videos&include_video_language=en,pt,fr
Svar af prywaretechnologies
d. 20 maj 2022 kl. 10:23 AM
Thanks