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.
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
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
- 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/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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
year_month | text | Year month | 3 of 3 |
region | text | Region | 3 of 3 |
icb | text | Icb | 3 of 3 |
practice_name | text | GP practice name | 3 of 3 |
practice_code | text | NHS practice code | 3 of 3 |
postcode | text | Practice postcode | 3 of 3 |
bnf_code | text | BNF presentation code | 3 of 3 |
bnf_description | text | Bnf description | 3 of 3 |
chemical | text | Chemical substance name | 3 of 3 |
items | number | Items | 3 of 3 |
quantity | number | Total quantity dispensed | 3 of 3 |
net_ingredient_cost | number | Net ingredient cost | 3 of 3 |
actual_cost | number | Actual cost | 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 | Icb | GP practice name | NHS practice code | BNF presentation code | Bnf description | Chemical substance name | Items | Total quantity dispensed | Net ingredient cost | Actual cost | Region | Practice postcode | Year month |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | QHM | The Densham Surgery | A81001 | 0601023AWBBAAAA | Ozempic 0.25mg/0.19ml inj 1.5ml pre-filled pens | Semaglutide | 2 | 2 | 146.5 | 146.5248 | North East And Yorkshire | TS18 1HU | 2025-06 |
| 2 | QHM | The Densham Surgery | A81001 | 0601023AWBBABAB | Ozempic 0.5mg/0.37ml inj 1.5ml pre-filled pens | Semaglutide | 1 | 1 | 73.25 | 73.2624 | North East And Yorkshire | TS18 1HU | 2025-06 |
| 3 | QHM | The Densham Surgery | A81001 | 0601023AWBBACAC | Ozempic 1mg/0.74ml inj 3ml pre-filled pens | Semaglutide | 3 | 3 | 219.75 | 219.7872 | North East And Yorkshire | TS18 1HU | 2025-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.
- 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.
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.