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.
On this page
