German statistics table by GENESIS code
Changed onFetch any Destatis GENESIS table by its code (five digits, a hyphen, four more), the same code /destatis/search and /destatis/statistics/{code}/tables already hand out. Thirteen curated shortcuts stay on /destatis/{table}. This long-tail route is admission-controlled: one in-flight request per API key, a platform cap of 720 uncached fetches per UTC day (tunable DESTATIS_LONGTAIL_DAILY), and it never waits for the shared GENESIS slot - a busy lane is 429 with Retry-After. A table too large for a direct request is refused with both levers that work: a narrower year window, and a contents slice. Optional classifying is VARIABLE:KEY, e.g. GP19A2:GP19-05, taken from /destatis/variables/{code}/values. Repeat the parameter for more than one variable (five classifying plus one regional). A key that is not in that value list is refused here with HTTP 400 and is never sent upstream: GENESIS answers Status 0 and the whole cube for an invalid classifying key. The same slice can be served through POST /destatis/extractions (GENESIS job=true) instead of this 413. The answer may be served from cache; a cache hit is free and is not counted against the budget.
Request
- Base URL: https://sugra.ai
- URL: https://sugra.ai/api/v1/destatis/table/{code}
- Auth: API key in header x-api-key
Path parameters
GENESIS table code, e.g. 42131-0003.
Query parameters
Start year (YYYY).
End year (YYYY).
Optional comma-separated GENESIS content variable codes.
Slice to one legal member of a classifying variable. Shape: VARIABLE:KEY, e.g. GP19A2:GP19-05. Repeat the parameter for more than one variable. A key that is not in /destatis/variables/{code}/values is refused here and never sent upstream.
Response
Tidy observations for the requested GENESIS table.
Example response
{
"meta": {
"endpoint": "/api/v1/fred/us/cpi",
"data_time": "2026-04-16T14:30:00Z",
"response_time": "2026-04-16T14:30:12Z",
"provider": "Sugra API v1.0.1",
"data_age_days": 8.532,
"source": "sugra_crypto",
"attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
"fallback_chain": [
"sugra_crypto",
"sugra_finance"
],
"stale_since": "2026-09-08T12:00:00Z",
"period": "2026-Q1",
"notes": "the UKMTO report behind these counts is dated 2026-08-21 and is 11 days old"
}
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the non-success response with the status
- info