GnistAI GnistAI
Log in

SSB (Statistics Norway)

Norwegian 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 Norway (SSB)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/ssb/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-ssb": {
      "url": "https://context.gnist.ai/mcp/ssb/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/ssb/" \
  -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": "search_tables", "arguments": {"query": "example"}}}'

API REST API

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

6 endpoints available:

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

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

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc ssb

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

Install
pip install gnistai

Available Tools (6)

search_tables
Search SSB's statistical table catalog by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch keywords (e.g. 'population by municipality').
langstringoptionalLanguage — 'en' for English, 'no' for Norwegian (default 'en'). (default: "en")
get_table_metadata
Get the structure of an SSB table — its dimensions, variables, and valid values.
ParameterTypeRequiredDescription
table_idstringrequiredSSB table ID (e.g. '07459' for population, '03013' for CPI).
langstringoptionalLanguage — 'en' or 'no'. (default: "en")
get_data
Query data from an SSB statistical table.
ParameterTypeRequiredDescription
table_idstringrequiredSSB table ID.
filtersanyoptionalList of dimension 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 'no'. (default: "en")
list_subjects
List SSB's top-level subject categories.
ParameterTypeRequiredDescription
langstringoptionalLanguage — 'en' or 'no'. (default: "en")
browse_subject
Browse a subject path to find sub-categories and tables.
ParameterTypeRequiredDescription
pathstringrequiredSubject path (e.g. 'bb', 'bb/bb01').
langstringoptionalLanguage — 'en' or 'no'. (default: "en")
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related