Get provider locations
This endpoint accepts parameters such as zip code, specialty, visit reason and accepted insurance to return a filtered set of providers within the developer's directory. The response includes additional information about the provider location objects returned.
The provider_location_id returned in the response can be used to retrieve availability in the endpoint /v1/provider_locations/availability.
Request
- Base URLhttps://api-developer-sandbox.zocdoc.com
- Auth
- OAuth 2Client credentialsToken URL: https://auth.zocdoc.com/oauth/token
- or OAuth 2Authorization code: https://auth.zocdoc.com/authorizeToken URL: https://auth.zocdoc.com/oauth/token
Query parameters
A 5 digit zip code to search near. One of zip_code or the latitude and longitude pair is required. zip_code takes precedence if both are supplied.
Latitude of the search location, in decimal degrees. Must be provided together with longitude. Used only when zip_code is not supplied; zip_code takes precedence over the pair.
Longitude of the search location, in decimal degrees. Must be provided together with latitude. Used only when zip_code is not supplied; zip_code takes precedence over the pair.
The Zocdoc ID of the provider's specialty. See Reference Data for options. One of specialty_id or visit_reason_id is required. If visit_reason_id is not supplied, the default visit reason for the specialty will be used.
The Zocdoc ID for the visit reason. See Reference Data for options. One of specialty_id or visit_reason_id is required. If both visit_reason_id and specialty_id are supplied, the specialty must be the visit reason's corresponding specialty.
The zero indexed page of results.
The number of results to return per page.
The Zocdoc ID of the patient's insurance plan. Use the Get Insurance Plans endpoint to retrieve available plans.
The type of patient visit with the provider.
The type of patient visit with the provider. If not provided, the default value is set to in_person.
The maximum distance in miles from the physical location to the search location (the center point of the given zip_code). Defaults to 50 miles, which is also the widest radius available.
Response
Succesful
Example response
{
"data": {
"search_parameters": {
"specialty_id": "sp_153",
"visit_reason_id": "pc_FRO-18leckytNKtruw5dLR"
},
"provider_locations": [
{
"provider_location_id": "pr_abc123-def456_wxyz7890|lo_abc123-def456_wxyz7890",
"provider": {
"provider_photo_url": "//d2uur722ua7fvv.cloudfront.net/ZeeFace_02.svg",
"languages": [
"English",
"Spanish"
],
"profile_url": "https://zocdoc.com/doctor/capivarudo-nojeira-md-517507?utm_source=FakeSource"
},
"location": {
"state": "NY",
"phone_number": "9999999999",
"phone_extension": "123",
"time_zone": "America/New_York"
},
"virtual_location": {
"state": "NY",
"time_zone": "America/New_York"
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.