> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /nhs/services

> Get an NHS service organisation's profile by its type and ODS organisation code: name, full address, phone, website, current open/closed status, geographic coordinates, reception opening times by day, the facilities it offers, the services it provides, and — for GP surgeries — the online registration link.

**Price:** 5 credits

**⚠️ Common errors:** 412: No organisation found for the given service type and ODS code



## OpenAPI

````yaml /openapi/local-places.json post /api/nhs/services
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/nhs/services:
    post:
      tags:
        - /nhs
      summary: /nhs/services
      description: >-
        Get an NHS service organisation's profile by its type and ODS
        organisation code: name, full address, phone, website, current
        open/closed status, geographic coordinates, reception opening times by
        day, the facilities it offers, the services it provides, and — for GP
        surgeries — the online registration link.


        **Price:** 5 credits


        **⚠️ Common errors:** 412: No organisation found for the given service
        type and ODS code
      operationId: __api_nhs_services_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NhsServicesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NhsService'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    NhsServicesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        service_type:
          $ref: '#/components/schemas/NhsServiceType'
        ods_code:
          type: string
          minLength: 1
      type: object
      required:
        - service_type
        - ods_code
    NhsService:
      properties:
        '@type':
          type: string
          default: NhsService
        id:
          type: string
        name:
          type: string
        service_type:
          type: string
        address:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        website_url:
          anyOf:
            - type: string
            - type: 'null'
        registration_url:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        accepting_status:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        opening_hours:
          items:
            $ref: '#/components/schemas/NhsOpeningTime'
          type: array
          default: []
        facilities:
          items:
            type: string
          type: array
          default: []
        services:
          items:
            type: string
          type: array
          default: []
        url:
          type: string
      type: object
      required:
        - id
        - name
        - service_type
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    NhsServiceType:
      type: string
      enum:
        - gp
        - dentist
        - pharmacy
        - hospital
        - nhs_sight_test
        - podiatrist
        - sexual_health_clinic
        - hiv_treatment
        - breast_screening
        - abdominal_aortic_aneurysm_screening
        - diabetic_eye_screening
        - chlamydia_screening
        - sti_testing
        - emergency_contraception
        - free_condoms
        - sexual_health_advice
        - young_people_sexual_health
        - rape_and_sexual_assault_referral
        - drug_treatment
        - drug_addiction_support
        - stop_smoking
        - pals
        - pregnancy_testing
    NhsOpeningTime:
      properties:
        '@type':
          type: string
          default: NhsOpeningTime
        day:
          type: string
        times:
          type: string
      type: object
      required:
        - day
        - times
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````