Skip to content

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

  • 401 means the API key is missing or invalid.
  • 403 means the key cannot use this operation.
  • 400 means the request is invalid; check poi_name, the location fields, and attributes. For VALIDATION_ERROR, read the detail entries (field, message, and type).
  • 402 means the available balance cannot cover the request; add credits before retrying.
  • 422 with error_code: VALIDATION_ERROR means a coordinates-only request could not be resolved to a location; correct the coordinates or send an address. This body has error and request_id but no detail list, unlike 400.
  • 429 means a rate or concurrency limit was reached; wait and follow Retry-After when returned.
  • 502 with error_code: BACKEND_ERROR or 504 with error_code: BACKEND_TIMEOUT means 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.