Ask coding questions

← Back to all posts
Why this repl not working???
Sudip550 (0)

Please tell me that, why this repl is not working.

Comments
hotnewtop
JohnjiRomanji (3)

From what it seems, the API you are requesting from doesn’t return a JSON response, so the results=request.json() on line 12 cannot understand the response as a JSON.

When. I open the link you are requesting from (seems to be https://api.coinmarketcap.com/v2/global/?convert=USD) it returns a 410 on GET request, which means the endpoint t is no longer served. Which is in the JSON. I think they updated their api, there is a new one here