{"uid":"cap_Ltn59BR-Uwh8GRiHgqCot","slug":"nhs-england-primary-care-prescribing-data-openprescribing-654ed5af","name":"NHS England Primary Care Prescribing Data (OpenPrescribing)","description":"NHS England primary-care prescribing for a drug (official NHSBSA English Prescribing Dataset, monthly, ~2 months behind; the raw data behind OpenPrescribing.net): items, actual cost (GBP) and quantity, grouped by region, ICB, GP practice or product presentation, largest first. Match on BNF chemical substance or presentation name. Open Government Licence, no key.","url":"https://api.webintel-api.workers.dev/api/search/openprescribing?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["drug"],"properties":{"area":{"type":"string","description":"Only rows whose ICB or region name contains this text, e.g. manchester (optional)"},"drug":{"type":"string","description":"Drug name contained in the BNF chemical substance or presentation name, e.g. metformin, atorvastatin, semaglutide (2 to 60 characters)"},"limit":{"type":"string","description":"How many groups, 1 to 100 (default 20)"},"month":{"type":"string","description":"Month as YYYYMM, e.g. 202608 (default latest published)"},"groupBy":{"type":"string","description":"region, icb, practice or presentation (default icb)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3NfppoeUfQOzlSF7tEScY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns NHS England GP prescribing statistics for a named drug from the official NHSBSA English Prescribing Dataset, grouped by region, ICB, practice, or product presentation.","exampleAgentPrompt":"What are the top 10 ICBs in England by prescribing volume for semaglutide in the latest available month — give me items, cost, and quantity?","exampleUseCases":[{"title":"Regional spend analysis on diabetes drugs","prompt":"Show me which NHS ICBs spent the most on metformin last month, top 20, grouped by ICB with actual cost in GBP."},{"title":"Tracking GLP-1 prescribing trends by practice","prompt":"Give me the top 50 GP practices prescribing semaglutide in the most recent month available — I want items and quantity per practice."},{"title":"Comparing antidepressant prescribing across regions","prompt":"Which NHS regions prescribed the most sertraline in December 2024? Group by region and show me the items and cost."}],"resultDescription":"A ranked list of prescribing groups (regions, ICBs, GP practices, or product presentations) for the queried drug, each showing: group name, number of items prescribed, actual cost in GBP, and quantity dispensed — ordered largest first, up to the requested limit. Data is from the official NHSBSA English Prescribing Dataset, typically 1–2 months behind the current date.","failureModes":["Drug name not matched in BNF — returns empty results or error if query string is too short or ambiguous","Month parameter out of range — data may not be published yet for recent months; returns error or empty","Area filter too specific — no matching ICB/region name contains the text, returns empty list","Invalid groupBy value — must be one of region, icb, practice, presentation","Limit out of range — must be 1–100, otherwise validation error","Upstream NHSBSA dataset unavailable — intermittent 5xx from the worker"],"whenToPreferThis":"Use this endpoint when you need official, government-sourced NHS England GP prescribing statistics (items, cost, quantity) for a specific drug, broken down geographically or by product. It is the authoritative source for England primary-care prescribing analytics and is free to query without an API key. Prefer it over third-party pharmacy datasets when you need BNF-coded drug data at ICB or practice level within England.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:43:37.037Z","isFirstParty":false,"canonicalSlug":"nhs-england-primary-care-prescribing-data-openprescribing-654ed5af"}