omdbapi / OMDb-API

The Open Movie Database Bug Tracking
416 stars 20 forks source link

Get All endpoint is not working #302

Open Parl582 opened 10 months ago

Parl582 commented 10 months ago

http://www.omdbapi.com/?apikey=[yourkey]&

and also http://img.omdbapi.com/?apikey=[yourkey]& is not working

Even after putting the key unable to get all the data

{ "Response": "False", "Error": "Incorrect IMDb ID." }

hakamNabhani commented 9 months ago

Your link is missing an argument, add any argument after your api key so it works, like this :

http://www.omdbapi.com/?apikey=[yourkey]&s=ted

i added here the s=ted which means search for movies/series with name ted

anopenprogrammer commented 8 months ago

But what if we want the complete data and we want to just filter out the 10 movies in the list. How we will do that

hakamNabhani commented 7 months ago

But what if we want the complete data and we want to just filter out the 10 movies in the list. How we will do that

You can add page to the endpoint, this way you can get all the list by simply getting the second page which contains the next 10 movies list, https://www.omdbapi.com/?apikey=[YOUR-KEY]&s=${name}&page=${page}

in here i created async funsction with 2 parameters (name, page) and after when the user fetch the data a button at the end shows up if clicked it increment the page number by 1 and fetch second page

i gave you a kick start, you can figure out how to implement it