> 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/zh/igaming/igaming-api/huo-dong-api.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       | 字符串    | 用户的唯一 ID |
| offer\_id      | 整数     | Offer ID |
| affiliate\_id  | 整数     | 联盟 ID    |
| advertiser\_id | 整数     | 广告主 ID   |
| product\_id    | 整数     | 产品 ID    |
| tid            | 字符串    | 唯一点击 ID  |
| 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>For additional fields <span data-gb-custom-inline data-tag="emoji" data-code="1f517">🔗</span> <a href="/pages/d9d4155c600d0d3d7c6df1cd9f8ebac54fafa4a3#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
    }
  ]
}
```
