GnistAI GnistAI
Log in

DST (Statistics Denmark)

Danish official statistics — population, employment, income, housing, trade, and economic data.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Economics

Data source: Statistics Denmark (Danmarks Statistik)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/dst/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-dst": {
      "url": "https://context.gnist.ai/mcp/dst/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/dst/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "browse_subject", "arguments": {"subject_id": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/dst/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/dst/browse_subject?subject_id=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/dst/browse_subject",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "subject_id": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc dst

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

list_subjects
List Statistics Denmark's top-level subject categories.
ParameterTypeRequiredDescription
langstringoptionalLanguage — 'en' for English, 'da' for Danish (default 'en'). (default: "en")
browse_subject
Browse a subject area to find sub-subjects and tables.
ParameterTypeRequiredDescription
subject_idstringrequiredSubject ID (e.g. '1' for People, '2' for Labour).
langstringoptionalLanguage — 'en' or 'da'. (default: "en")
list_tables
List available statistical tables, optionally filtered by subject.
ParameterTypeRequiredDescription
subject_idanyoptionalSubject ID to filter by (e.g. '1'). Omit for all tables.
langstringoptionalLanguage — 'en' or 'da'. (default: "en")
get_table_metadata
Get the structure of a Statistics Denmark table — its dimensions, variables, and valid values.
ParameterTypeRequiredDescription
table_idstringrequiredDST table ID (e.g. 'FOLK1A' for population, 'AKU100' for labour force).
langstringoptionalLanguage — 'en' or 'da'. (default: "en")
get_data
Query data from a Statistics Denmark statistical table.
ParameterTypeRequiredDescription
table_idstringrequiredDST table ID.
filtersanyoptionalList of variable filters. See get_table_metadata for valid codes.
top_nintegeroptionalIf no filters given, fetch this many latest time periods (default 5). (default: 5)
langstringoptionalLanguage — 'en' or 'da'. (default: "en")
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related