Skip to content

Social media analytics API for Reddit and X

Get public engagement and audience numbers into a dashboard or report with a few GET requests. For X, one call returns an account's followers, posting rate, average likes, replies and reposts, engagement rate and busiest posting hour. For Reddit, you get a subreddit's size, rules and recent post scores. It covers only Reddit and X, and it uses public data rather than private account insights.

Check one account's analytics now, no signupThen pull the same numbers from code.
Social media analytics API: a desk dashboard of gauges and bars.

The job

Most teams want the same few numbers: how big the audience is, how often the account posts, and how much people react. The X account analytics call answers that for any public account based on its latest 20 original posts, so you can compare your own account with competitors or with creators you track.

For Reddit, the subreddit endpoint gives a community's size and rules, and the subreddit posts endpoint gives scores and comment counts that you can aggregate yourself. Used together, they show where a topic gets attention and how a community responds to it.

These numbers are public counts for a recent sample. They are not impressions, reach or clicks from a platform's own analytics. Use them as a benchmark for accounts you don't own. They don't replace first-party insights for accounts you do.

How it works

  1. List the accounts and communities

    Write down the X handles and subreddits you want to track, including your own and the ones you compare against.

  2. Pull the numbers

    Call the X account analytics endpoint once per handle and the subreddit endpoints once per community. Each response is plain JSON.

  3. Store a snapshot with a date

    Save each result with the date you pulled it. You see trends by comparing your own snapshots over time.

  4. Chart it

    Send the rows to your dashboard, spreadsheet or report. Use a scheduler to re-run the pull weekly or monthly.

Endpoints that do it

EndpointWhat it's forCredits
Account analyticsGET /v1/x/users/{handle}/analyticsFollowers, posts per day, average likes, replies and reposts, engagement rate and busiest hour for an X account.4 credits per call (latest 20 posts)
Get a subredditGET /v1/reddit/subreddits/{name}A subreddit's subscriber count, rules and posting settings.2 credits
List subreddit postsGET /v1/reddit/subreddits/{name}/postsRecent posts with score and comment counts, to measure activity in a community.2 credits
List user tweetsGET /v1/x/users/{handle}/tweetsThe raw tweets behind an account's numbers, if you want to compute your own metrics.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.

One X account's analytics

A single call for one handle. The response below was recorded from a real call and averages the latest original posts.

curl "https://api.chatterapi.com/v1/x/users/levelsio/analytics" \
  -H "Authorization: Bearer $CHATTERAPI_KEY"
response, first 2 rows
{
  "data": {
    "handle": "levelsio",
    "name": "@levelsio",
    "followers": 974707,
    "following": 3276,
    "totalPosts": 181450,
    "joined": "2013-07-08T09:31:59.000Z",
    "verified": true,
    "sampled": 18,
    "spanDays": 1.1,
    "postsPerDay": 14.8,
    "avgLikes": 1083.8,
    "avgReplies": 87.8,
    "avgReposts": 59.6,
    "avgViews": 147961.5,
    "engagementRate": 0.00128,
    "mix": {
      "original": 1,
      "replies": 3,
      "quotes": 14
    },
    "busiestHourUtc": 14,
    "topPost": {
      "url": "https://x.com/levelsio/status/2109658835493462465",
      "text": "Every guy I know (and me too) had to experience this once to then never do make the same mistake again",
      "likes": 4712,
      "replies": 105,
      "reposts": 142
    },
    "asOf": "2026-10-14",
    "note": "Averages come from the latest 18 original posts X returned, not the whole history. Engagement counts public likes, replies, reposts and quotes only; X does not share impressions or clicks."
  }
}

Recorded from a live call on . Long text is shortened and the cursor is cut. A live key is charged 4 credits per call (latest 20 posts) for this call. A test key returns this same sample for 0 credits.

What it won't do

  • Reddit and X only. Other platforms are not covered.
  • Public counts for a recent sample of posts. These are not impressions, reach or click data, which only the account owner sees.
  • No history is stored for you. To see a trend, save your own dated snapshots.
  • Engagement rate is calculated against followers from public counts, so compare accounts using the same method.

Questions

What is a social media analytics API?
It returns audience and engagement numbers as data, so you can feed them into a dashboard or report instead of copying figures by hand.
Is there a Twitter insights API for any account?
For public accounts, the account analytics endpoint returns followers, posting rate and average engagement. It does not return private insights such as the impressions shown in the owner's dashboard.
Can I get Twitter web analytics for developers into my own tool?
Yes. Call the endpoint from your backend and store the JSON. Each call covers one account and averages its latest 20 original posts.
Can I try an account's analytics first?
Yes. The free Twitter account analytics tool runs in the browser and doesn't require signup.
Does it cover Instagram or LinkedIn?
No. It covers Reddit and X.

More ways to use the API

Build it with one API key

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