Twitter (X) API

Preview

Public X (formerly Twitter) profiles, posts, replies, followers and search with stable schemas.

Base URLhttps://api.endpointry.com/v1/twitter

7 endpoints · 10–15 points per call

  • Authenticate with your single platform key: Authorization: Bearer
  • Every success response is { meta, data }
  • Errors are RFC 9457 problem+json with stable codes
  • Lists paginate through meta.pagination
curl "https://api.endpointry.com/v1/twitter/user?username=NASA" \
  -H "Authorization: Bearer sk_live_..."
200 · application/json
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-11-24T12:00:00.000Z",
    "cache": "MISS"
  },
  "data": {
    "user": {
      "id": "11348282",
      "username": "NASA",
      "name": "NASA",
      "url": "https://x.com/NASA",
      "description": "Making the seemingly impossible, possible. ✨",
      "location": "Pale Blue Dot",
      "website": "http://www.nasa.gov/",
      "created_at": "2007-12-19T20:20:32.000Z",
      "followers": 92131169,
      "following": 115,
      "tweets": 74577,
      "likes": 17122,
      "media": 28263,
      "listed": 96871,
      "verified": true,
      "verified_type": "government",
      "protected": false,
      "profile_image_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
      "profile_banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
      "pinned_tweet_id": null
    }
  }
}

Endpoints

What each one returns, with a live demo on its own page.

Full API reference
  • GET/v1/twitter/user10 points / call

    Get a profile

    Twitter User API

    Public X (Twitter) profiles — bio, location, website, join date, follower and post counts, badge and avatar — by username or id.

  • GET/v1/twitter/user/tweets10 points / call

    Get an account’s posts

    Twitter User Tweets API

    An account’s posts and reposts, newest first, with full text, counts, views and media, page after page.

  • GET/v1/twitter/tweet10 points / call

    Get a post

    Twitter Tweet API

    One post by id — full text including long posts, author, counts, views, media with video files, links and the post it quotes.

  • GET/v1/twitter/tweet/replies10 points / call

    Get a post’s replies

    Twitter Replies API

    The replies to a post, ranked by relevance, recency or likes, each with its author, text and counts.

  • GET/v1/twitter/search15 points / call

    Search posts

    Twitter Search API

    Search public posts on X, latest or top, with full post objects and X’s search operators.

  • GET/v1/twitter/user/followers10 points / call

    Get an account’s followers

    Twitter Followers API

    The accounts that follow an X account, most recent first, each as a full profile.

  • GET/v1/twitter/user/following10 points / call

    Get the accounts an account follows

    Twitter Following API

    The accounts an X account follows, most recent first, each as a full profile.

Ready to build with the Twitter (X) API?

Included in every plan: one subscription and one key cover the whole catalog.