#uk
2 APIs with this tag
UK Statistics API
Official UK economic statistics straight from the Office for National Statistics (ONS) beta API — no key, read live. The cpi endpoint returns CPIH, the UK's lead measure of consumer price inflation (Consumer Prices Index including owner occupiers' housing costs, index 2015=100), for the latest month with the index level plus the month-on-month and year-on-year rates, computed from the official series. The cpi/series endpoint returns the historical monthly CPIH index and year-on-year rate over the last N months, ready to chart. The cpi/divisions endpoint breaks the latest CPIH down across all twelve COICOP divisions (food, housing, transport, recreation and so on) with the index for each. The datasets endpoint lists the ONS dataset catalogue (hundreds of datasets covering prices, GDP, the labour market, population, trade and more) so you can discover what is available. The meta endpoint documents the source. Live data from the ONS beta CMD API, lightly cached. Live. 5 endpoints. This serves UK national statistics; for the sterling exchange rate or the Bank of England base rate use an FX / central-bank API.
api.oanor.com/uk-stats-api
UK Postcode API
UK postcode and geography lookup as an API, built on the open postcodes.io dataset. Resolve any UK postcode to its latitude/longitude and full administrative hierarchy — district, ward, county, parish, parliamentary constituency, region, NHS health authority and statistical areas (LSOA, MSOA). Validate a postcode, reverse-geocode coordinates to the nearest postcodes (with distance), find postcodes near a given one, autocomplete a partial postcode for address forms, look up an outcode (the first half, e.g. SW1A) and fetch a random postcode. Real data, no key needed upstream. Ideal for checkout and address forms, delivery and logistics, store locators, and UK geo-analytics.
api.oanor.com/postcode-api