Skip to main content
Identifying your target audience on X is the first step for Influencer Marketing, B2B Lead Generation, and Community Building. Sorsa API offers two powerful methods to find exactly who you are looking for: searching via user bios or analyzing real-time topical conversations.

💡 Why Audience Discovery Matters

  • Precision Lead Gen: Find users who explicitly state their profession (e.g., “Founder,” “Marketing Director”) in their bio.
  • Niche Marketing: Connect with specific interest groups like “Gamers,” “Travel Bloggers,” or “Sustainability Advocates.”
  • Competitor Conquest: Identify users who are actively talking about your competitors to offer them a better alternative.

Method 1: Searching by User Bio (/search-users)

The most direct way to find a specific persona is to search through their profile descriptions. This endpoint scans user bios, display names, and handles for your keywords. Use Case: If you need to find “AI Developers” or “Fitness Coaches,” this is your go-to tool.

Implementation Example

Python
import requests

url = "https://api.sorsa.io/v3/search-users"
headers = {
    "ApiKey": "YOUR_API_KEY",
    "Content-Type": "application/json"
}

payload = {
    "query": "Product Manager",
    "next_cursor": "" # Leave empty for the first request
}

response = requests.post(url, json=payload, headers=headers)
users = response.json().get('users', [])

for user in users:
    print(f"Found: @{user['username']} | Bio: {user['description']}")

Method 2: Discovering Audience through Content (/search-tweets)

Sometimes, the best way to find your audience is not by what they say they are, but by what they talk about. By searching for specific keywords or hashtags, you can find active users interested in a topic. Every time you use the Search Tweets endpoint, the API returns a rich User Object for every tweet. This includes their ID, bio, follower count, and verification status. How to use this for Lead Gen:
  1. Use Advanced Search Operators to find tweets about a specific pain point (e.g., "need a tool for" lang:en).
  2. Extract the user data from the response.
  3. Filter these users by their followers_count or verified status to find high-value targets.
🔗 Related Guides:

⚖️ Which Method Should You Choose?

Feature/search-users/search-tweets
Best for…Static personas (Job titles, hobbies in bio).Active intent (People talking about a topic now).
Data ScopeProfile descriptions & names.Real-time tweets & hashtags.
DiscoveryFinds people who “are” something.Finds people who “do” something.

⏭ Next Steps