{"openapi":"3.1.0","info":{"title":"Statistics Sweden (SCB) API","version":"1.0.0","description":"A gateway to the official Statistics Sweden (SCB) PxWeb data service. Read the latest headline Consumer Price Index and fetch the latest time-series observations for any of the thousands of SCB statistics tables by table path and dimension selections — consumer prices, population, the labour market, national accounts, housing and much more. Every observation carries its reference period, and values always resolve to the latest published release, so there are no dates to hard-code. Built for Swedish macro research, CPI and inflation tracking, and SEK currency or rates models that need authoritative national statistics. Distinct from our OECD, Statistics Canada, ABS and Statistics Norway feeds, and from central-bank FX feeds: this surfaces the official SCB data service for Sweden.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/scb-api","description":"oanor gateway"}],"tags":[{"name":"Indicators"},{"name":"Data"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/cpi":{"get":{"operationId":"get_v1_cpi","tags":["Indicators"],"summary":"Latest headline Consumer Price Index","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"unit":"index","value":417.96,"period":"2025M12","source":"Statistics Sweden (SCB)","country":"Sweden","indicator":"Consumer Price Index (CPI), fixed index numbers (1980=100)"},"meta":{"timestamp":"2026-06-15T11:14:49.667Z","request_id":"73eba9af-be98-4926-b036-9a4879886cfc"},"status":"ok","message":"CPI retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/series":{"get":{"operationId":"get_v1_series","tags":["Data"],"summary":"Latest observations for any SCB table","description":"","parameters":[{"name":"path","in":"query","required":true,"description":"SCB table path","schema":{"type":"string"},"example":"PR/PR0101/PR0101A/KPItotM"},{"name":"select","in":"query","required":true,"description":"Dimension selections Code:Value;Code:Value","schema":{"type":"string"},"example":"ContentsCode:000004VU"},{"name":"periods","in":"query","required":false,"description":"Number of recent periods (1-60)","schema":{"type":"string"},"example":"12"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"path":"PR/PR0101/PR0101A/KPItotM","count":12,"label":"CPI, Fixed Index numbers by observations and month","source":"Statistics Sweden (SCB)","observations":[{"value":417.96,"period":"2025M12","period_code":"2025M12"},{"value":417.83,"period":"2025M11","period_code":"2025M11"},{"value":419.35,"period":"2025M10","period_code":"2025M10"},{"value":418.26,"period":"2025M09","period_code":"2025M09"},{"value":418.13,"period":"2025M08","period_code":"2025M08"},{"value":419.75,"period":"2025M07","period_code":"2025M07"},{"value":418.94,"period":"2025M06","period_code":"2025M06"},{"value":416.95,"period":"2025M05","period_code":"2025M05"},{"value":416.69,"period":"2025M04","period_code":"2025M04"},{"value":416.2,"period":"2025M03","period_code":"2025M03"},{"value":419.08,"period":"2025M02","period_code":"2025M02"},{"value":416.57,"period":"2025M01","period_code":"2025M01"}]},"meta":{"timestamp":"2026-06-15T11:14:50.286Z","request_id":"6baa5226-2876-4c0b-bd48-cc55f7c7ce1a"},"status":"ok","message":"Series retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Service metadata","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"name":"Statistics Sweden (SCB) API","note":"For /v1/series choose selections so only the time dimension varies (one value per non-time dimension) to get a clean one-value-per-period series.","source":"Statistics Sweden PxWeb API (api.scb.se)","country":"Sweden","endpoints":[{"path":"/v1/cpi","description":"Latest headline Consumer Price Index (1980=100)"},{"path":"/v1/series","description":"Latest observations for any table (?path=PR/PR0101/PR0101A/KPItotM&select=ContentsCode:000004VU&periods=12)"},{"path":"/v1/meta","description":"This metadata document"}],"disclaimer":"Unofficial proxy of the public Statistics Sweden PxWeb API. Not affiliated with SCB. Data only; refer to SCB for authoritative figures.","description":"A gateway to the official Statistics Sweden (SCB) PxWeb data service. Read the latest headline Consumer Price Index, and fetch the latest time-series observations for any SCB statistics table by its table path and dimension selections. Values always resolve to the latest published period."},"meta":{"timestamp":"2026-06-15T11:14:50.357Z","request_id":"94863fcd-4329-4833-94f1-e20ec14e4659"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":2080,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":1410,"monthly_call_quota":53100,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":3590,"monthly_call_quota":212000,"rps_limit":16,"hard_limit":true},{"slug":"scale","name":"Scale","price_cents_month":7980,"monthly_call_quota":894000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/scb-api"}