ahivert / tgtg-python

Unofficial client for TooGoodToGo API
GNU General Public License v3.0
372 stars 70 forks source link

API documentation, smallest query interval #284

Closed Klausoleum closed 1 month ago

Klausoleum commented 8 months ago

First of all, thank you for the great project. It works super well.

Many products sold out very quickly. I tried to make the query rate smaller. A request for all my favorites with an interval of 60 seconds works without any problems. One request every 4 seconds only worked for a few hours. the script runs as a systemd Service calld "test.service" and the following is returned: grafik

Is there official documentation for the TGTG API?

What is the limit of daily requests and what is the smallest possible interval?

floriegl commented 7 months ago

Hi! No, there is no publicly accessible official documentation. TGTG has an internal Swagger file of the API iirc. But all the endpoint documentation in the different projects was created by reverse engineering the app and just trying things out.