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.

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
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.
Pull the numbers
Call the X account analytics endpoint once per handle and the subreddit endpoints once per community. Each response is plain JSON.
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.
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
| Endpoint | What it's for | Credits |
|---|---|---|
| Account analyticsGET /v1/x/users/{handle}/analytics | Followers, 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}/posts | Recent posts with score and comment counts, to measure activity in a community. | 2 credits |
| List user tweetsGET /v1/x/users/{handle}/tweets | The 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"{
"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?
Is there a Twitter insights API for any account?
Can I get Twitter web analytics for developers into my own tool?
Can I try an account's analytics first?
Does it cover Instagram or LinkedIn?
Guides
More ways to use the API
- Access the Twitter API
- Claude Reddit bot
- Live Twitter monitor
- Reddit API application
- Reddit brand monitoring
- Reddit data export
- Reddit post API
- Reddit scraper API
- Social listening API
- Post with the Twitter API
- Twitter API statuses
- Twitter exporter
- Twitter scraper API
- Twitter webhook
- Reddit comments API
- Reddit user API
- Subreddit API
- Twitter followers API
- Twitter user API
- Twitter search API
- Social media scraping API
- Reddit listening tool
- Twitter feed API
- Twitter hashtag API
- Twitter image API