Docs / Platforms / X34 operations / 13 live / 21 mapped

X

X is exposed through 13 live operations covering public profiles and creator metadata, posts, videos and catalog records, search and discovery. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What X data is for.

Live X capabilities, credit floor, and typical lookup workflows.

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.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

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.

Reference / 34

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 13

ready
GET

X profile

/v1/x/profile
15 creditsPaid only1h cache
NameTypeRequiredDescription
usernamestringyesPublic X handle, with or without the leading @.
Request
curl -s "https://api.cleanfetch.dev/v1/x/profile?username=x" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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

platformidusernamenamedescriptionlocationfollowersfollowingpostsverifiedprofilePicturebannerwebsitecreatedAt

Input notes

  • • Protected or suspended accounts return not_found.
  • • Tweets and replies are not returned.
  • • Paid-only; one request costs 15 credits.
GET

X public tweet

/v1/x/twitter/tweets/{tweetId}
2 credits5/day free0.08333333333333333h cache
NameTypeRequiredDescription
tweetIdstringyesLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/tweets/{tweetId}?tweetId=example" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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.
GET

X profile posts

/v1/x/posts
15 creditsPaid only6h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/x/posts?username=nasa" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Search Twitter by hashtag

/v1/x/twitter/hashtags
15 creditsPaid only6h cache
NameTypeRequiredDescription
hashtagstringyesHashtag without the # prefix.
sectionstringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/hashtags?hashtag=nike" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get multiple Twitter profiles

/v1/x/twitter/profiles
15 creditsPaid only6h cache
NameTypeRequiredDescription
handlestringnoPublic handle or username.
idstringnoNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Twitter profile

/v1/x/twitter/profiles/{handle}
15 creditsPaid only6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
bystringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Twitter account transparency details

/v1/x/twitter/profiles/{handle}/about
15 creditsPaid only6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
bystringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/about" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Twitter profile followers

/v1/x/twitter/profiles/{handle}/followers
18 creditsPaid only6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
bystringnoLookup parameter.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/followers" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List accounts a Twitter profile follows

/v1/x/twitter/profiles/{handle}/following
18 creditsPaid only6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
bystringnoLookup parameter.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/following" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Twitter profile tweets

/v1/x/twitter/profiles/{handle}/tweets
15 creditsPaid only6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
limitstringnoMaximum records to return, from 1 to 20.
cursorstringnoLookup parameter.
includeRepliesstringnoLookup parameter.
includePinnedstringnoLookup parameter.
bystringnoLookup parameter.
labelsstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/profiles/{handle}/tweets" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Twitter tweet

/v1/x/twitter/tweets
15 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
trimstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/x/twitter/tweets?url=https%3A%2F%2Fcleanfetch.dev" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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 credits
GET

Get Twitter community

/v1/x/twitter/communities

503 upstream_not_configured · 0 credits
GET

List Twitter community members

/v1/x/twitter/communities/members

503 upstream_not_configured · 0 credits
GET

List Twitter community tweets

/v1/x/twitter/communities/tweets

503 upstream_not_configured · 0 credits
GET

Check Twitter follow relationship

/v1/x/twitter/friendships

503 upstream_not_configured · 0 credits
GET

Get Twitter list

/v1/x/twitter/lists

503 upstream_not_configured · 0 credits
GET

List followers of a Twitter list

/v1/x/twitter/lists/followers

503 upstream_not_configured · 0 credits
GET

List members of a Twitter list

/v1/x/twitter/lists/members

503 upstream_not_configured · 0 credits
GET

List tweets from a Twitter list

/v1/x/twitter/lists/tweets

503 upstream_not_configured · 0 credits
GET

List follower ids of a Twitter profile

/v1/x/twitter/profiles/{handle}/followers/ids

503 upstream_not_configured · 0 credits
GET

List verified followers of a Twitter profile

/v1/x/twitter/profiles/{handle}/followers/verified

503 upstream_not_configured · 0 credits
GET

List following ids of a Twitter profile

/v1/x/twitter/profiles/{handle}/following/ids

503 upstream_not_configured · 0 credits
GET

List Twitter profile media

/v1/x/twitter/profiles/{handle}/media

503 upstream_not_configured · 0 credits
GET

List Twitter profile subscriptions

/v1/x/twitter/profiles/{handle}/subscriptions

503 upstream_not_configured · 0 credits
GET

Get Twitter Space

/v1/x/twitter/spaces

503 upstream_not_configured · 0 credits
GET

Get Twitter Space stream URL

/v1/x/twitter/spaces/stream

503 upstream_not_configured · 0 credits
GET

Get multiple tweets

/v1/x/twitter/tweets/batch

503 upstream_not_configured · 0 credits
GET

List quote tweets of a tweet

/v1/x/twitter/tweets/quotes

503 upstream_not_configured · 0 credits
GET

List Twitter tweet replies

/v1/x/twitter/tweets/replies

503 upstream_not_configured · 0 credits
GET

List accounts that retweeted a tweet

/v1/x/twitter/tweets/retweets

503 upstream_not_configured · 0 credits
GET

Get Twitter tweet transcript

/v1/x/twitter/tweets/transcript

503 upstream_not_configured · 0 credits
FAQ / X

Common X API questions

Pricing, caching, authentication, and placeholder behavior.
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.

ready