Places API
Places API provides validation and enrichment for business records.
Check business details, enrich records, and process larger datasets with batch requests.
Quickstart
Set VOYGR_API_KEY in your server environment as described in Authentication. Start with one business record. Replace the example values with your own business details.
Validate a business
Use this quickstart to check that one business exists and whether it is open.
Send a validation request
Send poi_name and a full address. Coordinates are optional but give a more precise match; send them as a pair, latitude and longitude in decimal degrees (WGS84). Keep the API key on your server.
curl https://api.voygr.tech/v1/validate \
--request POST \
--header "X-API-Key: $VOYGR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"poi_name": "Example Bakery",
"address": "123 Example Street, San Francisco, CA 94103, US",
"latitude": 37.7749,
"longitude": -122.4194
}'
Interpret the validation response
success says whether validation completed. existence_confidence (0.0 to 1.0) scores whether a matching place has existed at the supplied location. It says nothing about whether the business is open today: a closed business can still have high existence confidence.
Use operational_status.status for the operating decision: open, closed, unknown, or not_exists. unknown is unresolved and worth re-checking. not_exists means the place was not judged to exist, so no closure assessment was made.
operational_status.closure_confidence shows how strongly we lean closed. It is above 0.5 for a closed result and below 0.5 for an open one. A higher number means a stronger lean; use it to rank places within one status. The same number means a different chance of closure in different lists, so it is not a probability. For unknown and not_exists it is null: we make no open or closed call. operational_status.closure_reason describes the kind of closure evidence behind a closed result.
The response also carries your optional id, a request_id to quote to support, and validation_timestamp.
Handle validation errors
400means the request body is invalid; checkpoi_name, the location fields, and that coordinates are supplied as a pair.401means the API key is missing or invalid.402means the key has no validation credits remaining.403means the key cannot use this operation.429means a rate limit; wait and followRetry-Afterwhen returned.503means validation is temporarily unavailable; retry later.502witherror_code: BACKEND_ERRORor504witherror_code: BACKEND_TIMEOUTmeans the validation service failed or timed out behind the gateway; nothing is charged, so retry later.
Errors the gateway returns itself (401, 403, 402 when the balance cannot cover the request, and the 429 rate limit) put the message inside detail, for example {"detail": {"error": "invalid API key"}}, with no request_id. Errors from the validation service carry error, error_code and request_id at the top level. The 502 and 504 bodies come from the gateway too: error and error_code at the top level, with no request_id and no detail wrapper.
Enrich a business
Use this quickstart to get current contact details or opening hours for one business.
POST /v1/enrich also answers custom research questions beyond the standard attributes, and takes a pois list when you have several businesses. Standard attributes cost one credit per business however many you request; research fields are charged per business per field.
Send an enrichment request
Send the business name, a location, and the attributes you want. Keep the API key on your server.
Send coordinates as a pair, latitude and longitude in decimal degrees (WGS84).
curl https://api.voygr.tech/v1/enrich \
--request POST \
--header "X-API-Key: $VOYGR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"id": "bakery-001",
"poi_name": "Example Bakery",
"address": "123 Example Street",
"latitude": 37.7749,
"longitude": -122.4194,
"country": "US",
"attributes": ["opening_hours", "phone", "website"]
}'
Interpret the enrichment response
success says whether enrichment ran and id repeats your identifier. attributes has one entry per requested field, each with value, confidence, and as_of; a null value means the attribute was unavailable.
If you request existence or open_closed, read the status and operational_status objects. With include_summary set to true, the response can also carry place_summary.
Handle enrichment errors
401means the API key is missing or invalid.403means the key cannot use this operation.400means the request is invalid; checkpoi_name, the location fields, andattributes. ForVALIDATION_ERROR, read thedetailentries (field,message, andtype).402means the available balance cannot cover the request; add credits before retrying.422witherror_code: VALIDATION_ERRORmeans a coordinates-only request could not be resolved to a location; correct the coordinates or send an address. This body haserrorandrequest_idbut nodetaillist, unlike400.429means a rate or concurrency limit was reached; wait and followRetry-Afterwhen returned.502witherror_code: BACKEND_ERRORor504witherror_code: BACKEND_TIMEOUTmeans the enrichment service failed or timed out behind the gateway; nothing is charged, so retry later.
When success is false, read error and error_code and keep request_id for support. Errors the gateway returns itself (401, 403, 402 when the balance cannot cover the request, and the 429 rate limit) have no success field: the message is inside detail, for example {"detail": {"error": "invalid API key"}}, with no request_id. The 502 and 504 bodies come from the gateway too: error and error_code at the top level, with no request_id and no detail wrapper.
API reference
Need help with access or an integration? Email support@voygr.tech.
