All datasets

History · Reference dataset

British Prime Ministers

British prime ministers, their terms in office, and political parties.

Download options
Look inside

Preview the records

The 10 most recently added of 82 records · Select a column heading to sort.

Preview of British Prime Ministers
ID Name Took office Left office Party
73 John Major 1990 1997 Conservative
74 Tony Blair 1997 2007 Labour
75 Gordon Brown 2007 2010 Labour
76 David Cameron 2010 2016 Conservative
77 Theresa May 2016 2019 Conservative
78 Boris Johnson 2019 2022 Conservative
79 Liz Truss 2022 2022 Conservative
80 Rishi Sunak 2022 2024 Conservative
81 Keir Starmer 2024 2026 Labour
82 Andy Burnham 2026 0 Labour

CSV / JSON / XML

Put this data to work.

All 82 records, in your choice of format.

  • This dataset and the rest of the catalog
  • Complete CSV, JSON, and XML files
  • Category ZIPs and API access
Get a Data Pass: $69

365 days of access to the catalog. One payment, no automatic renewal.

Your key arrives by email after payment. Use it here to download the complete file.

Already have a pass?

Your key is used for this request and is not saved by this page.

Commercial use is allowed, free or paid.

Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.

Scope and sources

Last checked against sources: October 15, 2026.

Last changed: October 15, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.

A complete download includes all 82 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.

Use this dataset through the API
GET https://mysafeinfo.com/api/data/britishprimeministers

Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.

Without a pass, sorting and randomization apply only to the fixed 10-row sample.

More in History

Presidents of the Continental Congress Nobel Prize Winners in Medicine Nobel Prize Winners in Economics Nobel Peace Prize Winners BRICS Members English Monarchs

Download a category with your pass