# mention - User by ID

Returns Tweets mentioning a single user specified by the requested user ID. By default, the most recent ten Tweets are returned per request. Using pagination, up to the most recent 800 Tweets can be retrieved.

#### rate limits

<table><thead><tr><th width="150"></th><th></th></tr></thead><tbody><tr><td><h4>rate limits</h4></td><td><p>App rate limit (Application-only): 450 requests per 15-minute window shared among all users of your app</p><p>User rate limit (User context): 180 requests per 15-minute window per each authenticated user</p></td></tr></tbody></table>

![](https://2592634121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT5HLPrqZhkeNGgJP37dC%2Fuploads%2FKUySmWF0HZvqssQ1bdYq%2FScreen%20Shot%202022-07-12%20at%2012.56.26.png?alt=media\&token=75c16c0e-cba8-4a72-8dbd-6c46767990ab)

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-mention/`

#### Query Parameters

| Name                                               | Type   | Description                                   |
| -------------------------------------------------- | ------ | --------------------------------------------- |
| name<mark style="color:red;">\*</mark>             | String | qantor.co.id                                  |
| connection\_name<mark style="color:red;">\*</mark> | String | twitter-1                                     |
| id<mark style="color:red;">\*</mark>               | String | 1541307718920572928                           |
| pagination\_token                                  | String | 7140dibdnow9c7btw4228a6rl7f3tcwh7rsjcxdo1h261 |

#### Headers

| Name                                        | Type   | Description                      |
| ------------------------------------------- | ------ | -------------------------------- |
| x-api-key<mark style="color:red;">\*</mark> | String | 43c464439b5507293ba7b315c9875907 |

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
{
    "data": [
        {
            "id": "1542718751119925250",
            "text": "testing appgregator api service @RonaldAdrs"
        },
        {
            "id": "1542711952145018880",
            "text": "testing appgregator apis @RonaldAdrs"
        },
        {
            "id": "1542711843378331648",
            "text": "hallo from bot appgregator apis @RonaldAdrs"
        },
        {
            "id": "1542709708250685440",
            "text": "status bots @RonaldAdrs"
        },
        {
            "id": "1542706793469845504",
            "text": "status bot @RonaldAdrs"
        },
        {
            "id": "1542700215173812224",
            "text": "tesLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. @RonaldAdrs"
        },
        {
            "id": "1542699990039941122",
            "text": "hallo from bot appgregator api @RonaldAdrs"
        },
        {
            "id": "1542698875311378432",
            "text": "hallo from bot api @RonaldAdrs"
        },
        {
            "id": "1542545509554204672",
            "text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. @RonaldAdrs"
        },
        {
            "id": "1542542475302432769",
            "text": "Hello World!... @RonaldAdrs"
        }
    ],
    "meta": {
        "next_token": "7140dibdnow9c7btw4228a6rl7f3tcwh7rsjcxdo1h261",
        "result_count": 10,
        "newest_id": "1542718751119925250",
        "oldest_id": "1542542475302432769"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-mention?name=qantor.co.id&connection_name=twitter-1&id=1541307718920572928' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-mention?name=qantor.co.id&connection_name=twitter-1&id=1541307718920572928',
  headers: { 
    'x-api-key': '43c464439b5507293ba7b315c9875907'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-mention?name=qantor.co.id&connection_name=twitter-1&id=1541307718920572928',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: 43c464439b5507293ba7b315c9875907'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}


---

# 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://edrus.gitbook.io/appgregator-api-docs/appgregators/social-media/twitter/api/timelines/mention-user-by-id.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.
