---
title: "Area"
method: GET
path: "/area/{area_type}"
---

# Area

`GET /area/{area_type}`

## Request

- Base URL: `https://api.coronavirus.data.gov.uk/generic`
- URL: `https://api.coronavirus.data.gov.uk/generic/area/{area_type}`
- Auth: none declared. Required headers: `Accept`
- TypeScript: <https://skmtc.dev/uk-health-security-agency/apis/generic-api/docs/area/:area_type/get.ts> (a function with typed inputs; its response is checked against the schema)

Provides an array of areas of an area type.

## Path parameters

- `area_type` 'nation' | 'region' | 'utla' | 'ltla' | 'msoa' | 'nhsRegion' | 'nhsTrust', required

## Headers

- `Accept` 'application/json', required
- `Accept-Encoding` 'deflate' | 'gzip' | 'br'

## Response `200`

Returns all areas for the given area type

- object[]
  - `areaCode` string, required
  - `areaName` string, required

## Other responses

- `400`: Bad request. Reason provided in response body where possible.
- `404`: Not found. Likely due to an invalid area type.
- `429`: Too many requests - request has been throttled.
- `500`: Server error

## Changes

- **2021-11-22** `5e256a1f0f74`: 2 breaking, 1 warning
  - the mandatory response header `phe-website-request` removed for the status `200`
  - the mandatory response header `x-phe-media-type` removed for the status `200`
  - the optional response header `phe-server-loc` removed for the status `200`
- **2021-11-22** `44611f090a79`: 2 breaking, 1 warning
  - the mandatory response header `ukhsa-website-request` removed for the status `200`
  - the mandatory response header `x-ukhsa-media-type` removed for the status `200`
  - the optional response header `ukhsa-server-loc` removed for the status `200`
- **2021-11-22** `5894ea78dfb2`: 2 breaking, 1 warning
  - the mandatory response header `phe-website-request` removed for the status `200`
  - the mandatory response header `x-phe-media-type` removed for the status `200`
  - the optional response header `phe-server-loc` removed for the status `200`
- **2021-08-17** `d337e9406cb2`: 1 breaking
  - the mandatory response header `Content-Type` removed for the status `200`

[Operation history](https://skmtc.dev/uk-health-security-agency/apis/generic-api/changes/area/:area_type/get.md)

---

[API](https://skmtc.dev/uk-health-security-agency/apis/generic-api.md) - [All operations](https://skmtc.dev/uk-health-security-agency/apis/generic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uk-health-security-agency/apis/generic-api/revisions/ac434e5ddc2c?raw)
