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

# API активности

```
GET https://api.offer18.com/api/m/user_activity
```

### **Общие параметры**

<table data-header-hidden><thead><tr><th></th><th width="202"></th><th></th></tr></thead><tbody><tr><td><strong>Запрос</strong></td><td><strong>Тип</strong></td><td><strong>Описание</strong></td></tr><tr><td>mid</td><td>Целое</td><td>ID аккаунта сети</td></tr><tr><td>api-key</td><td>Строка</td><td>API-ключ сети</td></tr><tr><td>secret-key</td><td>Строка</td><td>Секретный ключ сети</td></tr></tbody></table>

***

### Фильтры

| **Запрос**     | **Тип** | **Описание**                          |
| -------------- | ------- | ------------------------------------- |
| user\_id       | Строка  | Уникальный идентификатор пользователя |
| offer\_id      | Целое   | ID оффера                             |
| affiliate\_id  | Целое   | ID партнёра                           |
| advertiser\_id | Целое   | ID рекламодателя                      |
| product\_id    | Целое   | Идентификатор продукта                |
| tid            | Строка  | Уникальный идентификатор клика        |
| currency       | Строка  | Валюта                                |
| limit          | Целое   | Количество результатов                |
| date\_from     | Строка  | Дата начала                           |
| date\_end      | Строка  | Дата окончания                        |

***

{% code overflow="wrap" %}

```
https://api.offer18.com/api/m/user_activity?mid=0000&secret-key=000000000000000&api-key=0000000000000000&user_id=49382349&offer_id=110001&affiliate_id=11011&advertiser_id=110022&product_id=11100&tid=D-110001-173749323-FG00XGFD-68GS0G&currency=USD&limit=100&date_from=01-03-2024&date_end=30-03-2024
```

{% endcode %}

***

#### Указать поля для просмотра

<table data-header-hidden><thead><tr><th width="180"></th><th width="143"></th><th></th></tr></thead><tbody><tr><td><strong>Запрос</strong></td><td><strong>Тип</strong></td><td><strong>Описание</strong></td></tr><tr><td>fields</td><td>Строка</td><td>registration, deposit, deposit_amount, ftd, ftd_amount, rec_deposit, rec_deposit_amount, bet, bet_amount, win, win_amount, withdrawal, withdrawal_amount, bonus, bonus_amount, ggr, ngr, cr_registration, cr_deposit, cr_registration_deposit, user_id, product_id<br><br>Для дополнительных полей <span data-gb-custom-inline data-tag="emoji" data-code="1f517">🔗</span> <a href="/pages/c5cd60bf393cfe040df1d311d8c64cb375cfe4b3#report-fields">Показать больше</a></td></tr></tbody></table>

{% code overflow="wrap" %}

```
https://api.offer18.com/api/m/user_activity?mid=0000&secret-key=000000000000000&api-key=0000000000000000&fields=tid,offer_name,advertiser,affiliate,advertiser_model,affiliate_model,advertiser_price,clicks,conversion,registration,deposit,deposit_amount,bet,bet_amount,win,win_amount,withdrawal,withdrawal_amount,bonus,bonus_amount,ggr,ngr,coupon_id,cr_registration,cr_deposit,cr_registration_deposit,user_id,product_id,ftd,ftd_amount,rec_deposit,rec_deposit_amount
```

{% endcode %}

### Пример ответа API&#x20;

```json
{
  "status": 200,
  "records": 2,
  "timezone": "+5:30",
  "reports": [
    {
      "TID": "D-110001-173749323-FG00XGFD-68GS0G",
      "Clicks": 0,
      "Coupon": "",
      "User_ID": "a9dcb6",
      "Product_ID": "",
      "Registration_Total": 0,
      "CR_Registration": 0,
      "Deposit_Total": 3,
      "Deposit_Amount": 30,
      "FTD_Total": 1,
      "FTD_Amount": 10,
      "Re_Deposit_Total": 2,
      "Re_Deposit_Amount": 20,
      "CR_Deposit": 0,
      "CR_Registration_Deposit": 0,
      "Bet_Total": 3,
      "Bet_Amount": 27,
      "Win_Total": 3,
      "Win_Amount": 13.5,
      "Withdrawal_Total": 3,
      "Withdrawal_Amount": 10.5,
      "Bonus_Total": 3,
      "Bonus_Amount": 3.6,
      "GGR": 13.5,
      "NGR": 9.9
    }
  ]
}
```


---

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

```
GET https://knowledgebase.offer18.com/ru/igaming/igaming-api/api-aktivnosti.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
