I'm posting some examples for the API since about 350 people from LET signed up for the NIXStats beta.
Anyone can read the api documentation at https://nixstats.com/api/documentation.html this covers the API endpoints as well as an example for the return data.
You can create an API key at the settings page under the api tab.
All data from the API is returned in JSON format. Successful calls will return a http 200, invalid calls will return something else. The API is limited to 1000 requests per hour, the amount of requests remaining/used is returned in the HTTP header as shown in the documentation.
I tried to post these examples on LET directly but cloudflare wouldn't let me so here are some links of basic examples:
Get a list of all domains: https://nixstats.com/api/domains.example.php.txt Get a single domain: https://nixstats.com/api/domain.example.php.txt
Get a list of all servers: https://nixstats.com/api/servers.example.php.txt Get a servers cpu usage from last hour: https://nixstats.com/api/server.example.php.txt
I'll try to post some more examples soon.