@kms487 said: API Invalid
Hi , I{m trying to gather data base from movies using dooplay and your API but is not accepting it it as invalid. Can someboy help me?
Hi, I have the same problem as OP when trying to use my API key. I tried your suggestion, and got the basic info about the movie using the example request and my key in the browser. However, when I tried it on my React app, it still displays error code 7.
Hi, I have the same problem as OP when trying to use my API key. I tried your suggestion, and got the basic info about the movie using the example request and my key in the browser. However, when I tried it on my React app, it still displays error code 7.
Do you have any other suggestions?
I understand that you are writing the code.
So the problem must be in the code that is building your API Request, or something like that,
and is sending the Request to the TMDb Server.
It is very common to find people here with this type of problem.
A little mistake, a copy and paste with an extra space, or less character, an exchange of characters,
a quote left, use a dash when it should be underline, in short a typo and the answer can be that.
Even if the API Key is correct. The Requisition is that it has a little mistake.
I will place 6 API requests here. The first 5 with error.
You can see that the API Key is correct but the answer is Invalid API key or could not be found.
My suggestion is to check if there is any way for you to view the API Request that your APP is sending to the TMDb server.
Not the construction of the code, but the requisition built, final.
If possible, post the Request here.
If this is not possible, then you need to check in your code if there is a mistake, like the mistake in the examples above.
The error is usually in this segment of the API Request: ....?api_key=12345....
Can't find a movie or TV show? Login to create it.
Reply by ticao2 š§š· pt-BR
on June 9, 2021 at 5:31 PM
Take a Test
Click to go to your Profile > API: https://www.themoviedb.org/settings/api
At the bottom of the page, below, you'll find the Example API Request.
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY
Use this example to do a search using your browser , not the dooplay.
You will receive the basic data of the Movie Fight Club (1999)
https://www.themoviedb.org/movie/550-fight-club
If it works, your Key is OK.
When there is a problem, the TMDb Server sends a message.
Can you tell which message the server sent?
Here is a list of possible messages:
https://www.themoviedb.org/documentation/api/status-codes
If it does not work, let us know right here.
Reply by acuppa
on July 17, 2021 at 7:00 AM
Hi, I have the same problem as OP when trying to use my API key. I tried your suggestion, and got the basic info about the movie using the example request and my key in the browser. However, when I tried it on my React app, it still displays error code 7.
Do you have any other suggestions?
Reply by ticao2 š§š· pt-BR
on July 17, 2021 at 9:20 AM
I understand that you are writing the code.
So the problem must be in the code that is building your API Request, or something like that,
and is sending the Request to the TMDb Server.
It is very common to find people here with this type of problem.
A little mistake, a copy and paste with an extra space, or less character, an exchange of characters,
a quote left, use a dash when it should be underline, in short a typo and the answer can be that.
Even if the API Key is correct. The Requisition is that it has a little mistake.
I will place 6 API requests here. The first 5 with error.
You can see that the API Key is correct but the answer is Invalid API key or could not be found.
1 https://api.themoviedb.org/3/movie/777670&api_key=THE_KEY
2 https://api.themoviedb.org/3/movie/777670/api_key=THE_KEY
3 https://api.themoviedb.org/3/movie/777670?api-key=THE_KEY
4 https://api.themoviedb.org/3/movie/777670?api_key=THE_KEY
5 https://api.themoviedb.org/3/movie/'777670'?api_key=THE_KEY
6 https://api.themoviedb.org/3/movie/777670?api_key=THE_KEY
My suggestion is to check if there is any way for you to view the API Request that your APP is sending to the TMDb server.
Not the construction of the code, but the requisition built, final.
If possible, post the Request here.
If this is not possible, then you need to check in your code if there is a mistake, like the mistake in the examples above.
The error is usually in this segment of the API Request: ....?api_key=12345....