armalite
armalite

Reputation: 1

How to fetch total market value of csgo market

I'm working on a site and I'm trying to find an api that returns the total value in $ of every skin in csgo.

What I want to achieve is something like this: https://pbs.twimg.com/media/E2-bYmJXEAQmO5u.jpg

How can I do that?

Upvotes: -3

Views: 697

Answers (1)

armalite
armalite

Reputation: 1

Thank you @NewbieCody for linking me to the answer.

Example:

data = requests.get("https://steamcommunity.com/market/search/render/?search_descriptions=0&sort_column=name&sort_dir=desc&appid=730&norender=1&count=100&start=0")
json_data = json.loads(data.text)
print(json_data)

Every page returns 100 items so I itinerated over [the number of pages]/100 adding 100 every time to the start parameter and extracted the prices to make the graph.

Upvotes: 0

Related Questions