> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

> [!NOTE]
>
> **Credit cost:** Free. This call never fetches, charges or saves anything.

> [!NOTE]
>
> 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](https://api.smartlead.ai/authentication.md)).

Send the same `filter_id` and `limit` (or `id`) you would send to [Fetch Contacts](https://api.smartlead.ai/api-reference/smart-prospect/fetch-contacts.md). 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

**filter\_id** `number` *required*

Your search ID (from [Search Contacts](https://api.smartlead.ai/api-reference/smart-prospect/search-contacts.md)).

**limit** `number`

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`.

**id** `string[]`

Contact IDs you plan to fetch. Send `limit` or `id`.

```bash cURL theme={null}
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

**filter\_id** `number`

The search ID

**already\_fetched** `boolean`

`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 Contacts](https://api.smartlead.ai/api-reference/smart-prospect/get-contacts.md)

**contacts\_requested** `number`

`limit`, or the number of distinct `id` values

**max\_credits** `number`

The most this fetch can charge (1 credit per contact). `0` when the fetch would be refused as already fetched

**credits\_available** `number | null`

Credits available now, or `null` when the balance could not be read

**sufficient** `boolean | null`

Whether `credits_available` covers `max_credits`, or `null` when the balance could not be read

**within\_daily\_limit** `boolean`

Whether the fetch fits in today's fetch limit

## Response Codes

**200** `Success`

Estimate returned

**400** `Bad Request`

`filter_id` missing, neither `limit` nor `id` sent, or `limit` above the Fetch Contacts cap

**429** `Too Many Requests`

Shares the per-user window of searching and fetching (see [Rate Limits](https://api.smartlead.ai/guides/rate-limits.md#smart-prospect-rate-limits))

**401** `Unauthorized`

Missing or invalid API key

**403** `Forbidden`

Called with a client (agency sub-account) API key. Use the main account key.

**404** `Not Found`

No search with this ID on your account

```json 200 - Estimate theme={null}
{
  "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
  }
}
```

```json 404 - Not your search theme={null}
{
  "success": false,
  "message": "Filter not found or access denied"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.