The Movie Database -tuki

I wrote this url "https://api.themoviedb.org/3/movies/2" to postman and get the response { "success": false, "status_code": 34, "status_message": "The resource you requested could not be found." }. what should I do?

13 vastausta (sivulla 1, sivuja yhteensä 1)

Jump to last post

You should write "movie" instead of "movies" as indicated here.

i got this response. is it true? { "adult": false, "backdrop_path": "/l94l89eMmFKh7na2a1u5q67VgNx.jpg", "belongs_to_collection": null, "budget": 0, "genres": [ { "id": 18, "name": "Drama" }, { "id": 35, "name": "Comedy" }, { "id": 10749, "name": "Romance" } ], "homepage": "", "id": 3, "imdb_id": "tt0092149", "original_language": "fi", "original_title": "Varjoja paratiisissa", "overview": "Nikander, a rubbish collector and would-be entrepreneur finds his plans for success dashed when his business associate dies. One evening, he meets Ilona, a down-on-her luck cashier in a local supermarket—and, falteringly, a bond begins to develop between them.", "popularity": 9.207, "poster_path": "/nj01hspawPof0mJmlgfjuLyJuRN.jpg", "production_companies": [ { "id": 2303, "logo_path": null, "name": "Villealfa Filmproductions", "origin_country": "FI" } ], "production_countries": [ { "iso_3166_1": "FI", "name": "Finland" } ], "release_date": "1986-10-17", "revenue": 0, "runtime": 74, "spoken_languages": [ { "english_name": "English", "iso_639_1": "en", "name": "English" }, { "english_name": "Finnish", "iso_639_1": "fi", "name": "suomi" }, { "english_name": "Swedish", "iso_639_1": "sv", "name": "svenska" } ], "status": "Released", "tagline": "", "title": "Shadows in Paradise", "video": false, "vote_average": 7.203, "vote_count": 288 }

What do you mean by "is it true?". I don't understand your question.

my url is like that https://api.themoviedb.org/3/movie/18. but when I use get with postman it gives me response like that { "adult": false, "backdrop_path": "/wgvc3PmjQGtYYDWaeuV867mnFDs.jpg", "belongs_to_collection": null, "budget": 90000000, "genres": [ { "id": 12, "name": "Adventure" }, { "id": 14, "name": "Fantasy" }, { "id": 28, "name": "Action" }, { "id": 53, "name": "Thriller" }, { "id": 878, "name": "Science Fiction" } ], "homepage": "", "id": 18, "imdb_id": "tt0119116", "original_language": "en", "original_title": "The Fifth Element", "overview": "In 2257, a taxi driver is unintentionally given the task of saving a young girl who is part of the key that will ensure the survival of humanity.", "popularity": 50.696, "poster_path": "/fPtlCO1yQtnoLHOwKtWz7db6RGU.jpg", "production_companies": [ { "id": 9, "logo_path": "/nda3dTUYdDrJ6rZqBpYvY865aDv.png", "name": "Gaumont", "origin_country": "FR" }, { "id": 5892, "logo_path": "/AlfRSqTMw9RIHR2RIzy4pkcaXnY.png", "name": "Buena Vista International", "origin_country": "US" } ], "production_countries": [ { "iso_3166_1": "FR", "name": "France" }, { "iso_3166_1": "US", "name": "United States of America" } ], "release_date": "1997-05-02", "revenue": 263920180, "runtime": 126, "spoken_languages": [ { "english_name": "English", "iso_639_1": "en", "name": "English" }, { "english_name": "Swedish", "iso_639_1": "sv", "name": "svenska" }, { "english_name": "German", "iso_639_1": "de", "name": "Deutsch" } ], "status": "Released", "tagline": "There is no future without it.", "title": "The Fifth Element", "video": false, "vote_average": 7.533, "vote_count": 10018 }

is it true or do I do something wrong? i want not get info other ids

The informations you get are correct. Why do you think they may be wrong ?

because i asked only id=3, but it fetched id with different numbers

@tomrist said:

because i asked only id=3, but it fetched id with different numbers

No.

In your first query, you have fetch id=2 and in the second one, you have fetch id=18.

i want to fetch only the id which I want

@tomrist said:

i want to fetch only the id which I want

The Id is the last value in the URL.

i wrote it as an url https://api.themoviedb.org/3/movie/3 and again got response { "adult": false, "backdrop_path": "/l94l89eMmFKh7na2a1u5q67VgNx.jpg", "belongs_to_collection": null, "budget": 0, "genres": [ { "id": 18, "name": "Drama" }, { "id": 35, "name": "Comedy" }, { "id": 10749, "name": "Romance" } ], "homepage": "", "id": 3, "imdb_id": "tt0092149", "original_language": "fi", "original_title": "Varjoja paratiisissa", "overview": "Nikander, a rubbish collector and would-be entrepreneur finds his plans for success dashed when his business associate dies. One evening, he meets Ilona, a down-on-her luck cashier in a local supermarket—and, falteringly, a bond begins to develop between them.", "popularity": 9.207, "poster_path": "/nj01hspawPof0mJmlgfjuLyJuRN.jpg", "production_companies": [ { "id": 2303, "logo_path": null, "name": "Villealfa Filmproductions", "origin_country": "FI" } ], "production_countries": [ { "iso_3166_1": "FI", "name": "Finland" } ], "release_date": "1986-10-17", "revenue": 0, "runtime": 74, "spoken_languages": [ { "english_name": "English", "iso_639_1": "en", "name": "English" }, { "english_name": "Finnish", "iso_639_1": "fi", "name": "suomi" }, { "english_name": "Swedish", "iso_639_1": "sv", "name": "svenska" } ], "status": "Released", "tagline": "", "title": "Shadows in Paradise", "video": false, "vote_average": 7.203, "vote_count": 288 }

This is the correct answer for the movie with id=3. There is nothing wrong.

okay thank you

@tomrist wrote:

i wrote it as an url https://api.themoviedb.org/3/movie/3 and again got response { "adult": false, "backdrop_path": "/l94l89eMmFKh7na2a1u5q67VgNx.jpg", "belongs_to_collection": null, "budget": 0, "genres": [ { "id": 18, "name": "Drama" }, { "id": 35, "name": "Comedy" }, { "id": 10749, "name": "Romance" } ], "homepage": "", "id": 3, "imdb_id": "tt0092149", "original_language": "fi", "original_title": "Varjoja paratiisissa", "overview": "Nikander, a rubbish collector and would-be entrepreneur finds his plans for success dashed when his business associate dies. One evening, he meets Ilona, a down-on-her luck cashier in a local supermarket—and, falteringly, a bond begins to develop between them.", "popularity": 9.207, "poster_path": "/nj01hspawPof0mJmlgfjuLyJuRN.jpg", "production_companies": [ { "id": 2303, "logo_path": null, "name": "Villealfa Filmproductions", "origin_country": "FI" } ], "production_countries": [ { "iso_3166_1": "FI", "name": "Finland" } ], "release_date": "1986-10-17", "revenue": 0, "runtime": 74, "spoken_languages": [ { "english_name": "English", "iso_639_1": "en", "name": "English" }, { "english_name": "Finnish", "iso_639_1": "fi", "name": "suomi" }, { "english_name": "Swedish", "iso_639_1": "sv", "name": "svenska" } ], "status": "Released", "tagline": "", "title": "Shadows in Paradise", "video": false, "vote_average": 7.203, "vote_count": 288 }

The id for the movie is

... "id": 3, "imdb_id": "tt0092149", "original_language": "fi", "original_title": "Varjoja paratiisissa" ...

The other ids

"genres": [ { "id": 18, "name": "Drama" }, { "id": 35, "name": "Comedy" }, { "id": 10749, "name": "Romance" } ]

"production_companies": [ { "id": 2303, "logo_path": null, "name": "Villealfa Filmproductions", "origin_country": "FI" } ]

are different ids, one for each genre name in the genre array and one for each production company name in the production company array. They are not movie ids.

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