> ## 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.

# /ratemds/facilities

> Get a RateMDs facility (clinic, hospital or urgent care center) by slug or URL: name, category, address, city, phone, website, coordinates, patient star rating with the four-criteria breakdown (cleanliness, facilities, services, value), review count, local ranking, the providers practicing there and patient reviews.

**Price:** 1 credit

**⚠️ Common errors:** 412: Facility not found (well-formed slug with no RateMDs facility)



## OpenAPI

````yaml /openapi/local-places.json post /api/ratemds/facilities
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/ratemds/facilities:
    post:
      tags:
        - /ratemds
      summary: /ratemds/facilities
      description: >-
        Get a RateMDs facility (clinic, hospital or urgent care center) by slug
        or URL: name, category, address, city, phone, website, coordinates,
        patient star rating with the four-criteria breakdown (cleanliness,
        facilities, services, value), review count, local ranking, the providers
        practicing there and patient reviews.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Facility not found (well-formed slug with no
        RateMDs facility)
      operationId: __api_ratemds_facilities_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RatemdsFacilitiesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RatemdsFacility'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RatemdsFacilitiesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        facility:
          type: string
          minLength: 1
      type: object
      required:
        - facility
    RatemdsFacility:
      properties:
        '@type':
          type: string
          default: RatemdsFacility
        id:
          type: string
        name:
          type: string
        category:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        suite:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        website:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        rating:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        rating_cleanliness:
          anyOf:
            - type: number
            - type: 'null'
        rating_facilities:
          anyOf:
            - type: number
            - type: 'null'
        rating_services:
          anyOf:
            - type: number
            - type: 'null'
        rating_value:
          anyOf:
            - type: number
            - type: 'null'
        rank:
          anyOf:
            - type: integer
            - type: 'null'
        rank_total:
          anyOf:
            - type: integer
            - type: 'null'
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
        providers:
          items:
            $ref: '#/components/schemas/RatemdsFacilityProvider'
          type: array
          default: []
        reviews:
          items:
            $ref: '#/components/schemas/RatemdsFacilityReview'
          type: array
          default: []
      type: object
      required:
        - id
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    RatemdsFacilityProvider:
      properties:
        '@type':
          type: string
          default: RatemdsFacilityProvider
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        primary_specialty:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        rating:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    RatemdsFacilityReview:
      properties:
        '@type':
          type: string
          default: RatemdsFacilityReview
        id:
          type: string
        rating:
          anyOf:
            - type: number
            - type: 'null'
        rating_cleanliness:
          anyOf:
            - type: number
            - type: 'null'
        rating_facilities:
          anyOf:
            - type: number
            - type: 'null'
        rating_services:
          anyOf:
            - type: number
            - type: 'null'
        rating_value:
          anyOf:
            - type: number
            - type: 'null'
        text:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    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

````