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

# Get Bulk Phone Results

> Retrieve results, status, and stats for a bulk phone number search batch by id

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

```
https://api.enrow.io/phone/bulk?id={batch_id}
```

Retrieve results of a previously submitted bulk phone search. Authenticate every request with your [API key](/authentication) in the `x-api-key` header.

<Info>
  Using a webhook allows you to skip calling this GET endpoint. See [How Webhooks Work](/how-webhooks-work).
</Info>

## Query Parameters

<ParamField query="id" type="string" required>
  The `id` returned from the POST request
</ParamField>

## Response

### 200 — Search finished

<ResponseField name="general" type="object">
  Batch metadata

  <Expandable title="general properties">
    <ResponseField name="id" type="string">
      Batch identifier
    </ResponseField>

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

    <ResponseField name="custom" type="object">
      Custom data passed in the original request
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="stats" type="object">
  Batch statistics

  <Expandable title="stats properties">
    <ResponseField name="credits_cost" type="number">
      Total credits consumed. See [Credits & billing](/credits-billing) for per-endpoint costs.
    </ResponseField>

    <ResponseField name="credits_to_refund" type="number">
      Credits refunded for searches that returned no result. See [Credits & billing](/credits-billing).
    </ResponseField>

    <ResponseField name="requested" type="number">
      Total number of searches requested
    </ResponseField>

    <ResponseField name="found" type="number">
      Number of phone numbers found
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="results" type="array">
  Array of search results

  <Expandable title="Result properties">
    <ResponseField name="index" type="number">
      Position in the original search array
    </ResponseField>

    <ResponseField name="qualification" type="string">
      `found` or `not_found`
    </ResponseField>

    <ResponseField name="number" type="string">
      The phone number (when `found`)
    </ResponseField>

    <ResponseField name="country" type="string">
      ISO 3166-1 Alpha-2 country code (e.g., `"US"`, `"FR"`)
    </ResponseField>

    <ResponseField name="params" type="object">
      The original search parameters
    </ResponseField>
  </Expandable>
</ResponseField>

### 200 — Search ongoing

<ResponseField name="general" type="object">
  `id` and `status: "ongoing"`
</ResponseField>

<ResponseField name="stats" type="object">
  `requested` and `finished` counts
</ResponseField>

### Error Responses

| Code    | Message                                  |
| ------- | ---------------------------------------- |
| **400** | `Missing id in the query params`         |
| **400** | `Could not retrieve bulk search results` |
| **500** | server error                             |

See [Error handling](/error-handling) for the full list of status codes and response formats.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.enrow.io/phone/bulk?id=e3b61122-d6a6-4ea7-b331-9b734682a76a' \
    --header 'x-api-key: YOUR_API_KEY'
  ```

  ```javascript Node.js theme={null}
  const batchId = 'e3b61122-d6a6-4ea7-b331-9b734682a76a';
  const response = await fetch(`https://api.enrow.io/phone/bulk?id=${batchId}`, {
    headers: {
      'x-api-key': process.env.ENROW_API_KEY
    }
  });

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

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

  batch_id = "e3b61122-d6a6-4ea7-b331-9b734682a76a"
  url = f"https://api.enrow.io/phone/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"Found: {data['stats']['found']}/{data['stats']['requested']}")
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "general": {
      "id": "e3b61122-d6a6-4ea7-b331-9b734682a76a",
      "status": "completed"
    },
    "results": [
      {
        "country": "US",
        "index": 0,
        "number": "+15705551234",
        "params": {
          "linkedin_url": "https://www.linkedin.com/in/michael-scott"
        },
        "qualification": "found"
      },
      {
        "country": "US",
        "index": 1,
        "number": "+15705555678",
        "params": {
          "linkedin_url": "https://www.linkedin.com/in/dwight-schrute"
        },
        "qualification": "found"
      }
    ],
    "stats": {
      "credits_cost": 80,
      "credits_to_refund": 0,
      "found": 2,
      "requested": 2
    }
  }
  ```

  ```json Error Response theme={null}
  {
    "message": "..."
  }
  ```
</ResponseExample>

## Next steps

<CardGroup cols={2}>
  <Card title="Find phones in bulk" icon="layer-group" href="/api-reference/phone/find-bulk">
    Submit a new batch of phone number searches.
  </Card>

  <Card title="Get a single result" icon="inbox" href="/api-reference/phone/get-single-result">
    Retrieve the result of a single phone search by id.
  </Card>

  <Card title="Webhooks" icon="bell" href="/how-webhooks-work">
    Get notified automatically when a batch completes.
  </Card>

  <Card title="Credits & billing" icon="coins" href="/credits-billing">
    See how credits are consumed and refunded.
  </Card>
</CardGroup>
