---
description: a single Tweet ID
---

# Single Tweet

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

#### 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 | 1538562625868419072 |

#### Headers

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

{% tabs %}
{% tab title="200: OK Success" %}
```javascript
{
    "data": {
        "id": "1538562625868419072",
        "text": "MINTING IS LIVE!\n\nour minting is going to be FREE for an HOUR, 3 TIMES a day!\nEST 01:00 PM / 09:00 PM / 05:00 AM\n\n300 FREE PASSES PER PHASE! 🔥"
    }
}
```
{% endtab %}

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

{% tabs %}
{% tab title="cURL" %}
```shell
curl --location --request GET 'http://localhost:5001/appgregator/us-central1/twitter/tweet/single-tweet?name=qantor.co.id&connection_name=twitter-1&id=1538562625868419072' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'
```
{% endtab %}

{% tab title="NodeJs + Axios" %}
```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'http://localhost:5001/appgregator/us-central1/twitter/tweet/single-tweet?name=qantor.co.id&connection_name=twitter-1&id=1538562625868419072',
  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 => 'http://localhost:5001/appgregator/us-central1/twitter/tweet/single-tweet?name=qantor.co.id&connection_name=twitter-1&id=1538562625868419072',
  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 %}
