← ClaudeAtlas

generic-pxweb-v1-skilllisted

Access official statistics from any PxWebApi v1 installation (the PxWeb 1.0 API). Use when querying statistical databases that run the older POST-based PxWeb API — base URLs of the form `/api/v1/{lang}/{database}/…`, or SSB's `/api/v0/`. Trigger on "PxWebApi v1", "PxWeb v1", "PxWeb API", "PXAPI", "statbank API", "Statistikkbanken API", "Statistikdatabasen API", or when a PxWeb URL contains `/api/v0/` or `/api/v1/`. Covers hierarchy navigation, table search, metadata, the JSON query body (`{"query": […], "response": {…}}`), the item/all/top/agg/vs filters, elimination rules, output formats, and error handling. For installations already migrated to PxWebApi v2 (SSB `data.ssb.no/api/pxwebapi/v2`, SCB `statistikdatabasen.scb.se/api/v2`) prefer `generic-pxweb-v2-skill`, `ssb-pxwebapi-v2` or `scb-pxwebapi-v2` instead.
janbrus/pxwebapi-skills · ★ 10 · Web & Frontend · score 72
Install: claude install-skill janbrus/pxwebapi-skills
# PxWebApi v1 — Generic Skill This skill guides you through using **PxWebApi v1** (PxWeb 1.0 API) to navigate, explore, and retrieve official statistics. PxWeb is developed by Statistics Sweden (SCB) and used by statistical agencies worldwide. Many installations are still on v1 and have no migration date. **The single most important fact:** in v1, **data is retrieved with HTTP POST only.** There is no GET data endpoint. A GET against a table URL returns that table's *metadata*, not its numbers. ## Data integrity — the base rule Official statistics carry an agency's name. A wrong number under that citation damages trust in the agency, not just in the answer. This rule outranks everything else in this skill: **Never state a number you have not fetched from the API in this conversation.** - **No numbers from memory.** If you did not run the query, you do not have the number — including numbers you are confident about. Populations, price indices and unemployment rates all move, and training data has a cutoff. - **No numbers from other sources in the same answer.** Point the user elsewhere rather than blending. - **If the API fails, say so.** No estimates, no "roughly". See Fallback. This matters more in v1 than in v2: several installations return a bare `Bad Request` with no diagnostic, so a failed call is easy to mistake for an empty result. **The text is localised** — Spain's judicial statistics answer `Solicitud incorrecta`. Do not test for the string; treat any 4xx with