Skip to main content
To win on X, you don’t just need a strategy—you need a reconnaissance mission. Analyzing your competitors’ content allows you to identify what resonates with your shared audience, avoid their mistakes, and benchmark your own growth. By combining Sorsa API endpoints, you can build a comprehensive competitive intelligence dashboard that tracks growth, sentiment, and strategy.

1. Benchmarking Growth & Activity (/info)

The foundation of any competitor analysis is tracking the raw numbers. The /info endpoint provides real-time snapshots of an account’s health, including their total followers, total tweets, and profile metadata.

Use Case: Daily Growth Tracker

You shouldn’t just look at the numbers once; you should track how they change. Below is a Python script that tracks the 24-hour growth of multiple competitors. Python
import requests
import time

# List of competitor handles to track
COMPETITORS = ["competitor_a", "competitor_b", "competitor_c"]
API_KEY = "YOUR_API_KEY"
URL = "https://api.sorsa.io/v3/info"

def get_stats(username):
    payload = {"username": username}
    headers = {"ApiKey": API_KEY, "Content-Type": "application/json"}
    response = requests.post(URL, json=payload, headers=headers)
    return response.json()

# Simulation: Imagine you saved 'yesterday_stats' in a database
# Here we show the logic for calculating the 24h delta
def track_growth(current_stats, yesterday_stats):
    f_growth = current_stats['followers_count'] - yesterday_stats['followers_count']
    t_posted = current_stats['tweets_count'] - yesterday_stats['tweets_count']
    
    print(f"Stats for @{current_stats['username']}:")
    print(f"📈 New Followers: {f_growth}")
    print(f"📝 Tweets Posted: {t_posted}")
    print("-" * 20)

# In a real scenario, you would run this via a cron job every 24 hours
To calculate the growth rate as a percentage, you can use the following formula: Growth Rate % = ((Followers Today - Followers Yesterday) / Followers Yesterday) * 100

2. Analyzing Public Sentiment & Reputation (/mentions)

Knowing what a competitor posts is only half the battle; knowing what the world says back to them is where the real insights are. By using the /mentions endpoint, you can see every time a competitor is tagged. This is invaluable for:
  • Identifying Weak Points: Find customer complaints or “pain points” that your product can solve.
  • PR Monitoring: See how the public reacts to their announcements or controversies.
  • Influencer Discovery: Identify which high-authority accounts are regularly engaging with them.
💡 Deep Dive: Check out our full guide on How to Search Mentions to learn how to filter these by engagement (e.g., finding only the most viral mentions of a competitor).

3. Dissecting the Content Strategy (/user-tweets)

Finally, to understand why they are growing, you need to look at their content library. The /user-tweets endpoint allows you to scrape an entire timeline (or a specific historical window). What to look for in competitor tweets:
  • Media Mix: Do they post more videos, images, or simple text threads?
  • Posting Schedule: What time of day do their “Popular” posts usually go live?
  • Keywords & Hashtags: What topics are they trying to own in the algorithm?
By analyzing their history, you can reverse-engineer their most successful campaigns and apply those lessons to your own brand.
🔗 Learn more: See our guide on Historical Data Access to learn how to walk through a competitor’s timeline from day one.

⏭ Next Steps