---
title: "Code"
method: GET
path: "/code"
---

# Code

`GET /code`

Return the related area names and codes based on given category and search parameters.

## Query parameters

- `category` 'postcode' | 'lsoa' | 'msoa' | 'ltla' | 'utla' | 'region' | 'nation'
- `search` string

## Response `200`

Returns area names and codes.

- Code
  - `postcode` string
  - `trimmedPostcode` string
  - `geometry` object
    - `type` string
    - `coordinates` number[]
  - `lsoa` string
  - `lsoaName` string
  - `msoa` string
  - `msoaName` string
  - `nhsTrust` string
  - `nhsTrustName` string
  - `ltla` string
  - `ltlaName` string
  - `utla` string
  - `utlaName` string
  - `region` string
  - `regionName` string
  - `nhsRegion` string
  - `nhsRegionName` string
  - `nation` string
  - `nationName` string

---

[API](https://skmtc.net/uk-health-security-agency/apis/dashboard-api.md) · [All operations](https://skmtc.net/uk-health-security-agency/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uk-health-security-agency/dashboard-api/revisions/34dc18987439/schema)
