Where can I find an API for all Medicines?

Where can I find an API for all Medicines?

Unique code, name, etc

Hi, Francis. Please use the following link: NHS Website Content API - NHS England Digital

Although the list of medicines is on the nhs.uk website, the API is available at the link above.

I hope it helps you.

I hope it helps you!

Hi,

We are using the medicine API with a full subscription API key generated from NHS Developer Portal. However, when we call the API, it only retrieves medications up to “Benzoyl peroxide” on the list.

We have also tested this with Postman and encountered the same issue.

We tired with using both keys and just one key. no joy

https://api.nhs.uk/Medicines?subscription-key=[OUR PRIMARY KEY]&subscription-key=[OUR secondary KEY]

Hi,
I believe the Medicines API response is limited to 25 responses and it’s paginated so you need to use the page parameter to get the next pages, e.g.,
https://api.nhs.uk/medicines?page=2

Thanks @michaelcheung - we tested this - however still returning the first page from “Aciclovir (Zovirax)” to “Benzoyl peroxide”. could there be anything else we are missing?

If you are comparing the first page of results to the list found on Medicines A-Z - NHS, please note that "Antidepressants"is not included in the API as this links to a page in the mental health section of the website (Antidepressants - NHS) and information for “Aspirin - low-dose” points to “Low-dose aspirin” so won’t appear in the first page.

Thanks @michaelcheung, We are not looking to compare the page results. We literarily want to pull the medicines but it’s only pulling the first page that starts with med: Aciclovir (Zovirax) and ends with med: Benzoyl peroxide. this behaviours is consistent using postman and directly in our environment.

You can only pull 25 medicines at a time - it’s not possible to get them all in one call.