User by ID and date range
UTC timestamp (from most recent 7 days) from which the Tweets will be provided.
Format DateTime : YYYY-MM-DDTHH:mm:ssZ
GET
http://localhost:5001/appgregator/us-central1/twitter/timelines/tweet/user-by-date/
Query Parameters
Name
Type
Description
name*
String
qantor.co.id
connection_name*
String
twitter-1
id*
String
2244994945
start_time*
dateTime
2022-06-21T17:03:48.000Z
end_time*
dateTime
2022-06-28T20:00:00.000Z
pagination_token
String
7140dibdnow9c7btw4228a72l9ekw13jpnshz3nrxb6eq
Headers
Name
Type
Description
x-api-key*
String
43c464439b5507293ba7b315c9875907
{
"data": [
{
"text": "🗽Are you in the NYC area?\n\nJoin the TwitterDev team for an exciting in-person meetup next week! 🤝\n\nLearn more 👇\nhttps://t.co/decdoj4Ysi",
"possibly_sensitive": false,
"author_id": "2244994945",
"entities": {
"annotations": [
{
"start": 17,
"end": 19,
"probability": 0.9412,
"type": "Place",
"normalized_text": "NYC"
},
{
"start": 37,
"end": 46,
"probability": 0.5749,
"type": "Organization",
"normalized_text": "TwitterDev"
}
],
"urls": [
{
"start": 112,
"end": 135,
"url": "https://t.co/decdoj4Ysi",
"expanded_url": "https://developer.twitter.com/en/blog/community/2022/twitterdev-connect-new-york-meetup",
"display_url": "developer.twitter.com/en/blog/commun…"
}
]
},
"lang": "en",
"id": "1541813679884206080",
"created_at": "2022-06-28T16:00:01.000Z",
"source": "TweetDeck"
},
{
"text": "📅 Join us on Tuesday, June 28 | 5:30 pm ET / 2:30 pm PT for a session on building bots with the Twitter API. We will be live on https://t.co/oY79pMjR3F https://t.co/2J0xHUnx56",
"possibly_sensitive": false,
"author_id": "2244994945",
"entities": {
"annotations": [
{
"start": 97,
"end": 107,
"probability": 0.4104,
"type": "Product",
"normalized_text": "Twitter API"
}
],
"urls": [
{
"start": 128,
"end": 151,
"url": "https://t.co/oY79pMjR3F",
"expanded_url": "https://twitch.tv/twitterdev",
"display_url": "twitch.tv/twitterdev"
},
{
"start": 152,
"end": 175,
"url": "https://t.co/2J0xHUnx56",
"expanded_url": "https://twitter.com/TwitterDev/status/1541512325479268353/photo/1",
"display_url": "pic.twitter.com/2J0xHUnx56",
"media_key": "3_1541511425159417856"
}
]
},
"attachments": {
"media_keys": [
"3_1541511425159417856"
]
},
"lang": "en",
"id": "1541512325479268353",
"created_at": "2022-06-27T20:02:32.000Z",
"source": "Twitter Web App"
},
{
"text": "👋 Join @ashevat and @alanbenlee Wednesday, June 29 | 6:05pm ET / 3:05pm PT for this month’s town hall conversation on the recent updates to the Twitter Developer Platform. 📅 🚀\n\nhttps://t.co/XXFduTmnUJ",
"possibly_sensitive": false,
"entities": {
"mentions": [
{
"start": 7,
"end": 15,
"username": "ashevat",
"id": "108209516"
},
{
"start": 20,
"end": 31,
"username": "alanbenlee",
"id": "1324848235714736129"
}
],
"annotations": [
{
"start": 145,
"end": 151,
"probability": 0.5237,
"type": "Organization",
"normalized_text": "Twitter"
}
],
"urls": [
{
"start": 177,
"end": 200,
"url": "https://t.co/XXFduTmnUJ",
"expanded_url": "https://twitter.com/i/spaces/1LyxBoaEBRkKN",
"display_url": "twitter.com/i/spaces/1LyxB…"
}
]
},
"author_id": "2244994945",
"lang": "en",
"id": "1540485228774297600",
"created_at": "2022-06-25T00:01:14.000Z",
"source": "Twitter Web App"
},
{
"text": "In honor of #Pride month, join @i_am_daniele, @queermachines and @hbeckpdx on Tuesday, June 28 | 3pm ET / 12pm PT on the topic of “Including your Authentic Self into Building as a Developer” #Pride2022\n\nhttps://t.co/E4S9SH1o0s",
"possibly_sensitive": false,
"entities": {
"mentions": [
{
"start": 31,
"end": 44,
"username": "i_am_daniele",
"id": "1020108704811606016"
},
{
"start": 46,
"end": 60,
"username": "queermachines",
"id": "924560250228826113"
},
{
"start": 65,
"end": 74,
"username": "hbeckpdx",
"id": "91407496"
}
],
"urls": [
{
"start": 203,
"end": 226,
"url": "https://t.co/E4S9SH1o0s",
"expanded_url": "https://twitter.com/i/spaces/1ypJdEwlrjVxW",
"display_url": "twitter.com/i/spaces/1ypJd…"
}
],
"hashtags": [
{
"start": 12,
"end": 18,
"tag": "Pride"
},
{
"start": 191,
"end": 201,
"tag": "Pride2022"
}
]
},
"author_id": "2244994945",
"lang": "en",
"id": "1540406300533612544",
"created_at": "2022-06-24T18:47:36.000Z",
"source": "Twitter Web App"
},
{
"text": "In all the excitement of Chirp, we didn’t want to forget to mention that we’ve made some updates to our website to make it easier for developers to access resources needed to inspire and build successfully with our platform. 💻 #Chirp \n\nLearn more → https://t.co/4ZAPr2qeFx",
"possibly_sensitive": false,
"author_id": "2244994945",
"lang": "en",
"entities": {
"urls": [
{
"start": 249,
"end": 272,
"url": "https://t.co/4ZAPr2qeFx",
"expanded_url": "https://developer.twitter.com/en/blog/industry-team-news/2022/chirp-developer-conference-challenge.html",
"display_url": "developer.twitter.com/en/blog/indust…"
}
],
"hashtags": [
{
"start": 227,
"end": 233,
"tag": "Chirp"
}
]
},
"id": "1539382664746020864",
"created_at": "2022-06-21T23:00:02.000Z",
"source": "Twitter Web App"
},
{
"text": "Want to know more about the Chirp Developer Challenge and our Chirp conference? #Chirp #ChirpDevChallenge\n\nJoin us tomorrow to discuss! ⬇️\nhttps://t.co/Uu1afT44bH https://t.co/eNveGtIXQ0",
"possibly_sensitive": false,
"author_id": "2244994945",
"lang": "en",
"entities": {
"urls": [
{
"start": 139,
"end": 162,
"url": "https://t.co/Uu1afT44bH",
"expanded_url": "https://twitter.com/i/spaces/1OwxWzQzyPRJQ",
"display_url": "twitter.com/i/spaces/1OwxW…"
},
{
"start": 163,
"end": 186,
"url": "https://t.co/eNveGtIXQ0",
"expanded_url": "https://twitter.com/TwitterDev/status/1537856041274093568",
"display_url": "twitter.com/TwitterDev/sta…"
}
],
"hashtags": [
{
"start": 80,
"end": 86,
"tag": "Chirp"
},
{
"start": 87,
"end": 105,
"tag": "ChirpDevChallenge"
}
]
},
"id": "1539352792929669120",
"created_at": "2022-06-21T21:01:20.000Z",
"source": "Twitter Web App",
"referenced_tweets": [
{
"type": "quoted",
"id": "1537856041274093568"
}
]
},
{
"text": "📣 Introducing the Chirp Developer Challenge: Help us push the boundaries of what’s possible on our platform by creating an app with the Twitter API v2. #Chirp #ChirpDevChallenge\n\nJoin the challenge: https://t.co/w0B5VGQxI9 https://t.co/gtuHSxiVza",
"possibly_sensitive": false,
"author_id": "2244994945",
"entities": {
"annotations": [
{
"start": 137,
"end": 147,
"probability": 0.5447,
"type": "Product",
"normalized_text": "Twitter API"
}
],
"urls": [
{
"start": 199,
"end": 222,
"url": "https://t.co/w0B5VGQxI9",
"expanded_url": "http://chirpdevchallenge.devpost.com?ref=os-tw-DevChallenge&utm_source=tw&utm_medium=os&utm_campaign=DevChallenge&utm_content=organic-tweet",
"display_url": "chirpdevchallenge.devpost.com/?ref=os-tw-Dev…"
},
{
"start": 223,
"end": 246,
"url": "https://t.co/gtuHSxiVza",
"expanded_url": "https://twitter.com/TwitterDev/status/1539322936439451649/photo/1",
"display_url": "pic.twitter.com/gtuHSxiVza",
"media_key": "3_1539322833066553348"
}
],
"hashtags": [
{
"start": 152,
"end": 158,
"tag": "Chirp"
},
{
"start": 159,
"end": 177,
"tag": "ChirpDevChallenge"
}
]
},
"attachments": {
"media_keys": [
"3_1539322833066553348"
]
},
"lang": "en",
"id": "1539322936439451649",
"created_at": "2022-06-21T19:02:41.000Z",
"source": "Twitter Web App"
},
{
"text": "🎉 Chirp is returning to the nest! We’re bringing back our Chirp Developer Conference on Nov 16 in San Francisco and online. Registration opens soon. #Chirp\n\nLearn more → https://t.co/4ZAPr2qeFx https://t.co/TEFaDlMRuE",
"possibly_sensitive": false,
"author_id": "2244994945",
"entities": {
"annotations": [
{
"start": 99,
"end": 111,
"probability": 0.9665,
"type": "Place",
"normalized_text": "San Francisco"
}
],
"urls": [
{
"start": 170,
"end": 193,
"url": "https://t.co/4ZAPr2qeFx",
"expanded_url": "https://developer.twitter.com/en/blog/industry-team-news/2022/chirp-developer-conference-challenge.html",
"display_url": "developer.twitter.com/en/blog/indust…"
},
{
"start": 194,
"end": 217,
"url": "https://t.co/TEFaDlMRuE",
"expanded_url": "https://twitter.com/TwitterDev/status/1539293015264489474/video/1",
"display_url": "pic.twitter.com/TEFaDlMRuE",
"media_key": "7_1539292941528621058"
}
],
"hashtags": [
{
"start": 149,
"end": 155,
"tag": "Chirp"
}
]
},
"attachments": {
"media_keys": [
"7_1539292941528621058"
]
},
"lang": "en",
"id": "1539293015264489474",
"created_at": "2022-06-21T17:03:48.000Z",
"source": "Twitter for iPhone"
}
],
"meta": {
"result_count": 8,
"newest_id": "1541813679884206080",
"oldest_id": "1539293015264489474"
}
}
{
"errors": [
{
"value": "224499494500",
"detail": "Could not find user with id: [224499494500].",
"title": "Not Found Error",
"resource_type": "user",
"parameter": "id",
"resource_id": "224499494500",
"type": "https://api.twitter.com/2/problems/resource-not-found"
}
]
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-by-date?name=qantor.co.id&connection_name=twitter-1&id=2244994945&start_time=2022-06-21T17:03:48.000Z&end_time=2022-06-28T20:00:00.000Z' \
--header 'x-api-key: 43c464439b5507293ba7b315c9875907'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-by-date?name=qantor.co.id&connection_name=twitter-1&id=2244994945&start_time=2022-06-21T17:03:48.000Z&end_time=2022-06-28T20:00:00.000Z',
headers: {
'x-api-key': '43c464439b5507293ba7b315c9875907'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/twitter/timelines/tweet/user-by-date?name=qantor.co.id&connection_name=twitter-1&id=2244994945&start_time=2022-06-21T17:03:48.000Z&end_time=2022-06-28T20:00:00.000Z',
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;
Last updated