Is anyone aware of API access to Roastworld data?
I know we can export to csv, but I have a use case where i would like to export/integrate coffee stock levels into another system.
Is anyone aware of API access to Roastworld data?
I know we can export to csv, but I have a use case where i would like to export/integrate coffee stock levels into another system.
Plus ONE: I’d like to see that also. Any other thoughts on this?
This was discussed recently. No promises, but it is something we are considering.
It looks like there are the beginnings of a public API available here: Scalar API Reference
Would be nice if we could download all the logged data points from this API (like exporting a roast profile from RoasTime)!
if you enable feature preview on roast.world → settings you will be able to see the API features (which can download your profiles)
@jacob but is it possible to get the logged data points? It appears that the API only offers metadata about the roast at this point-- no logged data points at all.
For example:
{
"page": 1,
"size": 20,
"data": [
{
"preheatTemperature": 310,
"totalRoastTime": 810,
"weightGreen": 956,
"weightRoasted": 812,
"serialNumber": 356581729,
"deviceType": "r2",
"uid": "mZ9i8rIlOwSneXJmBqwMz",
"roastName": "259 Guatemala 956g Guatemala",
"dateTime": 1766849131200,
"updatedAt": 1766875384338,
"firstCrackTime": 534,
"firstCrackTemp": 204.05,
"firstCrackIRTemp": 199.89,
"beanId": "NmDIxxTsngQqFjSMNubq"
},
But maybe there is a flag or argument I should be passing?
My request looks like this:
curl 'https://api.roast.world/api/v3/public/roast?page=1&size=20' \
--header 'x-api-key: YOUR_SECRET_TOKEN'
I’m not an expert in this but from what I understand, first you get the paginated list like you have. From there you use the uid (I believe) to request a single profile with full data: Get a single item by modelType and id.
Yep, that’s it! I totally overlooked that-- it’s kind of obvious, now that you say so…
That was the data I was looking for. Thanks!