# API de usuario

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

### **Parámetros comunes**

<table data-header-hidden><thead><tr><th></th><th width="202"></th><th></th></tr></thead><tbody><tr><td><strong>Consulta</strong></td><td><strong>Tipo</strong></td><td><strong>Descripción</strong></td></tr><tr><td>mid</td><td>Entero</td><td>ID de cuenta de la red</td></tr><tr><td>api-key</td><td>Cadena</td><td>Clave API de la red</td></tr><tr><td>secret-key</td><td>Cadena</td><td>Clave secreta de la red</td></tr></tbody></table>

***

### Filtros

| **Consulta**   | **Tipo** | **Descripción**      |
| -------------- | -------- | -------------------- |
| user\_id       | Cadena   | ID único del usuario |
| offer\_id      | Entero   | ID de la oferta      |
| affiliate\_id  | Entero   | ID de Afiliado       |
| advertiser\_id | Entero   | ID del anunciante    |
| product\_id    | Entero   | ID del producto      |
| tid            | Cadena   | ID único de clic     |
| currency       | Cadena   | Moneda               |
| limit          | Entero   | Número de resultados |
| date\_from     | Cadena   | Fecha de inicio      |
| date\_end      | Cadena   | Fecha de fin         |

***

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

### Ejemplo de respuesta de la API

```json
{
  "status": "200",
  "data": [
    {
      "offer_id": "111001",
      "affiliate_id": "11012",
      "user_id": "49h3S8",
      "email": "",
      "user_segment": "directo",
      "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/es/igaming/igaming-api/api-de-usuario.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.
