Discover/x.com API
live

x.com APIx.com

Fetch posts, engagement metrics, and profile data from any public X (Twitter) account. Two endpoints cover user timelines and profile details.

Endpoints
2
Updated
3mo ago
Try it
Maximum number of posts to return
Pagination cursor from a previous response's next_cursor field
X/Twitter username (without @)
Whether to include retweets: "true" or "false"
api.parse.bot/scraper/a5441c3e-48bc-4f1b-8b42-8fccc7e99d45/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a5441c3e-48bc-4f1b-8b42-8fccc7e99d45/get_user_posts?limit=5&username=elonmusk' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalclick to expand

Get recent posts from a specific X/Twitter user's timeline. Returns post text, engagement metrics, media, quoted tweets, and pagination cursor. Supports filtering retweets.

Input
ParamTypeDescription
limitintegerMaximum number of posts to return
cursorstringPagination cursor from a previous response's next_cursor field
usernamestringX/Twitter username (without @)
include_retweetsstringWhether to include retweets: "true" or "false"
Response
{
  "type": "object",
  "fields": {
    "count": "integer - number of posts returned",
    "posts": "array of post objects with id, text, created_at, engagement metrics, user, media, urls, quoted_tweet",
    "username": "string - the requested username",
    "next_cursor": "string or null - pagination cursor for the next page"
  },
  "sample": {
    "data": {
      "count": 1,
      "posts": [
        {
          "id": "2053824997777457651",
          "url": "https://x.com/OpenAI/status/2053824997777457651",
          "text": "Today we’re launching the OpenAI Deployment Company to help businesses build and deploy AI.",
          "urls": null,
          "user": {
            "id": "4398626122",
            "name": "OpenAI",
            "verified": false,
            "screen_name": "OpenAI",
            "followers_count": 4853752,
            "is_blue_verified": true,
            "profile_image_url": "https://pbs.twimg.com/profile_images/1885410181409820672/ztsaR0JW_normal.jpg"
          },
          "media": null,
          "language": "en",
          "is_pinned": true,
          "created_at": "Mon May 11 13:10:12 +0000 2026",
          "is_retweet": false,
          "view_count": 7776021,
          "quote_count": 1045,
          "reply_count": 667,
          "quoted_tweet": null,
          "retweet_count": 1526,
          "bookmark_count": 6119,
          "favorite_count": 11366,
          "conversation_id": "2053824997777457651",
          "in_reply_to_status_id": null
        }
      ],
      "username": "OpenAI",
      "next_cursor": "DAAHCgABHITAMVr___cLAAIAAAATMjA1MjQ4MDIwMzE3MjI3NDU5MwgAAwAAAAIAAA"
    },
    "status": "success"
  }
}

About the x.com API

The X.com API provides two endpoints — get_user_posts and get_user_profile — for pulling live data from any public X (Twitter) account. get_user_posts returns up to paginated batches of posts with 10+ fields including post text, engagement metrics, media attachments, quoted tweets, and a cursor for pagination. get_user_profile returns account-level data like follower counts, bio, verification status, and account creation date.

Endpoints

The API covers two resources: user timelines and user profiles. get_user_posts accepts a username (without the @ symbol), an optional limit, an optional include_retweets flag ("true" or "false"), and a cursor string for paginating through older posts. Each post object includes id, text, created_at, engagement metrics, media, urls, and a quoted_tweet object when applicable. The next_cursor field in each response can be passed back in subsequent requests to walk through a timeline.

Profile Data

get_user_profile accepts a username and returns a single object with the account's numeric id, display name, screen_name, description (bio), location, created_at date, media_count, verified boolean (legacy blue-check status), url (the user's linked website in t.co form), and a profile_url pointing to the account on x.com.

Scope and Limitations

Both endpoints operate on public accounts only. Search by keyword or hashtag is not available — you must supply a specific username. Retweet filtering through include_retweets lets you strip retweets from timeline results if you only want original posts. Engagement metrics are point-in-time snapshots reflecting the state at the moment of the request.

Common use cases
  • Monitor a brand's posting frequency and engagement metrics from their X timeline
  • Aggregate follower counts and bio data for a list of influencer accounts
  • Filter a user's timeline to original posts only using include_retweets=false
  • Build a competitor analysis feed by polling multiple public account timelines
  • Track media attachments posted by a specific account over time
  • Pull account creation date and verification status for identity research
  • Paginate through a user's full post history using the next_cursor field
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does X (Twitter) have an official developer API?+
Yes. X offers an official API at developer.x.com with multiple access tiers. Free access is limited; paid tiers are required for meaningful read volumes. This Parse API covers public timeline and profile data without requiring your own developer credentials.
What does get_user_posts return for each post?+
Each post object includes the post id, text, created_at timestamp, engagement metrics (likes, reposts, replies, views), media attachments, resolved urls, a user sub-object, and a quoted_tweet object when the post quotes another. The next_cursor field at the response level lets you fetch the next page.
Can I search posts by keyword or hashtag?+
Not currently. The API is scoped to specific user timelines and profiles — it requires a username and does not support keyword or hashtag search. You can fork this API on Parse and revise it to add a search endpoint targeting public search results.
Does the API return data from private or protected accounts?+
No. Both endpoints return data only from public accounts. Posts and profile information for protected accounts are not accessible. The API covers any publicly visible X profile given its username.
Is direct message or notification data available?+
Not currently. The API covers public-facing timelines (get_user_posts) and public profile metadata (get_user_profile). DMs, notifications, and bookmarks require authenticated user-level access. You can fork this API on Parse and revise it to add endpoints that handle authenticated access if your use case requires it.
Page content last updated . Spec covers 2 endpoints from x.com.
Related APIs in Social MediaSee all →
xiaohongshu.com API
Retrieve detailed post content and user profile information from Xiaohongshu, including captions, images, engagement metrics, and creator details. Access public note data and creator profiles to research trending content and user activity on the platform.
servers-frontend.fivem.net API
Retrieve live details for a FiveM server by its CFX join code, including status, player list, resources, configuration variables, owner info, and connection endpoints.
tokscript.com API
Fetch timestamped transcripts of TikTok videos along with video metadata, author information, and engagement statistics to analyze content and search by spoken words. Get accurate speech-to-text conversions with precise timing for every segment in a video.
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
op.gg API
Look up detailed League of Legends and TFT player statistics, match history, and champion performance data to analyze gameplay and track competitive standings. Search summoner profiles, review leaderboards, and monitor how specific champions perform across different skill levels.
metacareers.com API
Search and browse Meta job openings across all departments and locations. Filter by keyword, experience level, or role category — including University Graduate and AR/VR specializations — and retrieve comprehensive details for each listing, including job description, requirements, salary range, and application link.
guba.eastmoney.com API
Access Chinese stock discussion posts and comments from Eastmoney's community platform to monitor investor sentiment, search board discussions, and retrieve detailed post information and stock board metadata. Get real-time insights into what traders are discussing about specific stocks through posts, replies, and board analytics.
library.tiktok.com API
Search TikTok's Commercial Content Library to discover ads by company name or keyword, then view detailed information like creative format, scheduling dates, audience targeting, and video thumbnails. Monitor competitor advertising strategies and track ad campaigns across supported regions.
X.com (Twitter) API – Posts & Profiles · Parse