Skip to main content

Ответ Gemini

Вот статьи для этих эндпоинтов в том же формате на английском языке:

1. User Info Batch

Endpoint: GET /info-batch Description This powerful endpoint allows you to retrieve detailed profile information for multiple Twitter/X accounts in a single request. By providing a list of usernames (handles) or User IDs, you get structured data for each account, including follower counts, bios, verification status, and profile images. Who is it for?
  • Data Aggregators: To efficiently update large databases of user profiles without hitting rate limits on individual requests.
  • Campaign Managers: To quickly verify the reach and authenticity of a list of potential influencers or partners.
  • Developers: To populate “following” or “member” cards in your application UI by fetching batch data.
Use Cases
  • Resolving a list of 50 usernames into their unique Twitter IDs and current stats.
  • Refreshing profile metadata (like avatars and bios) for a community leaderboard.
  • Filtering a large set of users to find those with a specific follower threshold or “Verified” status.
Request Example (Python) Python
import requests

url = "https://api.sorsa.io/v3/info-batch"
headers = {"ApiKey": "YOUR_API_KEY"}
# You can pass multiple handles or IDs separated by commas
params = {
    "links": "elonmusk,vitalikbuterin,jack" 
}

response = requests.get(url, headers=headers, params=params)
users = response.json() # Returns a list of user objects

for user in users:
    print(f"{user['name']} has {user['followers_count']} followers.")

2. User Followers

Endpoint: GET /followers Description This endpoint retrieves a paginated list of all accounts following a specific user. It provides full profile details for each follower, making it easy to map out a user’s audience. Who is it for?
  • Audience Researchers: To analyze the demographics and interests of a specific account’s fan base.
  • Security Tools: To monitor for “bot-like” follower patterns or sudden spikes in suspicious followers.
  • Growth Strategists: To identify high-value followers (whales/influencers) who are tracking a competitor.
Use Cases
  • Exporting the first 1,000 followers of a project to analyze their common interests.
  • Finding “common followers” between two different industry leaders.
  • Auditing an account’s audience quality by checking follower bios and verification statuses.
Request Example (Python) Python
import requests

url = "https://api.sorsa.io/v3/followers"
headers = {"ApiKey": "YOUR_API_KEY"}
params = {
    "link": "elonmusk",  # Can be username, ID, or full URL
    "cursor": ""         # Optional for pagination
}

response = requests.get(url, headers=headers, params=params)
data = response.json()

for follower in data.get("users", []):
    print(f"Followed by: @{follower['screen_name']}")

3. User Follows (Following)

Endpoint: GET /follows Description This endpoint returns the list of accounts that a specific user is following (their “friends” list). This is crucial for understanding a user’s information sources and who they consider influential. Who is it for?
  • Trend Hunters: To see which niche experts or new projects a top-tier influencer has recently started following.
  • Personalization Engines: To suggest similar accounts to follow based on a user’s current following list.
  • Competitive Intelligence: To track who your competitors are networking with or monitoring.
Use Cases
  • Mapping out the “Inner Circle” of a VC or founder by seeing who they follow.
  • Discovering new, under-the-radar projects by monitoring the following lists of “Alpha” hunters.
  • Building a “Who to Follow” recommendation system for your own app.
Request Example (Python)
import requests

url = "https://api.sorsa.io/v3/follows"
headers = {"ApiKey": "YOUR_API_KEY"}
params = {
    "link": "https://x.com/vitalikbuterin", # Supports full links
    "cursor": ""                           # Optional
}

response = requests.get(url, headers=headers, params=params)
data = response.json()

for following in data.get("users", []):
    print(f"User follows: @{following['screen_name']}")