Skip to content

Social media scraping API for Reddit and X

Scraping social media yourself means proxies, logins and a parser that breaks whenever a page changes. This social media scraping API returns the same public data as clean JSON: Reddit posts, comments and profiles, and X tweets, timelines and accounts, from one key. It covers Reddit and X, not Instagram, TikTok or LinkedIn.

Scrape a Reddit or X page now, no signupThen run the same call from code.
Social media scraping API: two pipes pour notes into one clean tank.

The job

A homemade social media scraper works until the site changes its markup or blocks your IP. With an API, someone else does that maintenance and the response shape stays stable, so a job that collects social media data keeps running without a rewrite every month.

If you have been searching for a social media crawler or web scraping social media, the API replaces the crawler: you ask for the data and skip the crawling, proxies and parsing. Teams use it to scrape social media data for market research, feed a model real conversations, export an audience, or watch a topic over time. You make the same calls whether you collect once or on a schedule.

Check coverage before you start. This social API reads Reddit and X. If your project needs other platforms, the alternatives pages list tools that cover them, and you can use this one for the two it handles well.

How it works

  1. Decide what to collect

    Pick the unit: posts for a keyword, a subreddit feed, a user's history, an account's timeline or a tweet search.

  2. Call the endpoint

    Send one request with your key. The response carries the rows, the next-page cursor and what the call cost.

  3. Page and store

    Follow the cursor until you have enough, then write the rows to your database, a CSV or your model's input.

Endpoints that do it

EndpointWhat it's forCredits
List subreddit postsGET /v1/reddit/subreddits/{name}/postsA subreddit's hot, new, top or rising posts.2 credits
Search postsGET /v1/reddit/searchReddit posts that match a keyword.2 credits
List user tweetsGET /v1/x/users/{handle}/tweetsAn X account's recent tweets with engagement counts.2 credits
Search tweetsGET /v1/x/tweets/searchTweets by keyword, with search operators.2 credits

Free tools for the same job

Try the job in a browser first. These tools call the same endpoints, and you don't need a key or any code.

An account's recent tweets

A timeline call. Each row carries the text, time and public engagement counts.

curl "https://api.chatterapi.com/v1/x/users/levelsio/tweets" \
  -H "Authorization: Bearer $CHATTERAPI_KEY"
response, first 2 rows
{
  "data": [
    {
      "id": "2110066474513793361",
      "text": "✨ 200,000+ users on my computer nostalgia project @pieter\n\nSometimes it takes a few years for things to take off, in this case about 2 years!\n\nKeep creating 💖 https://t.co/Na0LXnwAjW",
      "url": "https://x.com/levelsio/status/2110066474513793361",
      "createdAt": "2026-10-13T17:53:45.000Z",
      "lang": "en",
      "likes": 129,
      "retweets": 4,
      "replies": 37,
      "quotes": 0,
      "views": 15475,
      "bookmarks": 9,
      "isReply": false,
      "inReplyToId": null,
      "conversationId": "2110066474513793361",
      "isRetweet": false,
      "quotedTweetId": "2108957488410161442",
      "type": "quote",
      "isQuote": true,
      "isPinned": false,
      "source": null,
      "hasVideo": false,
      "urls": [],
      "mentions": [
        "pieter"
      ],
      "author": {
        "id": "1577241403",
        "handle": "levelsio",
        "name": "@levelsio",
        "bio": "💸http://levels.vc\n📸http://PhotoAI.com $86K/m\n🎮http://VibeJam.com $44K/m\n🏡http://InteriorAI.com $23K/m\n👙@X $13K/m\n🌍http://Nomads.com $7K/m\n🏩http://Hotelist.com $5K/m",
        "followers": 974707,
        "following": 3276,
        "tweets": 181450,
        "verified": false,
        "blueVerified": true,
        "canDm": false,
        "protected": false,
        "location": "📕My book $5K/m 👉",
        "url": "https://readMAKE.com",
        "avatarUrl": "https://pbs.twimg.com/profile_images/2077111020305162240/PwddgOau_400x400.jpg",
        "createdAt": "2013-07-08T09:31:59.000Z",
        "profileUrl": "https://x.com/levelsio",
        "bannerUrl": "https://pbs.twimg.com/profile_banners/1577241403/1665964220",
        "likesGiven": 185852,
        "mediaCount": 19829,
        "pinnedTweetIds": [
          "2109949585737052316"
        ]
      },
      "media": [
        {
          "type": "photo",
          "url": "https://pbs.twimg.com/media/HUh2NAYWQAAP7ZK.jpg",
          "videoUrl": null
        }
      ],
      "quotedTweet": {
        "id": "2108957488410161442",
        "text": "💾 Two years ago I started working on these crazy nostalgia projects, kind of randomly, because I was bored and wanted to do something different than just build another SaaS or AI app/website\n\nI wanted to try to run Wind…",
        "url": "https://x.com/levelsio/status/2108957488410161442",
        "createdAt": null,
        "lang": null,
        "likes": null,
        "retweets": null,
        "replies": null,
        "quotes": null,
        "views": null,
        "bookmarks": null,
        "isReply": false,
        "inReplyToId": null,
        "conversationId": null,
        "isRetweet": false,
        "quotedTweetId": null,
        "type": "tweet",
        "isQuote": false,
        "isPinned": false,
        "source": null,
        "hasVideo": false,
        "urls": [],
        "mentions": [],
        "author": {
          "id": "",
          "handle": "levelsio",
          "name": "@levelsio",
          "bio": null,
          "followers": null,
          "following": null,
          "tweets": null,
          "verified": null,
          "blueVerified": null,
          "canDm": null,
          "protected": null,
          "location": null,
          "url": null,
          "avatarUrl": null,
          "createdAt": null,
          "profileUrl": "https://x.com/levelsio",
          "bannerUrl": null,
          "likesGiven": null,
          "mediaCount": null,
          "pinnedTweetIds": null
        },
        "media": []
      },
      "retweetedTweet": null
    },
    {
      "id": "2110030627336540370",
      "text": "This is also interesting to think about\n\nRight now it still takes, let's say, 30 minutes to a few hours to build something usable with AI and then you still polish for days/weeks/months\n\nIf we assume this will keep getti…",
      "url": "https://x.com/levelsio/status/2110030627336540370",
      "createdAt": "2026-10-13T15:31:18.000Z",
      "lang": "en",
      "likes": 324,
      "retweets": 11,
      "replies": 112,
      "quotes": 10,
      "views": 38339,
      "bookmarks": 118,
      "isReply": false,
      "inReplyToId": null,
      "conversationId": "2110030627336540370",
      "isRetweet": false,
      "quotedTweetId": null,
      "type": "quote",
      "isQuote": true,
      "isPinned": false,
      "source": null,
      "hasVideo": false,
      "urls": [],
      "mentions": [],
      "author": {
        "id": "1577241403",
        "handle": "levelsio",
        "name": "@levelsio",
        "bio": "💸http://levels.vc\n📸http://PhotoAI.com $86K/m\n🎮http://VibeJam.com $44K/m\n🏡http://InteriorAI.com $23K/m\n👙@X $13K/m\n🌍http://Nomads.com $7K/m\n🏩http://Hotelist.com $5K/m",
        "followers": 974707,
        "following": 3276,
        "tweets": 181450,
        "verified": false,
        "blueVerified": true,
        "canDm": false,
        "protected": false,
        "location": "📕My book $5K/m 👉",
        "url": "https://readMAKE.com",
        "avatarUrl": "https://pbs.twimg.com/profile_images/2077111020305162240/PwddgOau_400x400.jpg",
        "createdAt": "2013-07-08T09:31:59.000Z",
        "profileUrl": "https://x.com/levelsio",
        "bannerUrl": "https://pbs.twimg.com/profile_banners/1577241403/1665964220",
        "likesGiven": 185852,
        "mediaCount": 19829,
        "pinnedTweetIds": [
          "2109949585737052316"
        ]
      },
      "media": [],
      "quotedTweet": {
        "id": "",
        "text": "",
        "url": "https://x.com/i/status/",
        "createdAt": null,
        "lang": null,
        "likes": null,
        "retweets": null,
        "replies": null,
        "quotes": null,
        "views": null,
        "bookmarks": null,
        "isReply": false,
        "inReplyToId": null,
        "conversationId": null,
        "isRetweet": false,
        "quotedTweetId": null,
        "type": "tweet",
        "isQuote": false,
        "isPinned": false,
        "source": null,
        "hasVideo": false,
        "urls": [],
        "mentions": [],
        "author": {
          "id": "",
          "handle": "",
          "name": "",
          "bio": null,
          "followers": null,
          "following": null,
          "tweets": null,
          "verified": null,
          "blueVerified": null,
          "canDm": null,
          "protected": null,
          "location": null,
          "url": null,
          "avatarUrl": null,
          "createdAt": null,
          "profileUrl": "https://x.com/",
          "bannerUrl": null,
          "likesGiven": null,
          "mediaCount": null,
          "pinnedTweetIds": null
        },
        "media": []
      },
      "retweetedTweet": null
    }
  ],
  "page": {
    "nextCursor": "AYCt…",
    "hasMore": true
  }
}

Recorded from a live call on . Long text is shortened and the cursor is cut. A live key is charged 2 credits for this call. A test key returns this same sample for 0 credits.

What it won't do

  • Only Reddit and X. Instagram, TikTok, LinkedIn and other platforms are not covered.
  • Public data only. Private subreddits, protected X accounts and removed posts are not returned.
  • Each call returns one page. Large collections need paging with the cursor.
  • It does not log in as you or act for you; the read endpoints never post.

Questions

How to scrape social media data?
Pick the platform, then call its endpoint for the posts, comments, profiles or tweets you want and page through the results with the cursor. For Reddit and X this takes one request per page and no scraper code. See how to scrape Reddit and scrape Twitter and Reddit.
Is there a free social media API?
The free tools run in the browser with no signup, and a test key returns recorded sample data so you can build against the response shape. Live API calls use a plan. The data covers Reddit and X only.
Which social media APIs should I use?
It depends on the platform. For Reddit and X data, this API reads both with one key. For other platforms, compare the options on the alternatives pages.
What is a social media scraping API?
It returns public social posts and profiles as JSON, so you do not run your own scraper, proxies or parsers.
Which social media platforms does it scrape?
Reddit and X. The Reddit scraper API and Twitter scraper API pages cover each in detail.
Is there a free way to try it?
Yes. The free tools run in the browser with no signup, and a test key returns recorded sample data.
Can I use it to collect data for a model?
Yes, for public posts. Check each platform's terms and your own data policy first.

More ways to use the API

Build it with one API key

Try it free for 7 days with 1,000 credits.