📐 Methodology & Data Provenance
How every figure on this site is sourced, verified, refreshed and classified — in enough detail to reproduce, audit or dispute it. This page documents the two-tier data model used across all 19 G20 country dashboards, the exact APIs and indicator codes queried, the standards applied to hand-researched reference figures, and the rules behind the Worsening / Steady / Improving trend indicators.
1Two-tier data model
Every metric card on every country page falls into exactly one of two categories, shown by a badge in the top-right corner of the card:
| Badge | What it means |
|---|---|
| Live | The card attempts a fresh API call to World Bank Open Data or Our World in Data every time the page loads. If the call succeeds, the figure, as-of date and mini trend chart are all populated from that response, live, in the visitor’s browser. If it fails (rate limit, outage, missing country data), the card falls back to a pre-researched cached value — see §3 below — and the badge changes to Cached. |
| Reference | No free, continuously updated, key-free public API exists for this metric. The figure is hand-researched, individually dated, and linked to a named primary or compiled-secondary source. These are refreshed periodically by re-research, not automatically. |
This split is a deliberate design choice: it lets the site be honest in real time about which numbers it can prove are current (because the browser just fetched them) versus which numbers are curated on a slower editorial cycle. Nothing on the site is presented as “live” unless it is architecturally capable of being re-fetched on every page view.
Each country page targets 10 Live-attempt cards and 10 Reference cards. As documented in §9, three pages (Russia, Australia, Saudi Arabia) currently deviate from this 10/10 split for source-availability reasons explained on the page itself and in that table — this document reports the actual counts as built, not the target.
2Live data sources & APIs
Four upstream sources supply every Live-attempt card on the site. All are free, do not require an API key, and are queried directly from the visitor’s browser (not proxied through a server), so the “as of” timestamp on each card reflects the exact response the visitor’s own request received.
World Bank Open Data API
Queried as api.worldbank.org/v2/country/{ISO3}/indicator/{CODE}?format=json&per_page=100. Six indicators are used across the site:
| Indicator code | Metric | Typical reporting lag |
|---|---|---|
EN.GHG.CO2.MT.CE.AR5 |
CO₂ emissions, total, excluding LULUCF (Mt CO₂e) | 1–2 years |
EN.GHG.ALL.MT.CE.AR5 |
Total greenhouse gas emissions, all gases, excluding LULUCF (Mt CO₂e) | 1–2 years |
EG.FEC.RNEW.ZS |
Renewable energy consumption, % of total final energy consumption | 2–3 years |
AG.LND.FRST.ZS |
Forest area, % of land area (FAO source) | 1–2 years |
EN.ATM.PM25.MC.M3 |
PM2.5 air pollution, population-weighted mean (µg/m³) | 1–2 years |
SP.POP.TOTL |
Total population | <1 year |
Our World in Data (OWID) grapher CSV endpoints
Queried as ourworldindata.org/grapher/{slug}.csv and filtered client-side to the target country’s rows. Three underlying data lineages are used:
- Methane emissions (
methane-emissions) — sourced by OWID from Jones et al., the Global Carbon Budget / national GHG inventories, reported in AR6 GWP100-equivalent tonnes. - Electricity generation mix (
share-electricity-gas,share-electricity-coal,share-electricity-wind,share-electricity-solar) — sourced by OWID from Ember’s Global Electricity Review. This is the single least reliable endpoint on the site; see §6. - Electric car sales share (
electric-car-sales-share) — sourced by OWID from the IEA Global EV Outlook.
Solar + Wind combined cards
Where a page shows a single “Solar + Wind Share of Electricity” figure, the client fetches the two underlying OWID CSVs (share-electricity-wind and share-electricity-solar) in parallel and sums them by year in-browser — there is no pre-combined upstream series for this.
3Fallback & caching policy
Every Live-attempt card ships with a hard-coded fallback object containing a value, an as-of date, a short historical series for the mini chart, and the parameters needed to compute a trend arrow. This fallback is used, and the badge switches from Live to Cached, whenever the live fetch throws — a non-200 response, a network error, or a response containing no rows for that country.
Fallback values are never placeholder or synthetic numbers. Each one is the most recent real figure available at the time the page was built, sourced the same way a Reference card would be, and explicitly dated in-card (e.g. “as of 2025 (cached, Ember)”). The intent is that a visitor who lands on a page during an API outage still sees a real, dated number rather than a blank card or a stale guess.
Known flaky endpoint: OWID’s Ember-sourced share-electricity-* CSVs fail intermittently for reasons that appear to be CORS/availability-related on Ember’s side rather than a data problem. In practice, the flagship fossil-fuel-share card and the combined Solar + Wind card fall back to cached values on a large majority of page loads across the site. Visitors can force a retry at any time with the “↻ Refresh live data” button on each page.
4Reference-figure sourcing standards
Reference cards exist for metrics — disaster events, policy changes, ecological thresholds, infrastructure milestones — that have no continuously updated public API. Every Reference figure on the site is required to meet four bars before publication:
- Named, dated primary or compiled-secondary source. Each card links directly to the originating body (a national statistics office, a scientific agency such as NOAA/Met Office/CDC, a peer-reviewed study, an official government release) or, where the primary release itself isn’t a stable public URL, to reputable reporting that cites it. No figure is published without a source link on the card.
- A specific reporting period, not a vague “recent” claim. Every card states the year, season, or exact date range the figure covers, shown in the card footer.
- Independently verified via live web search at build time, not drawn from model training data. Every Reference figure is looked up fresh — usually across several distinct search queries — at the time the page is built, specifically to avoid stale or misremembered statistics.
- Disclosed absence rather than a silent guess. Where a normally-live metric has genuinely zero data for a country — for example, Our World in Data currently carries no electric-car-sales-share rows for Saudi Arabia at all, confirmed by checking the full raw dataset rather than a single failed request — the card is converted from a Live-attempt into an explicit Reference card with a market-estimate source, and the substitution is called out in both the card’s own descriptive text and this document’s provenance table (§9).
5Trend classification (Worsening / Steady / Improving)
Every card’s colored trend indicator is produced by the same shared classification rule, applied consistently across all pages:
function classify(delta, epsilon, flipped){
if (Math.abs(delta) <= epsilon) return {word:'amber', label:'Steady'};
const worse = flipped ? delta < 0 : delta > 0;
return worse ? {word:'red', label:'Worsening'} : {word:'green', label:'Improving'};
}
Three parameters determine the outcome for each metric:
delta— the change in the metric’s value versus the prior available data point (for Live cards) or the prior year (for cached/Reference series).epsilon— a metric-specific noise threshold below which a change is treated as statistically/practically meaningless and classified Steady rather than Worsening or Improving. Set per-metric (e.g. ±6 Mt for national CO₂ totals, ±0.3 percentage points for a renewable-energy share, ±0.05 percentage points for forest cover) so that ordinary year-to-year measurement noise doesn’t flip the color.flipped— whether a decrease in the raw number is the good outcome.flipped:falseis used for metrics where more is worse (CO₂, total GHG, methane, fossil fuel share of electricity, PM2.5) — an increase is classified Worsening.flipped:trueis used for metrics where more is better (renewable energy share, forest cover, solar+wind share, EV sales share) — a decrease is classified Worsening.
Worsening — moving in the direction that is bad for the climate or environment, beyond the noise threshold.
Steady — the change since the prior data point falls within the metric’s epsilon band, or the underlying signal is genuinely mixed.
Improving — moving in the direction that is good for the climate or environment, beyond the noise threshold.
Population cards are the one deliberate exception: they carry a neutral gray “Context” label rather than a Worsening/Steady/Improving classification, because population size on its own is not a climate-severity metric — it’s shown only as denominator context for the other figures on the page.
Reference cards without a clean single time series (a disaster event, a policy action, a threshold crossed) are classified qualitatively by editorial judgment against the same three-way scale, using the same definitions, rather than by the numeric classify() function — for example, a genuinely positive milestone like a country’s first coal-free year is marked Improving, while a nuanced story such as an oil producer’s falling per-barrel methane intensity coexisting with rising absolute emissions is marked Steady rather than either extreme.
6Update cadence & freshness
| Data type | Refresh behavior |
|---|---|
| Live-attempt cards | Re-fetched on every page load, and on demand via the “↻ Refresh live data” button. The underlying World Bank / OWID datasets themselves are typically updated by their publishers annually; the live fetch guarantees you see their most current published figure, not that the figure itself changes daily. |
| Reference cards | Reviewed and re-researched periodically rather than on a fixed schedule — event-driven metrics (disasters, policy actions, single-year records) are revisited when a newer, more current equivalent figure becomes available or the current one is superseded. |
| Page-level rebuilds | Each country page is rebuilt in full — live sources re-verified in-browser, reference figures re-researched — rather than patched incrementally, so a page’s “as of” spread reflects one coherent research pass. |
7Known limitations & data gaps
- World Bank and OWID reporting lag. Annual international datasets typically trail the present by one to three years (see the lag column in §2). A card’s stated “as of” year is always the true year of the underlying data point, never the page’s build date.
- Ember electricity-mix data is intermittently unreachable client-side (see §3), so the fossil-fuel-share and solar+wind cards display a cached, clearly-dated figure on most page loads rather than a fresh one.
- Sparse-data countries. Not every indicator has full country coverage. Where a country genuinely has no data for a normally-live metric (confirmed against the raw dataset, not just a failed request), the card is converted to a disclosed Reference card rather than left blank or silently estimated — see the Saudi Arabia case in §4 and §9.
- Renewable-energy-share (
EG.FEC.RNEW.ZS) lags furthest of the six World Bank indicators — commonly two to three years behind the current year — because it depends on international energy-balance reconciliation across final consumption sectors, not just power-sector generation data. - Three pages currently carry fewer than 10 Live-attempt cards (Russia, Saudi Arabia) or fewer than 20 total cards (Russia, at 19) as a result of source availability at the time of research, documented individually in §9 rather than silently normalized to match newer pages.
- Reference cards reflect a point-in-time research pass. Fast-moving stories (regulatory actions, ongoing droughts, live disaster tolls) are accurate as of the date shown on the card, not automatically current.
8Corrections & feedback
If you believe a figure on this site is outdated, mis-sourced, or has been superseded by newer official data, please flag it via the site’s contact page, citing the country, the card name, and — ideally — the corrected source. Every Reference figure on the site links directly to its source specifically so claims can be checked independently rather than taken on trust.
9Per-country data provenance
Card counts below were audited directly against each page’s published HTML rather than taken from internal build notes, so they reflect exactly what a visitor sees today.
| Country | Total cards | Live-attempt | Reference | Notes |
|---|---|---|---|---|
| Argentina | 20 | 10 | 10 | — |
| Australia | 20 | 9 | 11 | One Live-attempt slot converted to Reference at build time; see page footer for detail. |
| Brazil | 20 | 11 | 9 | One additional Live-attempt card beyond the standard 10. |
| Canada | 20 | 10 | 10 | — |
| China | 20 | 10 | 10 | — |
| France | 20 | 10 | 10 | — |
| Germany | 20 | 10 | 10 | — |
| India | 20 | 10 | 10 | — |
| Indonesia | 20 | 10 | 10 | — |
| Italy | 20 | 10 | 10 | — |
| Japan | 20 | 10 | 10 | Flagship fossil card: coal share of electricity. |
| Mexico | 20 | 10 | 10 | Flagship fossil card: natural gas share of electricity. |
| Russia | 19 | 7 | 13 | Earliest country page built; predates the site’s later 10/10 Live/Reference convention and 20-card standard. Flagged here for transparency pending a future rebuild to current standard. |
| Saudi Arabia | 20 | 9 | 11 | OWID carries zero electric-car-sales-share rows for Saudi Arabia (confirmed against the raw dataset); that card was converted to a sourced Reference estimate. Flagship fossil card is a custom combined oil+gas share of electricity. |
| South Africa | 20 | 10 | 10 | — |
| South Korea | 20 | 10 | 10 | — |
| Turkey | 20 | 10 | 10 | — |
| United Kingdom | 20 | 10 | 10 | Flagship fossil card: natural gas share of electricity (coal reached 0.0% for the first full year in 2025, covered as its own Reference milestone card instead). |
| United States | 20 | 10 | 10 | Flagship fossil card: natural gas share of electricity (largest single US generation source). |
All 19 pages, plus the site’s front-page dashboard and two standalone companion analyses (a world-population-by-continent breakdown and a “23 June 1988 vs. present” long-run comparison), draw on the same Live/Reference architecture and sourcing standards documented above.
