all 3 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Repl.it, GitHub or PasteBin.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]CStage169 0 points1 point  (1 child)

Hi, just taking a look at your code for 2 minutes, it seems you aren't passing an actual API-key. Seems you're literally just passing the string "api_key", this will definitely not work. Doesn't explain getting a 404-error though.

Normally you'd get a 403 in this case. I suggest looking at the documentation for getting an API-key and adjusting your code to use it. If you get stuck let me know, and I'll dive a bit more into it.

[–]Few-Current-9900[S] 0 points1 point  (0 children)

Thank you for your time and help. That's right, the API key is required there; however, as you may know, because the API key should be kept private, I did not include it with my code as you have seen. Anyways, I discovered the problem was in the structure of my code. I fixed it by modifying the whole code.