How to Analyze Competitors on Twitter Using the API
Understanding what your competitors are doing on X (formerly Twitter) - how fast they are growing, what content drives their engagement, who follows them, and what the public says about them - gives you a strategic advantage that gut instinct alone cannot match. With Sorsa API, you can build a structured competitor intelligence pipeline that goes far beyond manually checking a rival’s profile once a month. This guide walks through a complete competitor analysis workflow: benchmarking profiles, dissecting content strategies, mapping audience composition, and tracking public sentiment. Each phase uses a different Sorsa endpoint, and together they form a repeatable system you can run weekly or monthly to stay ahead.No-code option: If you want a quick side-by-side comparison without writing any code, use the free Sorsa Profile Comparison Tool. Enter two handles and instantly see followers, engagement rate, average likes/retweets per tweet, posting frequency, and account age compared visually. It is the fastest way to get a competitive snapshot.
Phase 1: Profile Benchmarking
Endpoints:GET /v3/info and GET /v3/info-batch
Before analyzing content or sentiment, establish the baseline numbers: follower count, tweet volume, account age, bio positioning, and verified status. The /info endpoint returns a complete profile snapshot for a single account; /info-batch does the same for multiple accounts in one call.
Comparing Multiple Competitors at Once
Tracking Growth Over Time
A single snapshot tells you where competitors stand today. To understand momentum, you need to compare snapshots over time. Run the script above on a daily or weekly schedule (via cron, GitHub Actions, or any task scheduler), store the results in a database or CSV, and compute deltas:Phase 2: Content Strategy Analysis
Endpoint:POST /v3/user-tweets
Numbers tell you that a competitor is growing; their content tells you why. Scrape a competitor’s recent tweets and analyze what formats, topics, and posting patterns drive their engagement.
Fetching Recent Tweets
Extracting Content Insights
Once you have the tweets, compute the metrics that reveal content strategy patterns:since: and until: operators to your search query. See Historical Data Access for the full approach.
Phase 3: Audience Composition
Endpoints:GET /v3/followers, GET /v3/verified-followers, GET /v3/followers-stats
A competitor’s follower list reveals who their audience actually is. You can extract followers, filter for high-value accounts, and even find overlap between your audience and theirs.
Verified/High-Authority Followers
The/verified-followers endpoint returns only verified accounts following a given handle - a quick way to see which notable people, brands, and journalists are in a competitor’s orbit:
Follower Category Breakdown (Crypto/Web3)
For accounts in the Sorsa database (primarily crypto/Web3), the/followers-stats endpoint provides a categorical breakdown of followers: how many are influencers, projects, and VC accounts:
Phase 4: Public Sentiment and Reputation
Endpoint:POST /v3/mentions
What a competitor posts is only half the picture. What the public says about them reveals complaints, praise, feature requests, and PR vulnerabilities you can act on.
Pulling High-Engagement Mentions
Simple Sentiment Categorization
A rough keyword-based categorization gives you a fast read on whether mentions skew positive, negative, or neutral:full_text into an NLP model (OpenAI, HuggingFace, or any classifier) instead of using keyword matching.
Putting It All Together: Competitive Dashboard Script
Here is a single script that runs all four phases for a list of competitors and prints a consolidated report:The Free Comparison Tool
For quick, visual competitor benchmarking without writing code, use the Sorsa Profile Comparison Tool. Enter any two X handles and get an instant side-by-side view of:- Follower count
- Engagement rate
- Average likes and retweets per tweet
- Posting frequency (tweets per day)
- Account age
- Profile bios and locations
Next Steps
- How to Search Tweets via API - search competitor brand names as keywords for broader coverage.
- Search Mentions Guide - deep dive into the
/mentionsendpoint with engagement filters and date ranges. - Historical Data Access - analyze how a competitor’s strategy evolved over months or years.
- Real-Time Monitoring - get alerts the moment a competitor posts something new.
- Finding Your Target Audience - extract and analyze competitor follower lists for lead generation.
- API Reference - full specification for
/info,/info-batch,/followers,/verified-followers,/mentions,/user-tweets, and all 38 endpoints.