UK Life Expectancy
FREEMIUM
By jonmarlow
Updated 3 months ago

UK Life Expectancy API Documentation

UK life expectancy by local area code at birth and age 65.

Learn more about this API
GET/LifeExpectancyAtBirth
GET/LifeExpectancyAt65
GET/LAs
GET/LifeExpectancyAtBirth

Returns the life expectancy at birth for people born in the years returned by the endpoint.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
AreaCodeSTRING
REQUIREDLocal Area Code (e.g E06000001) for Hartlepool. See the /las endpoint for a full list
Optional Parameters
GenderNUMBER
OPTIONAL1 = Male, 2 = Female. Don't include this parameter for both values.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication