forum

How to get user Historical graph as png?

posted
Total Posts
3
Topic Starter
ThangProVip
I'm making an osu discord bot that can show a specific osu user, but I really don't know how to get this graph as a picture, with a specified user for sure.

Please help <3
sineplusx
You could use the osu!api for that.

The documentation is here:
docs/index.html#get-user
https://osu.ppy.sh/docs/index.html#user

This API call returns information for a specific user. You will need the monthly_playcounts object which contains the playcounts for each month. From that you can render/draw a graph image yourself.

You could also extract the svg image with the corresponding css from the profile sites, but thats kind of a hacky solution.
Topic Starter
ThangProVip

sineplusx wrote:

You could use the osu!api for that.

The documentation is here:
docs/index.html#get-user
https://osu.ppy.sh/docs/index.html#user

This API call returns information for a specific user. You will need the monthly_playcounts object which contains the playcounts for each month. From that you can render/draw a graph image yourself.

You could also extract the svg image with the corresponding css from the profile sites, but thats kind of a hacky solution.
Got it bro
Please sign in to reply.

New reply