Endpoints
Every endpoint of the Alphagate API, with parameters, credit cost and an example response.
Database
Alphagate's own records: what we have stored about an account over time.
User Contracts
GET /user/contracts · 2 credits
Get the smart contract addresses associated with a user: the 100 most recent, oldest first. contracts lists the addresses; mentioned_contracts lists the same contracts in the same order, each with its chain, the token symbol and name, and when the account first mentioned it (Unix seconds, null when not known).
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
Deleted Tweets
GET /user/deleted-tweets · 4 credits
Get deleted tweets from a user.
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
limit
number
No
Max tweets to return (default 100, max 100).
Key Followers
GET /user/key-followers · 4 credits
Get key followers (influencers/KOLs) that follow this user, with the time of each follow. A follow that already existed when we started tracking that key profile has no known time and is not listed.
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
sort
string
No
Sort order: "recent" (default) or "oldest".
page
number
No
Page number (default: 1). No maximum: page through the full list; a page past the end returns an empty list.
limit
number
No
Page size (default 20, max 50).
First Follows
GET /user/first-follows · 3 credits
Get the first accounts that followed this user (early supporters).
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
User Alpha
GET /user/alpha · 6 credits
Get key intelligence on a user: contract activity, community creation, and name changes.
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
Previous Usernames
GET /user/prev-usernames · 0.5 credits
Get previous usernames for a user.
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
Bio History
GET /user/bio-history · 2 credits
Get bio change history for a user. Returns previous and new bio values with timestamps.
username
string
No
Twitter username. Provide username or twitterId.
twitterId
string
No
Twitter numeric ID. Provide username or twitterId.
page
number
No
Page number (default: 1, max: 30; a later page returns an empty list).
limit
number
No
Page size (default 20, max 50).
Live Twitter
Read straight from X at the moment you call. Results reflect X right now.
Username to ID
GET /user/id · 0.1 credits
Convert a Twitter username to a numeric user ID in real time.
username
string
Yes
Twitter handle (without @).
Live User Profile
GET /x/user/overview · 0.1 credits
Get a full Twitter user profile in real time.
username
string
Yes
Twitter handle (without @).
Live Followers
GET /x/user/followers · 1 credit
Get a user's 50 most recent followers from Twitter in real time. There are no further pages.
twitterId
string
No
Twitter numeric user ID. Required if username not provided.
username
string
No
Twitter handle (without @). Required if twitterId not provided.
Live Following
GET /x/user/following · 1 credit
Get the 50 accounts a user followed most recently on Twitter, in real time. There are no further pages.
twitterId
string
No
Twitter numeric user ID. Required if username not provided.
username
string
No
Twitter handle (without @). Required if twitterId not provided.
Live Latest Tweets
GET /x/user/latest-tweets · 0.1 credits per result
Get a user's latest tweets in real time (replies excluded): one page of up to 20 tweets (fewer with count). There are no further pages.
twitterId
string
No
Twitter numeric user ID. Required if username not provided.
username
string
No
Twitter handle (without @). Required if twitterId not provided.
count
number
No
Number of tweets to return, up to 20 (default 20). A larger count returns 20.
raw
string
No
Set to "true" to get the tweets in X's original format.
Account
Your own balance and usage. These calls are free.
Balance
GET /balance · Free
Get current credit balance and plan info.
Usage History
GET /usage/history · Free
Paginated log of all API calls made.
page
number
No
Page number (default: 1).
Usage Summary
GET /usage/summary · Free
Aggregated usage stats for the last 30 days.
Paging
Endpoints that page take page and limit. The default page size is 20 and the largest is 50. Where a page cap applies, it is 30; an endpoint's own parameter notes say when there is no cap.
Rate limit
Every plan: at most 180 requests per minute per API key (3 a second on average). Over it the API answers 429.
Last updated