ssb-pxwebapi-v2

Query and analyze Statistics Norway datasets via PxWebApi v2.

10|1|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/janbrus/ssb-api-v2-examples --skill ssb-pxwebapi-v2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssb-pxwebapi-v2
Source: https://github.com/janbrus/ssb-api-v2-examples/tree/main/ssb-pxwebapi-v2-skill
Command: npx skills add https://github.com/janbrus/ssb-api-v2-examples --skill ssb-pxwebapi-v2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyjstat, pxweb-mcp, PxWebApiData, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to querying and retrieving Norwegian official statistics through SSB's PxWebApi v2, eliminating the need for manual data retrieval and analysis.

Core Features & Use Cases

  • Query SSB Datasets: Search and retrieve data from various SSB datasets.
  • Metadata Exploration: Access detailed metadata including dimensions, codes, and descriptions.
  • Data Extraction: Fetch and process data in various formats (json-stat2, csv, xlsx, etc.).
  • Use Case: If you need to retrieve the latest KPIs for a specific industry and visualize them, this Skill can automate the process by querying the appropriate dataset, extracting the required data, and preparing it for visualization.

Quick Start

Run the command: 'ssb-pxwebapi-v2 get data -t 07459 -q "top(5)" -c Personer1'

Frequently Asked Questions about ssb-pxwebapi-v2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve Norwegian official statistics using PxWebApi v2?

You retrieve Norwegian official statistics using PxWebApi v2 by querying specific SSB dataset IDs and processing the returned json-stat2 data, automating extraction without manual downloads.

Can I use SSB PxWebApi with Claude Code to fetch json-stat2 data?

Yes, this Skill is compatible with Claude Code and other AI platforms to fetch and process SSB data in json-stat2 format, supporting metadata exploration and advanced query construction.

What is the best way to get data from SSB datasets without manual exports?

The best way to get data from SSB datasets without manual exports is using an AI-powered Skill to construct advanced queries, extract the required data, and prepare it for visualization.

Do I need to know SSB dataset IDs to query Statistics Norway data?

Yes, querying Statistics Norway data requires knowledge of specific SSB dataset IDs and the json-stat2 format to successfully retrieve and process the requested data points.

How do I access metadata and dimensions for Statistics Norway datasets?

Access metadata and dimensions for Statistics Norway datasets by querying the PxWebApi v2, which provides detailed descriptions, codes, and structural information for advanced query construction.

What are the limitations when retrieving SSB data in csv or xlsx formats?

While PxWebApi v2 supports fetching and processing data in various formats including csv and xlsx, limitations may arise from complex query construction and requiring specific SSB dataset IDs.