StatBank data query (generic, any table)
Changed onExecute a StatBank data query against any table by passing dimension filters as query parameters. Dimension codes are Danish and case-sensitive (e.g. OMRÅDE, KØN, SÆSON, VAREGR, TRANSAKT, Tid). Pass comma-separated values (Tid=2026M01,2026M02,2026M03) or * for all values. Time input accepts both K-form (2025K4) and Q-form (2025Q4); Sugra converts to K for upstream.
Special parameters:
- lang = en (default) or da.
- last_n = convenience: return the most recent N time periods when Tid is not otherwise supplied. Applies only when the table has a time dimension.
For non-elimination dimensions you MUST supply at least one value. Discover the schema via GET /tableinfo/{table_id}.
Request
- Base URL: https://sugra.ai
- URL: https://sugra.ai/api/v1/statistical-agencies/statbank-dk/data/{table_id}
- Auth: API key in header x-api-key
Path parameters
Upstream StatBank table identifier (e.g. 'PRIS01', 'FOLK1A', 'NKN1').
Query parameters
Label language: en (default) or da.
Convenience: when Tid is not supplied, restrict the query to the most recent N time periods by resolving the schema first.
Response
Tidy observations for the requested table slice.
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 non-success response with the status
- info
- info
added the optional property
/to the response with the status
- info