Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Village authenticates with short-lived user tokens: you mint one with POST /v2/auth/tokens (secret-key header plus an external_user_id and email), and it carries an expires_at. Mint it yourself and put it in VILLAGE_API_TOKEN; refresh it when it expires. This entry does not mint tokens, to keep the secret key out of calls.
- Results are about the token’s user and their network, not a global database; scope: global widens searches.
- Credit-priced (1 credit = $0.02): searches charge per 10 results plus AI work; cached enrichment costs 0.
- A demo token (demo_token_global) returns anonymized sample data.
- Lists, teams, projects, sequences and webhooks exist but are not listed.
Endpoints
Get the current user
List network contacts
- A read over POST.
Search people in natural language
- A read over POST.
- Slow: complex searches usually take 20 to 60 seconds; wait rather than retry.
- Costs 3 credits per 10 results plus about 2 credits for the AI work (1 credit = $0.02).
Get introduction paths to a person
- A read over POST. Give linkedin_url or url.
Enrich a person
- A read over POST. Give linkedin_url or url.
Look up a person from an email
- A read over POST. If Village does not know the address it may look it up live.
Get a person’s recent LinkedIn posts
- A read over POST.
Find a person’s email
- A read over POST. Give linkedin_url or url.
Get introduction paths to a company
- A read over POST. Give exactly one of linkedin_url, domain or url (url is auto-detected).
Check for connections to a company
- A read over POST. Give exactly one of linkedin_url, domain or url (url is auto-detected).
List top-connected companies
- A read over POST.
Enrich a company
- A read over POST. Give exactly one of linkedin_url, domain or url (url is auto-detected).
Search companies in natural language
- A read over POST. The field is prompt, not query.
- Billed in credits (1 credit = $0.02) for results plus AI work.