X
What X data is for.
Use X when you need public profiles and creator metadata, posts, videos and catalog records, search and discovery without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
13
Paid only
12
Price floor
2 cr
Use cases
X profile
Call /v1/x/profile when you need a normalized x profile response with the same credit and cache rules as the rest of the catalog.
X public tweet
Call /v1/x/twitter/tweets/{tweetId} when you need a normalized x public tweet response with the same credit and cache rules as the rest of the catalog.
X profile posts
Call /v1/x/posts when you need a normalized x profile posts response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
21 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 13
readyX profile
/v1/x/profile| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public X handle, with or without the leading @. |
curl -s "https://api.cleanfetch.dev/v1/x/profile?username=x" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "x",
"username": "x",
"name": "X",
"description": "The everything app",
"followers": 68000000,
"following": 1,
"posts": 42000,
"verified": true
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformidusernamenamedescriptionlocationfollowersfollowingpostsverifiedprofilePicturebannerwebsitecreatedAtInput notes
- • Protected or suspended accounts return not_found.
- • Tweets and replies are not returned.
- • Paid-only; one request costs 15 credits.
X public tweet
/v1/x/twitter/tweets/{tweetId}| Name | Type | Required | Description |
|---|---|---|---|
| tweetId | string | yes | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/tweets/{tweetId}?tweetId=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 2,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 0.08333333333333333h.
- • A public record that does not exist returns not_found and is charged once.
X profile posts
/v1/x/posts| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/x/posts?username=nasa" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
X post search
/v1/x/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/x/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 25,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get multiple Twitter profiles
/v1/x/twitter/profiles| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | no | Public handle or username. |
| id | string | no | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Twitter profile
/v1/x/twitter/profiles/{handle}| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| by | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Twitter account transparency details
/v1/x/twitter/profiles/{handle}/about| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| by | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/about" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Twitter profile followers
/v1/x/twitter/profiles/{handle}/followers| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| by | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/followers" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 18,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List accounts a Twitter profile follows
/v1/x/twitter/profiles/{handle}/following| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| by | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/following" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 18,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Twitter profile tweets
/v1/x/twitter/profiles/{handle}/tweets| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| limit | string | no | Maximum records to return, from 1 to 20. |
| cursor | string | no | Lookup parameter. |
| includeReplies | string | no | Lookup parameter. |
| includePinned | string | no | Lookup parameter. |
| by | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/tweets" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Search Twitter posts
/v1/x/twitter/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| section | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
| cursor | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Twitter tweet
/v1/x/twitter/tweets| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| trim | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/x/twitter/tweets?url=https%3A%2F%2Fcleanfetch.dev" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "x",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 21
503 · 0 creditsGet Twitter community
/v1/x/twitter/communities
List Twitter community members
/v1/x/twitter/communities/members
Search Twitter communities
/v1/x/twitter/communities/search
List Twitter community tweets
/v1/x/twitter/communities/tweets
Check Twitter follow relationship
/v1/x/twitter/friendships
Get Twitter list
/v1/x/twitter/lists
List followers of a Twitter list
/v1/x/twitter/lists/followers
List members of a Twitter list
/v1/x/twitter/lists/members
List tweets from a Twitter list
/v1/x/twitter/lists/tweets
List follower ids of a Twitter profile
/v1/x/twitter/profiles/{handle}/followers/ids
List verified followers of a Twitter profile
/v1/x/twitter/profiles/{handle}/followers/verified
List following ids of a Twitter profile
/v1/x/twitter/profiles/{handle}/following/ids
List Twitter profile media
/v1/x/twitter/profiles/{handle}/media
List Twitter profile subscriptions
/v1/x/twitter/profiles/{handle}/subscriptions
Get Twitter Space
/v1/x/twitter/spaces
Get Twitter Space stream URL
/v1/x/twitter/spaces/stream
Get multiple tweets
/v1/x/twitter/tweets/batch
List quote tweets of a tweet
/v1/x/twitter/tweets/quotes
List Twitter tweet replies
/v1/x/twitter/tweets/replies
List accounts that retweeted a tweet
/v1/x/twitter/tweets/retweets
Get Twitter tweet transcript
/v1/x/twitter/tweets/transcript
Common X API questions
How many X operations are live?
13 of 34 cataloged operations are live. 21 mapped operations return 503 upstream_not_configured and cost 0 credits.
What does a X call cost?
Live operations range from 2 to 25 credits. 1 is available on the free daily cap and 12 are paid-only. Cache hits cost 0 credits.
Are X responses cached?
Successful responses are cached between 0.08333333333333333h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate X requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.