Use custom research for a question the standard attributes do not answer, for example whether a business has outdoor seating or which price band it is in.
Research and standard enrichment are the same endpoint: POST /v1/enrich. Any attribute name outside the standard set is a research field, so you can ask for both in one request and pay for each at its own rate.
Define the attributes you want
Each attribute is a question you write. Give it a name, a plain-language description, and a value_type of bool, number, string, or enum; for enum, list the permitted answers in allowed_values. Every place in the request gets the same attributes. Send up to 20 attributes and 10 places.
Some names are reserved. owners returns the individual owner, co-owners or franchisee; owner_org returns the operating company when there is no individual owner; key_people returns the leadership beyond the owner. owners and key_people each return a list of people, with direct contacts on request. See Owners and key people.
brand returns the chain a location trades as, for example Dunkin'; parent_company returns the company that owns the brand, for example Inspire Brands; ultimate_parent returns the owner at the top of that chain when it differs from the parent. All three are empty for an independent business, with abstain_reason independent_business. parent_company is also empty for a brand with no corporate owner, with abstain_reason no_parent_company. For a franchised store, owner_org is the franchisee and parent_company is the brand’s owner. Each costs one credit per place.
Send a research request
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 '{
"pois": [
{
"id": "bakery-001",
"poi_name": "Example Bakery",
"address": "123 Example Street",
"latitude": 37.7749,
"longitude": -122.4194,
"country": "US"
},
{
"id": "cafe-002",
"poi_name": "Example Cafe",
"address": "456 Sample Avenue",
"latitude": 37.7755,
"longitude": -122.4183,
"country": "US"
}
],
"attributes": [
{
"name": "outdoor_seating",
"description": "Does the place have outdoor seating?",
"value_type": "bool"
},
{
"name": "price_band",
"description": "Typical price level",
"value_type": "enum",
"allowed_values": ["cheap", "mid", "expensive"]
}
]
}'
Control the cost before you commit
Research costs one credit per place per attribute: two places with two attributes cost four credits. Unanswered attributes are still billed. Nothing is billed if research is unavailable.
Standard attributes in the same request cost one credit per place in total, however many you ask for, and only when at least one returns a value. Two places asking for opening_hours and phone plus one research attribute cost up to two credits for the standard pair and two for the research attribute, four in all. GET /v1/usage returns both rates under enrichment.
To see the price first, send the same request with "estimate_only": true: nothing runs or is charged, and the response carries meta.estimated_credits and an empty rows list. To cap a live request, set max_credits; an estimate above it is rejected with 402 before any work starts, and nothing is charged. To try a subset, set sample to the number of leading places to process; only those run and are billed.
Interpret the research response
rows has one entry per place, in request order, with your id echoed back. A row’s status is enriched when at least one attribute has a confirmed or estimated value, abstain when none does, cost_capped when the research budget ran out, or error when that place failed. An error row carries an error message and null fields; it never fails the request.
With verify_name: true, each row also carries identity.name: the value we settled on and researched against, a verdict (confirmed, corrected, unresolved) and the original you supplied. With verify_address or verify_registered_address, the row carries address_checks (see Verify addresses); an address check never replaces your address, and its verdict is not_checked when there was none to check. The deprecated verify_identity means verify_name plus verify_address and also returns identity.address, corrected only to the same premises written in full.
fields maps each attribute name to its result. value is the answer, or null when it could not be established. status is confirmed, estimated (derived, always low confidence), unconfirmed, cost_capped, or rejected. confidence is high, medium, or low, and null when there is no value. Filter on status: "confirmed" for verified values only. A null value is a normal result, not an error, and does not mean “no”.
A cell with a null value also carries abstain_reason, which says why it is empty:
independent_business: the place is independent, so it has no brand.no_parent_company: the business has no parent company.not_found: we looked and found no reliable value.unverified: a value was found but did not pass verification, so it is not returned.failed: the lookup did not complete (an error, a timeout, or the research budget ran out). Billing follows the row, not the cell; see the pricing above.
meta.stopped_reason is completed when the request finished normally, cost_capped when the shared budget ran out, agent_unavailable when research was down (every row abstains and nothing is billed), or estimate_only for a dry run (empty rows, nothing billed). meta.estimated_credits is present on every response.
Verify addresses
To check a place’s trading address or its registered office after research, see Verify addresses.
Handle research errors
A request with no places, more than 10 places, an empty attributes list, more than 20 attributes, or both address and registered_address requested as attributes returns 400; detail lists the invalid fields. An attribute name close to a standard one (openning_hours, webiste) also returns 400: it is read as a typo, so a slip does not buy the more expensive product. An attribute that asks for something the service does not research returns 422 with error_code: FIELD_REJECTED and a rejected_fields object naming it; remove or rephrase it and resend. 401 and 403 are authentication and access errors; 403 means the key is not permitted to use POST /v1/enrich, and any key that can call it can request research fields. 402 means not enough available credits or an estimate over max_credits; waiting will not fix it. For 429, wait and follow Retry-After when returned.
Leaving attributes out is not an error: the request then uses the default standard set (opening_hours, phone, website, existence, open_closed).
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 service behind the gateway carry error, error_code and request_id at the top level. A 502 with error_code: BACKEND_ERROR or a 504 with error_code: BACKEND_TIMEOUT means that service failed or timed out; nothing is charged, so retry later. Those two 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
