I have a REST API in place already (you can check the graphs page and use that endpoint to return whatever you want from your data), but read-only at the moment, as I'm doing some adjustments to the 'write' part. You'll be able to insert data in JSON, bulk or not, within days. Need to write documentation and put it live.
The tokens are just a simple GET call you can make and it counts +1 to the dataset (for that token).
The stack is Django, Postgres, uWSGI, nginx.