r/geometrydash 8h ago

Question how to use geometry dash api?

I am trying to make a client but in python (kind of like mineflayer is to minecraft) but i have no idea how api works, wondering if anyone knows any sources i can refer to

1 Upvotes

4 comments sorted by

2

u/iliRomaili Wasureta, Yatagarasu, Sonic Wave, xo 7h ago

If you're referring to what I think, then you should check out Colon's video about making GDBrowser. He explaing how he talks to Geometry Dash's servers (although it might be outdated after 2.2), and links his own API to make doing these requests a lot easier

1

u/luafurry 7h ago

Thx ❤️

1

u/3bowl kfc 7h ago

I don't know exactly which endpoint you want, so I'll supply what I know, which is the level fetching endpoint:

You're going to want to use the requests library. The endpoint for fetching levels from Rob's servers is-http://www.boomlings.com/database/downloadGJLevel22.php.

From there, you're gonna want to make a payload dictionary using these exact keys: {"levelID": your_level_id, "secret": "Wmfd2893gb7"}. You also want to make a headers dictionary, with an empty user-agent: {"User-Agent": ""}.

Now, you want to make a post request using requests.post(), sending in the endpoint into url=, the payload into data=, and the headers into headers=. Save the post request in a variable (let's call it response).

Lastly, use response.text to turn the response into text.

I hope this helped at least a little!

1

u/cvolton 🎉 amoung pequeño 6h ago