NHS Organisations Directory API
NHS England's official directory of health organisations (GP practices, pharmacies, trusts and more), one row each with role in words, status, postcode, full address and the organisations it is linked to.
$2 per 1,000 records
You pay only for the records you get. Zero records cost zero. 2,500 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from directory.spineservices.nhs.uk/ORD/2-0-0/organisations
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 2,500 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/nhs-organisations/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"name":"pharmacy"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
10 fields: 9 here, 1 technical one under Technical details.
Basics
- Organisation name
Example COMMUNITY PHARMACY WEST YORKSHIRE
- Status
Active or Inactive.
Example Active
- Primary role
Main role in words, such as PHARMACY or GP PRACTICE.
Example NON-NHS ORGANISATION
- Primary role code
Main role code, such as RO182.
Example RO157
- Relationships
Linked organisations, each as code and role in words.
Example QWO (STRATEGIC PARTNERSHIP)
Location
- Postcode
Example LS11 5HL
- Address
Full address on one line.
Example BROOKLANDS COURT, CARR MOOR SIDE, LEEDS, WEST YORKSHIRE, LS11 5HL, ENGLAND
Dates
- Last change date
Day the record last changed.
Example Nov 6, 2020
Links
- Link
Directory record of the organisation.
Example directory.spineservices.nhs.uk/ORD/2-0-0/organisations/C3O9X
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- Organisation ID
org_idThe NHS organisation code (ODS code).
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
org_id | text | Organisation ID (hidden) | 3 of 3 |
name | text | Organisation name | 3 of 3 |
status | text | Status | 3 of 3 |
primary_role | text | Primary role | 3 of 3 |
primary_role_code | text | Primary role code | 3 of 3 |
postcode | text | Postcode | 3 of 3 |
last_change_date | date | Last change date | 3 of 3 |
address | text | Address | 3 of 3 |
relationships | list | Relationships | 3 of 3 |
url | link | Link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Organisation name | Status | Primary role | Primary role code | Relationships | Postcode | Address | Last change date | Link |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COMMUNITY PHARMACY WEST YORKSHIRE | Active | NON-NHS ORGANISATION | RO157 | QWO (STRATEGIC PARTNERSHIP) | LS11 5HL | BROOKLANDS COURT, CARR MOOR SIDE, LEEDS, WEST YORKSHIRE, LS11 5HL, ENGLAND | Nov 6, 2020 | directory.spineservices.nhs.uk/ORD/2-0-0/organisations/C3O9X |
| 2 | HORSFORTH - PHARMACY PLUS HEALTH | Active | PHARMACY | RO182 | QWO (STRATEGIC PARTNERSHIP), O2C4T (PHARMACY HEADQUARTER) | LS18 4SE | GOLDEN BANK HOUSE, BROADGATE LANE, HORSFORTH, LEEDS, LS18 4SE, ENGLAND | Jun 12, 2025 | directory.spineservices.nhs.uk/ORD/2-0-0/organisations/FA670 |
| 3 | WHINMOOR PHARMACY | Active | PHARMACY | RO182 | P8CE (PHARMACY HEADQUARTER), Q52 (NHS ENGLAND (REGION, LOCAL OFFICE)), Q72 (NHS ENGLAND (REGION, LOCAL OFFICE)), QWO (STRATEGIC PARTNERSHIP) | LS14 2EH | 46A WHITE LAITHE APPROACH, LEEDS, WEST YORKSHIRE, LS14 2EH, ENGLAND | Feb 10, 2021 | directory.spineservices.nhs.uk/ORD/2-0-0/organisations/FCV80 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Each organisation needs one extra request for its address and links, so the API reads about four organisations a second; 1,000 organisations take around five minutes.
- Give at least one of name (3 letters or more), postcode or role: the directory refuses a search with none.
- Role takes one NHS role name such as PHARMACY, GP PRACTICE or NHS TRUST, or a code such as RO182; a word that fits several roles is refused with the list of matches.
- A postcode needs at least the outward part (such as LS1 or M1 1AE); a bare letter pair such as LS is refused.
- The directory covers England and the wider UK health system; Scotland, Wales and Northern Ireland have only some entries.
- Open Government Licence v3.0 (NHS England Organisation Data Service): credit NHS England as the source.
- The directory is updated daily; last_change_date shows when each record last changed. Phone numbers are not included.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.