mertkahyaoglu / random-movie-server

Node server for Random Movie API
https://random-movie.bytecode.now.sh/api/title/inception
6 stars 2 forks source link

OMDb API now requires API keys #1

Open spotlightishere opened 6 years ago

spotlightishere commented 6 years ago

It would appear that the OMDb API now requires an API key to be used. I found this out after using [https://random-movie.herokuapp.com](your random movie herokuapp API) which currently returns

{"Response":"False","Error":"No API key provided."}

I then was looking at this source and found https://github.com/mertkahyaoglu/node-movie which connects to OMDb.

It would appear that you can register for a free key that allows 1,000 requests per day, or unlimited by sponsoring the author on Patreon. https://www.omdbapi.com/apikey.aspx

Could it be possible to have a parameter POSTed to the server for projects to specify their own OMDb API key?

mertkahyaoglu commented 6 years ago

Could it be possible to have a parameter POSTed to the server for projects to specify their own OMDb API key?

@spotlightishere that can be done. We can initialize a NodeMovie object with an API key and then use that object to send a request.