Our API will allow you to get statistics for a simulation via a simple REST API. TO get started, go over to your profile and get your API token.
Endpoints are categorised by category and request type below. All endpoints have a base URL of http://evcalc.app/api/
Click the share button on an EVCalc inside your account to get its unique hash which can be sent to this endpoint and will return its statistics.
Requests can be authorised in 2 ways. Use whichever suits your application best:
https://evcalc.app/api/endpoint?api_token=your_token_here
Add the following header to your request, replacing your_token_here with the token from your profile
Authorization: 'Token:your_token_here'
Requests are rate limited to 60 requests per minute, per API token. Please consider caching statistics on your server to respect this limit and reduce our server load.