Data API
Authentication
The SMR20 Data API authenticates with a single API key. Include it on every request using the x-api-key header (or an Authorization: Bearer header).
Demo key
A rate-limited demo key ships with the dev seed so you can try the API immediately:
smr20_demo_key_free_0001Sending the key
cURL
# header form
curl -H "x-api-key: smr20_demo_key_free_0001" \
https://smr20.com/api/v1/prices/today
# bearer form
curl -H "Authorization: Bearer smr20_demo_key_free_0001" \
https://smr20.com/api/v1/prices/todayErrors
- 401 — missing or invalid API key.
- 429 — rate limit exceeded for your tier; retry after the window resets.