A working manual for 13.7M businesses.
Search, enrich, and manage your entire prospecting pipeline over one credentialed REST surface — 168 endpoints, with Node & Python SDKs when you want them.
curl https://api.prospectup.ai/v1/prospects --get \ -d "city=Austin" \ -d "state=TX" \ -d "has_website=false" \ -d "min_rating=4.5" \ -d "limit=10" \ -H "Authorization: Bearer pk_live_…"
// pu = new ProspectUp({ apiKey }) const data = await pu.prospects.search({ city: "Austin", state: "TX", has_website: false, min_rating: 4.5, limit: 10 });
# pu = ProspectUp(api_key=...) data = pu.prospects.search(city="Austin", state="TX", has_website=False, min_rating=4.5, limit=10)
{
"items": [
{
"business_id": 13042903,
"display_name": "Ahwak Cafe",
"city": "Austin",
"rating": 5,
"has_website": false,
"already_saved": false
}
],
"next_cursor": "eyJwIjoy…",
"total": 318
}One bearer key, capped by your role.
Mint a key in Settings → API keys and send it on every request. Keys are read or read+write, bound to one workspace, and a viewer stays read-only even with a write key.
curl https://api.prospectup.ai/v1/credits/balance \ -H "Authorization: Bearer pk_live_…"
// pu = new ProspectUp({ apiKey }) const data = await pu.credits.balance();
# pu = ProspectUp(api_key=...) data = pu.credits.balance()
{
"balance_cents": 617300,
"balance_dollars": 6173
}| Scope | Grants |
|---|---|
read | Every GET — search, lists, analytics, exports. |
read + write | Save leads, organize lists, set dispositions, draft campaigns, triage the inbox. |
| Header | Purpose |
|---|---|
Authorization | Bearer pk_live_… — required. |
Idempotency-Key | Safe-retry any write. |
X-Request-Id | Returned on every response; quote it to support. |
Official clients for Node and Python.
Install one and pagination, retries, idempotency keys, and signature checks are handled for you. Generated from this spec, so the client never drifts from the API. Both are live at v0.1.0 on npm and PyPI.
import { ProspectUp } from 'prospectup' const pu = new ProspectUp({ apiKey: process.env.PROSPECTUP_API_KEY }) // walk every page — pagination handled for you for await (const p of await pu.prospects.search({ query: 'coffee', city: 'Austin' })) console.log(p.display_name)
Learn the contract once.
Resource at the root
Success returns the resource directly — no wrapper. Lists return items, next_cursor, and total.
Idempotent writes
Send Idempotency-Key; a retried write never double-acts. Replays echo the stored result.
Opaque cursors
Pass next_cursor back as ?cursor=. Default 25, max 100; search caps at 50.
Every call is addressable
X-Request-Id on every response, echoed in error bodies as request_id.
{
"items": [
{
"business_id": 13042903,
"display_name": "Ahwak Cafe",
"rating": 5
}
],
"next_cursor": "eyJwIjoy…",
"total": 318
}{
"error": {
"code": "insufficient_credits",
"message": "Not enough credits for this action.",
"hint": "Top up, then retry.",
"retryable": false,
"details": {
"balance_cents": 80,
"required_cents": 100
},
"request_id": "a1b2c3d4-…"
}
}Predictable failure.
Each error carries a machine code, a human message, and — where you can act — a hint.
| Status | Code | Meaning |
|---|---|---|
400 | validation | A parameter failed its schema; details.issues names the field. |
401 | unauthorized | Missing, malformed, or revoked key. |
402 | insufficient_credits | Balance too low for a spend; body carries the shortfall. Trial expiry lands here too. |
403 | forbidden | Scope or role can't do this. Suspended → account_suspended. |
404 | not_found | No such resource in your workspace. Cross-workspace ids always 404. |
409 | conflict | Idempotency-Key reused with a different body. |
429 | rate_limited | Over the ceiling. Honor Retry-After. |
503 | service_unavailable | Search backend momentarily down; retryable: true. |
Pay for data, not for calls.
Reads are free and rate-limited. A handful of endpoints spend credits — the same balance as the app — each marked $ CREDITS in the reference.
| Action | Endpoint | Cost |
|---|---|---|
| Reveal a business's contacts | POST /prospects/reveal | 1 credit / business |
| Save a prospect as a lead | POST /prospects/{id}/save | 1 credit · reveal included |
| Save many at once | POST /prospects/bulk-save | 1 credit / business |
| Add an off-dataset business | POST /leads | 1 credit |
| Build a list from filters | POST /batches | 1 credit / delivered lead |
| Flag bad data · within 7 days | POST /leads/{id}/flag | refunds 1 |
402 with the exact shortfall before anything is charged. Check GET /credits/balance first.The core loop, end to end.
Search the dataset, reveal contacts, save the best into a list. Each specimen is a real request against a real response shape.
Filter 13.7M businesses across ~55 facets. Every hit carries an already_saved flag so you never pay twice.
curl https://api.prospectup.ai/v1/prospects --get \ -d "city=Austin" \ -d "state=TX" \ -d "has_website=false" \ -d "min_rating=4.5" \ -d "limit=10" \ -H "Authorization: Bearer pk_live_…"
// pu = new ProspectUp({ apiKey }) const data = await pu.prospects.search({ city: "Austin", state: "TX", has_website: false, min_rating: 4.5, limit: 10 });
# pu = ProspectUp(api_key=...) data = pu.prospects.search(city="Austin", state="TX", has_website=False, min_rating=4.5, limit=10)
{
"items": [
{
"business_id": 13042903,
"display_name": "Ahwak Cafe",
"city": "Austin",
"state": "Texas",
"rating": 5,
"rating_count": 48,
"has_website": false,
"already_saved": false
}
],
"next_cursor": "eyJwIjoy…",
"total": 318
}Unlock owner, phone, and emails for up to 100 businesses. Spends 1 credit per newly-revealed business; already-revealed ones are free.
curl https://api.prospectup.ai/v1/prospects/reveal -X POST \ -H "Authorization: Bearer pk_live_…" \ -H "Content-Type: application/json" \ -d '{"business_ids":[13042903,564953]}'
// pu = new ProspectUp({ apiKey }) const data = await pu.prospects.reveal({ business_ids: [13042903, 564953] });
# pu = ProspectUp(api_key=...) data = pu.prospects.reveal(business_ids=[13042903, 564953])
{
"newly_revealed_count": 2,
"already_revealed_count": 0,
"charged_cents": 200,
"balance_cents": 617100,
"contacts": [
{
"business_id": 13042903,
"phone_number": "+1 512-266-2442",
"emails": [
{
"email": "hello@ahwak.com"
}
]
}
]
}Save one business into a list and reveal its contacts in the same step. Free if already saved — returns the existing lead.
curl https://api.prospectup.ai/v1/prospects/{business_id}/save -X POST \ -H "Authorization: Bearer pk_live_…" \ -H "Content-Type: application/json" \ -d '{"list_id":570}'
// pu = new ProspectUp({ apiKey }) const data = await pu.prospects.save(businessId, { list_id: 570 });
# pu = ProspectUp(api_key=...) data = pu.prospects.save(business_id, list_id=570)
{
"lead_id": 278460,
"saved": true
}Events, the moment they happen.
Register an HTTPS endpoint and we POST a signed event when a prospect replies, a campaign completes, or credits run low — no polling. Manage endpoints in Settings → Webhooks, or over the API at /v1/webhooks.
| Event | Fires when |
|---|---|
lead.replied | A prospect replies to one of your campaigns. |
campaign.completed | A campaign finishes sending. |
credits.low | Your credit balance crosses the low threshold. |
credits.added | Credits land: a top-up, a grant, or a reversed refund. |
X-ProspectUp-Signature header is an HMAC-SHA256 over <timestamp>.<raw-body>. Verify it before trusting the payload — the SDK does it in one call.import { verifyWebhookSignature } from 'prospectup' // Express — pass the RAW body, not the parsed object app.post('/webhooks', async (req, res) => { const ok = await verifyWebhookSignature({ payload: req.rawBody, signature: req.headers['x-prospectup-signature'], secret: process.env.PROSPECTUP_WEBHOOK_SECRET, }) if (!ok) return res.sendStatus(400) const event = req.body // { type: 'lead.replied', data: {…} } res.sendStatus(200) })
The complete surface.
All 168 endpoints, indexed by resource. Search from the command bar to jump.