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?
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Απάντηση από τον/την superboy97
στις 8 Νοέμβριος 2023 στις 05:56 ΕΊΜΑΙ
You should write "movie" instead of "movies" as indicated here.
Απάντηση από τον/την tomrist
στις 8 Νοέμβριος 2023 στις 06:07 ΕΊΜΑΙ
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 }
Απάντηση από τον/την superboy97
στις 8 Νοέμβριος 2023 στις 06:09 ΕΊΜΑΙ
What do you mean by "is it true?". I don't understand your question.
Απάντηση από τον/την tomrist
στις 8 Νοέμβριος 2023 στις 06:10 ΕΊΜΑΙ
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
Απάντηση από τον/την superboy97
στις 8 Νοέμβριος 2023 στις 06:13 ΕΊΜΑΙ
The informations you get are correct. Why do you think they may be wrong ?
Απάντηση από τον/την tomrist
στις 8 Νοέμβριος 2023 στις 06:15 ΕΊΜΑΙ
because i asked only id=3, but it fetched id with different numbers
Απάντηση από τον/την superboy97
στις 8 Νοέμβριος 2023 στις 06:19 ΕΊΜΑΙ
No.
In your first query, you have fetch id=2 and in the second one, you have fetch id=18.
Απάντηση από τον/την tomrist
στις 8 Νοέμβριος 2023 στις 06:20 ΕΊΜΑΙ
i want to fetch only the id which I want
Απάντηση από τον/την superboy97
στις 8 Νοέμβριος 2023 στις 06:22 ΕΊΜΑΙ
The Id is the last value in the URL.
Απάντηση από τον/την tomrist
στις 8 Νοέμβριος 2023 στις 06:23 ΕΊΜΑΙ
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 }
Απάντηση από τον/την superboy97
στις 8 Νοέμβριος 2023 στις 06:24 ΕΊΜΑΙ
This is the correct answer for the movie with id=3. There is nothing wrong.
Απάντηση από τον/την tomrist
στις 8 Νοέμβριος 2023 στις 06:30 ΕΊΜΑΙ
okay thank you
Απάντηση από τον/την robbie3999
στις 8 Νοέμβριος 2023 στις 10:27 ΕΊΜΑΙ
The id for the movie is
The other ids
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.