How to Find Your Target Audience on Twitter Using the API
Finding the right people on X (formerly Twitter) - potential customers, leads, community members, or partnership prospects - is one of the highest-value applications of social data. Sorsa API gives you multiple discovery paths: search user profiles by keyword, extract follower lists from competitor accounts, scrape community membership rosters, and mine tweet content to identify active voices in any niche. This guide is a playbook of audience discovery techniques. Each one uses a different Sorsa endpoint (or combination of endpoints) to solve a specific targeting problem, with complete code examples you can adapt to your use case.Technique 1: Search User Profiles by Keyword
Endpoint:POST /v3/search-users
The most direct way to find a specific persona. This endpoint scans user bios, display names, and handles for your keywords and returns matching profiles with full metadata.
When to use it: You need people who identify as something specific - “Product Manager”, “Solidity Developer”, “Fitness Coach”, “Founder”, “VC” - and say so in their profile.
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keyword to match against bios, display names, and handles. |
next_cursor | string | No | Pagination cursor from a previous response. |
Python Example
JavaScript Example
Refining Results
The/search-users response includes full profile data for each match: followers_count, followings_count, tweets_count, verified, description, location, and created_at. Use these fields to post-filter in your code:
Technique 2: Extract Followers from a Competitor Account
Endpoint:GET /v3/followers
If a competitor, industry leader, or niche account has built an audience in your space, their follower list is your pre-qualified target audience. Every person who followed that account made a deliberate choice to engage with that topic.
When to use it: You have identified accounts whose audience overlaps with your ideal customer profile. You want a list of those followers with profile data for outreach, analysis, or ad targeting.
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | One of these | The handle to get followers for. |
user_id | string | required | Alternatively, the numeric user ID. |
user_link | string | Alternatively, the full profile URL. | |
cursor | integer | No | Pagination cursor. |
Python Example
Combining Multiple Competitor Lists
For a more comprehensive audience map, pull followers from several competitor accounts and find the overlap - users who follow multiple competitors are the most engaged segment in your market:Technique 3: Discover Audience Through Communities
Endpoint:POST /v3/community-members
X Communities are self-selected groups of users who share an interest. A community called “DeFi Builders” or “Indie Hackers” is, by definition, a list of people who care about that topic. Scraping the membership gives you a pre-filtered audience.
When to use it: You have identified X Communities relevant to your niche and want to extract the member list for outreach, analysis, or ad targeting.
Request
community_link accepts either the numeric community ID or the full URL (e.g., https://x.com/i/communities/1966045657589813686).
Python Example
Technique 4: Find Active Voices via Tweet Content
Endpoint:POST /v3/search-tweets
Sometimes the best way to find your audience is not by who they say they are, but by what they talk about. Search for tweets about a specific pain point, technology, or topic, then extract the author data from each result.
When to use it: You want people who are actively discussing a topic right now - not just people who put something in their bio years ago. This captures real-time intent.
Python Example
Query Ideas for Intent-Based Discovery
| Goal | Query |
|---|---|
| People looking for a product | "need a tool for" OR "recommend a" lang:en |
| People complaining about a competitor | "competitor name" (frustrated OR annoyed OR bad OR terrible) -from:competitor |
| People discussing a pain point | "struggling with" OR "how do you handle" your_topic lang:en |
| People celebrating a milestone | "just launched" OR "first customer" OR "hit 1000" your_niche lang:en |
Technique 5: Analyze Verified and High-Authority Followers
Endpoint:GET /v3/verified-followers
For influencer marketing or B2B outreach, you often want to focus on verified or high-authority accounts following a relevant handle. The /verified-followers endpoint returns only verified followers, giving you a shortlist of notable accounts in any audience.
Python Example
Choosing the Right Technique
Each method answers a different question about your audience:| Question | Technique | Endpoint |
|---|---|---|
| Who identifies as my target persona? | Profile keyword search | /search-users |
| Who already follows accounts like mine? | Competitor follower extraction | /followers |
| Who joined a group around my topic? | Community member scraping | /community-members |
| Who is actively talking about my topic? | Tweet content mining | /search-tweets |
| Which notable accounts follow a leader in my space? | Verified follower analysis | /verified-followers |
/search-users to find your broad audience, then cross-reference with followers of a competitor to identify the warmest leads, and finally check /search-tweets for people actively complaining about existing tools to find immediate opportunities.
Exporting Audience Data to CSV
Whichever technique you use, the export pattern is the same. Here is a reusable function that takes any list of user objects and writes them to CSV:Next Steps
- How to Search Tweets via API - full guide to
/search-tweetsfor content-based audience discovery. - Search Operators Reference - Boolean logic and filters for precision queries.
- Real-Time Monitoring - set up alerts to catch target audience members the moment they post.
- Search Mentions Guide - track mentions of your brand or competitors to find engaged audience segments.
- API Reference - full specification for
/search-users,/followers,/verified-followers,/community-members, and all 38 endpoints.