Twitter / X
GET /v1/twitter/user-tweets

Twitter/X User Tweets API

List recent tweets from a Twitter/X profile — text, author, likes, reposts, hashtags, and media. Flat 2 credits per call.

2 credits per request
TL;DR
List recent tweets from a Twitter/X profile — text, author, likes, reposts, hashtags, and media. Flat 2 credits per call. The Twitter/X User Tweets API (Twitter / X) is a single authenticated GET request to /v1/twitter/user-tweets that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the Twitter/X User Tweets API?

Pass a profile URL or @handle and get recent public tweets as clean JSON. Each result includes the tweet URL and id, full text, language, publish time, the author (username, display name, followers, verified, avatar), engagement (likes, replies, retweets, quotes when available), reply/retweet flags, hashtags, and media URLs when present. Flat 2 credits per call. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh.

What you get

  • Bulk list of user tweets with metadata
  • Dates, URLs, and engagement fields when available
  • Configurable result limit
  • Ideal for monitoring and content pipelines

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/twitter/user-tweets?url=https%3A%2F%2Fx.com%2FNASA" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "handle": "elonmusk",
    "totalReturned": 5,
    "tweets": [
      {
        "platform": "twitter",
        "url": "https://x.com/elonmusk/status/1519480761749016577",
        "id": "1519480761749016577",
        "text": "Next I’m buying Coca-Cola to put the cocaine back in",
        "lang": "en",
        "publishedAt": "Thu Apr 28 00:56:58 +0000 2022",
        "author": {
          "username": "elonmusk",
          "displayName": "Elon Musk",
          "url": "https://x.com/elonmusk",
          "followers": 241067682,
          "verified": true,
          "profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
        },
        "engagement": {
          "likes": 4212271,
          "replies": 168116,
          "retweets": 580111,
          "quotes": 168166
        },
        "isReply": false,
        "isRetweet": false
      },
      {
        "platform": "twitter",
        "url": "https://x.com/elonmusk/status/1812258574049157405",
        "id": "1812258574049157405",
        "text": "https://t.co/6eOgN9UdOy",
        "lang": "zxx",
        "publishedAt": "Sat Jul 13 22:51:28 +0000 2024",
        "author": {
          "username": "elonmusk",
          "displayName": "Elon Musk",
          "url": "https://x.com/elonmusk",
          "followers": 241067682,
          "verified": true,
          "profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
        },
        "engagement": {
          "likes": 3186497,
          "replies": 69142,
          "retweets": 373339,
          "quotes": 40417
        },
        "isReply": false,
        "isRetweet": false,
        "media": [
          "https://pbs.twimg.com/media/GSZvkScbIAAwHQi.jpg"
        ]
      },
      {
        "platform": "twitter",
        "url": "https://x.com/elonmusk/status/1518623997054918657",
        "id": "1518623997054918657",
        "text": "I hope that even my worst critics remain on Twitter, because that is what free speech means",
        "lang": "en",
        "publishedAt": "Mon Apr 25 16:12:30 +0000 2022",
        "author": {
          "username": "elonmusk",
          "displayName": "Elon Musk",
          "url": "https://x.com/elonmusk",
          "followers": 241067682,
          "verified": true,
          "profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
        },
        "engagement": {
          "likes": 2852112,
          "replies": 153311,
          "retweets": 315117,
          "quotes": 68462
        },
        "isReply": false,
        "isRetweet": false
      },
      {
        "platform": "twitter",
        "url": "https://x.com/elonmusk/status/1854026234339938528",
        "id": "1854026234339938528",
        "text": "🇺🇸🇺🇸The future is gonna be so 🔥 🇺🇸🇺🇸 https://t.co/x56cqb6oT5",
        "lang": "en",
        "publishedAt": "Wed Nov 06 05:01:15 +0000 2024",
        "author": {
          "username": "elonmusk",
          "displayName": "Elon Musk",
          "url": "https://x.com/elonmusk",
          "followers": 241067682,
          "verified": true,
          "profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
        },
        "engagement": {
          "likes": 2494169,
          "replies": 56899,
          "retweets": 194031,
          "quotes": 12167
        },
        "isReply": false,
        "isRetweet": false,
        "media": [
          "https://pbs.twimg.com/media/GbrTB8GXEAYrk2N.jpg"
        ]
      },
      {
        "platform": "twitter",
        "url": "https://x.com/elonmusk/status/1519495072802390016",
        "id": "1519495072802390016",
        "text": "Let’s make Twitter maximum fun!",
        "lang": "en",
        "publishedAt": "Thu Apr 28 01:53:50 +0000 2022",
        "author": {
          "username": "elonmusk",
          "displayName": "Elon Musk",
          "url": "https://x.com/elonmusk",
          "followers": 241067682,
          "verified": true,
          "profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
        },
        "engagement": {
          "likes": 2331941,
          "replies": 99683,
          "retweets": 164577,
          "quotes": 33693
        },
        "isReply": false,
        "isRetweet": false
      }
    ]
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success, cached, creditsUsed, and a data object with the following fields:

Top-level fields

  • handleAccount handle.
  • totalReturnedNumber of items returned in this response.

Tweets

Each item in tweets contains:

  • platformPlatform identifier (e.g. youtube, instagram).
  • urlCanonical URL of the item.
  • idStable platform ID for the item.
  • textText content.
  • langLanguage code of the content.
  • publishedAtPublish date (ISO 8601).
  • authorObject with username, displayName, url, followers, verified, profileImage.
  • engagementObject with likes, replies, retweets, quotes.
  • isReplyWhether the tweet is a reply.
  • isRetweetWhether the tweet is a retweet.

Parameters

NameTypeRequiredDescription
urlstringYesTwitter/X profile URL or @handle. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
limitintegerNoMax items to return (default 20, max 200). Billed per result.
cachebooleanNoSet true to serve from the 24h response cache. Default false — always fetch fresh data.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool twitter_user_tweets via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/twitter/user-tweets and parse the JSON response.

Use cases

Content Pipelines

Ingest a channel's catalog in bulk.

Monitoring

Detect new uploads automatically.

Archiving

Snapshot a creator's full library.

Analytics

Aggregate performance across many videos.

Frequently asked questions

What does the Twitter/X User Tweets API do?+

The Twitter/X User Tweets API lets you list items in bulk with metadata from a public Twitter / X tweet using one GET request to /v1/twitter/user-tweets. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the Twitter/X User Tweets API cost?+

Each successful call costs 2 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Failed or empty results are never charged.

Do I need a Twitter / X API key or OAuth?+

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.

Is the Twitter/X User Tweets API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.

More Twitter / X APIs

Ready to use the Twitter/X User Tweets API?

Sign up, grab your key, and make your first call in 60 seconds.