The AoPS Ajax route (alcumus/ajax.php, community/ajax.php, ajax.php) is the API Endpoint for AoPS Community and Alcumus. (Note: you can't cheat on Alcumus using this!)
You can make community bots using the ajax endpoint, even moderator bots!
But first, we must understand what it does.
We first must understand how to use it!
To understand how AoPS Itself uses it, we must see its requests to the ajax file.
If we open the console (ctrl+shift+i) then click the network tab, we will see all of the requests AoPS made.
Let's try and post a post. We submit, and something interesting shows up in the network tab. A text named
ajax.php shows up. we click on (the first one), and this shows up:
That is the request made by AoPS to make that post I just submitted.
(note: I cleared all of that cookie and session stuff. not gonna work by the time you're reading this.)
That is the
curl code that AoPS sent to the ajax. that basically means, "Hey can you do what this curl code says"
if we can convert it to python code, this is what it might look like:
data variable, we can actually see what I wrote in.
if we make a request to
https://artofproblemsolving.com/m/community/ajax.php with those headers and data, and reload the thread (or whatever), we can actually see the code actually made a post!
This is all it for now, I will write more later