# Zocdoc appointment availability API

Get Zocdoc appointment slots by doctor ID or URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as days, id, output, and retrieve structured data including source provider identifier, selected window start date, selected patient-type flag, source location identifier, and returned location slot count for availability display, and window selection.

Documentation: https://openany.si/market/apis/zocdoc/zocdoc-appointment-availability-api/?offering=0e8400f2-e9c0-4647-b0e9-e3f2465774c3
API ID: 0e8400f2-e9c0-4647-b0e9-e3f2465774c3
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/zocdoc/v1/availability
Page update time: 2026-12-03T02:46:40.292Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:46:38.534Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Zocdoc appointment availability 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": "Doctor id (the number at the end of a profile URL, e.g. 7363), its `provider_id`, or the profile URL itself (https://www.zocdoc.com/doctor/... or /dentist/...)."
        },
        "days": {
          "type": "integer",
          "description": "Days to cover, 1-14 (default 7)."
        },
        "start_date": {
          "type": "string",
          "description": "First day (YYYY-MM-DD, default today)."
        },
        "visit_reason": {
          "type": "string",
          "description": "Visit reason id from the doctor's `visit_reasons` (default: the doctor's usual reason)."
        },
        "new_patient": {
          "type": "boolean",
          "description": "true (default) for new-patient slots, false for existing patients."
        },
        "insurance_plan": {
          "type": "string",
          "description": "Insurance plan id from /zocdoc/v1/insurance?carrier=<id>."
        },
        "time_of_day": {
          "type": "string",
          "description": "Only slots before 10am, after 5pm or both.",
          "enum": [
            "any",
            "before_10am",
            "after_5pm",
            "before_10am_or_after_5pm"
          ]
        },
        "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"
    },
    "days": {
      "type": "integer"
    },
    "doctor": {
      "type": "object",
      "properties": {
        "bookable_online": {
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "provider_id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "insurance_plan": {
      "type": "null"
    },
    "locations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "days": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string"
                },
                "slots": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "location": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "address2": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "fax": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "latitude": {
                "type": "number"
              },
              "location_id": {
                "type": "string"
              },
              "longitude": {
                "type": "number"
              },
              "name": {
                "type": "null"
              },
              "phone": {
                "type": "string"
              },
              "phone_ext": {
                "type": "null"
              },
              "state": {
                "type": "string"
              },
              "virtual": {
                "type": "boolean"
              },
              "virtual_visit_type": {
                "type": "null"
              },
              "website": {
                "type": "null"
              },
              "zip": {
                "type": "string"
              }
            }
          },
          "next_available": {
            "type": "string"
          },
          "slot_count": {
            "type": "integer"
          }
        }
      }
    },
    "new_patient": {
      "type": "boolean"
    },
    "next_available": {
      "type": "string"
    },
    "start_date": {
      "type": "string"
    },
    "time_of_day": {
      "type": "string"
    },
    "visit_reason": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/zocdoc/v1/availability?days=1&id=https%3A%2F%2Fwww.zocdoc.com%2Fdentist%2Fnancy-nguyen-dmd-ms-84571&output=json&raw=0' \
  -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": 1,
  "credits_used": 1,
  "days": 1,
  "doctor": {
    "bookable_online": true,
    "id": "84571",
    "name": "Dr. Nancy Nguyen, DMD, MS",
    "provider_id": "pr_Y4bazKSR9kuwHQRQgn4Wqx",
    "url": "https://www.zocdoc.com/dentist/nancy-nguyen-dmd-ms-84571"
  },
  "fetched_at": "2026-11-20T02:29:03.233Z",
  "insurance_plan": null,
  "locations": [
    {
      "days": [
        {
          "date": "2026-11-20",
          "slots": [
            "2026-11-20T10:40:00-05:00"
          ]
        }
      ],
      "location": {
        "address": "41 Prk Ave",
        "address2": "Ste 1C",
        "city": "New York",
        "fax": null,
        "id": "lo_JWW5v5iiXUy7K_4KokvWMR",
        "latitude": 40.74836730957031,
        "location_id": "123340",
        "longitude": -73.97994995117188,
        "name": null,
        "phone": "(646) 470-1376",
        "phone_ext": null,
        "state": "NY",
        "virtual": false,
        "virtual_visit_type": null,
        "website": null,
        "zip": "10016"
      },
      "next_available": "2026-11-20T10:40:00-05:00",
      "slot_count": 1
    }
  ],
  "new_patient": true,
  "next_available": "2026-11-20T10:40:00-05:00",
  "start_date": "2026-11-20",
  "time_of_day": "any",
  "visit_reason": {
    "id": "12",
    "name": "Dental Consultation"
  }
}
```

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

## Available implementations
- apish: https://openany.si/market/apis/zocdoc/zocdoc-appointment-availability-api/?offering=0e8400f2-e9c0-4647-b0e9-e3f2465774c3

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