The Movie Database -tuki

Hi I am getting error message 401 when I click "try it" on this page https://developers.themoviedb.org/3/movies/get-movie-credits Does my API key work? Or is there anything I did wrong?

Thanks!

7 vastausta (sivulla 1, sivuja yhteensä 1)

Jump to last post

@ywang4181 said:
Does my API key work?
Hi
I am getting error message 401 when I click "try it" on this page https://developers.themoviedb.org/3/movies/get-movie-credits
Does my API key work? Or is there anything I did wrong?
Thanks!

The "Try it!" option in DOCs it only works with the "Access Token Auth" option.
It doesn't work if you select the "API Key Auth" option.
Your API Key validation test is done using your Token.
https://developer.themoviedb.org/reference/authentication-validate-key
If your Token works then your API Key must also work.
If you want to test your API Key directly, follow the instructions below.

Take a Test
Using a computer, desktop or notebook.
On some mobile devices this test may not work correctly.
In the URL below, change THE_KEY to your API Key.
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY
Use this example to do a search using a new tab or window in your browser.
You will receive the basic data of the Movie Fight Club (1999)
https://www.themoviedb.org/movie/550-fight-club
If it works, your Key is OK.

When there is a problem, the TMDb Server sends a message.
Can you tell which message the server sent?
Here is a list of possible messages:
https://developer.themoviedb.org/docs/errors

If it does not work, let us know right here.

Thank you! The test for the token works and the API key also works for me.

Can I try my API key on the Credits page using this link "https://api.themoviedb.org/3/movie/movie_id/credits?language=en-US"? Do you know how can I do it? Thanks!

And when I open this page https://developer.themoviedb.org/reference/person-movie-credits, and click try it with my access token option, it gave me 404 error with { "success": false, "status_code": 34, "status_message": "The resource you requested could not be found." }

Sorry for the multiple questions!

@ywang4181 said:

Can I try my API keyon the Credits page using this link "https://api.themoviedb.org/3/movie/movie_id/credits?language=en-US"?
Do you know how can I do it? Thanks!

Yes you can.
Just add after the question mark character, "?", your API Key followed by the ampersand character, "&".
Example:
api_key=12345678901234561234567890123456&

Your request for Movie ID 550 would look like this:

https://api.themoviedb.org/3/movie/550/credits?language=en-US
https://api.themoviedb.org/3/movie/550/credits?api_key=THE_KEY&language=en-US
https://api.themoviedb.org/3/movie/550/credits?api_key=12345678901234561234567890123456&language=en-US

@ywang4181 said:
And when I open this page https://developer.themoviedb.org/reference/person-movie-credits,
and click try it with my access token option, it gave me 404 error with
{
"success": false,
"status_code": 34,
"status_message": "The resource you requested could not be found."
}

You need to provide the ID of the Person you want film credits for.
For example, Tom Cruise
https://www.themoviedb.org/person/500-tom-cruise
Then enter 500 in the "person_id" field on the page.

An API Request to your browser would look like this:
https://api.themoviedb.org/3/person/500/movie_credits?api_key=THE_KEY&language=pt-BR

Sorry for the multiple questions!

No problem. :-)

Thank you! That helps a lot!

Etkö löydä elokuvaa tai TV-ohjelmaa? Kirjaudu sisään lisätäksesi se.

Koko sivustolla

s keskitä hakukenttään
p avaa profiilivalikko
esc sulje avoin ikkuna
? avaa pikanäppäinikkuna

Mediasivuilla

b palaa takaisin (tai hakemistoon mikäli mahdollista)
e siirry editoimaan sivua

TV-sarjan kausien sivuilla

(oikea nuolinäppäin) siirry seuraavaan kauteen
(vasen nuolinäppäin) siirry edelliseen kauteen

TV-sarjan jaksojen sivuilla

(oikea nuolinäppäin) siirry seuraavaan jaksoon
(vasen nuolinäppäin) siirry edelliseen jaksoon

Kaikilla kuvasivustoilla

a avaa "lisää kuva" ikkuna

Kaikilla muokkaus-sivuilla

t avaa kielivalinta
ctrl+ s Lähetä lomake

Keskustelu sivuilla

n luo uusi keskustelu
w vaihda seurannan asetus
p vaihda julkinen/yksityinen asetus
c vaihda avaa/sulje asetus
a avaa viimeaikainen toiminta
r vastaa keskusteluun
l siirry viimeisimpään vastaukseen
ctrl+ enter Lähetä viesti
(oikea nuolinäppäin) seuraava sivu
(vasen nuolinäppäin) edellinen sivu

Asetukset

Haluatko pisteyttää vai lisätä tämän nimikkeen listaan?

Kirjaudu

Ei rekisteröitynyt jäsen?

Rekisteröidy ja liity mukaan yhteisöön