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",
    "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"
    ],
    "period": "2026-Q1",
    "notes": "the UKMTO report behind these counts is dated 2026-08-21 and is 11 days old"
  }
}

Changes

Changed in 2 of the 23 revisions of this API.15

    • added the optional property meta/data_age_days to the response with the 200 status

      response-optional-property-added

    • added the optional property meta/notes to the response with the 200 status

      response-optional-property-added

    • added the optional property meta/period to the response with the 200 status

      response-optional-property-added

    • added the optional property code to the response with the 401 status

      response-optional-property-added

    • added the optional property code to the response with the 429 status

      response-optional-property-added

    • added the optional property code to the response with the 503 status

      response-optional-property-added

    • added the optional property hint to the response with the 401 status

      response-optional-property-added

    • added the optional property hint to the response with the 429 status

      response-optional-property-added

    • added the optional property hint to the response with the 503 status

      response-optional-property-added

    • added the optional property plan to the response with the 401 status

      response-optional-property-added

    • added the optional property plan to the response with the 429 status

      response-optional-property-added

    • added the optional property plan to the response with the 503 status

      response-optional-property-added

    • added the optional property reason to the response with the 401 status

      response-optional-property-added

    • added the optional property reason to the response with the 429 status

      response-optional-property-added

    • added the optional property reason to the response with the 503 status

      response-optional-property-added