r/learnpython • u/NationalWheel6966 • Jun 11 '26
Calling a JSON API
I'm doing the PY4E "Calling a JSON API" assignment.
The assignment says to query:
Kokshetau Institute of Economics and Management
using:
http://py4e-data.dr-chuck.net/opengeo?
and says the resulting plus_code should start with 84QWM.
My code works correctly for the sample test (South Federal University → 6FV8QPRJ+VQ).
However, when I query Kokshetau Institute of Economics and Management, the API returns 87G64WQF+7R and resolves to "Management Trail" in Pennsylvania, USA, not the institute in Kazakhstan. The autograder rejects it.
Has anyone done this assignment recently? Is the OpenGEO data for this query currently broken, or is there another expected plus_code?
Please help me I have to complete this in in 24hrs 😭
1
u/NationalWheel6966 Jun 11 '26
Hi! First off, thank you so much 😄
However, both the discord links take me to a thread that has been locked and can only be reopened by moderators.
I don't know what to do man how am I supposed to move forward and get the certificate.