Social Data API

Guide - Track competitors on X

How to track competitors on X

Five competitors, one spreadsheet, thirty minutes a week. Here is the tracker, the code, and the cost.

By the Social Data API team · November 8, 2026 · 4 min read

Short answer: Tracking competitors on X means pulling their posts on a schedule, logging likes, reposts and replies, and comparing what performs. This guide does it with the X posts and search endpoints, a small script and a spreadsheet, for about $0.90 a month in API calls for 5 competitors. X is on paid plans only; the free trial covers TikTok.

A laptop showing a live analytics dashboard
Photo via Pexels

Social Data API is a single API key for TikTok, X, Instagram and Reddit. TikTok and X are live now. Instagram is next, then Reddit, all on the same key.

What you are building

A daily log of what your competitors post on X, with the numbers attached: likes, reposts and replies per post. Once a week you read the log and answer one question: what did they post that worked, and what should you steal, adapt or avoid.

Pick 3 to 5 competitors in your niche, similar in size to you. More than 5 is noise. Smaller accounts post less, so the log stays readable.

Step 1: get one API key

Sign up at Social Data API and pick a paid plan: Basic $29 a month for 10,000 calls, Pro $99 a month for 50,000 calls, or pay as you go at $0.003 a call. X is on paid plans only. The 3-day free trial covers TikTok, so a trial key gets a 402 on X. A $10 top-up covers this whole tracker for months, as the cost math below shows.

Step 2: pull their posts every day

One call per competitor per day, by handle. No user ID lookup step: the posts endpoint takes a username directly and costs 1 credit.

curl -X POST https://social-data-api.chideraezeudu2.workers.dev/v1/x/posts \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "competitor_handle"}'

Store every post with its date, text, likes, reposts and replies. A spreadsheet works. A CSV file works. The tool is the log, not the storage.

Step 3: score every post

Engagement per post is likes plus reposts plus replies. Sort the week by that number and read the top 10. The pattern is usually obvious within two weeks: one format, one topic or one posting time keeps winning.

for post in posts:
    score = post["like_count"] + post["retweet_count"] + post["reply_count"]
    print(score, post["text"][:80])

Response shape, example values only, not real data. Field names inside result come from the upstream provider and vary by endpoint. Check the JSON your first call returns and adjust the field names to match.

Step 4: watch the keywords too

Posts are only half the picture. Use the search endpoint for the keywords that matter to your niche: your product category, your competitors' brand names, the problem you solve. One call per query per day gives you the posts talking about that keyword, including posts from accounts you do not track.

curl -X POST https://social-data-api.chideraezeudu2.workers.dev/v1/x/search \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "your niche keyword"}'

Step 5: read it once a week

Set a 30 minute weekly review. Look at the top 10 posts of the week, note the format and topic of each, and write down one thing you will try next week. The tracker earns its keep in that half hour. Without the review it is just a growing spreadsheet.

What it costs to run

  • 5 competitors, daily posts: 5 calls a day, 150 calls a month, $0.45 on pay as you go.
  • 5 keyword searches a day: 150 calls a month, $0.45 on pay as you go.
  • Total: 300 calls a month, $0.90 on pay as you go, or inside the $29 Basic plan. A $10 top-up lasts about 11 months at this pace.
  • Same job on the official X API: 5 competitors at 20 posts a day is 100 post reads a day, 3,000 a month, at $0.005 a read that is $15.00 a month. The official API charges per post read, we charge per call, and one call returns a page of posts.

Doing it without our API

X lists plus ten minutes of manual checking a day will do this for free, and for 1 or 2 competitors that is honestly the right call. It breaks at 5, because you stop checking. The official X API does the same job for $15 a month at this volume, per the math above, and it needs a username to user ID lookup before you can fetch a timeline. X-only vendors like GetXAPI are cheaper per tweet, but they cover X only, so you need a second tool the day you want TikTok data too.

Frequently asked questions

How many competitors should I track?

Three to five. Fewer and you miss the pattern, more and the log turns into noise you never read.

Can I read the replies to a competitor's post?

Yes, the replies endpoint takes a tweet id and returns the replies as JSON, 1 credit a call. Replies are where the real opinions are, the post itself is the press release.

Is tracking competitors allowed?

You are reading public posts through an API, the same posts anyone can see on X. This tool only reads, it never posts, likes or follows on your behalf. If a competitor's account is private, there is nothing to read.

How do I get alerted when a competitor posts something big?

Add a threshold check to your daily script: if a post passes a like count you set, send yourself an email or a Slack message. The data is already in your log, the alert is a ten-line addition.

X is on paid plans: Basic $29/mo for 10,000 calls, Pro $99/mo for 50,000 calls, or pay-as-you-go at $0.003 a call. The free trial covers TikTok only, so a trial key gets a 402 on X. Get your API key or try it in the Playground.

Prices checked on 2026-11-08. Instagram is next after X, then Reddit, all on the same single API key.