curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/estimate" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter_id": 12345, "limit": 400}'
{
"success": true,
"message": "Estimate only: nothing was charged.",
"data": {
"filter_id": 12345,
"already_fetched": false,
"contacts_requested": 400,
"max_credits": 400,
"credits_available": 2500,
"sufficient": true,
"within_daily_limit": true
}
}
{
"success": false,
"message": "Filter not found or access denied"
}
Smart Prospect
Estimate Fetch Cost API
See the most a Fetch Contacts call could charge, and whether your credits cover it, before you spend - POST /fetch-contacts/estimate
POST
/
api
/
v1
/
search-email-leads
/
fetch-contacts
/
estimate
curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/estimate" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter_id": 12345, "limit": 400}'
{
"success": true,
"message": "Estimate only: nothing was charged.",
"data": {
"filter_id": 12345,
"already_fetched": false,
"contacts_requested": 400,
"max_credits": 400,
"credits_available": 2500,
"sufficient": true,
"within_daily_limit": true
}
}
{
"success": false,
"message": "Filter not found or access denied"
}
Credit cost: Free. This call never fetches, charges or saves anything.
This endpoint requires your API key: pass it as the
api_key query parameter, or in an X-API-Key or Authorization: Bearer header (see Authentication).filter_id and limit (or id) you would send to Fetch Contacts. The answer says how many credits that call can charge at most, your current balance, and whether the balance covers it. Call it before every fetch so you, or the person you work for, can confirm the spend first.
max_credits is an upper bound: 1 credit per contact. The real charge can be lower, because contacts you already own are skipped, and each contact whose email is not found is refunded after the background email lookup.
Request Body
Your search ID (from Search Contacts).
Number of contacts you plan to fetch, within the same cap as Fetch Contacts (1–10000, or 1–30000 for some users). Send
limit or id.curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/estimate" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter_id": 12345, "limit": 400}'
Response Fields
true when this search was already fetched. A limit fetch of it is then refused with ALREADY_FETCHED and charges nothing; read its contacts with Get ContactsThe most this fetch can charge (1 credit per contact).
0 when the fetch would be refused as already fetchedWhether
credits_available covers max_credits, or null when the balance could not be readResponse Codes
Shares the per-user window of searching and fetching (see Rate Limits)
{
"success": true,
"message": "Estimate only: nothing was charged.",
"data": {
"filter_id": 12345,
"already_fetched": false,
"contacts_requested": 400,
"max_credits": 400,
"credits_available": 2500,
"sufficient": true,
"within_daily_limit": true
}
}
{
"success": false,
"message": "Filter not found or access denied"
}
