X / Twitter
X uses id, text, created_at, inline author and public_metrics. Author follower counts are separate from post interactions. Media is an array of {type, url} objects; GIFs use animated_gif.
GET /v1/data/twitter/{keyword_path}?start=2026-11-12&end=2026-11-18&limit=100X-API-Key: <YOUR_API_KEY>The keyword path must be active on your account for this source. Continue with cursor only on the same path. See pagination.
Field reference
Section titled “Field reference”All listed keys belong to the response structure. A nullable object contains its child fields only when the object is not null.
| Field | Type | Meaning |
|---|---|---|
source_key |
string |
Source identifier. Use this field to select the correct item schema. |
id |
string |
Native content ID. Keep it as a string and deduplicate within its source. |
created_at |
datetime |
Post publication time in UTC ISO 8601. |
updated_at |
datetime |
UTC timestamp of the stored Echora data version, not necessarily the platform edit time. |
text |
string |
Article or post text. |
source |
string |
Stored X client/source information. |
author |
object |
Inline profile of the account that published the content. |
author.username |
string |
Stored username, without a leading @. |
author.name |
string |
Stored display name. |
author.profile_image_url |
string |
Absolute profile image URL, or an empty string. |
author.public_metrics |
object |
Stored statistics, not real-time counters. Account metrics and content metrics are distinct. |
author.public_metrics.followers_count |
integer |
Stored follower count of the publishing account. |
public_metrics |
object |
Stored statistics, not real-time counters. Account metrics and content metrics are distinct. |
public_metrics.retweet_count |
integer |
Stored number of X retweets/reposts. |
public_metrics.reply_count |
integer |
Stored number of replies. |
public_metrics.like_count |
integer |
Stored number of likes. |
hashtags |
array<string> |
Stored hashtags. |
mentions |
array<string> |
Stored mentioned accounts. |
retweeted_user |
string | null |
Original retweeted account username; may be null. |
retweeted_id |
string | null |
Original retweeted post ID as a string; may be null. |
retweeted_profile_image_url |
string | null |
Absolute original-account avatar URL; may be null or empty. |
is_retweet |
boolean |
Whether the item is a retweet. |
media |
array<object> |
Media objects in source order. May be empty when no media is available. |
media[].type |
string | null |
Stored media type: photo, video, animated_gif on X, or null when unavailable. |
media[].url |
string |
Absolute URL of the original platform post, or of the media asset within a media object. |
sentiment |
string |
Stored Echora sentiment analysis, such as positive, neutral or negative; not a verified platform attribute. |
gender |
string |
Stored profile analysis; may be unknown or empty. Not verified identity information. |
url |
string |
Absolute URL of the original platform post, or of the media asset within a media object. |
Complete response example
Section titled “Complete response example”This response is synthetic. URLs under example.invalid illustrate the format and do not identify downloadable assets.
{ "keyword": { "id": 1, "source": "twitter", "keyword": "Example", "path": "example" }, "data": [ { "source_key": "twitter", "id": "demo-tweet", "created_at": "2026-11-18T00:00:00Z", "updated_at": "2026-11-18T00:00:00Z", "text": "Example tweet.", "source": "", "author": { "username": "example", "name": "Example Author", "profile_image_url": "https://example.invalid/avatar.webp", "public_metrics": { "followers_count": 0 } }, "public_metrics": { "retweet_count": 3, "reply_count": 2, "like_count": 10 }, "hashtags": [], "mentions": [], "retweeted_user": null, "retweeted_id": null, "retweeted_profile_image_url": null, "is_retweet": false, "media": [ { "type": "photo", "url": "https://example.invalid/photo.webp" } ], "sentiment": "neutral", "gender": "", "url": "https://x.com/example/status/demo-tweet" } ], "pagination": { "limit": 100, "has_more": false, "next_cursor": null }}Data semantics
Section titled “Data semantics”Counts are stored observations, not real-time counters. IDs stay strings. updated_at identifies the stored Echora version. Missing strings/arrays may be empty, while optional metadata may be null. Handle unavailable media gracefully.
No item_id, dedupe_key, entities, emotion, lang or derived impression values are added to this public source contract. See response conventions and media URLs.