Concurrency
Credits and Concurrency
Credits control billable usage. Your plan's concurrency limit controls simultaneous work.
| Control | Behavior |
|---|---|
| Monthly credits | Reset with the active billing period. |
| Top-up credits | Used after monthly credits and do not expire. |
| Endpoint weights | Read from the live public catalog. |
| Concurrency | Limits simultaneous requests or active jobs. |
Concurrency Response
A rejected request returns 429. Wait for Retry-After before retrying.
Example
Retry-After: 5
X-Concurrency-Limit: 2
X-Concurrency-Active: 2Example
{
"detail": "Data API concurrency limit reached (2 active requests)."
}Live Credit Weights
curl -X GET "https://api.datablue.dev/v1/data-api-weights/public" \ -H "Authorization: Bearer YOUR_API_KEY"
Example response
[
{
"platform": "classic",
"operation": "scrape",
"weight": 1
},
{
"platform": "google",
"operation": "flights",
"weight": 3
}
]