The Movie Database Support

I am using a TV search for "The Good Place", which returns with an id of 66573. When I try and get the tv episode information for season 1 episode 1 using this id. I get {'success': False, 'status_code': 34, 'status_message': 'The resource you requested could not be found.'}

The request I am trying to use: https://api.themoviedb.org/3/tv/66573/season/1/episode/1?api_key=<API_KEY>

Any ideas?

Thanks in advance!

3 replies (on page 1 of 1)

Jump to last post

Hi @curpha,

I am not seeing any issues with that request:

Request

$ curl -v "https://api.themoviedb.org/3/tv/66573/season/1/episode/1?api_key=###"

*   Trying 65.8.164.13:443...
* Connected to api.themoviedb.org (65.8.164.13) 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/tv/66573/season/1/episode/1?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 0x7fe246012200)
> GET /3/tv/66573/season/1/episode/1?api_key=### HTTP/2
> Host: api.themoviedb.org
> user-agent: curl/7.82.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< content-type: application/json;charset=utf-8
< content-length: 3631
< date: Fri, 08 Apr 2022 21:16:17 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: 0b47cc0381a22f4a9b60a7260ab84701dc74b5c9
< x-memc-age: 50
< x-memc-expires: 16569
< etag: W/"2eb3f17e089ba43e54fa64a30442ce34"
< vary: Accept-Encoding,Accept-Encoding
< x-cache: Hit from cloudfront
< via: 1.1 b2f8f7bb31cc2fa916aba211d3a2979e.cloudfront.net (CloudFront)
< x-amz-cf-pop: SFO53-C1
< x-amz-cf-id: _ngiVKT8WoG0Zmde_iwuPQmrDDdbILb2EgXEFfiFMay-ARE-VH70EA==
< age: 5
<
* Connection #0 to host api.themoviedb.org left intact

Response

{
  "air_date": "2016-09-19",
  "crew": [
    {
      "job": "Director",
      "department": "Directing",
      "credit_id": "578e2545c3a3681796003559",
      "adult": false,
      "gender": 2,
      "id": 47506,
      "known_for_department": "Writing",
      "name": "Drew Goddard",
      "original_name": "Drew Goddard",
      "popularity": 1.87,
      "profile_path": "/rcxxyIGDgPkXVgAQb9LLXfR89pv.jpg"
    },
    {
      "job": "Writer",
      "department": "Writing",
      "credit_id": "587bd706c3a36847e8013a46",
      "adult": false,
      "gender": 2,
      "id": 47506,
      "known_for_department": "Writing",
      "name": "Drew Goddard",
      "original_name": "Drew Goddard",
      "popularity": 1.87,
      "profile_path": "/rcxxyIGDgPkXVgAQb9LLXfR89pv.jpg"
    },
    {
      "job": "Director of Photography",
      "department": "Camera",
      "credit_id": "5fa038f5ede1b00037e68930",
      "adult": false,
      "gender": 2,
      "id": 54164,
      "known_for_department": "Camera",
      "name": "Barry Peterson",
      "original_name": "Barry Peterson",
      "popularity": 0.972,
      "profile_path": "/3N9iiLQ39YOf1tlUroQh3rSDBKq.jpg"
    },
    {
      "job": "Editor",
      "department": "Editing",
      "credit_id": "5fa0392e7e34830037a3ae23",
      "adult": false,
      "gender": 2,
      "id": 1023495,
      "known_for_department": "Editing",
      "name": "Colin Patton",
      "original_name": "Colin Patton",
      "popularity": 0.6,
      "profile_path": null
    },
    {
      "job": "Stunts",
      "department": "Crew",
      "credit_id": "5fa0395a2790bf0036486457",
      "adult": false,
      "gender": 0,
      "id": 1410448,
      "known_for_department": "Crew",
      "name": "Shane Daniels",
      "original_name": "Shane Daniels",
      "popularity": 0.6,
      "profile_path": null
    },
    {
      "job": "Stunts",
      "department": "Crew",
      "credit_id": "5fa039750cb335003861ff41",
      "adult": false,
      "gender": 1,
      "id": 1005944,
      "known_for_department": "Crew",
      "name": "Mandy Kowalski",
      "original_name": "Mandy Kowalski",
      "popularity": 3.999,
      "profile_path": "/pWglkDC4t8TzNAxV7K2Ugniy7yp.jpg"
    }
  ],
  "episode_number": 1,
  "guest_stars": [
    {
      "character": "Gloria",
      "credit_id": "59a6c2da92514112ef00e3ee",
      "order": 4,
      "adult": false,
      "gender": 1,
      "id": 1211945,
      "known_for_department": "Acting",
      "name": "Jill Remez",
      "original_name": "Jill Remez",
      "popularity": 1.286,
      "profile_path": "/zYNmrHsV1SpSbXyDPwiBC77E7mt.jpg"
    },
    {
      "character": "Wallace",
      "credit_id": "59a6c32392514112ef00e430",
      "order": 50,
      "adult": false,
      "gender": 2,
      "id": 212290,
      "known_for_department": "Acting",
      "name": "Seth Morris",
      "original_name": "Seth Morris",
      "popularity": 3.91,
      "profile_path": "/A66wu5p48sSDEKf0uqWXQROcroW.jpg"
    },
    {
      "character": "Good Woman",
      "credit_id": "5b07cd799251417236003a7a",
      "order": 57,
      "adult": false,
      "gender": 1,
      "id": 1450400,
      "known_for_department": "Acting",
      "name": "Jamila Webb",
      "original_name": "Jamila Webb",
      "popularity": 2.68,
      "profile_path": "/vwyF3kPejevsj9rOtQMq56TgQIb.jpg"
    },
    {
      "character": "Sachveer",
      "credit_id": "5b07cd670e0a267b6600402d",
      "order": 85,
      "adult": false,
      "gender": 0,
      "id": 2050341,
      "known_for_department": "Acting",
      "name": "Ruman Kazi",
      "original_name": "Ruman Kazi",
      "popularity": 0.6,
      "profile_path": null
    },
    {
      "character": "Bambadjan",
      "credit_id": "59a362b1925141775b04b5a9",
      "order": 178,
      "adult": false,
      "gender": 2,
      "id": 965219,
      "known_for_department": "Acting",
      "name": "Bambadjan Bamba",
      "original_name": "Bambadjan Bamba",
      "popularity": 1.954,
      "profile_path": "/6Uk5XX0zRDYJeeIkjgtScS5zjFG.jpg"
    },
    {
      "character": "Joe",
      "credit_id": "59a6c2f6925141129300e57e",
      "order": 194,
      "adult": false,
      "gender": 2,
      "id": 1866130,
      "known_for_department": "Acting",
      "name": "John Hartman",
      "original_name": "John Hartman",
      "popularity": 0.988,
      "profile_path": "/wVs9ncZ28tEIURhPLaXbOq53F4Q.jpg"
    }
  ],
  "name": "Everything Is Fine",
  "overview": "Newly-deceased Eleanor Shellstrop is sent to the Good Place, but only by mistake; Eleanor is determined to become a better person in her afterlife with help from friends Chidi and Janet; Eleanor tries to prove to Chidi that she's worthy of his help.",
  "id": 1195668,
  "production_code": "101",
  "season_number": 1,
  "still_path": "/n6yqPpZk4geXG2j5kWF6ycC0ROo.jpg",
  "vote_average": 7.5,
  "vote_count": 45
}

Hi Travis, thanks for the reply. I appear to be getting this error when trying to make the request using your 'Try it out' from the api documentation.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://z4vrpkijmodhwsxzc.stoplight-proxy.io/3/tv/66573?api_key=<api_key>&language=en-US. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 301.

Any ideas?

The "Try it out" function is currently not working.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login