Twitter Scraper

ENDPOINTS
GET/users/tweets

User Tweets

Get a user's pinned tweet and latest original tweets, newest first.

QUERY PARAMS

Username, numeric user ID or any x.com / twitter.com profile link.

Examples:

  • Username: nasa
  • ID: 44196397
  • URL: https://x.com/nasa

Maximum number of tweets to return.

Default: 20

Allowed values: 1-100

{
  "user": "nasa",
  "count": 5,
  "has_more": false,
  "note": "X shows a logged-out visitor the pinned post and the latest original posts only; use /twitter/users/top-tweets for the most-liked posts.",
  "tweets": [
    {
      "id": "2113655288687431819",
      "link": "https://x.com/NASA/status/2113655288687431819",
      "text": "Ahh
 blue lagoon 🏖\n\nThis deep-blue sea of gas and dust—called Messier 8 or the Lagoon Nebula—is a hotbed of star formation. The young stars within the nebula emit rays of high-energy light, including X-rays shown in pink by @chandraxray.",
      "language": "en",
      "created_at": "2026-10-23T15:34:25Z",
      "author": {
        "id": "11348282",
        "username": "NASA",
        "name": "NASA",
        "link": "https://x.com/NASA",
        "profile_image": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "is_blue_verified": true,
        "is_verified": null,
        "followers_count": 92310917
      },
      "is_pinned": false,
      "is_reply": false,
      "reply_to": null,
      "is_quote": false,
      "quoted_tweet": null,
      "is_retweet": false,
      "retweeted_tweet": null,
      "conversation_id": null,
      "media": [
        {
          "type": "photo",
          "id": "2113655285982089216",
          "link": "https://x.com/NASA/status/2113655288687431819/photo/1",
          "image": "https://pbs.twimg.com/media/HVU2SLKW0AA7q0a.jpg",
          "width": 1041,
          "height": 941,
          "alt_text": "Dynamic, textured clouds swoop across the scene. Their color ranges from deep, steely blue to bright silver. Pink and white stars of varying sizes decorate the clouds.",
          "duration_ms": null,
          "video_link": null,
          "video_variants": null
        }
      ],
      "links": [],
      "hashtags": [],
      "mentions": [
        {
          "id": "12415722",
          "username": "chandraxray",
          "name": null,
          "link": "https://x.com/chandraxray"
        }
      ],
      "cashtags": [],
      "card": null,
      "poll": null,
      "community": null,
      "community_note": null,
      "place": null,
      "stats": {
        "replies": 36,
        "retweets": 164,
        "likes": 781,
        "quotes": 16,
        "bookmarks": 42,
        "views": 97827
      },
      "is_long_form": false,
      "is_possibly_sensitive": false,
      "is_edited": false,
      "edit_tweet_ids": [],
      "source": null
    },
    {
      "id": "2113358139999265160",
      "link": "https://x.com/NASA/status/2113358139999265160",
      "text": "That's our jam 🎌\n\nAstronomers used @ChandraXray to find out that this radio wave formation, known as the \"Treble Clef\" thanks to its distinctive shape, was likely caused by an outburst from a supermassive black hole, followed by a collision of two galaxy clusters.",
      "language": "en",
      "created_at": "2026-10-22T19:53:39Z",
      "author": {
        "id": "11348282",
        "username": "NASA",
        "name": "NASA",
        "link": "https://x.com/NASA",
        "profile_image": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "is_blue_verified": true,
        "is_verified": null,
        "followers_count": 92310917
      },
      "is_pinned": false,
      "is_reply": false,
      "reply_to": null,
      "is_quote": false,
      "quoted_tweet": null,
      "is_retweet": false,
      "retweeted_tweet": null,
      "conversation_id": null,
      "media": [
        {
          "type": "photo",
          "id": "2113358137180758016",
          "link": "https://x.com/NASA/status/2113358139999265160/photo/1",
          "image": "https://pbs.twimg.com/media/HVQoB1nXIAAiLcW.jpg",
          "width": 2048,
          "height": 1525,
          "alt_text": "A composite image of a radio wave formation that looks a lot like a treble clef musical symbol, hovering in the midst of two colliding galaxy clusters. There are many specks of light set against the blackness of space; those are galaxies and stars. At the center of the image is a large, oval, blue-purple cloud with ragged edges. In the middle of the purple field, tilting slightly to our left, is what appears to be a giant treble clef, loosely drawn with a neon pink marker. Like the musical notation for which it's named, the formation has a strong vertical stroke with a continuous, fluid line swooping back and forth as it moves from top to bottom.",
          "duration_ms": null,
          "video_link": null,
          "video_variants": null
        }
      ],
      "links": [],
      "hashtags": [],
      "mentions": [
        {
          "id": "12415722",
          "username": "chandraxray",
          "name": null,
          "link": "https://x.com/chandraxray"
        }
      ],
      "cashtags": [],
      "card": null,
      "poll": null,
      "community": null,
      "community_note": null,
      "place": null,
      "stats": {
        "replies": 247,
        "retweets": 644,
        "likes": 4110,
        "quotes": 51,
        "bookmarks": 239,
        "views": 779870
      },
      "is_long_form": false,
      "is_possibly_sensitive": false,
      "is_edited": false,
      "edit_tweet_ids": [],
      "source": null
    },
    {
      "id": "2112959650551173522",
      "link": "https://x.com/NASA/status/2112959650551173522",
      "text": "\"I just hear over and over again: 'I felt like I went on the mission with you'.\"\n\nArtemis II's Jeremy Hansen and Victor Glover reflect on their historic trip around the Moon — and how life on Earth has been since — in our latest Houston We Have A Podcast: https://go.nasa.gov/4dSkerm",
      "language": "en",
      "created_at": "2026-10-21T17:30:12Z",
      "author": {
        "id": "11348282",
        "username": "NASA",
        "name": "NASA",
        "link": "https://x.com/NASA",
        "profile_image": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "is_blue_verified": true,
        "is_verified": null,
        "followers_count": 92310917
      },
      "is_pinned": false,
      "is_reply": false,
      "reply_to": null,
      "is_quote": false,
      "quoted_tweet": null,
      "is_retweet": false,
      "retweeted_tweet": null,
      "conversation_id": null,
      "media": [
        {
          "type": "photo",
          "id": "2112959646516269056",
          "link": "https://x.com/NASA/status/2112959650551173522/photo/1",
          "image": "https://pbs.twimg.com/media/HVK9moNWUAAzx2Y.jpg",
          "width": 1920,
          "height": 1080,
          "alt_text": "A photo of astronauts Victor Glover and Jeremy Hansen, wearing their blue flight suits, overlaid against a montage of images from the Artemis II mission. At top center is the text \"HOUSTON WE HAVE A PODCAST\" in all-caps, stylized font.",
          "duration_ms": null,
          "video_link": null,
          "video_variants": null
        }
      ],
      "links": [
        {
          "link": "https://go.nasa.gov/4dSkerm",
          "display_text": "go.nasa.gov/4dSkerm"
        }
      ],
      "hashtags": [],
      "mentions": [],
      "cashtags": [],
      "card": null,
      "poll": null,
      "community": null,
      "community_note": null,
      "place": null,
      "stats": {
        "replies": 181,
        "retweets": 238,
        "likes": 1762,
        "quotes": 16,
        "bookmarks": 77,
        "views": 865944
      },
      "is_long_form": false,
      "is_possibly_sensitive": false,
      "is_edited": false,
      "edit_tweet_ids": [],
      "source": null
    },
    {
      "id": "2112604875452223824",
      "link": "https://x.com/NASA/status/2112604875452223824",
      "text": "LIVE: Get a preview of two upcoming spacewalks set for Oct. 29 and Nov. 5. @astro_anil and CSA (Canadian Space Agency) astronaut Joshua Kutryk will use both spacewalks to finish installing solar arrays. https://x.com/i/broadcasts/1jxXgBNWypPJZ",
      "language": "en",
      "created_at": "2026-10-20T18:00:27Z",
      "author": {
        "id": "11348282",
        "username": "NASA",
        "name": "NASA",
        "link": "https://x.com/NASA",
        "profile_image": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "is_blue_verified": true,
        "is_verified": null,
        "followers_count": 92310917
      },
      "is_pinned": false,
      "is_reply": false,
      "reply_to": null,
      "is_quote": false,
      "quoted_tweet": null,
      "is_retweet": false,
      "retweeted_tweet": null,
      "conversation_id": null,
      "media": [],
      "links": [
        {
          "link": "https://x.com/i/broadcasts/1jxXgBNWypPJZ",
          "display_text": "x.com/i/broadcasts/1
"
        }
      ],
      "hashtags": [],
      "mentions": [
        {
          "id": "1456357980216066048",
          "username": "astro_anil",
          "name": null,
          "link": "https://x.com/astro_anil"
        }
      ],
      "cashtags": [],
      "card": {
        "type": "745291183405076480:broadcast",
        "title": null,
        "description": null,
        "link": "https://t.co/mBmrbnL1j4",
        "domain": null,
        "image": null
      },
      "poll": null,
      "community": null,
      "community_note": null,
      "place": null,
      "stats": {
        "replies": 132,
        "retweets": 175,
        "likes": 1175,
        "quotes": 15,
        "bookmarks": 61,
        "views": 764277
      },
      "is_long_form": false,
      "is_possibly_sensitive": false,
      "is_edited": false,
      "edit_tweet_ids": [],
      "source": null
    },
    {
      "id": "2112560723603632217",
      "link": "https://x.com/NASA/status/2112560723603632217",
      "text": "There's a lot of ground to cover when you're building a Moon Base.\n\nDuring the first phase of @NASAMoonBase development, robotic rovers will gather new details about the lunar South Pole region, while lunar terrain vehicles will extend the reach of each Artemis mission.",
      "language": "en",
      "created_at": "2026-10-20T15:05:00Z",
      "author": {
        "id": "11348282",
        "username": "NASA",
        "name": "NASA",
        "link": "https://x.com/NASA",
        "profile_image": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
        "is_blue_verified": true,
        "is_verified": null,
        "followers_count": 92310917
      },
      "is_pinned": false,
      "is_reply": false,
      "reply_to": null,
      "is_quote": false,
      "quoted_tweet": null,
      "is_retweet": false,
      "retweeted_tweet": null,
      "conversation_id": null,
      "media": [
        {
          "type": "video",
          "id": "2112560648005484545",
          "link": "https://x.com/NASA/status/2112560723603632217/video/1",
          "image": "https://pbs.twimg.com/media/HVFSyBvWAAE5Y1_.jpg",
          "width": 405,
          "height": 720,
          "alt_text": null,
          "duration_ms": 45812,
          "video_link": "https://video.twimg.com/amplify_video/2112560648005484545/vid/avc1/1080x1920/p22pg524_Km8ghQo.mp4?tag=16",
          "video_variants": [
            {
              "link": "https://video.twimg.com/amplify_video/2112560648005484545/pl/3swciYy4cEVNSi3F.m3u8?tag=16&v=909",
              "bitrate": null,
              "content_type": "application/x-mpegURL"
            },
            {
              "link": "https://video.twimg.com/amplify_video/2112560648005484545/vid/avc1/320x568/NgN55ga-5ujfgzMM.mp4?tag=16",
              "bitrate": 632000,
              "content_type": "video/mp4"
            },
            {
              "link": "https://video.twimg.com/amplify_video/2112560648005484545/vid/avc1/480x852/SbTlCasohl23iIn3.mp4?tag=16",
              "bitrate": 950000,
              "content_type": "video/mp4"
            },
            {
              "link": "https://video.twimg.com/amplify_video/2112560648005484545/vid/avc1/720x1280/qnC_V3TZFNCfIUeO.mp4?tag=16",
              "bitrate": 2176000,
              "content_type": "video/mp4"
            },
            {
              "link": "https://video.twimg.com/amplify_video/2112560648005484545/vid/avc1/1080x1920/p22pg524_Km8ghQo.mp4?tag=16",
              "bitrate": 10368000,
              "content_type": "video/mp4"
            }
          ]
        }
      ],
      "links": [],
      "hashtags": [],
      "mentions": [
        {
          "id": "2031457713868386305",
          "username": "NASAMoonBase",
          "name": null,
          "link": "https://x.com/NASAMoonBase"
        }
      ],
      "cashtags": [],
      "card": null,
      "poll": null,
      "community": null,
      "community_note": null,
      "place": null,
      "stats": {
        "replies": 286,
        "retweets": 577,
        "likes": 3853,
        "quotes": 65,
        "bookmarks": 201,
        "views": 568677
      },
      "is_long_form": false,
      "is_possibly_sensitive": false,
      "is_edited": false,
      "edit_tweet_ids": [],
      "source": null
    }
  ]
}