Questions tagged [omdbapi]

The OMDb API is a RESTful web service to obtain movie information, all content and images on the site are contributed and maintained by its users. See https://www.omdbapi.com/#usage for usage.

48 questions
10
votes
1 answer

Encoding special characters for passing to a URL

I am trying to learn Python, so I thought I would start by trying to query IMDB to check my movie collection against IMDB; which was going well What I am stuck on is how to handle special characters in names, and encode the name to something a URL…
PhilC
  • 123
  • 8
7
votes
1 answer

OMDb API Rotten Tomatoes

I believe this may just be a bug in the OMDb API. But I am hoping that someone can point out the errors in my ways. I am trying to include the Rotten Tomatoes Ratings in a output. But no matter what options I try I don't get anything. curl…
Dishcandanty
  • 411
  • 1
  • 6
  • 13
4
votes
2 answers

How to match fetch data to images called from a different fetch?

Would like to be able to click the images and display data from a second fetch call using the imdbID that matches the clicked poster. I'm trying to print movie posters to the page - the movie posters will then be clickable - on click they will…
2
votes
1 answer

How do I fix 401 error when using OMDB API?

EDIT: I have added the response from OMDB {Response: "False", Error: "Invalid API key!"} Error: "Invalid API key!" Response: "False" I am new to web development and I am trying to build a chrome extension that displays imdb scores on netflix. I am…
1
vote
1 answer

Get input value with react hooks to search on oMdb api

I want to do a movie search with the oMdb api using React Hooks. The result is not as expected. I seem to break some React Hooks rule that I don't understand. Here is the code. HOOK TO SEARCH The Hook inside of a store. (If I use searchMovies('star…
1
vote
2 answers

OMDb Api doesn't show any result - Kotlin, Android Studio

I followed everything carefully, step by step, but I can't find what the problem is. Whenever I fill in the name of the movie I intend to search by, the app crashes and it says this: java.lang.NullPointerException: response.body() must not be…
jjorigin
  • 41
  • 6
1
vote
3 answers

Deserialize with JSON

I downloaded a JSON string from OMDb API, now I want to deserialize to a list of objects but I get the error code: Newtonsoft.Json.JsonSerializationException: "Cannot deserialize the current JSON object (e.g. {"name":"value"}) into…
Sese1997
  • 13
  • 2
1
vote
2 answers

Movie Genre Data Pulled into Google Sheets

I want the genres associated with a list of movies in Google Sheets. I am attempting to pull this info via the importxml formula with the OMDB API. However I keep getting an error. Here is a sample sheet for reference. I have a key for the API but…
1
vote
1 answer

30 movies per page on OMDb api in React

I am trying to combine pages to increase the items to 20, 30 since OMDb has only 10 per page. I need to get all the "imdbID" from pages 1,2 and 3. The API shows this result: ``` "Search": [ { "Title": "Home", "Year": "2009", "imdbID":…
Ina
  • 27
  • 6
1
vote
2 answers

How can I get the value of an input field and use it in URL in React

I have to complete this project and I'm having a hard time understanding how the hooks work. I'm completely new to React and I was wondering how I could grab the value of my Input field so I could use it and modify the URL of the API (omdb) I'm…
DevoJo
  • 11
  • 3
1
vote
0 answers

'NoneType' object is not subscriptable'

I am trying to make a website that allows a user to create their own "to-watch" list and also can randomly select a title from the created list, showing the movie's plot, genre, and IMDb rating using an API. I've encountered a "NoneType' object is…
ddinh9978
  • 11
  • 4
1
vote
1 answer

OMDBAPI returns only 10 movies

I am trying to get all movies but the API only returns first 10 movies. Any help would be appreciated. async getResults(page = 1) { const apiKey = '#######'; const proxy = 'http://cors-anywhere.herokuapp.com/'; try { while (page…
hamid
  • 21
  • 1
  • 7
1
vote
2 answers

My code gives me an error: 'list index out of range'

Sometimes when I run the code it gives me the correct output, other times it says "List index out of range" and other times it just continues following code. I found the code on:…
ICH_python
  • 51
  • 1
  • 1
  • 5
1
vote
1 answer

Error: Mixed Content, While Deploying React app on Github

I ran into a small problem while deploying a react app on GitHub pages. The app works perfectly fine on a live server. But, when I push the code on gitHub and test it. This error occurs: Mixed Content: the page at '' was loaded over HTTPS,…
Vaasu Dhand
  • 499
  • 1
  • 8
  • 14
1
vote
0 answers

data isn't pulling through from omdbapi.com

I've connected to the omdbapi website to try to pull through the relevant information about a film that is search for in the form I've created. The poster image isn't displaying and the title is coming up as undefined. I've console.log the data…
1
2 3 4