Skip to content
AIDb

Capital cities through history, with dates

Every capital city recorded in Wikidata for today's sovereign states and for historical states (kingdoms, empires, republics that no longer exist), with the dates each city was the capital where known. One row is one city's period as capital of one state.

2,475 rows17 columns Updated 59 min ago CC0 1.0
Loading all 2,475 rows…
#

Columns

Stable keys — use them in the API, SQL and code

KeyNameTypeDescription
idIDstringWikidata statement id.
country_nameStatestring—
country_wikidataState (Wikidata)entity—
countryISO3countryISO 3166-1 alpha-3 code, for present-day states only.
state_statusStatusstring'sovereign state' (exists today) or 'historical state'.
capitalCapitalstring—
capital_wikidataCapital (Wikidata)entity—
fromFromdateDate the city became the capital, at the precision Wikidata records.
untilUntildateDate the city stopped being the capital, at the precision Wikidata records.
from_yearFrom yearyear—
until_yearUntil yearyear—
years_as_capitalYears as capitalintegerUntil year minus from year, when both are known.
currentCurrentbooleanTrue for the present capital of a sovereign state.
roleRolestringQualifier for states with several capitals, e.g. 'seat of government'.
capitals_countCapitals per stateintegerDistinct capital cities recorded for this state.
latLatitudenumber—
lonLongitudenumber—

More in Countries & Places

Energy

Operating power plants in the United States

Every operating U.S. power plant with at least 1 MW of generating capacity, from the EIA's monthly generator inventory (Form EIA-860M): location, operator, main technology, capacity and first year online. One row per plant, summed from its generators.

14,797 rows · 21 d ago
History & Events

Major battles in history

Battles recorded in Wikidata that have articles in at least 10 language editions of Wikipedia, with date, the war each was part of, location, present-day country, coordinates, participants and deaths where recorded. One row per battle.

2,630 rows · 7 d ago
Buildings & Infrastructure

Tallest buildings in the world

Completed buildings and skyscrapers with an architectural height of at least 100 metres, as recorded in Wikidata. One row per building.

1,323 rows · 1 d ago
Space & Astronomy

Orbital launches by country and year

Number of orbital and deep-space launch attempts per country per year since 1957, split into successes and failures, with the payload mass delivered to orbit. One row per country per year.

424 rows · 9 min ago
Countries & Places

Countries of the world: key economic and social indicators

Every country with its region, income group and capital, plus the latest available value and year of 20 World Bank indicators from population and GDP to life expectancy, CO₂ per person and inequality. One row per country.

217 rows · Oct 9, 2026
Countries & Places

Countries of the world

Every present-day sovereign state with its ISO codes, capital, continent, area, population, official languages, currency, head of state and government, founding date, calling code, internet domain and flag. One row per country.

197 rows · 1 d ago