It's quite simple, you constantly send a POST request with a string in the string and put the data as they require. The only thing is that you will need to format this string with data correctly (quotation marks or brackets, etc).
You should get a response and this response will contain a string with data in the format they specify. You parse this string into the data you need via tokenat.
And so constantly, of course in the code you need to provide for communication failures and errors, so that you do not spam them with requests too often otherwise they at the server level will block you.
I have attached a screenshot with a piece of code for the POST request and response, this is an example data you should enter your own.