API reference
List the leads of a search
Leads of a succeeded **screened** search, exact matches first. A raw search has rows instead: this call answers `400`. Read those with GET /searches/{search_id}/results.
GEThttps://foundermcp.dev/api/v1/searches/{search_id}/leads
Leads of a succeeded screened search, exact matches first. A raw search has rows instead: this call answers 400. Read those with GET /searches/{search_id}/results.
Authentication
Send Authorization: Bearer gtk_…. Create the key under API Access → API Keys. A missing, invalid or revoked key is 401, including while this API is closed. A valid key while the API is closed for your organization answers 404, the same body as an unknown path. Every response includes FounderMCP-Api-Version and FounderMCP-Request-Id.
Path parameters
search_idstring· required — A screened search id.
Query parameters
matchstring— Which leads. Defaults toall. One of:exact,just_outside,all.limitinteger— How many rows to return, from 1 to 100. Defaults to 25.cursorstring— Thenext_cursorof the previous page, sent back unchanged.
Response
objectstring· required — Alwayslist.dataobject[]· required — Leads. Same shape as GET /leads/{lead_id}.next_cursorstring | null— The next page, or null.
Credits
Free. The search already charged the leads.
Errors
- 400
invalid_request— This search is raw. Read GET /searches/{search_id}/results. - 409
search_not_ready— The search has not succeeded. The error includes its status. - 401
authentication_error— The Authorization header is missing, or the key is unknown or revoked. - 403
permission_error— API access is not part of your plan, or your account is suspended. - 404
not_found— The endpoint does not exist. - 429
rate_limit_error— More than 60 requests per minute, or more than 3 at the same time, on one key. Wait for the Retry-After header. - 500
internal_error— Something went wrong on our side.
Example
cURL
curl "https://foundermcp.dev/api/v1/searches/srch_01J9Z6P8C8V0K3W6T2N8R5M1XA/leads?match=exact" \
-H "Authorization: Bearer $FOUNDERMCP_API_KEY"
JavaScript
const response = await fetch('https://foundermcp.dev/api/v1/searches/srch_01J9Z6P8C8V0K3W6T2N8R5M1XA/leads?match=exact', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.FOUNDERMCP_API_KEY}`
}
});
const body = await response.json();
Python
import json
import os
import urllib.request
request = urllib.request.Request(
"https://foundermcp.dev/api/v1/searches/srch_01J9Z6P8C8V0K3W6T2N8R5M1XA/leads?match=exact",
headers={
"Authorization": f"Bearer {os.environ['FOUNDERMCP_API_KEY']}"
},
method="GET",
)
with urllib.request.urlopen(request) as response:
body = json.load(response)
Example response
{
"object": "list",
"data": [
{
"id": "lead_01J9Z6P8C8V0K3W6T2N8R5M1XE",
"object": "lead",
"match": "exact",
"credits_charged": 20
}
],
"next_cursor": null
}