Python API Program Debugging

Job ID: 39133011

Budget: $10 – $30 USD

My Python program that connects to an API is not functioning correctly. It's receiving incorrect data, specifically wrong values.

I need an experienced Python programmer who is familiar with API connections and can help me troubleshoot this issue. The ideal candidate will have strong problem-solving skills and a keen attention to detail. Please only apply if you can demonstrate relevant experience.

I attached import.py

1. See "Screenshot showing the problem.jpg"

The fact that things in red are constant is very natural. What is not natural is that things in blue are constant across different commodities. Can you fix the problem by fixing the python code?

2. I wanted to make it download yearly total trade, not monthly. A programmer said "The yearly data database only goes up to 2018 and is no longer updated. The provided API is also no longer functional, and the available variables do not include HS CODE or related data, suggesting that it has been discontinued." Do you also think so?

3. A programmer said "If I query the monthly database with a "year" parameter, it returns data for each month of that year rather than the total for the entire year." Do you also think so?
Related categories: Python Software Architecture API Web API