Skip to content

NHS API: Search nearby services

Find nearby NHS service listings from a UK postcode or town, nearest first. NHS service search covers England; urgent_care returns A&E listings. Hours, patient availability and websites are null when not shown.

nhs.uk (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by NHS.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Service, requiredservice

Service to find, for example pharmacy.

pharmacy

One of gp_surgery, pharmacy, dentist, urgent_care, hospital, optician.

Location, requiredlocation

UK postcode or town, for example SW1A 1AA or Leeds.

SW1A 1AA

Max Results optionalmax_results

Maximum listings to return, for example 10 (up to 50).

3

Whole number from 1 to 50. Default 10.

Output

From a run on Oct 31, 2026.
{  "services": [    {      "name": "Boots",      "phone": "020 7828 6013",      "address": "5 CATHEDRAL WALK, VICTORIA, LONDON, SW1E 5JH",      "website": "https://www.boots.com/",      "postcode": "SW1E 5JH",      "nhs_page_link": "https://www.nhs.uk/services/pharmacy/boots/XFHV67",      "distance_miles": 0.3,      "opening_hours_today": "7:30am to 8pm",      "accepting_new_patients": null    },    {      "name": "Boots",      "phone": "020 7834 5792",      "address": "107 VICTORIA STREET, LONDON, SW1E 6RA",      "website": "https://www.boots.com/",      "postcode": "SW1E 6RA",      "nhs_page_link": "https://www.nhs.uk/services/pharmacy/boots/XFQT75",      "distance_miles": 0.3,      "opening_hours_today": "8am to 7pm",      "accepting_new_patients": null    },    {      "name": "Dolphins Pharmacy",      "phone": "020 7222 1828",      "address": "9-11 THE BROADWAY, LONDON, SW1H 0AZ",      "website": null,      "postcode": "SW1H 0AZ",      "nhs_page_link": "https://www.nhs.uk/services/pharmacy/dolphins-pharmacy/XFKE09",      "distance_miles": 0.4,      "opening_hours_today": "9am to 5:30pm",      "accepting_new_patients": null    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
nhs.uk/search_nearby_services
Returns
name, address, postcode, phone, distance, today's opening hours, new-patient status, website, NHS page link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method nhs.uk/search_nearby_services with the inputs above.

Ask your agent

  • Find dentists near LS6 2AB that are currently taking on new NHS patients, closest first
  • Which pharmacies close to Bristol are open today? Give me their hours and phone numbers
  • List the nearest A&E departments to M14 5RB, up to 5, with distances
  • Using nhs.uk, show me 20 GP surgeries near Norwich and whether they're accepting new patients
  • I need an optician near SE15 4QF — check the NHS website for the closest ones with addresses and websites
  • Looks up a medicine in the NHS medicines A to Z and returns its guidance: uses, key facts, who can take it, how to take it, side effects, pregnancy and interactions. Sections absent from NHS guidance are null; a plain name with separate adult and child pages selects the adult page.

    nhs.uk/get_medicine
  • Gets NHS guidance for a named health condition, including symptoms, when to seek help, causes, treatment and prevention. Sections not shown on NHS pages are null; for conditions with several guidance pages, the review date is the latest among the pages used.

    nhs.uk/get_condition
  • Finds US healthcare providers by name, place, specialty and provider type in the NPI Registry, with practice contact details and primary taxonomy. Results may include providers with similar names.

    npiregistry.cms.hhs.gov/search_providers
  • Lists UK postcodes nearest to a postcode or named place, with distance, ward, council and coordinates. For places sharing a name, a city or town is preferred.

    postcodes.io/list_nearby_postcodes
  • Finds open UK public-sector tender notices on Find a Tender matching keywords, optionally filtered by contract region, estimated value and closing date, newest first.

    find-tender.service.gov.uk/search_tenders
  • Looks up a provider in the NPI Registry by 10-digit NPI number and returns the public name, specialties, addresses, contact details and registry dates.

    npiregistry.cms.hhs.gov/get_provider
  • Finds the neighbourhood policing team for a UK postcode (England, Wales, Northern Ireland) with its force, contacts, officers, priorities and upcoming events.

    police.uk/get_neighbourhood_team
  • Finds Starbucks cafés near a city, address or ZIP code, nearest first, with whether each is open now, today's local hours and amenities; optionally only cafés open now.

    starbucks.com/search_stores