# 用户 API

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

### **通用参数**

<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?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 %}

### 示例 API 响应

```json
{
  "status": "200",
  "data": [
    {
      "offer_id": "111001",
      "affiliate_id": "11012",
      "user_id": "49h3S8",
      "email": "",
      "user_segment": "direct",
      "type": "",
      "address": {
        "city": "North Las Vegas",
        "state": "Las Vegas",
        "country": "US"
      },
      "status": "approved",
      "coupon": [],
      "product_id": "",
      "advertiser_id": "10011",
      "user_attribute": {
        "tid": "D-1111-1712919271-34G126G155G34-WKBNI",
        "adv_sub1": "",
        "adv_sub2": "",
        "adv_sub3": "",
        "adv_sub4": "",
        "adv_sub5": ""
      },
      "currency": "INR",
      "signup_datetime": "2024-04-12 10:54:31",
      "affiliate_payout": "0",
      "advertiser_price": "5",
      "sale": "",
      "payout": "",
      "advertiser_model": "CPR",
      "affiliate_model": "CPR"
    }
  ]
}
```


---

# Agent Instructions: 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/zh/igaming/igaming-api/yong-hu-api.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.
