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

# Trova email in blocco

> Trova indirizzi email professionali in blocco a partire da nomi e aziende — fino a 5.000 ricerche per batch con Enrow Email Finder

<Badge color="green">POST</Badge>

```
https://api.enrow.io/email/find/bulk
```

Esegui più ricerche di email in un'unica richiesta. Fino a 5.000 ricerche per batch. Autentica ogni richiesta con la tua [chiave API](/it/authentication) nell'header `x-api-key`. Per trovare una singola email, usa invece l'endpoint [Find Single Email](/it/api-reference/email-finder/find-single).

<Info>
  Enrow esegue **verifiche deterministiche** che verificano anche le email catch-all. Nessun debouncer necessario.
</Info>

## Corpo della richiesta

<ParamField body="searches" type="array of objects" required>
  Payload di ricerca per i quali trovare le email corrispondenti.

  <Expandable title="proprietà dell'oggetto search">
    <ParamField body="fullname" type="string" required>
      Il nome completo dell'utente
    </ParamField>

    <ParamField body="company_domain" type="string">
      Il dominio dell'azienda o l'URL del sito web. È richiesto `company_domain` oppure `company_name`.
    </ParamField>

    <ParamField body="company_name" type="string">
      Il nome dell'azienda dell'utente. È richiesto `company_domain` oppure `company_name`.
    </ParamField>

    <ParamField body="custom" type="string | object">
      Un valore personalizzato che puoi utilizzare per fare riferimento a un ID interno (ad esempio). Sarà presente nei risultati.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="custom" type="object">
  Parametri personalizzati che verranno restituiti nella risposta GET e nella notifica webhook.

  <Expandable title="oggetto custom">
    <ParamField body="your_custom_key_name" type="string" default="your_custom_property">
      I tuoi dati personalizzati
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="settings" type="object">
  Impostazioni relative all'intera ricerca in blocco.

  <Expandable title="proprietà di settings">
    <ParamField body="country_code" type="string" default="US">
      Un codice di 2 caratteri che rappresenta il paese delle ricerche (codice ISO 3166 Alpha-2). Rilevante quando si utilizza `company_name`.
    </ParamField>

    <ParamField body="webhook" type="string">
      Un URL che verrà notificato tramite una richiesta HTTP POST una volta terminata la ricerca in blocco. Vedi [Come funzionano i webhook](/it/how-webhooks-work).
    </ParamField>

    <ParamField body="retrieve_gender" type="boolean" default="false">
      Ottieni il genere associato quando viene trovata un'email.
    </ParamField>

    <ParamField body="retrieve_company_info" type="boolean" default="false">
      Ottieni le informazioni aziendali associate. Efficace solo quando `country_code` è `FR`.
    </ParamField>
  </Expandable>
</ParamField>

## Risposta

### 201 — Ricerca in blocco avviata

<ResponseField name="message" type="string">
  Messaggio di conferma
</ResponseField>

<ResponseField name="id" type="string">
  Identificatore univoco per questo batch. Usalo per recuperare i risultati tramite l'[endpoint GET](/it/api-reference/email-finder/get-bulk-results).
</ResponseField>

<ResponseField name="credits_used" type="number">
  Crediti totali consumati. Vedi [Crediti e fatturazione](/it/credits-billing) per i costi per endpoint.
</ResponseField>

<ResponseField name="estimated_duration" type="number">
  Tempo di elaborazione stimato in minuti (non garantito)
</ResponseField>

### Risposte di errore

| Code    | Message                                                    |
| ------- | ---------------------------------------------------------- |
| **400** | `Missing payload`                                          |
| **400** | `Missing searches payload`                                 |
| **400** | `Too many searches. Limit is currently at 5000 per batch.` |
| **400** | `Error while parsing payload`                              |
| **401** | `No apikey found in the x-api-key headers`                 |
| **401** | `This apikey is not valid`                                 |
| **402** | `Insufficient credits`                                     |

<Note>
  In caso di crediti insufficienti, l'endpoint bulk restituisce HTTP **402** con un corpo nella forma `{ "message": "..." }`. Vedi [Gestione degli errori](/it/error-handling) per l'elenco completo dei codici di stato e dei formati di risposta.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.enrow.io/email/find/bulk \
    --header 'Content-Type: application/json' \
    --header 'x-api-key: YOUR_API_KEY' \
    --data '{
      "searches": [
        {
          "fullname": "Dwight Schrute",
          "company_domain": "dundermifflin.com",
          "custom": "lead_001"
        },
        {
          "fullname": "Jim Halpert",
          "company_domain": "dundermifflin.com",
          "custom": "lead_002"
        },
        {
          "fullname": "Ryan Howard",
          "company_domain": "dundermifflin.com",
          "custom": "lead_003"
        }
      ],
      "settings": {
        "webhook": "https://your-app.com/webhooks/enrow",
        "retrieve_gender": true
      }
    }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.enrow.io/email/find/bulk', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': process.env.ENROW_API_KEY
    },
    body: JSON.stringify({
      searches: [
        { fullname: 'Dwight Schrute', company_domain: 'dundermifflin.com', custom: 'lead_001' },
        { fullname: 'Jim Halpert', company_domain: 'dundermifflin.com', custom: 'lead_002' },
        { fullname: 'Ryan Howard', company_domain: 'dundermifflin.com', custom: 'lead_003' }
      ],
      settings: {
        webhook: 'https://your-app.com/webhooks/enrow',
        retrieve_gender: true
      }
    })
  });

  const data = await response.json();
  console.log(`Batch ID: ${data.id}`);
  ```

  ```python Python theme={null}
  import requests
  import os

  url = "https://api.enrow.io/email/find/bulk"
  headers = {
      "Content-Type": "application/json",
      "x-api-key": os.getenv("ENROW_API_KEY")
  }
  payload = {
      "searches": [
          {"fullname": "Dwight Schrute", "company_domain": "dundermifflin.com", "custom": "lead_001"},
          {"fullname": "Jim Halpert", "company_domain": "dundermifflin.com", "custom": "lead_002"},
          {"fullname": "Ryan Howard", "company_domain": "dundermifflin.com", "custom": "lead_003"}
      ],
      "settings": {
          "webhook": "https://your-app.com/webhooks/enrow",
          "retrieve_gender": True
      }
  }

  response = requests.post(url, json=payload, headers=headers)
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Risposta di successo theme={null}
  {
    "message": "Bulk search operating",
    "id": "0cf517bc-16e8-45bc-b967-ab9116b3c804",
    "credits_used": 3,
    "estimated_duration": 1
  }
  ```

  ```json Risposta di errore theme={null}
  {
    "message": "..."
  }
  ```
</ResponseExample>

## Prossimi passi

<CardGroup cols={2}>
  <Card title="Ottieni i risultati in blocco" icon="layer-group" href="/it/api-reference/email-finder/get-bulk-results">
    Recupera le email trovate usando l'`id` del batch.
  </Card>

  <Card title="Trova una singola email" icon="envelope" href="/it/api-reference/email-finder/find-single">
    Esegui una singola ricerca di email a partire da un nome e un'azienda.
  </Card>

  <Card title="Webhook" icon="bell" href="/it/how-webhooks-work">
    Ricevi notifiche automatiche al completamento di un batch.
  </Card>

  <Card title="Crediti e fatturazione" icon="coins" href="/it/credits-billing">
    Scopri come vengono consumati i crediti per ciascun endpoint.
  </Card>
</CardGroup>
