Get businesses near you
Businesses API
Use this API to access businesses nearby you, based on latitude and longitude you provide.
Params
1. Lat
- Latitude of the location of the user (string value)
- Required
2. Long
- Longitude of the location of the user (string value)
- Required
3. range
- Range of the result
- You can specify the range in kilometers
- default is the area of radius .5kms to 2kms
- optional
4. page
- This API is paginated.
- default page number is 1
- optional
5. perPage
- per page results
- default is 10
- max is 100
- minimum is 10
- optional
GET
/api/businesses
curl \
-X GET http://api.example.com/api/businesses?lat=23983.2&long=-29829.09 \
-H "Authorization: $API_KEY"
Response examples (200)
{
"address": "string",
"attributes": {},
"business_id": "string",
"categories": "string",
"city": "string",
"geoHash": "string",
"hours": {},
"is_open": 42,
"latitude": 42.0,
"longitude": 42.0,
"name": "string",
"postal_code": "string",
"review_count": 42,
"stars": 42.0,
"state": "string",
"userID": 42
}
Response examples (200)
{
"address": "string",
"attributes": {},
"business_id": "string",
"categories": "string",
"city": "string",
"geoHash": "string",
"hours": {},
"is_open": 42,
"latitude": 42.0,
"longitude": 42.0,
"name": "string",
"postal_code": "string",
"review_count": 42,
"stars": 42.0,
"state": "string",
"userID": 42
}
Response examples (400)
{
"message": "internal server error",
"status": "error",
"status_code": 500
}
Response examples (400)
{
"message": "internal server error",
"status": "error",
"status_code": 500
}
Response examples (412)
{
"message": "internal server error",
"status": "error",
"status_code": 500
}
Response examples (412)
{
"message": "internal server error",
"status": "error",
"status_code": 500
}
Response examples (500)
{
"message": "internal server error",
"status": "error",
"status_code": 500
}
Response examples (500)
{
"message": "internal server error",
"status": "error",
"status_code": 500
}