Get Suggested Radius
Take the guesswork out of working out a suitable radius around your business when searching for events.
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
The unit of the radius returned.
This will be the unit specified in the radius_unit parameter in the call made.
m— Meterskm— Kilometersft— Feetmi— Miles
mPossible values: The industry category of the business location.
Different industries have different event impact profiles, which affect the returned suggested radius.
accommodation— Accommodation providers, travel tech, and OTAscpg— Consumer packaged goods companiestourism— Leisure, travel, and tourism businesses (e.g. Expedia, DMOs, travel platforms)marketing— Advertising and marketing servicesparking— Parking facility operatorsrestaurants— Food and beverage businesses including restaurant groupsretail— Non-food retail and retail techtransportation— On-demand transport and deliveryother— All other industries
otherPossible values: A comma-separated string consisting of the latitude and longitude of the location to find the optimal radius for. For example your store or hotel location.
The format is <latitude>,<longitude>
E.g. ?location.origin=37.747767,-122.455320
37.7749,-122.4194Pattern: ^-?\d{1,3}(?:\.\d+)?,\-?\d{1,3}(?:\.\d+)?$Successful Response
Response model for the backwards-compatible Suggested Radius API.
The suggested radius for a given location rounded to 2 decimal places.
The unit of measurement for the radius
Validation Error
Unauthorized
Forbidden
GET /v1/suggested-radius/?location.origin=37.7749%2C-122.4194 HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"radius": 1500,
"radius_unit": "m",
"location": {
"lat": "37.7749",
"lon": "-122.4194"
}
}Examples
OpenAPI Spec
Guides
Last updated
Was this helpful?