API endpoint for all data of a particular site?

Looking at the source code on GitHub I did not find any API for that.
The main API URLs are:
https://supercharge.info/service/supercharge/allSites
https://supercharge.info/service/supercharge/allChanges
https://supercharge.info/service/supercharge/country
https://supercharge.info/service/supercharge/region
https://supercharge.info/service/supercharge/databaseInfo
https://supercharge.info/service/supercharge/discuss?siteId=123
https://supercharge.info/service/supercharge/site/stallCount

When the site needs to get data for just one supercharger it uses the function “Sites.getById(id)”
But this function also only goes through the whole list:
grafik

Also please note that only changes to the status of the supercharger sites (planned, construction, open…) are on the changes sites. Updates on stall count, location and so on will not create an entry there.

So you could use the output of databaseInfo to know when you need to download the complete list.

1 Like