# Is there an API to get GP practitioner details and / or to get Pharmacist details

**URL:** <https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654>\
**Category:** General enquiries\
**Tags:** search-service\
**Created:** [5 January 2024 12:25 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654 "2024-01-05T12:25:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill.lush](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/bill.lush/32/409_2.png) [@bill.lush](https://developer.community.nhs.uk/u/bill.lush)\
**Post date:** [5 January 2024 12:25 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/1 "2024-01-05T12:25:59Z")

</div>

Hi  
If I wanted to get GP details and Pharmacist details (codes and names) is there an API where I can get this data?  
Many thanks  
Bill

---

<div class="post-metadata">

**Author:** ![ernest.kissiedu1](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@ernest.kissiedu1](https://developer.community.nhs.uk/u/ernest.kissiedu1)\
**Post date:** [5 January 2024 14:08 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/2 "2024-01-05T14:08:45Z")

</div>

Hi Bill

Thanks for your query.

The [Organisation Data Service (ODS)](https://digital.nhs.uk/services/organisation-data-service) provides access to a reduced dataset of health and social care organisations in England and Wales, such as trusts or GP practices, using our Organisation Data Service (ODS) FHIR API.

The [API and integration catalogue](https://digital.nhs.uk/developer/api-catalogue#) lists the APIs and integrations which are currently available, or in development, from NHS England and associated organisations.

Kind regards,  
Ernest

---

<div class="post-metadata">

**Author:** ![ian.haywood](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@ian.haywood](https://developer.community.nhs.uk/u/ian.haywood)\
**Post date:** [5 January 2024 14:34 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/3 "2024-01-05T14:34:24Z")

</div>

[Personal Demographics Service - FHIR API - NHS Digital](https://digital.nhs.uk/developer/api-catalogue/personal-demographics-service-fhir)

Assuming you meant at patient level?

---

<div class="post-metadata">

**Author:** ![kevin.mayfield1](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/kevin.mayfield1/32/93_2.png) [@kevin.mayfield1](https://developer.community.nhs.uk/u/kevin.mayfield1)\
**Post date:** [6 January 2024 12:47 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/4 "2024-01-06T12:47:17Z")

</div>

My answer when I’m working for a NHS Trust is:

go to ODS [CSV downloads - NHS Digital](https://digital.nhs.uk/services/organisation-data-service/export-data-files/csv-downloads)  
dowload the CSV files and then import them into a system.

Alternatively most of this data in NHS Englands SDS LDAP database. Standard LDAP queries will work with this but the trick is to get hold of a Spine Certificate for the LDAP connection (You used to get this when you onboarded to Spine SMSP api, don’t know how you do this now)

---

<div class="post-metadata">

**Author:** ![kevin.mayfield1](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/kevin.mayfield1/32/93_2.png) [@kevin.mayfield1](https://developer.community.nhs.uk/u/kevin.mayfield1)\
**Post date:** [6 January 2024 12:54 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/5 "2024-01-06T12:54:17Z")

</div>

It might be worth contacting NHS England Standards and Interoperability.

I believe this is an API which hinders interoperability over a number of products.

I’m presuming your use case is similar to ones listed on this standard  
[https://profiles.ihe.net/ITI/mCSD/volume-1.html#14642-use-cases](https://profiles.ihe.net/ITI/mCSD/volume-1.html#14642-use-cases)

and the API you are looking for is listed on this page [IHE.ITI.MCSD\2:3.90 Find Matching Care Services [ITI-90] - FHIR v4.0.1](https://profiles.ihe.net/ITI/mCSD/ITI-90.html)

---

<div class="post-metadata">

**Author:** ![bill.lush](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/bill.lush/32/409_2.png) [@bill.lush](https://developer.community.nhs.uk/u/bill.lush)\
**Post date:** [8 January 2024 09:24 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/6 "2024-01-08T09:24:17Z")

</div>

Thanks for the comments 👍

The basic use case is to create a basic picking list of GPs and a separate one for pharmacists.

---

<div class="post-metadata">

**Author:** ![kevin.mayfield1](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/kevin.mayfield1/32/93_2.png) [@kevin.mayfield1](https://developer.community.nhs.uk/u/kevin.mayfield1)\
**Post date:** [11 January 2024 16:16 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/7 "2024-01-11T16:16:59Z")

</div>

> [@bill.lush](#):
>
> asic use case is to create a basic picking list of GPs

Not sure how useful this is but we put it together for a UK Core Hackathon. I think we only loaded GP’s from ODS but followed the IHE spec.

[http://lb-fhir-mcsd-1736981144.eu-west-2.elb.amazonaws.com/swagger-ui/index.html#/](http://lb-fhir-mcsd-1736981144.eu-west-2.elb.amazonaws.com/swagger-ui/index.html#/)

The server (AWS FHIRWorks) behind the scenes supports more queries but we’ve only exposed ones from IHE

---

<div class="post-metadata">

**Author:** ![iminshall](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@iminshall](https://developer.community.nhs.uk/u/iminshall)\
**Post date:** [12 January 2024 08:10 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/8 "2024-01-12T08:10:25Z")

</div>

Is this what you require [Spine Directory Service - LDAP API - NHS Digital](https://digital.nhs.uk/developer/api-catalogue/spine-directory-service-ldap)

---

<div class="post-metadata">

**Author:** ![adrianparr](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adrianparr/32/143_2.png) [@adrianparr](https://developer.community.nhs.uk/u/adrianparr)\
**Post date:** [8 February 2024 10:22 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/9 "2024-02-08T10:22:50Z")

</div>

Hi Bill Lush,

It sounds like the ‘Directory of Healthcare Services (Service Search) API’ might be what you are looking for.

> **[Directory of Healthcare Services (Service Search) API - NHS Digital](https://digital.nhs.uk/developer/api-catalogue/directory-of-healthcare-services)**
>
> Access information about NHS healthcare services, including searching for and getting a list of coronavirus (COVID-19) walk-in sites, organisation types,  GP, Dentist, Optician, Hospital, Pharmacy, Urgent care services, Sexual health services,...

This allows you to search by …

- GP practice name
- Town
- Postcode
- Longitude and latitude
- ODSCode

… and more.

---

<div class="post-metadata">

**Author:** ![tom.brooks4](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tom.brooks4](https://developer.community.nhs.uk/u/tom.brooks4)\
**Post date:** [28 November 2024 16:33 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/10 "2024-11-28T16:33:53Z")

</div>

Hi Bill, very late to the party here but my team is currently building the [Healthcare Worker API](https://digital.nhs.uk/developer/api-catalogue/healthcare-fhir-api) for use cases like this.  
Currently in alpha and starting private beta in December. We currently have your specific use case on our roadmap for post-MVP so are likely to be releasing that feature in early 2025.  
Not sure whether you ended up using the solutions suggested above, but if not our API might be suitable.  
If you’re interested in consuming our API once it goes live, please get in touch with myself or Catherine Ejiogu ([catherine.ejiogu1@nhs.net](mailto:catherine.ejiogu1@nhs.net)).  
Thanks  
Tom

---

<div class="post-metadata">

**Author:** ![Catherine](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Catherine](https://developer.community.nhs.uk/u/Catherine)\
**Post date:** [5 February 2025 15:52 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/11 "2025-02-05T15:52:23Z")

</div>

Hi Bill, what will drive the pick list for GPs or Pharmacists? Is this via region or trust based?

---

<div class="post-metadata">

**Author:** ![bill.lush](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/bill.lush/32/409_2.png) [@bill.lush](https://developer.community.nhs.uk/u/bill.lush)\
**Post date:** [5 February 2025 16:22 UTC](https://developer.community.nhs.uk/t/is-there-an-api-to-get-gp-practitioner-details-and-or-to-get-pharmacist-details/654/12 "2025-02-05T16:22:36Z")

</div>

Hi Catherine, I was looking to get a national list of GPs and Pharmacists.  
As I remember it GP codes can be retrieved from NHS Organisation Data Service (ODS), but there is no national identifier list for pharmacists in the NHS.
