> For the complete documentation index, see [llms.txt](https://docs.looplookup.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.looplookup.com/lookup-api/statistics.md).

# Statistics

This section described how to check Lookup results through the API.

### **Lookup history**

<mark style="color:blue;">`GET`</mark> `https://a.looplookup.com/customer/api/v1/lookup-history/`

#### Query Parameters

| Name             | Type   | Description                                                                                                                                                                                 |
| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| per\_page        | Int    | Items per page, max value is `5000`                                                                                                                                                         |
| page             | Int    | Number of page                                                                                                                                                                              |
| sort             | String | Possible values `desc` or `asc`.                                                                                                                                                            |
| from\_date       | String | Fetch results from a specific date. The date should be in the next format: `2023-12-31` (year - month - day)                                                                                |
| to\_date         | String | Fetch results to a specific date. The date should be in the next format: `2023-12-31` (year - month - day)                                                                                  |
| status\_callback | String | The URL that was used for the lookup callback.                                                                                                                                              |
| search           | String | <p>The custom value can be used to filter results. </p><p>Supported values: </p><p>- phone number</p><p>- phone number region</p><p>- bulk request id</p><p>- lookup request id </p><p></p> |

#### Headers

| Name                                            | Type   | Description      |
| ----------------------------------------------- | ------ | ---------------- |
| Authorization<mark style="color:red;">\*</mark> | String | API Key          |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/json |

{% tabs %}
{% tab title="200: OK Request accepted" %}

```json
{
  "page": 1,
  "num_pages": 10,
  "per_page": 5,
  "count": 50,
  "items": [
    {
      "id": "2BC4FD6A-CE49-439F-81DF-E895C09CA49C",
      "status": "processing",
      "contact": "+13231112233",
      "update_date": "2023-12-31T16:00:00Z",
      "create_date": "2023-12-31T16:00:00Z"
    }
  ]
}
```

{% endtab %}

{% tab title="400: Bad Request Request failed" %}

```json
{
    "success": false,
    "code": 100,
    "message": "Failed description",
}
```

{% endtab %}
{% endtabs %}

### Bulk requests history

<mark style="color:blue;">`GET`</mark> `https://a.looplookup.com/customer/api/v1/lookup-list-history/`

#### Path Parameters

| Name       | Type   | Description                                                                                                                          |
| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| per\_page  | Int    | Items per page, max value is 5000                                                                                                    |
| page       | Int    | Number of page                                                                                                                       |
| sort       | String | Possible values `desc` or `asc`.                                                                                                     |
| from\_date | String | Fetch results from a specific date. The date should be in the next format: `2023-12-31` (year - month - day)                         |
| to\_date   | String | Fetch results to a specific date. The date should be in the next format: `2023-12-31` (year - month - day)                           |
| search     | String | <p>The custom value can be used to filter results. </p><p>Supported values: </p><p>- phone number</p><p>- bulk request id</p><p></p> |

#### Headers

| Name                                            | Type   | Description      |
| ----------------------------------------------- | ------ | ---------------- |
| Authorization<mark style="color:red;">\*</mark> | String | API Key          |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/json |

{% tabs %}
{% tab title="200: OK Request accepted" %}

```json
{
  "page": 1,
  "num_pages": 10,
  "per_page": 5,
  "count": 50,
  "items": [
    {
      "id": "2BC4FD6A-CE49-439F-81DF-E895C09CA49C",
      "count": 30,
      "completed": true,
      "create_date": "2023-12-31T16:00:00Z"
    }
  ]
}
```

{% endtab %}

{% tab title="400: Bad Request Request failed" %}

```json
{
    "success": false,
    "code": 100,
    "message": "Failed description",
}
```

{% endtab %}
{% endtabs %}
