Questions tagged [themoviedb-api]

The TheMovieDB API is a simple API for getting community built content for movies and actors from TheMovieDB site

TMDb is a free and community maintained movie database. It has a huge database of movies, actors, facts and all related details. It's similar to IMDB, but open to all. You need either a free or commercial API key to access the API. There are few wrapper libraries for languages like PHP, C#, and Java.

For more information, visit https://www.themoviedb.org/.

185 questions
0
votes
1 answer

themoviedb API return the same set of movies

I just tried the API from themoviedb API and I got some problem. I tried to fetch some movies data from themoviedb API, but the result is always the same and never changed, I know that themoviedb API is just return 20 data of movies, but the problem…
Dzy
  • 23
  • 4
0
votes
1 answer

create an edge list on films that share a genre

hello everyone I'm doing a project to analyze a website and build a network graph with python. I chose the themovieb.org website. The nodes are the ids of the movies and the links between the nodes are the genres that two movies depend on. For…
Elly
  • 345
  • 1
  • 8
0
votes
2 answers

Exception: type 'String' is not a subtype of type 'Map'

I'm trying to get some images from an API but facing this error [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'String' is not a subtype of type 'Map' The Json from the API looks like this and it's from…
Seth
  • 127
  • 1
  • 2
  • 12
0
votes
2 answers

Multiple callbacks on JS event

I have a form with two inputs fields.

Year

Name

0
votes
0 answers

getting error - TypeError: fetch failed The moviedb api [NEXTJS Api]

please enter this link to see the image of the error I got the ((Server Error TypeError: fetch failed)) when I was trying to use themoviedb api. this is my index.js file. I have checked everything for many times from scratch. But I get this error…
0
votes
1 answer

Pull information from the main api model

there is a question, how to pull the genre name from Movie Details to put it separately in textview? data class MovieDetails( val adult: Boolean, val backdrop_path: String, val belongs_to_collection: Any, val budget: Int, val…
Amir
  • 3
  • 2
0
votes
0 answers

how can i get total_pages from themoviesdb-api and save it to a variable?

i have the following function: const getTotalPages = async () => { const selectedGenre = getSelectedGenre(); const discoverMovieEndpoint = '/discover/movie'; const requestParams…
chylinski
  • 85
  • 12
0
votes
0 answers

Getting Mixed Content Netlify in React js with tmdb api in Production

I am getting error while making request to three endpoints using redux toolkit. I have a lot of others endpoints too they are working fine but in production its not working. import { createApi, fetchBaseQuery } from…
Awais Raza
  • 55
  • 1
  • 9
0
votes
0 answers

Trying to pass parameters through components

So I am creating an app using the movie DB API and I have this Actor component where I am passing the actor id to and when I try to use that Id to link to the person webpage for some reason I am passing an object instead. I am trying to pass the…
user17775845
0
votes
1 answer

React-TypeScript API Search functionality not working

We're trying to add a search function in our class project, but aren't getting any results. If we type in the input, then go back to the code and save it, then it will work. But the onSubmit isn't working on it. Here is the Search component import…
Andrew Damavoletes
  • 259
  • 1
  • 2
  • 10
0
votes
1 answer

for loop gets multiple array from api and shows only one array for so many times

im getting this error : the function to get movies from api : async function Movie(id){ await fetch(`https://api.themoviedb.org/3/movie/${id}?api_key=84120436235fe71398e95a662f44db8b`) .then((res) => res.json()) .then((json) =>…
moncef
  • 3
  • 5
0
votes
3 answers

get data from array of functions

i got the data from this array but when i add it to the loop to show all the arrays it only show me only one array help pleaseeee this is the problem : https://i.stack.imgur.com/gmg4I.png the function to get data from api ( the problem isnt here…
moncef
  • 3
  • 5
0
votes
0 answers

How to convert array in localstorage to JSON that can be used to render elements into div?

first i wanna apologize if my question isn't super clear.. howeverm i feel like i am close to figuring it out. what i wanna do is basically create a movie app Without React where you can favorite movies by basically clicking on the icon, it takes…
0
votes
1 answer

themoviedb api Search Movie

I'm stuck. I am using movie api for search movie. I have done the api part. But when I type a random nonsense word in the search section, my application gives an error because there is no such movie. How can I get past this? I am sharing my codes…
user17768986
0
votes
1 answer

Android Studio TheMovieDB API not showing in ScrollView

I am using TheMovieDB API to call the JSON Response of the popular movies and put it into a ScrollView. I have ensured that I have done all the neccessary steps to get the API. However it does not work and does not display anything. If I use another…