# Healthgrades hospital affiliated doctors API

Get Healthgrades hospital-affiliated practitioners by hospital ID via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including requested hospital identifier, hospital display name, source practitioner identifier, source practitioner name, and source specialty-filter code for hospital directory, and profile links.

Documentation: https://openany.si/healthgrades/healthgrades-hospital-affiliated-doctors-api/f655c843-0886-4a3c-b405-54f33e67e814/
API ID: f655c843-0886-4a3c-b405-54f33e67e814
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/healthgrades/v1/hospital-doctors
Page update time: 2026-12-03T02:46:32.766Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:46:32.114Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Healthgrades Hospital Doctors API

Use the hospital id or URL and optionally specialty from specialties\[\].code. doctors can include different professional types, so preserve the source names and credentials instead of relabelling every result as a physician.

## What You Can Build

- **Hospital directory**: Connect a facility to available practitioner references.
- **Profile links**: Preserve source practitioner names and professional credentials.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Requested hospital identifier |
| `name` | Hospital display name |
| `doctors[].id` | Source practitioner identifier |
| `doctors[].name` | Source practitioner name |
| `specialties[].code` | Source specialty-filter code |
| `next_page` | Next page number when available |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Healthgrades hospital affiliated doctors API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Healthgrades hospital id or link."
        },
        "specialty": {
          "type": "string",
          "description": "A specialty code from `specialties` (e.g. PS127)."
        },
        "page": {
          "type": "integer",
          "description": "Page number (default 1)."
        },
        "per_page": {
          "type": "integer",
          "description": "Doctors per page, 1-50 (default 20)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "doctors": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "image": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "rating": {
                "type": "integer"
              },
              "rating_count": {
                "type": "integer"
              },
              "specialty": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "per_page": {
      "type": "integer"
    },
    "specialties": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "specialty": {
      "type": "null"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/healthgrades/v1/hospital-doctors?id=A5B09F&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 20,
  "credits_used": 1,
  "doctors": [
    {
      "id": "UPGPYQ",
      "image": "https://photos.healthgrades.com/img/prov/u/p/g/upgpyq_w90h120_vf34938ac1716e3da7dd50c469262c055431cd773.jpg",
      "name": "James Ainsworth, FNP-BC",
      "rating": 0,
      "rating_count": 0,
      "specialty": "Cardiology",
      "url": "https://www.healthgrades.com/providers/james-ainsworth-upgpyq"
    },
    {
      "id": "3CP4S",
      "image": "https://photos.healthgrades.com/img/prov/3/c/p/3cp4s_w90h120_vc50fe655ae2d9098827929862e34e58dc2d25544.jpg",
      "name": "Dr. Matthew Anderson, MD",
      "rating": 5,
      "rating_count": 10,
      "specialty": "Pulmonary Disease",
      "url": "https://www.healthgrades.com/physician/dr-matthew-anderson-3cp4s"
    },
    "… 18 more"
  ],
  "id": "A5B09F",
  "name": "Heart Hospital of Austin",
  "next_page": 2,
  "page": 1,
  "per_page": 20,
  "specialties": [
    {
      "code": "PS127",
      "name": "Cardiology"
    },
    {
      "code": "PS244",
      "name": "Dermatology"
    },
    "… 4 more"
  ],
  "specialty": null,
  "total": 102
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Where do specialty values come from?
Use specialties[].code, such as PS127, rather than a display name.

### How many entries can I request?
per_page accepts 1–50, default 20. page defaults to 1.

### Does affiliation establish appointment availability?
No. It describes a source hospital relationship, separate from booking or capacity.

### Does a zero rating with zero rating_count mean poor feedback?
Read both fields together. No recorded ratings should not be displayed as a negative patient assessment.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/healthgrades/healthgrades-hospital-affiliated-doctors-api/f655c843-0886-4a3c-b405-54f33e67e814/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
