For the complete documentation index, see llms.txt. This page is also available as Markdown.

Endpoints

Every endpoint of the Alphagate API, with parameters, credit cost and an example response.

This page is generated from the live API description at https://api.alphagate.io/api/info, so it lists exactly what the API serves today. Base URL for every call: https://api.alphagate.io/api/v2.

Endpoint
What it returns
Cost

User Contracts

2 credits

Deleted Tweets

4 credits

Key Followers

4 credits

First Follows

3 credits

User Alpha

6 credits

Previous Usernames

0.5 credits

Bio History

2 credits

Username to ID

0.1 credits

Live User Profile

0.1 credits

Live Followers

1 credit

Live Following

1 credit

Live Latest Tweets

0.1 credits per result

Balance

Free

Usage History

Free

Usage Summary

Free

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).

Parameter
Type
Required
Description

username

string

No

Twitter username. Provide username or twitterId.

twitterId

string

No

Twitter numeric ID. Provide username or twitterId.

Example data

Deleted Tweets

GET /user/deleted-tweets · 4 credits

Get deleted tweets from a user.

Parameter
Type
Required
Description

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).

Example data

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.

Parameter
Type
Required
Description

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).

Example data

First Follows

GET /user/first-follows · 3 credits

Get the first accounts that followed this user (early supporters).

Parameter
Type
Required
Description

username

string

No

Twitter username. Provide username or twitterId.

twitterId

string

No

Twitter numeric ID. Provide username or twitterId.

Example data

User Alpha

GET /user/alpha · 6 credits

Get key intelligence on a user: contract activity, community creation, and name changes.

Parameter
Type
Required
Description

username

string

No

Twitter username. Provide username or twitterId.

twitterId

string

No

Twitter numeric ID. Provide username or twitterId.

Example data

Previous Usernames

GET /user/prev-usernames · 0.5 credits

Get previous usernames for a user.

Parameter
Type
Required
Description

username

string

No

Twitter username. Provide username or twitterId.

twitterId

string

No

Twitter numeric ID. Provide username or twitterId.

Example data

Bio History

GET /user/bio-history · 2 credits

Get bio change history for a user. Returns previous and new bio values with timestamps.

Parameter
Type
Required
Description

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).

Example data

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.

Parameter
Type
Required
Description

username

string

Yes

Twitter handle (without @).

Example data

Live User Profile

GET /x/user/overview · 0.1 credits

Get a full Twitter user profile in real time.

Parameter
Type
Required
Description

username

string

Yes

Twitter handle (without @).

Example data

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.

Parameter
Type
Required
Description

twitterId

string

No

Twitter numeric user ID. Required if username not provided.

username

string

No

Twitter handle (without @). Required if twitterId not provided.

Example data

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.

Parameter
Type
Required
Description

twitterId

string

No

Twitter numeric user ID. Required if username not provided.

username

string

No

Twitter handle (without @). Required if twitterId not provided.

Example data

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.

Parameter
Type
Required
Description

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.

Example data

Account

Your own balance and usage. These calls are free.

Balance

GET /balance · Free

Get current credit balance and plan info.

Example data

Usage History

GET /usage/history · Free

Paginated log of all API calls made.

Parameter
Type
Required
Description

page

number

No

Page number (default: 1).

Example data

Usage Summary

GET /usage/summary · Free

Aggregated usage stats for the last 30 days.

Example data

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