API
The Vetted Leads API
New leads, straight into your own software: your CRM, your sales tool, your scripts. On Enterprise, or pay as you go with a Developer balance, no plan needed.
https://vettedleads.app/api/v1Every answer is JSON. The same data as the feed: searching is free, and unlocking spends contacts, from your Enterprise plan or your Developer balance (add credit at /developer).
Your key
On Enterprise, or once you have added credit on the Developer API page, make a key under Account, then API keys. It is shown once, so copy it then. Send it on every request as "Authorization: Bearer vl_...". Keep it on your server: never put it in a web page or an app people download. Revoke a key and it stops at its next request. Up to 5 keys at a time. On a team, the owner makes the keys, since a key spends the team's contacts.
A first request
New Shopify stores in the UK, newest first, 50 to a page:
curl "https://vettedleads.app/api/v1/leads?country=GB&platform=shopify" \
-H "Authorization: Bearer $VETTED_LEADS_KEY"Each lead comes with its trade, platform, country, registration day, its gaps and its unlock_cost, but no business name, website or email. Those come back when you unlock it. Ask for page=2 for the next 50.
Addresses
| Address | What it does |
|---|---|
GET /api/v1/leads | Search new businesses, 50 a page. Free, and never shows a name, website or email. |
GET /api/v1/leads/count | Count the leads a search matches and price unlocking them. Free. |
POST /api/v1/leads/unlock | Unlock leads by id. Spends your contacts, never more than max_contacts; the same ids again never charge twice. |
GET /api/v1/contacts | The contacts you and your team own, newest first, 50 a page. Free. |
GET /api/v1/account | Your plan, contacts left and team. Free. |
GET /api/v1/saved-searches | Your saved searches, each with its id. Free. |
POST /api/v1/saved-searches | Save a search under a name. Spends nothing. |
The full description, for Postman or a code generator: /api/v1/openapi.json.
Filters
On /leads and /leads/count as query parameters. An unknown value is refused with the list of what is allowed, never quietly ignored.
| Filter | Values | What it means |
|---|---|---|
country | text | Two-letter country code (NG, GB, US, ...) or the country's name. 'unknown' finds leads with no country. |
industry | construction and trades, professional services, health and medical, real estate and property, marketing and creative, technology and software, hospitality and travel, transport and logistics, education and training, nonprofit and community, fashion and apparel, health and beauty, food and drink, home and garden, electronics, jewellery and accessories, pets, baby and kids, sports and outdoors, automotive, other | The business's trade. |
platform | shopify, woocommerce, wordpress, wix, squarespace, webflow, framer, custom | What the website is built on. |
registered_within | 24h, 7d, 30d | 24h: up to 1 day old; 7d: up to 7 days old; 30d: up to 30 days old. Counted in real days from the moment the domain was registered. |
registered_from | text | Registered on or after this day (YYYY-MM-DD). Overrides registered_within. |
registered_to | text | Registered on or before this day (YYYY-MM-DD). |
min_gaps | 4, 6, 8 | Only sites with at least this many gaps (things missing or broken on the site). |
gap | meta_description, h1, canonical, og_image, json_ld, thin_copy, blog, responsive, table_layout, favicon, template_title, stale_copyright, jquery, alt_text, mixed_content, free_plan_host, slow_mobile, heavy_page, big_images, low_security, no_mail_server, mail_forward_only, no_dmarc | Only sites with this one gap. meta_description: No meta description; h1: Not exactly one H1; canonical: No canonical tag; og_image: No social preview image; json_ld: No structured data; thin_copy: Thin copy; blog: No blog linked; responsive: Not responsive; table_layout: Table based layout; favicon: No favicon; template_title: Unedited template title; stale_copyright: Copyright years behind; jquery: Unsupported jQuery; alt_text: Images with no alt text; mixed_content: Loads assets over http; free_plan_host: On a free platform subdomain; slow_mobile: Slow on a phone; heavy_page: Heavy homepage; big_images: Images could be smaller; low_security: Low security grade; no_mail_server: No mail server; mail_forward_only: Email only forwarded; no_dmarc: No DMARC record. |
text | text | Words matched against the trade and the platform. |
has_email | true or false | Only leads with at least one email. |
has_socials | true or false | Only leads with social media links. |
has_location | true or false | Only leads whose country is known. |
ready_to_spend | true or false | Only businesses whose own site shows signs it spends on growth: has ad tracking, uses paid marketing tools or trading 3+ years. On Enterprise only. |
sort | newest, gaps | newest (default) or gaps (most gaps first). |
saved_search | text | The id of one of the user's saved searches (from saved_searches). Runs it as saved; give no other filters with it. |
page | number | Page number, from 1. |
Unlocking
A lead costs 1 contact for its emails and 1 for its social links, as on the feed. Send lead ids from /leads, up to 1000 a call. max_contacts is required: the unlock is refused, and nothing charged, if it would cost more. A lead you or a teammate already own is free, so sending the same ids again after a timeout never charges twice.
curl -X POST "https://vettedleads.app/api/v1/leads/unlock" \
-H "Authorization: Bearer $VETTED_LEADS_KEY" \
-H "Content-Type: application/json" \
-d '{"lead_ids":["<id from /leads>"],"max_contacts":2}'Use /leads/count first to see what a whole search would cost. If a business asks us to remove it, it drops out of /contacts; read your contacts again from time to time and delete the ones that are gone.
Errors
Every error is { "error": { "code": ..., "message": ... } } with one of these statuses.
| Status | Code | What to do |
|---|---|---|
| 400 | invalid_request | An argument is wrong. The message names it and what is allowed. |
| 401 | unauthorized | No key, or a key that is not valid or was revoked. |
| 402 | insufficient_credits | Not enough contacts left for this unlock. Nothing was charged. |
| 403 | plan_required | The API needs Enterprise or credit in your Developer balance. /api/v1/account still answers. |
| 404 | not_found | No saved search with that id on your account. |
| 409 | over_max_contacts, conflict | The unlock would cost more than max_contacts, or something changed while it ran. Nothing was charged. |
| 429 | rate_limited | More than 120 requests a minute. Retry-After says when to try again. |
| 429 | daily_limit | The unlock would pass 2,000 contacts spent through the API today. Nothing was charged. The day resets at 00:00 UTC. |
| 500 | failed, unconfirmed | On unconfirmed the purchase may have gone through: read /api/v1/contacts before you try again. |
| 503 | unavailable | We could not answer just now. Try again in a moment. |
Limits
How many requests?
120 a minute and 10,000 a day per account. Unlocking through the API is limited to 2,000 contacts a day, so a lost key cannot spend a month in an afternoon. Need more? Write to us and we raise it for your account.
Can I use it from a browser?
No. Browsers are not let read the answers, so a key never ends up in a page where anybody could copy it.
Can I pass the leads on?
The leads you unlock are for your own business, as on the feed. Reselling or republishing them ends an account, the same rule as the terms. Talk to us first if you want to offer them to your own customers.
