v5

latestOpenAPI 3.1.0Proprietary2026-08-031,5423,1505.5 MB
Statistical Agencies

StatBank data query (generic, any table)

Execute 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}.

get/api/v1/statistical-agencies/statbank-dk/data/{table_id}

Path parameters

table_idstring required

Upstream StatBank table identifier (e.g. 'PRIS01', 'FOLK1A', 'NKN1').

Upstream StatBank table identifier (e.g. 'PRIS01', 'FOLK1A', 'NKN1').

Query parameters

langstring

Label language: en (default) or da.

Label language: en (default) or da.

last_ninteger nullable

Convenience: when Tid is not supplied, restrict the query to the most recent N time periods by resolving the schema first.

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",
    "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"
    ]
  }
}