---
description: Single or multiple ID
---

# by ID and Expanded Pinned Tweet Fields

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/twitter/users/user-by-id-expanded/`

#### 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 | 2621412174,783214,2244994945,6253282,495309159 |

#### Headers

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

{% tabs %}
{% tab title="200: OK Success" %}
```javascript
{
    "data": [
        {
            "pinned_tweet_id": "1540318487050166272",
            "verified": true,
            "created_at": "2014-07-12T08:28:46.000Z",
            "url": "https://t.co/47Be5TxiIu",
            "location": "The Ether",
            "id": "2621412174",
            "profile_image_url": "https://pbs.twimg.com/profile_images/1537438338621157380/TL7Xz9cp_normal.jpg",
            "description": "An Investor / Collector of #NFTs and OG enthusiast.\nCo-Founder and owner of 📦 https://t.co/CZmYIsv8jM @nftboxes\nIG: https://t.co/d6EJ4Qk4Nn",
            "name": "Pranksy 📦",
            "username": "pranksy",
            "entities": {
                "url": {
                    "urls": [
                        {
                            "start": 0,
                            "end": 23,
                            "url": "https://t.co/47Be5TxiIu",
                            "expanded_url": "https://www.nftboxes.io/contact-us",
                            "display_url": "nftboxes.io/contact-us"
                        }
                    ]
                },
                "description": {
                    "urls": [
                        {
                            "start": 78,
                            "end": 101,
                            "url": "https://t.co/CZmYIsv8jM",
                            "expanded_url": "http://NFTBoxes.io",
                            "display_url": "NFTBoxes.io"
                        },
                        {
                            "start": 116,
                            "end": 139,
                            "url": "https://t.co/d6EJ4Qk4Nn",
                            "expanded_url": "http://instagram.com/pranksynft/",
                            "display_url": "instagram.com/pranksynft/"
                        }
                    ],
                    "hashtags": [
                        {
                            "start": 27,
                            "end": 32,
                            "tag": "NFTs"
                        }
                    ],
                    "mentions": [
                        {
                            "start": 102,
                            "end": 111,
                            "username": "nftboxes"
                        }
                    ]
                }
            },
            "protected": false
        },
        {
            "verified": true,
            "created_at": "2007-02-20T14:35:54.000Z",
            "url": "https://t.co/DAtOo6uuHk",
            "location": "everywhere",
            "id": "783214",
            "profile_image_url": "https://pbs.twimg.com/profile_images/1488548719062654976/u6qfBBkF_normal.jpg",
            "description": "What's happening?!",
            "name": "Twitter",
            "username": "Twitter",
            "entities": {
                "url": {
                    "urls": [
                        {
                            "start": 0,
                            "end": 23,
                            "url": "https://t.co/DAtOo6uuHk",
                            "expanded_url": "https://about.twitter.com/",
                            "display_url": "about.twitter.com"
                        }
                    ]
                }
            },
            "protected": false
        },
        {
            "verified": true,
            "created_at": "2013-12-14T04:35:55.000Z",
            "url": "https://t.co/3ZX3TNiZCY",
            "location": "127.0.0.1",
            "id": "2244994945",
            "profile_image_url": "https://pbs.twimg.com/profile_images/1445764922474827784/W2zEPN7U_normal.jpg",
            "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.",
            "name": "Twitter Dev",
            "username": "TwitterDev",
            "entities": {
                "url": {
                    "urls": [
                        {
                            "start": 0,
                            "end": 23,
                            "url": "https://t.co/3ZX3TNiZCY",
                            "expanded_url": "https://developer.twitter.com/en/community",
                            "display_url": "developer.twitter.com/en/community"
                        }
                    ]
                },
                "description": {
                    "hashtags": [
                        {
                            "start": 17,
                            "end": 28,
                            "tag": "TwitterDev"
                        },
                        {
                            "start": 105,
                            "end": 116,
                            "tag": "TwitterAPI"
                        }
                    ]
                }
            },
            "protected": false
        },
        {
            "pinned_tweet_id": "1460324089726320643",
            "verified": true,
            "created_at": "2007-05-23T06:01:13.000Z",
            "url": "https://t.co/8IkCzCDr19",
            "id": "6253282",
            "profile_image_url": "https://pbs.twimg.com/profile_images/1445765299974795279/ExVMkDHG_normal.jpg",
            "description": "Tweets about changes and service issues. Follow @TwitterDev for more.",
            "name": "Twitter API",
            "username": "TwitterAPI",
            "entities": {
                "url": {
                    "urls": [
                        {
                            "start": 0,
                            "end": 23,
                            "url": "https://t.co/8IkCzCDr19",
                            "expanded_url": "https://developer.twitter.com",
                            "display_url": "developer.twitter.com"
                        }
                    ]
                },
                "description": {
                    "mentions": [
                        {
                            "start": 48,
                            "end": 59,
                            "username": "TwitterDev"
                        }
                    ]
                }
            },
            "protected": false
        },
        {
            "verified": true,
            "created_at": "2012-02-17T20:40:28.000Z",
            "url": "https://t.co/UFN8PpMrxw",
            "location": "New York, NY",
            "id": "495309159",
            "profile_image_url": "https://pbs.twimg.com/profile_images/1354493437756592129/sy1a_FXP_normal.jpg",
            "description": "#BlackLivesMatter",
            "name": "Twitter New York City",
            "username": "TwitterNYC",
            "entities": {
                "url": {
                    "urls": [
                        {
                            "start": 0,
                            "end": 23,
                            "url": "https://t.co/UFN8PpMrxw",
                            "expanded_url": "https://careers.twitter.com/content/careers-twitter/en/jobs.html#location=careers-twitter%3Alocation",
                            "display_url": "careers.twitter.com/content/career…"
                        }
                    ]
                },
                "description": {
                    "hashtags": [
                        {
                            "start": 0,
                            "end": 17,
                            "tag": "BlackLivesMatter"
                        }
                    ]
                }
            },
            "protected": false
        }
    ],
    "errors": [
        {
            "resource_type": "tweet",
            "field": "non_public_metrics.impression_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'non_public_metrics.impression_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "non_public_metrics.url_link_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'non_public_metrics.url_link_clicks' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "non_public_metrics.user_profile_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'non_public_metrics.user_profile_clicks' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.impression_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.impression_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.like_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.like_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.reply_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.reply_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.retweet_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.retweet_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.url_link_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.url_link_clicks' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.user_profile_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.user_profile_clicks' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.impression_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.impression_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.like_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.like_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.reply_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.reply_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.retweet_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.retweet_count' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.url_link_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.url_link_clicks' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.user_profile_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1540318487050166272",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.user_profile_clicks' on the Tweet with pinned_tweet_id : [1540318487050166272].",
            "value": "1540318487050166272",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "non_public_metrics.impression_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'non_public_metrics.impression_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "non_public_metrics.url_link_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'non_public_metrics.url_link_clicks' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "non_public_metrics.user_profile_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'non_public_metrics.user_profile_clicks' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.impression_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.impression_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.like_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.like_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.reply_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.reply_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.retweet_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.retweet_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.url_link_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.url_link_clicks' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "organic_metrics.user_profile_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'organic_metrics.user_profile_clicks' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.impression_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.impression_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.like_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.like_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.reply_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.reply_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.retweet_count",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.retweet_count' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.url_link_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.url_link_clicks' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        },
        {
            "resource_type": "tweet",
            "field": "promoted_metrics.user_profile_clicks",
            "parameter": "pinned_tweet_id",
            "resource_id": "1460324089726320643",
            "title": "Field Authorization Error",
            "section": "includes",
            "detail": "Sorry, you are not authorized to access 'promoted_metrics.user_profile_clicks' on the Tweet with pinned_tweet_id : [1460324089726320643].",
            "value": "1460324089726320643",
            "type": "https://api.twitter.com/2/problems/not-authorized-for-field"
        }
    ]
}
```
{% endtab %}

{% tab title="400: Bad Request 400 Bad Request - Too Many Users" %}
```javascript
{
    "errors": [
        {
            "parameters": {
                "ids": [
                    "783214,2244994945,6253282,495309159,172020392,95731075,2548985366,277761722,17874544,300392950,87532773,372575989,3260518932,121291606,158079127,3282859598,103770785,586198217,216531294,1526228120,222953824,1603818258,2548979088,2244983430,1347713256,376825877,6844292,738118115595165697,738118487122419712,218984871,2550997820,1159458169,2296297326,234489024,3873936134,2228891959,791978718,427475002,1194267639100723200,1168976680867762177,905409822,738115375477362688,88723966,1049385226424786944,284201599,1705676064,2861317614,3873965293,1244731491088809984,4172587277,717465714357972992,862314223,2551000568,2548977510,1159274324,783214,2244994945,6253282,495309159,172020392,95731075,2548985366,277761722,17874544,300392950,87532773,372575989,3260518932,121291606,158079127,3282859598,103770785,586198217,216531294,1526228120,222953824,1603818258,2548979088,2244983430,1347713256,376825877,6844292,738118115595165697,738118487122419712,218984871,2550997820,1159458169,2296297326,234489024,3873936134,2228891959,791978718,427475002,1194267639100723200,1168976680867762177,905409822,738115375477362688,88723966,1049385226424786944,284201599,1705676064,2861317614,3873965293,1244731491088809984,4172587277,717465714357972992,862314223,2551000568,2548977510,1159274324"
                ]
            },
            "message": "size [110] is not between 1 and 100"
        }
    ],
    "title": "Invalid Request",
    "detail": "One or more parameters to your request was invalid.",
    "type": "https://api.twitter.com/2/problems/invalid-request"
}
```
{% endtab %}

{% tab title="200: OK User not found" %}
```javascript
{
    "errors": [
        {
            "detail": "Could not find user with id: [2244994946].",
            "title": "Not Found Error",
            "resource_type": "user",
            "parameter": "id",
            "value": "2244994946",
            "type": "https://api.twitter.com/2/problems/resource-not-found"
        }
    ]
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}
```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/twitter/users/user-by-id-expanded?name=qantor.co.id&connection_name=twitter-1&id=2621412174,783214,2244994945,6253282,495309159' \
--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/users/user-by-id-expanded?name=qantor.co.id&connection_name=twitter-1&id=2621412174,783214,2244994945,6253282,495309159',
  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
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/twitter/users/user-by-id-expanded?name=qantor.co.id&connection_name=twitter-1&id=2621412174,783214,2244994945,6253282,495309159',
  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 %}

{% tab title="Python + http.client" %}
```python
import http.client

conn = http.client.HTTPSConnection("us-central1-appgregator.cloudfunctions.net")
payload = ''
headers = {
  'x-api-key': '43c464439b5507293ba7b315c9875907'
}
conn.request("GET", "/twitter/users/user-by-id-expanded?name=qantor.co.id&connection_name=twitter-1&id=2621412174,783214,2244994945,6253282,495309159", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```
{% endtab %}
{% endtabs %}
