Business API v3:
- GET Locations
⚠️ Experimental Version
This version of the API is currently in beta and may undergo changes. For production use, please consider using the current stable version (v2).
Returns every location attached to the selected business. This endpoint will show 100 locations at a time, and you may use the "page" parameter to paginate through the results. You can also search locations using the "name" & "phone" parameters. Relevent location information can be extracted from each location.
Example
- Resource URL: https://api.voorheesvip.com/
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" https://api.voorheesvip.com/v3/business/{business_id}/locations?page={page}
Headers | |
| Content-Type: | (string, required) Must be "application/json" |
| Authorization: | (string, required) Bearer {access_token} |
Parameters | |
| business_id: | (integer, required) The id of the business to retrieve locations for. |
| page: | (integer, optional) The page number to retrieve. Default is 1. |
Response 200 Status Code
{"status": "success", "results":{"id":"4328916","business_id":"5569592","name":"Brian's Harley Davidson","phone":"2678175521","address_components":{"address_one":"600 S Flowers Mill Rd","address_two":null,"city":"Langhorne","state":"Pennsylvania","country":"United States","zip_code":"19047"},"geography":{"lat":"40.1677551270","lng":"-74.8983078003"},"is_public":true,"is_service_area":null,"created_at":"2013-09-25 12:26:30","last_updated":"2024-07-24 17:49:49"}, {"...":"repeat for each location"}}