England GP Prescribing API

Monthly prescribing in England by GP practice from the NHS Business Services Authority: items, quantity and cost for a drug, BNF code or integrated care board, with practice name, postcode and region.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 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, 14 fieldsv1.0

Data from opendata.nhsbsa.net/dataset/english-prescribing-data-epd

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

Chemicaloptional
Chemical substance name, as the NHS spells it.
Example: Semaglutide
Bnf codeoptional
Only presentations whose BNF code starts with this.
Example: 0601023AW
Month
Month as YYYY-MM.
Example: 2025-06
Icboptional
Only practices in this integrated care board (code).
Example: QHL

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 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/england-gp-prescribing/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
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/england-gp-prescribing/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"month":"2025-06"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

chemicaltext
Chemical substance name, as the NHS spells it.
example: Semaglutide
bnf_codetext
Only presentations whose BNF code starts with this.
example: 0601023AW
monthtextrequired
Month as YYYY-MM.
example: 2025-06
icbtext
Only practices in this integrated care board (code).
example: QHL

What's in each record

14 fields: 13 here, 1 technical one under Technical details.

Basics

  • Icb

    Integrated care board code.

    Example QHM

  • GP practice name

    Example The Densham Surgery

  • NHS practice code

    Example A81001

  • BNF presentation code

    Example 0601023AWBBAAAA

  • Bnf description

    Presentation name.

    Example Ozempic 0.25mg/0.19ml inj 1.5ml pre-filled pens

  • Chemical substance name

    Example Semaglutide

  • Items

    Number of prescription items.

    Example 2

  • Total quantity dispensed

    Example 2

Prices

  • Net ingredient cost

    Net ingredient cost in GBP.

    Example 146.5

  • Actual cost

    Actual cost in GBP.

    Example 146.5248

Location

  • Region

    NHS regional office.

    Example North East And Yorkshire

  • Practice postcode

    Example TS18 1HU

Dates

  • Year month

    Month as YYYY-MM.

    Example 2025-06

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.

  • ID idMonth, practice code and BNF code joined.

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
idtextID (hidden)3 of 3
year_monthtextYear month3 of 3
regiontextRegion3 of 3
icbtextIcb3 of 3
practice_nametextGP practice name3 of 3
practice_codetextNHS practice code3 of 3
postcodetextPractice postcode3 of 3
bnf_codetextBNF presentation code3 of 3
bnf_descriptiontextBnf description3 of 3
chemicaltextChemical substance name3 of 3
itemsnumberItems3 of 3
quantitynumberTotal quantity dispensed3 of 3
net_ingredient_costnumberNet ingredient cost3 of 3
actual_costnumberActual cost3 of 3

How it reads the site

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

Sample records

Sample records
RecordIcbGP practice nameNHS practice codeBNF presentation codeBnf descriptionChemical substance nameItemsTotal quantity dispensedNet ingredient costActual costRegionPractice postcodeYear month
1QHMThe Densham SurgeryA810010601023AWBBAAAAOzempic 0.25mg/0.19ml inj 1.5ml pre-filled pensSemaglutide22146.5146.5248North East And YorkshireTS18 1HU2025-06
2QHMThe Densham SurgeryA810010601023AWBBABABOzempic 0.5mg/0.37ml inj 1.5ml pre-filled pensSemaglutide1173.2573.2624North East And YorkshireTS18 1HU2025-06
3QHMThe Densham SurgeryA810010601023AWBBACACOzempic 1mg/0.74ml inj 3ml pre-filled pensSemaglutide33219.75219.7872North East And YorkshireTS18 1HU2025-06

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
  • One month per run; give the month and at least one of chemical, bnf_code or icb.
  • Up to 20,000 rows per run. A common drug in one month can have more rows than that: narrow with icb or a more specific bnf_code.
  • Rows the NHS could not assign to a practice are left out. Chemical names must match the NHS name exactly (for example Semaglutide); bnf_code matches the start of the presentation code.
  • Months up to 2025-06 come from the NHS retired prescribing files and later months from its newer files; a month the NHS has not published yet is refused.
  • Costs are in GBP; practices are organisations, not people. The NHS publishes each month about two months after it ends.
  • Published under the Open Government Licence v3.0 (NHS Business Services Authority).
  • Requests are spaced half a second apart.

Version history

A run uses the live version unless the request names another one with version.