Public REST API · v1

Big Mac Index API

Access real-time Big Mac prices, country and city-level PPP data, exchange rates, currency valuation signals, rankings, and historical data through a simple JSON API.

https://api.thebigmacindex.com/api/v1/burger
Daily updates Country-level City-level Historical data PPP valuation JSON responses CORS-enabled
Quick start

Get started in 30 seconds

No signup, no API key. Hit the endpoint, get JSON back.

1

Choose an endpoint

Pick from /latest, /rankings, /history, /compare, /countries, or /currencies.

2

Call the API

Standard HTTP GET. CORS-enabled — fetch directly from a browser, dashboard, or notebook.

3

Use the response

Render in your app, dashboard, article, classroom resource, or research project. Cite the dataset when you publish.

curl "https://api.thebigmacindex.com/api/v1/burger/latest"

Expected response shape (truncated):

{
  "date": "2026-05-02",
  "usBasePrice": 5.79,
  "countries": [
    {
      "countryId": "ch",
      "countryName": "Switzerland",
      "currency": "CHF",
      "localPrice": 8.9,
      "usdPrice": 11.36,
      "impliedPpp": 1.273247,
      "marketFxRate": 0.783348,
      "rawPppIndex": 62.54,
      "gdpAdjustedIndex": 26.97,
      "valuationLabel": "overvalued",
      "citiesSampled": 5,
      "cities": [...]
    }
  ],
  "metadata": { "lastUpdated": "2026-05-02 00:13:01", "countriesCount": 9, "baseCountry": "us" }
}
Pipeline health

API status & data freshness

Live snapshot of the scraping pipeline. The /scrape/status endpoint backs this section and is also available to your own dashboards.

API status
Operational
Public REST endpoints
Last data update
2026-05-02 02:38 UTC
UTC
Last scrape run
2026-05-02 02:38 UTC
menu prices
Countries in API
9
16 pages live
Default item
Big Mac
cheeseburger also available
Response format
JSON
CSV via /data exports
Access

Authentication & rate limits

The public API is currently available without authentication for light usage. Please cache responses where possible and contact us for commercial, high-volume, or production use.

Public usage is intended for demos, research, editorial use, education, and light integrations. Formal API keys, rate limits, and paid tiers may be introduced for commercial or high-volume use cases. Contact us if you need a commitment.

Free

Latest snapshot, rankings, country metadata, basic history. Light request volume.

Pro — planned

Higher rate limits, full history, bulk exports, commercial use, priority support.

Enterprise — planned

Custom exports, SLA, direct support, redistribution rights, data partnership.

Reference

Endpoints

All endpoints are GET. Base URL: https://api.thebigmacindex.com/api/v1/burger. See openapi.json for the complete machine-readable spec.

GET/latestSnapshot

Latest Big Mac Index data for all countries, including country-level prices and city breakdowns.

countryOptional. Country ID (e.g. us, ch, de). itemOptional. bigmac (default) or cheeseburger.
curl "https://api.thebigmacindex.com/api/v1/burger/latest?country=ch"
GET/rankingsRankings

Countries ranked by a selected metric. Useful for leaderboards and top-N tables.

metricOptional. raw_ppp_index · gdp_adjusted_index · absolute_price_index · usd_price. orderOptional. asc or desc (default). limitOptional. Max 100.
curl "https://api.thebigmacindex.com/api/v1/burger/rankings?metric=usd_price&order=desc&limit=20"
GET/historyHistory

Daily Big Mac price history for a country. Useful for charts, trend analysis, data journalism.

countryOptional. Country ID. Default: us. daysOptional. 1–365. Default: 30.
curl "https://api.thebigmacindex.com/api/v1/burger/history?country=ch&days=90"
GET/compareComparison

Compare 2–5 countries with pairwise implied PPP exchange rates derived from each country's burger price.

countriesRequired. Comma-separated country IDs. Min 2, max 5.
curl "https://api.thebigmacindex.com/api/v1/burger/compare?countries=us,ch,de"
GET/countriesMetadata

List all configured countries with cities, currencies, and GDP-per-capita-PPP metadata.

curl "https://api.thebigmacindex.com/api/v1/burger/countries"
GET/currenciesMetadata

All world currencies with exchange rates, M2 money supply, and Big Mac PPP valuation signals where available.

itemOptional. bigmac (default) or cheeseburger.
curl "https://api.thebigmacindex.com/api/v1/burger/currencies?item=bigmac"
GET/scrape/statusOperations

Scraper status, last run timestamp, configuration counts. Useful for status dashboards and freshness checks.

curl "https://api.thebigmacindex.com/api/v1/burger/scrape/status"
POST/calculateAdmin only

Triggers manual recalculation. Admin-only endpoint — requires authentication. Not callable from public clients.

Interactive

Try the API

Build a request, copy the URL, or fire it from this page. CORS lets the request hit the API directly from your browser.

https://api.thebigmacindex.com/api/v1/burger/latest?country=ch
Click Run request to call the API and see the response here.
Reference

Response fields

Country-level fields returned by /latest, /rankings, and /compare. See openapi.json for full schemas including City, HistoryRow, and error shapes.

FieldTypeDescriptionExample
countryIdstringISO-2-style country ID used by the API.ch
countryNamestringCountry name.Switzerland
countryCodestringISO-3166-1 alpha-2.CH
currencystringLocal currency code (ISO 4217).CHF
localPricenumberBig Mac price in local currency.8.9
usdPricenumberBig Mac price converted to USD.11.36
impliedPppnumberImplied PPP rate (local price ÷ US price).1.2732
marketFxRatenumberDaily market FX rate.0.7833
rawPppIndexnumberRaw PPP valuation %. Positive = overvalued vs USD.62.54
gdpAdjustedIndexnumberGDP-adjusted PPP valuation %.26.97
valuationLabelstringOne of overvalued / undervalued / fair.overvalued
citiesSampledintegerNumber of city sub-samples used for the country median.5
citiesarrayCity-level price data points.[…]
datestringSnapshot date (YYYY-MM-DD).2026-05-02
Snippets

Code examples

Copy-paste-ready in the language of your choice.

curl "https://api.thebigmacindex.com/api/v1/burger/latest?country=ch"
const response = await fetch(
  "https://api.thebigmacindex.com/api/v1/burger/latest?country=ch"
);
const data = await response.json();
console.log(data);
// Node 18+ has fetch built in
const url = "https://api.thebigmacindex.com/api/v1/burger/latest?country=ch";
const res = await fetch(url);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data.countries?.[0]);
import requests

url = "https://api.thebigmacindex.com/api/v1/burger/latest"
params = {"country": "ch"}
response = requests.get(url, params=params)
response.raise_for_status()
data = response.json()
print(data)
library(httr2)

req <- request("https://api.thebigmacindex.com/api/v1/burger/latest") |>
  req_url_query(country = "ch")
resp <- req_perform(req)
data <- resp_body_json(resp)
print(data)
=IMPORTDATA("https://thebigmacindex.com/api/export/latest.csv")

CSV exports auto-refresh on every deploy. See /data downloads for all 5 datasets.

Built with this API

What can you build?

FX dashboards

Compare market exchange rates with Big Mac PPP-implied exchange rates. Spot persistent over- and undervaluations.

Pricing localization

Use country-level PPP signals to inform regional SaaS or app pricing decisions.

Travel cost-of-living apps

Compare simple consumer prices across countries and cities for travel-budget tools.

Economics education

Teach purchasing-power parity, exchange rates, and currency valuation with live data.

Data journalism

Build live rankings, maps, and visualizations of global Big Mac prices and currency stories.

AI / data agents

Give agents structured access to global price and PPP data via OpenAPI-compatible endpoints.

API or dataset?

Which one do you need?

/api is for live, programmatic access. /data is for citation, downloads, and one-shot use in articles or research.

NeedUse APIUse /data
Build an app or dashboardYes
Download CSVYes
Cite in an articleYes
Use in Google Sheetsvia CSV exportYes
Query live country rankingsYes
Use in research reportFor live workflowsFor citation

Visit /data

Machine-readable

OpenAPI specification

Full OpenAPI 3.1 spec covering every public endpoint with request parameters, response schemas, and examples. Drop it into Postman, Swagger UI, Insomnia, or any AI agent that consumes OpenAPI.

Spec versioned at v1. Subscribe to the changelog for breaking-change notifications.

Static exports

CSV & JSON downloads

For Google Sheets, Excel, AI agents, low-code tools, and citation-friendly URLs, the same data is also available as static, build-time-refreshed exports.

DatasetCSVJSON
Latest snapshotlatest.csvlatest.json
Historical serieshistory.csvhistory.json
City-level pricescities.csvcities.json
Country metadatacountries.csvcountries.json
Currency PPPcurrencies.csvcurrencies.json

More context, citation guidance, and methodology on /data.

Reference

Errors

Errors return JSON with stable error codes. Use the error.code field for programmatic handling; error.message is human-readable.

{
  "success": false,
  "error": {
    "code": "INVALID_COUNTRY",
    "message": "Country ID not found.",
    "details": { "country": "xx" }
  }
}
HTTPError codeMeaning
400BAD_REQUESTInvalid or missing parameter.
401UNAUTHORIZEDAuthentication required (admin endpoints only).
404NOT_FOUNDCountry, currency, or resource not found.
429RATE_LIMITEDToo many requests. Back off and retry.
500INTERNAL_ERRORUnexpected server error. Retry with exponential backoff.
Change history

API changelog

2026-05-02
OpenAPI 3.1 spec + Postman collection published. Full machine-readable spec at /api/openapi.json; Postman at /api/postman_collection.json.
2026-05-02
Static CSV/JSON exports launched. Build-time exports at /api/export/{name}.{csv,json} across 5 datasets.
2026-04-28
Added city-level breakdowns to /latest and /rankings responses.
2026-04-20
Added item parameter (bigmac | cheeseburger) for cross-product queries.
2026-04-10
Added /compare endpoint for cross-country pairwise comparisons.
2026-04-01
Added /rankings with sortable metric + order + limit.
Production use

Need higher limits or commercial use?

The public API is designed for demos, research, editorial use, education, and light integrations. For commercial products, high-volume access, custom exports, redistribution, or partnership use cases, get in touch.

Request API access

Include: company, expected monthly request volume, use case, and whether usage is commercial or non-commercial.

Common questions

API FAQ

Is the Big Mac Index API free?
The public API is available for light use. Commercial or high-volume use may require a separate agreement.
Do I need an API key?
Currently, light public usage does not require an API key. API keys may be introduced for higher limits, commercial access, or production use.
How often is the data updated?
The data is designed to update daily using real menu prices and daily exchange rates.
Can I use the API commercially?
Contact us for commercial use, redistribution, high-volume usage, or production integrations.
Can I download the full dataset?
Yes. Static downloads and citation guidance are available on /data.
What countries are supported?
Use GET /countries to list supported countries, currencies, cities, and coverage metadata.
Does the API include historical data?
Yes. Use GET /history with a country ID and day range.
Is this affiliated with McDonald's or The Economist?
No. TheBigMacIndex.com is independent. It is inspired by the Big Mac Index concept and is not affiliated with McDonald's or The Economist.