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

# Pobierz weryfikacje

> Pobierz wyniki masowej weryfikacji adresów e-mail według ID partii, w tym poprawność każdego e-maila, status partii i wykorzystane kredyty

<Badge color="blue">GET</Badge>

```
https://api.enrow.io/email/verify/bulk?id={id}
```

Pobierz wszystkie wyniki masowej weryfikacji adresów e-mail, korzystając z ID partii. Uwierzytelniaj każde żądanie za pomocą [klucza API](/pl/authentication) w nagłówku `x-api-key`. Aby najpierw rozpocząć partię, użyj endpointu [Verify Bulk Emails](/pl/api-reference/email-verifier/verify-bulk).

<Info>
  Użycie webhooka pozwala pominąć wywoływanie tego endpointu GET. Zobacz [How Webhooks Work](/pl/how-webhooks-work).
</Info>

## Parametry zapytania

<ParamField query="id" type="string" required>
  Wartość `id` zwrócona przez żądanie POST
</ParamField>

## Odpowiedź

### 200 — Weryfikacja zakończona

<ResponseField name="general" type="object">
  Metadane partii

  <Expandable title="general properties">
    <ResponseField name="id" type="string">
      Identyfikator partii
    </ResponseField>

    <ResponseField name="status" type="string">
      `completed`, `ongoing` lub `failed`
    </ResponseField>

    <ResponseField name="custom" type="object">
      Dane niestandardowe przekazane w pierwotnym żądaniu
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="stats" type="object">
  Statystyki partii

  <Expandable title="stats properties">
    <ResponseField name="credits_cost" type="number">
      Łączna liczba zużytych kredytów. Zobacz [Credits & billing](/pl/credits-billing), aby poznać koszty poszczególnych endpointów.
    </ResponseField>

    <ResponseField name="requested" type="number">
      Łączna liczba zażądanych weryfikacji
    </ResponseField>

    <ResponseField name="valid" type="number">
      Liczba poprawnych adresów e-mail
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="results" type="array">
  Tablica wyników weryfikacji

  <Expandable title="Result properties">
    <ResponseField name="email" type="string">
      Zweryfikowany adres e-mail
    </ResponseField>

    <ResponseField name="index" type="string">
      Unikalny identyfikator tej weryfikacji w partii
    </ResponseField>

    <ResponseField name="qualification" type="string">
      `valid` (dostarczalny) lub `invalid` (niedostarczalny). [Dlaczego binarnie?](/pl/status-codes#why-binary)
    </ResponseField>
  </Expandable>
</ResponseField>

### 200 — Weryfikacja wciąż w toku

Dopóki partia jest nadal przetwarzana, endpoint zwraca HTTP `200` ze stanem partii zamiast pełnych wyników.

<ResponseField name="general" type="object">
  Metadane partii

  <Expandable title="general properties">
    <ResponseField name="id" type="string">
      Identyfikator partii
    </ResponseField>

    <ResponseField name="status" type="string">
      `ongoing`
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="stats" type="object">
  Postęp partii

  <Expandable title="stats properties">
    <ResponseField name="finished" type="number">
      Liczba już zakończonych weryfikacji
    </ResponseField>

    <ResponseField name="requested" type="number">
      Łączna liczba zażądanych weryfikacji
    </ResponseField>
  </Expandable>
</ResponseField>

### Odpowiedzi z błędami

| Code    | Message                                        |
| ------- | ---------------------------------------------- |
| **400** | `Could not retrieve bulk verification results` |

Zobacz [Error handling](/pl/error-handling), aby poznać pełną listę kodów statusu i formatów odpowiedzi.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.enrow.io/email/verify/bulk?id=9d4fa0ed-f76b-409f-bee4-d5468ebda70e' \
    --header 'x-api-key: YOUR_API_KEY'
  ```

  ```javascript Node.js theme={null}
  const batchId = '9d4fa0ed-f76b-409f-bee4-d5468ebda70e';
  const response = await fetch(`https://api.enrow.io/email/verify/bulk?id=${batchId}`, {
    headers: {
      'x-api-key': process.env.ENROW_API_KEY
    }
  });

  const data = await response.json();
  if (data.general.status === 'completed') {
    console.log(`Valid: ${data.stats.valid}/${data.stats.requested}`);
    console.log(data.results);
  }
  ```

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

  batch_id = "9d4fa0ed-f76b-409f-bee4-d5468ebda70e"
  url = f"https://api.enrow.io/email/verify/bulk?id={batch_id}"
  headers = {
      "x-api-key": os.getenv("ENROW_API_KEY")
  }

  response = requests.get(url, headers=headers)
  data = response.json()
  if data["general"]["status"] == "completed":
      print(f"Valid: {data['stats']['valid']}/{data['stats']['requested']}")
  ```
</RequestExample>

<ResponseExample>
  ```json Pomyślna odpowiedź theme={null}
  {
    "general": {
      "id": "9d4fa0ed-f76b-409f-bee4-d5468ebda70e",
      "status": "completed"
    },
    "results": [
      {
        "email": "pam.beesly@dundermifflin.com",
        "index": "195f87c6-376e-4eca-9861-f92935413b0c",
        "qualification": "valid"
      },
      {
        "email": "angela.martin@dundermifflin.com",
        "index": "662784ae-3722-47af-b056-7554e013f73b",
        "qualification": "valid"
      }
    ],
    "stats": {
      "credits_cost": 0.5,
      "requested": 2,
      "valid": 2
    }
  }
  ```

  ```json Odpowiedź z błędem theme={null}
  {
    "message": "..."
  }
  ```
</ResponseExample>

## Kolejne kroki

<CardGroup cols={2}>
  <Card title="Weryfikuj e-maile masowo" icon="layer-group" href="/pl/api-reference/email-verifier/verify-bulk">
    Rozpocznij weryfikację masową i otrzymaj `id` partii.
  </Card>

  <Card title="Weryfikuj pojedynczy e-mail" icon="circle-check" href="/pl/api-reference/email-verifier/verify-single">
    Sprawdź, czy jeden adres e-mail jest poprawny i dostarczalny.
  </Card>

  <Card title="Webhooki" icon="bell" href="/pl/how-webhooks-work">
    Otrzymuj automatyczne powiadomienia o zakończeniu partii zamiast odpytywania.
  </Card>

  <Card title="Credits & billing" icon="coins" href="/pl/credits-billing">
    Zobacz, jak zużywane są kredyty dla każdego endpointu.
  </Card>
</CardGroup>
