Skip to content Skip to sidebar Skip to footer

How To Extract A Chart That Gets It Data From An API Using Python

I am trying to get the data from this website, https://en.macromicro.me/charts/947/commodity-ccfi-scfi , I understand that the data is called from an API, how do I find out how the

Solution 1:

You can make a GET request to the API using requests and convert the response to json.

resp has the data in json format and you can easily extract the info that you need.

import requests

url = "https://en.macromicro.me/charts/data/947"

resp = requests.get(url)
resp = resp.json()


Post a Comment for "How To Extract A Chart That Gets It Data From An API Using Python"