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.

Try it
Ready-made, maintained by usRecords, 10 fieldsv1.0

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

Nameoptional
Optional organisation name words (at least 3 letters).
Example: pharmacy
Postcodeoptional
Optional postcode or the start of one.
Example: LS1
Roleoptional
Optional NHS role by name or code, such as PHARMACY, GP PRACTICE, NHS TRUST or RO182.
Example: pharmacy
Active onlyoptional
Only organisations that are still active.
Maximum recordsoptional
Most organisations to return.
Example: 1000

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
Endpoint
POSThttps://pullrow.dev/v1/apis/nhs-organisations/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
2,500 free records of this API to start. No card.
curl
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.

nametext
Optional organisation name words (at least 3 letters).
example: pharmacy
postcodetext
Optional postcode or the start of one.
example: LS1
roletext
Optional NHS role by name or code, such as PHARMACY, GP PRACTICE, NHS TRUST or RO182.
example: pharmacy
active_onlyyes/no
Only organisations that are still active.
default: trueexample: true
max_recordsnumber
Most organisations to return.
example: 1000

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

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 nameTypeShown on this page asFilled
org_idtextOrganisation ID (hidden)3 of 3
nametextOrganisation name3 of 3
statustextStatus3 of 3
primary_roletextPrimary role3 of 3
primary_role_codetextPrimary role code3 of 3
postcodetextPostcode3 of 3
last_change_datedateLast change date3 of 3
addresstextAddress3 of 3
relationshipslistRelationships3 of 3
urllinkLink3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordOrganisation nameStatusPrimary rolePrimary role codeRelationshipsPostcodeAddressLast change dateLink
1COMMUNITY PHARMACY WEST YORKSHIREActiveNON-NHS ORGANISATIONRO157QWO (STRATEGIC PARTNERSHIP)LS11 5HLBROOKLANDS COURT, CARR MOOR SIDE, LEEDS, WEST YORKSHIRE, LS11 5HL, ENGLANDNov 6, 2020directory.spineservices.nhs.uk/ORD/2-0-0/organisations/C3O9X
2HORSFORTH - PHARMACY PLUS HEALTHActivePHARMACYRO182QWO (STRATEGIC PARTNERSHIP), O2C4T (PHARMACY HEADQUARTER)LS18 4SEGOLDEN BANK HOUSE, BROADGATE LANE, HORSFORTH, LEEDS, LS18 4SE, ENGLANDJun 12, 2025directory.spineservices.nhs.uk/ORD/2-0-0/organisations/FA670
3WHINMOOR PHARMACYActivePHARMACYRO182P8CE (PHARMACY HEADQUARTER), Q52 (NHS ENGLAND (REGION, LOCAL OFFICE)), Q72 (NHS ENGLAND (REGION, LOCAL OFFICE)), QWO (STRATEGIC PARTNERSHIP)LS14 2EH46A WHITE LAITHE APPROACH, LEEDS, WEST YORKSHIRE, LS14 2EH, ENGLANDFeb 10, 2021directory.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.
Known limits
  • 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.