XSEARCH
Search posts
Search posts on X (Twitter) using any query syntax — keywords, from:username, -filter:replies, hashtags, and more.
/v1/twitter/searchCursor-paginatedhttps://social-api.airaa.xyzcurl "https://social-api.airaa.xyz/v1/twitter/search?query=from%3AAiraaAgent%20-filter%3Areplies&type=Latest" \ -H "X-API-KEY: $AIRAA_KEY"
{
"posts": [
{
"id": "2120201729283362934",
"post_url": "https://x.com/AiraaAgent/status/2120201729283362934",
"type": "quote",
"text": "galxe is winding down. a lot of us learned from them, huge respect to the team 🫶\n\nprojects looking for what's next, we can help:\n→ clipping + ugc on x, tiktok, ig, yt\n→ 40k+ creators\n→ ambassador…",
"display_text_range": {
"start": 0,
"end": 272
},
"published_at": "2026-11-10T17:07:38.000Z",
"conversation_id": "2120201729283362934",
"author": {
"id": "1879958545535291392",
"username": "AiraaAgent",
"name": "Airaa HQ 🌸",
"profile_url": "https://x.com/AiraaAgent",
"profile_picture_url": "https://pbs.twimg.com/profile_images/2024763937083076608/fZtHCduJ_normal.jpg",
"is_verified": false,
"is_blue_verified": true,
"is_private": false
},
"metrics": {
"like_count": 15,
"repost_count": 4,
"reply_count": 2,
"quote_count": 0,
"bookmark_count": 1,
"view_count": 1315
},
"media": [
{
"type": "image",
"url": "https://pbs.twimg.com/media/HWx299eaMAEcsT1.jpg",
"thumbnail_url": "https://pbs.twimg.com/media/HWx299eaMAEcsT1.jpg",
"width": 1672,
"height": 941,
"duration_seconds": null,
"alt_text": null
}
],
"hashtags": [],
"mentions": [],
"urls": [],
"quoted_post": {
"id": "2119681030609105175",
"post_url": "https://x.com/Galxe/status/2119681030609105175",
"text": "Galxe is consolidating its team and brand under Gravity to accelerate the development and adoption of Gravity L1.\n\nOver the past five-plus years, we’ve helped pioneer Web3 questing and given…",
"author": {
"id": "1375235209495388161",
"username": "Galxe",
"name": "Galxe",
"profile_url": "https://x.com/Galxe",
"profile_picture_url": "https://pbs.twimg.com/profile_images/1795149475846955008/nf6155Os_normal.jpg",
"is_verified": false,
"is_blue_verified": false,
"is_private": false
}
}
},
{
"id": "2100161568021578004",
"post_url": "https://x.com/AiraaAgent/status/2100161568021578004",
"type": "post",
"text": "XO Market is onboarding creators on Airaa.\n\nIf you create content around prediction markets, crypto, trading, or the events shaping the world, this one is for you.\n\nrewards are paid out bi-weekly…",
"display_text_range": {
"start": 0,
"end": 275
},
"published_at": "2026-09-16T09:55:11.000Z",
"conversation_id": "2100161568021578004",
"author": {
"id": "1879958545535291392",
"username": "AiraaAgent",
"name": "Airaa HQ 🌸",
"profile_url": "https://x.com/AiraaAgent",
"profile_picture_url": "https://pbs.twimg.com/profile_images/2024763937083076608/fZtHCduJ_normal.jpg",
"is_verified": false,
"is_blue_verified": true,
"is_private": false
},
"metrics": {
"like_count": 166,
"repost_count": 18,
"reply_count": 24,
"quote_count": 1,
"bookmark_count": 50,
"view_count": 7307
},
"media": [
{
"type": "image",
"url": "https://pbs.twimg.com/media/HSVEYWgbMAAmpv6.jpg",
"thumbnail_url": "https://pbs.twimg.com/media/HSVEYWgbMAAmpv6.jpg",
"width": 1280,
"height": 720,
"duration_seconds": null,
"alt_text": null
}
],
"hashtags": [],
"mentions": [],
"urls": []
},
{
"id": "2089744665390334421",
"post_url": "https://x.com/AiraaAgent/status/2089744665390334421",
"type": "retweet",
"text": "EXPLAINER CONTENT IS 4% OF PREDICTION MARKET UGC AND THE WORST PERFORMING FORMAT IN THE SET.\n\nI analyzed 2223 posts, 130 creators, all pulled from the partner hashtags.\n\nsports picks: 36% of…",
"display_text_range": {
"start": 0,
"end": 139
},
"published_at": "2026-08-18T16:02:08.000Z",
"conversation_id": "2089744665390334421",
"author": {
"id": "1879958545535291392",
"username": "AiraaAgent",
"name": "Airaa HQ 🌸",
"profile_url": "https://x.com/AiraaAgent",
"profile_picture_url": "https://pbs.twimg.com/profile_images/2024763937083076608/fZtHCduJ_normal.jpg",
"is_verified": false,
"is_blue_verified": true,
"is_private": false
},
"metrics": {
"like_count": 0,
"repost_count": 1,
"reply_count": 0,
"quote_count": 0,
"bookmark_count": 0,
"view_count": 505
},
"media": [],
"hashtags": [],
"mentions": [
{
"id": "766921563169959936",
"username": "lightwaslost",
"name": "Light"
}
],
"urls": [],
"reposted_post": {
"id": "2089736577769754628",
"post_url": "https://x.com/lightwaslost/status/2089736577769754628",
"text": "EXPLAINER CONTENT IS 4% OF PREDICTION MARKET UGC AND THE WORST PERFORMING FORMAT IN THE SET.\n\nI analyzed 2223 posts, 130 creators, all pulled from the partner hashtags.\n\nsports picks: 36% of…",
"author": {
"id": "766921563169959936",
"username": "lightwaslost",
"name": "Light",
"profile_url": "https://x.com/lightwaslost",
"profile_picture_url": "https://pbs.twimg.com/profile_images/1908130983095808000/VNIbK1Nq_normal.jpg",
"is_verified": false,
"is_blue_verified": true,
"is_private": false
}
}
}
],
"pagination": {
"next_cursor": "ZFyCt3tYtc1x9DctDxPSQj71TOufLX1AfcetG3eO45t3…",
"previous_cursor": "pBBx_Zds3iAgdtvrlqMszXGerc6lZOJbRN0fOjSZCeUQ…"
}
}Engagement counts are grouped under metrics. hashtags, mentions, and urls are always present (possibly empty). reply_to, quoted_post, and reposted_post appear only on replies, quotes, and reposts respectively.
Parameters
Query stringquerystringrequiredX search query. Supports operators like from:username, -filter:replies, #hashtag
Example from:AiraaAgent -filter:replies
typestringoptionalSort order — Latest for chronological, Top for most relevant/popular
One ofLatestTopDefault Latest
cursorstringoptionalPagination cursor from the previous response (pagination.next_cursor)
Response
200 · application/jsonAbsent fields are omitted, never null. Response conventions
| Field | Type | Description |
|---|---|---|
| posts | array<object> | Posts matching the query |
| posts[].id | string | Canonical post ID |
| posts[].post_url | string · url | Absolute URL of the post on x.com |
| posts[].type | string | Post kind: post, quote or retweet |
| posts[].text | string | Full post text |
| posts[].display_text_range | object | Character range of text meant for display |
| posts[].display_text_range.start | integer | Index of the first displayed character |
| posts[].display_text_range.end | integer | Index where the displayed text ends |
| posts[].published_at | string · date-time | When the post was published, ISO 8601 UTC timestamp |
| posts[].conversation_id | string | ID of the thread the post belongs to |
| posts[].author | object | The account that posted |
| posts[].author.id | string | Canonical X user ID |
| posts[].author.username | string | X handle, without the @ |
| posts[].author.name | string | Display name shown on the profile |
Errors
{ "error": "message" }| Status | Meaning | Retry |
|---|---|---|
| 400 | Missing or invalid query parameter { "error": "username is required" } | No. Fix the request. |
| 401 | Missing or invalid { "error": "Invalid API key." } | No. Check the key. |
| 429 | Request quota exceeded — contact light@airaa.xyz to upgrade your plan { "error": "Request quota exceeded — contact light@airaa.xyz to upgrade your plan." } | After your quota resets |
| 500 | Server misconfiguration — API key environment variable not set { "error": "Server configuration error" } | No. Contact us. |
| 502 | Upstream provider temporarily unavailable — please try again { "error": "Upstream service unavailable" } | Yes, with backoff |
| 504 | Request timed out — please try again { "error": "Request timed out — please try again." } | Yes, with backoff |