Υποστήριξη για το The Movie Database

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 απαντήσεις(στη σελίδα 1 από 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.

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση