Skip to content

Reference

Macro Education

FXMacroData vs Statistics Sweden (SCB) API: Swedish CPIF and Labour Data for SEK Traders

A buyer-guide comparison of the Statistics Sweden (SCB) PxWebApi and FXMacroData for FX traders and developers who need Swedish CPIF, Labour Force Survey, and GDP data for EUR/SEK, USD/SEK, and Riksbank analysis.

Share article X LinkedIn Email
Pip, the FXMacroData robot mascot, lifts a glowing report card out of a neat row of pale wooden filing drawers in a calm Scandinavian-style room.
Statistics Sweden's PxWebApi is the official source for Swedish data. FXMacroData records the same releases with second-level timestamps alongside 21 other currencies.

This comparison is for FX traders, quant developers, and analysts who need Swedish macro data in code and are deciding whether to call the Statistics Sweden (SCB) PxWebApi directly or use FXMacroData. CPIF inflation, the Labour Force Survey, and the monthly GDP indicator drive what markets expect from the Riksbank, and they move EUR/SEK and USD/SEK on the mornings they print, so the choice matters for anyone who trades or models the krona.

The core finding is simple. SCB's PxWebApi is the official, free, keyless source of record for Swedish statistics, with every table in the Statistical Database, full history, and a CC0 licence that places the data in the public domain. FXMacroData reads the same official releases and adds what an FX workflow needs on top: second-level announcement timestamps on every row, one schema across 22 currencies, a cross-country release calendar, pair dashboards, and MCP access for AI assistants. Many SEK desks will use both.

Quick answer

Use the SCB PxWebApi when you need official Swedish tables, every published breakdown, long history, or bulk extracts at no cost. Use FXMacroData when Swedish data is one input into a multi-currency FX workflow that needs exact release times, consistent JSON across countries, calendars, and agent-ready access.

Choose SCB PxWebApi when

You need the official source, full table detail by component, region, age or industry, history back to 1987 for CPIF, or CSV, PX and Excel extracts for Sweden only.

Choose FXMacroData when

You trade EUR/SEK, USD/SEK or Nordic crosses and want SEK releases beside EUR, USD, NOK and 18 other currencies in one schema, with second-level timing.

Entry access

SCB: free, no API key, CC0 licence.* FXMacroData: Always Free USD tier; SEK data on Individual at $50/month (14-day trial) or Business at $250/month for teams.

Takeaway: this is not official versus unofficial data. It is raw official access versus an FX-ready layer built on the same SCB releases.

* SCB access terms retrieved from its public PxWebApi, open data terms, and API configuration pages in October 2026.

Pricing And Access

Price is not a like-for-like commercial comparison. SCB publishes its open data free of charge: there is no paid tier, no registration, and no API key. The API's own configuration endpoint points to the CC0 public-domain dedication, and SCB's terms say you may use and disseminate the data without any requirement to state the source, while recommending "Source: Statistics Sweden" if you do. The terms add two conditions worth knowing: statistics in the database that come from another government agency should be credited to that agency, and you may not present a service as an official cooperation or partnership with SCB.

FXMacroData is a paid workflow product. The Always Free tier needs no key and covers USD data only, at 100 requests per day with USD announcements delayed 15 minutes. SEK data starts on the Individual plan at $50/month or $500/year, with a 14-day trial, 1,000,000 requests per month, and bursts of 300 per minute. The Business plan at $250/month or $2,500/year covers companies and teams of up to 10 people with the same allowance and priority support. Redistribution to your own users is a self-serve add-on at $10/month per block of up to 100 measured users.

SCB PxWebApi

Free, no key*

Every table in Sweden's Statistical Database in JSON-stat2, CSV, PX, Excel, and HTML. CC0 public-domain licence.

FXMacroData Individual

$50/month

22 currencies, 700+ series, release calendar, FX rates, COT, yields, MCP. 1,000,000 requests/month, 14-day trial.

FXMacroData Business

$250/month

Same data and allowance for companies and teams of up to 10 people, with company checkout and priority support.

Takeaway: if Sweden is the only country you need and you are happy to build the plumbing, SCB costs nothing; FXMacroData's price buys cross-currency normalisation and release timing.

* SCB access terms retrieved from its public PxWebApi page, open data terms page, and API configuration endpoint in October 2026. No paid SCB API tier is listed.

Side-By-Side Comparison

Attribute SCB PxWebApi FXMacroData
Core job Official REST access to every table in SCB's Statistical Database, with metadata and table search. FX macro data API and dashboards built on official releases across 22 currencies.
Entry pricing Free; no paid tier listed.* $50/month Individual, $250/month Business.
Free tier Entire service is free, no API key or registration.* Always Free USD tier, no key, 100 requests/day, USD announcements delayed 15 minutes.
Coverage Sweden only, but every published SCB table and dimension, plus some statistics from other Swedish agencies. 22 currencies and 700+ indicator series; SEK includes CPIF, CPIF excluding energy, unemployment, GDP, retail sales, trade, wages, and the Riksbank policy rate.
Release timing New statistics published at 08:00 Swedish time on weekdays.* Each table carries a UTC updated timestamp for its latest update. Second-level announcement_datetime on every row, including past releases; typically available within seconds of official publication, measured publicly.
API format PxWebApi 2 REST with table IDs and variable codes; GET or POST queries; JSON-stat2, CSV, PX, XLSX, HTML, and JSON-PX output.* REST JSON with OpenAPI, X-API-Key header auth, SSE streaming, GraphQL, Python and JavaScript SDKs.
Rate limits 30 calls per 10 seconds per IP address; 150,000 data cells per request.* 1,000,000 requests/month; bursts of 300/min, 5,000/hour, 20 concurrent.
History Full table history; CPIF on the 2020=100 base runs monthly from January 1987. Release history with prior values and announcement times, in one schema across countries.
AI and MCP No MCP server found in the reviewed developer pages. Official MCP server for Claude, ChatGPT, Cursor, and other clients.
Licence for programmatic and commercial use CC0: free use and dissemination with no attribution requirement; credit other agencies' statistics; no implied partnership with SCB.* Personal and internal use on Individual, team use on Business; redistribution via a self-serve add-on.
Best fit Swedish economists, researchers, and data teams who need full official detail. FX traders and developers who need SEK beside other currencies, with timing and pair context.

* SCB terms, limits, formats, and publication times retrieved from its public PxWebApi page, open data terms page, API configuration endpoint, and publication-time notice in October 2026.

What The Official Data Shows

To show what the PxWebApi returns, the chart below is built from SCB table TAB6590, Consumer Price Index with fixed interest rate (CPIF), 2020=100, and table TAB6593, CPIF excluding energy, both pulled through the PxWebApi 2 data endpoint. CPIF is the measure the Riksbank targets at 2%, which is why it is the Swedish release that most often reprices the krona. In FXMacroData the headline series is SEK inflation, and CPIF excluding energy is the SEK core inflation series.

Sweden: CPIF and CPIF excluding energy, annual change, Sep 2025 to Aug 2026

Annual percentage change as published by SCB. Hover for values.

Takeaway: CPIF fell from 3.1% to 0.7% over twelve months, well below the Riksbank's 2% target, with the energy-excluded measure at 0.5% in August; that is the kind of shift that changes how markets price the Riksbank and the krona.

Source: Statistics Sweden, tables TAB6590 (CPIF, 2020=100, annual changes) and TAB6593 (CPIF excluding energy, 2020=100, annual changes), retrieved via PxWebApi 2 in October 2026. Latest table update 14 September 2026, 06:00 UTC.

Coverage And Depth

SCB's Statistical Database is far deeper on Sweden than any FX data product. The CPIF family alone includes the index, monthly and annual changes, a constant-tax variant, the energy-excluded measure, detailed analysis groups, and a flash estimate that SCB has published since September 2024, roughly a week before the full CPI release. The Labour Force Survey splits by sex, age, country of birth, and type of data (seasonally adjusted, trend, or unadjusted). If your research question is about youth unemployment or rents within CPI, SCB is the right place to go, and FXMacroData will not replace it.

FXMacroData's coverage is designed the other way round: narrower per country, wider across countries. For SEK it carries the series an FX desk watches: CPIF and CPIF excluding energy, producer prices, unemployment from the Labour Force Survey, GDP, retail sales, trade and current account, wages, money supply, house prices, and the Riksbank policy rate. The policy rate is set and announced by the Riksbank rather than SCB, which is a useful example of the joining work FXMacroData does: SEK rows from two official publishers arrive in one consistent format. For the central bank side, including how the Executive Board uses CPIF, see our Riksbank guide; this article stays with the statistics.

Release Timing And Timestamps

SCB publishes on a fixed clock. Since 17 January 2022, new statistics have been released at 08:00 Swedish time on weekdays, moved from the 09:30 slot used since 2005, and SCB's publishing calendar lists dates in advance. CPIF for a given month usually lands in the middle of the following month: the August 2026 figures in the chart above were published on 14 September at 08:00 CEST, which is 06:00 UTC. In winter the same 08:00 slot is 07:00 UTC.

PxWebApi 2 is better than many official APIs on time representation. Each table reports an updated field in UTC to the second, so you can see exactly when the table last changed. The limitation is that this is one timestamp per table, and it is overwritten at the next update: the response does not tell you when each past observation was first published, which is what an event study needs. FXMacroData reads the same official release and stores an announcement_datetime in epoch seconds for every row, past and present, in the same field across all 22 currencies. Releases are typically available within seconds of official publication, against a target of one second, and the measured record is published at /release-speed, including the share of releases inside one second by source and every release that took longer.

A Swedish CPIF morning, two ways

Before 08:00 Stockholm

SCB: the table still shows last month. FXMacroData: the release calendar lists the SEK event beside any euro-area or Norwegian data due the same morning.

08:00 publication

SCB publishes. Your PxWebApi client polls the table, checks updated, and parses JSON-stat2; FXMacroData records the release with its second-level timestamp.

Seconds later

FXMacroData row available over REST and SSE streaming, with prior value and source metadata attached.

Analysis

Join the print to EUR/SEK price action, yields, and positioning without reshaping JSON-stat cubes.

Takeaway: both routes start from the same 08:00 publication; FXMacroData removes the polling, cube parsing, and cross-country joining from your code.

API Design And Developer Experience

SCB launched PxWebApi 2 in the Statistical Database in October 2025, and it will replace PxWebApi 1, which still runs alongside it. Version 2 is built on the open-source PxWebApi project published under the PxTools organisation on GitHub, and it adds GET queries for any table, a table search, selection expressions such as top(12) for the latest periods, and a configuration endpoint that reports the limits and licence in machine-readable form. The learning curve is the identifier system: you look up a table ID such as TAB6590, then the variable codes (ContentsCode 000007ZM is the CPIF annual change) before you can ask for data, and JSON-stat2 returns values as a flat array you index against the dimensions.

FXMacroData uses named routes instead. The same indicator name works across countries, so switching from Swedish to US inflation is a change of currency code, not a new lookup. A SEK CPIF request looks like this:

curl -H "X-API-Key: YOUR_API_KEY" "https://api.fxmacrodata.com/v1/announcements/sek/inflation"

Same August 2026 CPIF release, two response shapes

PxWebApi 2 JSON-stat2 (abridged)

{
  "updated": "2026-09-14T06:00:00Z",
  "source": "Statistics Sweden",
  "id": ["ContentsCode", "Tid"],
  "size": [1, 1],
  "dimension": { "...": "..." },
  "value": [0.7]
}

Official value plus a table-level update time; you map array positions back to codes.

FXMacroData row (illustrative, abridged)

{
  "date": "2026-08-01",
  "val": 0.7,
  "prior": 0.7,
  "announcement_datetime": 1789365600
}

One flat row with prior value; epoch-second timestamp (06:00:00 UTC) stored for every release.

Takeaway: SCB gives you the official cube exactly as published; FXMacroData gives you the number the FX market reacts to, timed to the second, in a shape shared by every currency.

Rate Limits And Query Size

SCB's PxWebApi page and the API's own configuration endpoint both state a limit of 30 calls per 10 seconds and 150,000 data cells per request. The limit is per IP address, so as SCB notes, it can be shared by several colleagues behind the same office connection. SCB's older general open-data terms page still quotes lower figures of 10 calls per 10 seconds and 100,000 values per table, so it is worth reading the live configuration endpoint rather than hard-coding a number. For pulling a dozen headline series that is ample; for mirroring large tables, the cell cap means splitting queries.

FXMacroData's limits are 1,000,000 requests per month on Individual and Business, with bursts of 300 per minute, 5,000 per hour, and 20 concurrent requests. Because new releases can be pushed over SSE streaming, an FX application does not need to poll at all to catch the 08:00 print.

Licensing And Redistribution

This is a genuine SCB strength. CC0 is about as permissive as data licensing gets: you can use, republish, and build products on SCB statistics without even crediting the source, though SCB recommends "Source: Statistics Sweden" and asks that you credit other agencies whose statistics appear in the database. The main restriction is that you may not present a service as an official cooperation or partnership with SCB. For a fintech publishing Swedish statistics to clients, that is a clear and very open basis.

FXMacroData's Individual plan covers a trader's or analyst's own research, dashboards, and scripts; Business covers internal team use. If you show FXMacroData data to your own users, the Commercial Redistribution add-on is $10/month per block of up to 100 measured users or 1,000 public-feed followers, and it is self-serve.

Where Statistics Sweden Is Genuinely Stronger

Source of record

The agency that produces CPIF, the LFS, and the GDP indicator. For audit, citation, and official reporting, nothing ranks above it.

Full detail

Every table and breakdown, CPI analysis groups, the CPI flash estimate, and long history back to 1987 for CPIF.

Machine-readable limits

A config endpoint, UTC table update times, and open-source PxWebApi code make the service transparent to build on.

Free and public domain

No key, no cost, and a CC0 licence with no attribution requirement.

Takeaway: for Sweden-only research or a Swedish statistics warehouse, the SCB PxWebApi is the better tool.

Where FXMacroData Is Stronger

The gap opens as soon as Sweden is one of several countries in your model. EUR/SEK reacts to Swedish and euro-area data, and USD/SEK adds US CPI and Non-Farm Payrolls to the picture. With SCB alone you would add Eurostat, the ECB, the BLS, and the Riksbank as separate integrations, each with its own identifiers and time formats. With FXMacroData those rows share one schema and one timestamp field.

Around the releases, FXMacroData adds the context an FX desk uses: the cross-country release calendar, FX spot rates, government bond yields, commodities, Riksbank statements in the SEK press-release feed, pair dashboards, exports, and widgets. The MCP server lets Claude, ChatGPT, or Cursor query the same records directly, so an assistant can answer "what did Swedish CPIF do this morning and how did EUR/SEK respond" with sourced rows rather than a web search.

SCB PxWebApi tradeoffs

  • Sweden only; other countries need other integrations.
  • Table ID and variable-code lookup before the first call.
  • One update timestamp per table, not per past release.
  • No FX pair context, cross-country calendar, or MCP server found.

FXMacroData strengths

  • One schema across 22 currencies.
  • Second-level announcement timestamps, measured publicly.
  • Calendar, FX rates, yields, and commodities in one key.
  • REST, SSE, GraphQL, SDKs, and MCP.

FXMacroData tradeoffs

  • Not the original publisher of Swedish statistics.
  • Carries FX-relevant series, not every table and breakdown.
  • SEK data requires a paid plan.
  • Redistribution is a paid add-on rather than public domain.

Takeaway: FXMacroData trades away depth on one country for speed, consistency, and context across all of them.

Decision Matrix

Reader Better fit Why
Swedish economist or academic researcher SCB PxWebApi Full official detail, long history, and metadata matter more than FX packaging.
Data team mirroring Swedish tables SCB PxWebApi Every table is reachable with GET queries, in CSV, PX, or JSON-stat2, under CC0.
EUR/SEK or USD/SEK discretionary trader FXMacroData Calendar, pair dashboard, and SEK, euro-area, and US releases side by side.
Quant backtesting SEK release reactions FXMacroData Epoch-second announcement times and prior values for every past release support no-lookahead event studies across currencies.
AI or automation builder FXMacroData MCP and named REST routes avoid a custom table-lookup and JSON-stat parsing layer.
Fintech publishing Swedish stats to clients Depends SCB under CC0 for Sweden only; FXMacroData's redistribution add-on for multi-country feeds.

Recommendation

Choose the SCB PxWebApi if your work is about Sweden itself: deep breakdowns, official citation, long history, or a Swedish data warehouse. It is free, keyless, openly documented, and public domain under CC0, and it is the source FXMacroData itself relies on for Swedish statistics.

Choose FXMacroData if Swedish data is an input to FX decisions. You get CPIF and the other SEK releases with second-level timing next to the euro-area, US, and other data that moves EUR/SEK and USD/SEK, without maintaining a separate integration per agency. Check the measured timing record at /release-speed, browse the API reference, and compare plans on the pricing page; the Individual plan includes a 14-day trial, and you can start it here.

Bottom line

Statistics Sweden is where Swedish numbers are born; FXMacroData is where they meet the rest of the FX market. Use the PxWebApi for depth on Sweden, and FXMacroData when the job is trading or modelling the krona against the world, timed to the second.

Sources Checked

Evidence checked - October 2026

FXMacroData API data

Data endpoints used in this article

No FXMacroData API data endpoint is attributed to this article. Its evidence base is identified in the article and source links.

Explore the FXMacroData API reference

Frequently asked

Questions about this topic

Is the Statistics Sweden (SCB) API free?

Yes. The SCB PxWebApi is free, needs no API key or registration, and its data is released under CC0, so it can be used and disseminated without a requirement to state the source. SCB recommends crediting "Source: Statistics Sweden" and asks that statistics from other agencies be credited to them.

What are the SCB PxWebApi rate limits?

SCB's PxWebApi page and the API's configuration endpoint list 30 calls per 10 seconds per IP address and 150,000 data cells per request. FXMacroData paid plans allow 1,000,000 requests per month with bursts of 300 per minute.

What time does Statistics Sweden publish new data?

SCB has published new statistics at 08:00 Swedish time on weekdays since 17 January 2022. CPIF for a month usually appears in the middle of the following month. FXMacroData records the same releases with second-level timestamps, typically within seconds of publication.

What is PxWebApi 2?

PxWebApi 2 is the new version of SCB's Statistical Database API, launched in October 2025 to replace PxWebApi 1. It supports GET queries for any table, table search, selection expressions, and JSON-stat2, CSV, PX, XLSX, and HTML output.

Why would an FX trader use FXMacroData instead of the SCB API?

FXMacroData reads the same official Swedish releases and adds what EUR/SEK and USD/SEK workflows need: one schema across 22 currencies, epoch-second announcement times for every past release, a cross-country release calendar, FX rates, yields, pair dashboards, and an MCP server for AI assistants.

When is the SCB PxWebApi the better choice?

Choose the SCB PxWebApi for Sweden-only research that needs full table detail, CPI analysis groups, long history, official citation, or bulk extracts at no cost under a public-domain licence.

Keep reading

Blogroll

AI Answer-Ready

Key Facts

Page
FXMacroData vs Statistics Sweden (SCB) API: Swedish CPIF and Labour Data for SEK Traders
Section
Articles
Canonical URL
https://fxmacrodata.com/articles/fxmacrodata-vs-statistics-sweden-scb-api
Source
FXMacroData editorial and official publisher references
Last Updated
2026-10-05 11:58 UTC

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

Is the Statistics Sweden (SCB) API free? Yes. The SCB PxWebApi is free, needs no API key or registration, and its data is released under CC0, so it can be used and disseminated without a requirement to state the source. SCB recommends crediting "Source: Statistics Sweden" and asks that statistics from other agencies be credited to them.

What are the SCB PxWebApi rate limits? SCB's PxWebApi page and the API's configuration endpoint list 30 calls per 10 seconds per IP address and 150,000 data cells per request. FXMacroData paid plans allow 1,000,000 requests per month with bursts of 300 per minute.

What time does Statistics Sweden publish new data? SCB has published new statistics at 08:00 Swedish time on weekdays since 17 January 2022. CPIF for a month usually appears in the middle of the following month. FXMacroData records the same releases with second-level timestamps, typically within seconds of publication.

What is PxWebApi 2? PxWebApi 2 is the new version of SCB's Statistical Database API, launched in October 2025 to replace PxWebApi 1. It supports GET queries for any table, table search, selection expressions, and JSON-stat2, CSV, PX, XLSX, and HTML output.

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.

Share page X LinkedIn Email