> For the complete documentation index, see [llms.txt](https://docs.geeknums.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geeknums.io/api-proverki-pola-i-vozrasta-botim.md).

# API проверки пола и возраста Botim

Проверяйте регистрацию Botim и дополняйте зарегистрированные номера данными о поле и возрасте.

## Параметры продукта

| Параметр                   | Значение                       |
| -------------------------- | ------------------------------ |
| Тип задачи                 | `botim_gender`                 |
| Тип ввода                  | Номер телефона в формате E.164 |
| Минимум корректных записей | 500                            |

{% hint style="info" %}
`estimated_amount` рассчитывается по тарифу аккаунта и является ориентиром стоимости задачи.
{% endhint %}

## Формат ввода

Загрузите `.txt` или `.csv` с одним номером в строке. Рекомендуется E.164.

```
+14155552671+442071838750
```

{% stepper %}
{% step %}

## Создание задачи

`POST https://api.checknumber.ai/v1/tasks`

*Окно терминала*

```bash
curl --location 'https://api.checknumber.ai/v1/tasks' \--header 'X-API-Key: YOUR_API_KEY' \--form 'file=@"./numbers.txt"' \--form 'task_type="botim_gender"'
```

API возвращает ID задачи. Сохраните его для опроса статуса.

### Ответ загрузки

```json
{  "task_id": "d4g8o46p2jvh04o9uolg",  "status": "pending",  "total": 500,  "estimated_amount": {    "amount": "0.350000",    "currency": "USD"  },  "message": "Task created successfully"}
```

{% endstep %}

{% step %}

## Проверка статуса

`POST https://api.checknumber.ai/v1/gettasks`

*Окно терминала*

```bash
curl --location 'https://api.checknumber.ai/v1/gettasks' \--header 'X-API-Key: YOUR_API_KEY' \--form 'task_id="d4g8o46p2jvh04o9uolg"'
```

Опрашивайте до `status=exported`. `pending` и `processing` не означают завершение.

### Ответ при обработке

```json
{  "task_id": "d4g8o46p2jvh04o9uolg",  "status": "processing",  "total": 500,  "success": 250,  "failure": 0}
```

### Ответ после экспорта

```json
{  "task_id": "d4g8o46p2jvh04o9uolg",  "status": "exported",  "total": 500,  "success": 500,  "failure": 0,  "result_url": "https://example-link-to-results.zip",  "actual_amount": {    "amount": "0.350000",    "currency": "USD"  }}
```

{% endstep %}
{% endstepper %}

## Поля результата

| Поле                | Описание                                                   | Пример                  |
| ------------------- | ---------------------------------------------------------- | ----------------------- |
| `number` / `Number` | Входной номер. В CSV — `number`, в XLSX — `Number`.        | +14155552671            |
| `activated`         | Обнаружен ли аккаунт для номера.                           | yes / no                |
| `gender`            | Определённый пол зарегистрированного аккаунта Botim.       | Male / Female / Unknown |
| `age`               | Определённый возраст или диапазон возраста аккаунта Botim. | 25-34                   |

{% hint style="info" %}
Если аккаунт не найден, возвращается `activated=no`; недоступные поля профиля остаются пустыми.
{% endhint %}

## Обработка файла

Загружайте пакет по `result_url` только после экспорта и сохраняйте имена столбцов.

## Поля ответа

| Поле               | Описание                                          |
| ------------------ | ------------------------------------------------- |
| `created_at`       | Время создания.                                   |
| `updated_at`       | Время последнего обновления.                      |
| `task_id`          | Уникальный ID задачи.                             |
| `status`           | `pending`, `processing`, `exported` или `failed`. |
| `total`            | Число корректных входных значений.                |
| `success`          | Успешно обработанные значения.                    |
| `failure`          | Ошибки обработки.                                 |
| `result_url`       | URL загрузки после экспорта.                      |
| `actual_amount`    | Итоговая сумма, если доступна.                    |
| `estimated_amount` | Оценочная сумма при создании.                     |

## Коды состояния

| Статус | Описание                                                          |
| ------ | ----------------------------------------------------------------- |
| `200`  | Запрос выполнен.                                                  |
| `202`  | Задача создана, применено оценочное списание.                     |
| `400`  | Некорректный файл, неподдерживаемый тип или недостаточно записей. |
| `401`  | API Key отсутствует или недействителен.                           |
| `402`  | Недостаточный баланс.                                             |
| `404`  | Задача не найдена.                                                |
| `413`  | Файл слишком большой.                                             |
| `500`  | Внутренняя ошибка; повторите позже.                               |

## Эксплуатационные заметки

* Задача асинхронная; используйте ID для опроса.
* В минимум входят только корректные нормализованные номера.
* При сбое задачи средства возвращаются автоматически по правилам биллинга.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.geeknums.io/api-proverki-pola-i-vozrasta-botim.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
