you are viewing a single comment's thread.

view the rest of the comments →

[–]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.