{"ok":true,"site":"ssb","host":"ssb.no","about":"Statistics Norway (SSB, ssb.no): search articles and statistics, read statistic, article and topic pages, and query Statbank (PxWebApi v2) tables, metadata and data, plus Klass classifications.","commands":[{"command":"search-content","summary":"Full-text search of ssb.no content (statistics, articles, analyses, fact pages), with subject/content-type filters and date sort","params":[{"name":"query","type":"string","required":true,"description":"Search text, e.g. befolkning"},{"name":"start","type":"number","description":"Result offset (0-based)","default":0},{"name":"count","type":"number","description":"Number of hits per page","default":15},{"name":"language","type":"string","description":"Content language","oneOf":["nb","en"],"default":"nb"},{"name":"subject","type":"string","description":"Main subject filter (title from the 'subjects' facet), e.g. Befolkning, 'Innvandring og innvandrere'. Empty means all subjects."},{"name":"content_type","type":"string","description":"Content type filter (title from the 'contentTypes' facet), e.g. artikkel, statistikk, analysis. Empty means all types."},{"name":"sort","type":"string","description":"Sort order: best (relevance) or publiseringsdato (newest first)","oneOf":["best","publiseringsdato"]}],"exampleUrl":"https://clify-dev.netlify.app/ssb/search-content?query=befolkning&subject=Befolkning&content_type=artikkel"},{"command":"get-topic","summary":"List the sub-topics (category links) on an ssb.no main topic page","params":[{"name":"topic","type":"string","required":true,"description":"Topic slug, e.g. sosiale-forhold-og-kriminalitet, befolkning, arbeid-og-lonn"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-topic"},{"command":"get-statistic","summary":"Get a statistic page's overview: title, ingress, last and next update, subjects and keywords","params":[{"name":"subject","type":"string","required":true,"description":"First URL segment of the statistic URL from search-content (e.g. befolkning in /befolkning/folketall/statistikk/befolkning)"},{"name":"area","type":"string","required":true,"description":"Second URL segment, e.g. folketall"},{"name":"slug","type":"string","required":true,"description":"Statistic slug after /statistikk/, e.g. befolkning"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-statistic"},{"command":"get-statistic-tables","summary":"Get the 'selected figures' tables shown on a statistic page (caption, header and rows as text)","params":[{"name":"subject","type":"string","required":true,"description":"First URL segment of the statistic URL, e.g. befolkning"},{"name":"area","type":"string","required":true,"description":"Second URL segment, e.g. folketall"},{"name":"slug","type":"string","required":true,"description":"Statistic slug after /statistikk/"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-statistic-tables"},{"command":"get-article","summary":"Get an ssb.no article: title, ingress, publish date, authors and body text","params":[{"name":"subject","type":"string","required":true,"description":"First URL segment of the article URL, e.g. befolkning"},{"name":"area","type":"string","required":true,"description":"Second URL segment, e.g. navn"},{"name":"slug","type":"string","required":true,"description":"Article slug after /artikler/"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-article"},{"command":"search-tables","summary":"Search or list Statbank (PxWebApi v2) tables by keyword","params":[{"name":"query","type":"string","description":"Search words, e.g. folkemengde. Use quotes for an exact phrase."},{"name":"lang","type":"string","description":"Language","oneOf":["no","en"],"default":"no"},{"name":"include_discontinued","type":"boolean","description":"Include discontinued tables","default":true},{"name":"page","type":"number","description":"Page number (1-based)","default":1},{"name":"page_size","type":"number","description":"Tables per page (web app uses 10000)","default":50}],"exampleUrl":"https://clify-dev.netlify.app/ssb/search-tables?query=folkemengde"},{"command":"get-table","summary":"Get Statbank table info: label, period range, variables, subject paths, update time","params":[{"name":"table_id","type":"string","required":true,"description":"Statbank table id (5 digits), e.g. 01222"},{"name":"lang","type":"string","description":"Language","oneOf":["no","en"],"default":"no"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-table"},{"command":"get-table-metadata","summary":"Get Statbank table metadata (json-stat2): dimensions with all value codes and labels, notes, roles","params":[{"name":"table_id","type":"string","required":true,"description":"Statbank table id, e.g. 01222"},{"name":"lang","type":"string","description":"Language","oneOf":["no","en"],"default":"no"},{"name":"default_selection","type":"boolean","description":"Restrict dimensions to the default selection's codelists","default":true}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-table-metadata"},{"command":"get-table-default-selection","summary":"Get the default variable/value selection and layout the Statbank uses for a table","params":[{"name":"table_id","type":"string","required":true,"description":"Statbank table id, e.g. 01222"},{"name":"lang","type":"string","description":"Language","oneOf":["no","en"],"default":"no"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-table-default-selection"},{"command":"get-table-data","summary":"Fetch Statbank table data (json-stat2). Without selections it returns the table's default selection.","params":[{"name":"table_id","type":"string","required":true,"description":"Statbank table id, e.g. 01222"},{"name":"lang","type":"string","description":"Language","oneOf":["no","en"],"default":"no"},{"name":"output_format","type":"string","description":"Output format (json-stat2 is parsed as JSON)","oneOf":["json-stat2"],"default":"json-stat2"},{"name":"time","type":"string","description":"Time codes for variable Tid: comma list, wildcard or expression, e.g. 2026K2, top(4), from(2020)"},{"name":"region","type":"string","description":"Region codes for variable Region, e.g. 0 (whole country), K-0301, or * for all values in the codelist"},{"name":"region_codelist","type":"string","description":"Codelist for Region, e.g. agg_KommSummer (see get-table-default-selection)"},{"name":"contents","type":"string","description":"ContentsCode (statistics variable) codes, comma list or *"}],"exampleUrl":"https://clify-dev.netlify.app/ssb/get-table-data?time=top%284%29"},{"command":"search-classifications","summary":"Search Klass, SSB's statistical classifications and code lists (e.g. NACE, municipalities, occupations)","params":[{"name":"query","type":"string","required":true,"description":"Search text, e.g. kommune, næring"},{"name":"page","type":"number","description":"Page number (0-based)","default":0},{"name":"size","type":"number","description":"Results per page","default":20}],"exampleUrl":"https://clify-dev.netlify.app/ssb/search-classifications?query=kommune"}]}