API Integration

The FourYourSafety API provides programmatic access to Twitter/X intelligence data tracked by the FYS browser extension. All endpoints return JSON and are available under:
https://fouryoursafety.fun/api/Endpoints
Get Deleted Tweets
Retrieve a list of deleted tweets from a given user.
Endpoint
GET /api/deleted-tweetsQuery Parameters
user(string, required) – Twitter usernamelimit(int, optional, default: 20) – Number of tweets to fetch
Example Request
GET https://fouryoursafety.fun/api/deleted-tweets?user=CryptoInfluencer&limit=5
Authorization: Bearer keyExample Response for deleted tweets fetching (fictitious information)
{
"user": "CryptoInfluencer",
"deleted": [
{
"id": "172839293",
"text": "Buy this token now: QxO2...pump",
"timestamp": "2025-10-01T12:34:56Z"
},
{
"id": "172839294",
"text": "Partnership incoming...",
"timestamp": "2025-10-01T13:21:11Z"
}
]
}Get Contract Addresses
Fetch contract addresses mentioned in tweets from a user.
Endpoint
GET /api/contract-addressesQuery Parameters
user(string, required)limit(int, optional)
Example Request
GET https://fouryoursafety.fun/api/contract-addresses?user=ZssBeckerExample Response for CA tweets (fictitious information)
{
"user": "ZssBecker",
"addresses": [
{
"ca": "0x98ab76...",
"tweetId": "987654321",
"timestamp": "2025-10-02T09:10:00Z"
}
]
}Get First Followers
List the earliest followers of a new account.
Endpoint
GET /api/first-followersQuery Parameters
user(string, required)page(int, optional) – For pagination
Example Request
GET https://fouryoursafety.fun/api/first-followers?user=NewProjectX&page=1Example Response for first followers (fictitious information)
{
"user": "TotallyNotFarming",
"first_followers": [
{"username": "cupseyy", "followed_at": "2025-09-29T10:05:00Z"},
{"username": "ga__ke", "followed_at": "2025-09-29T10:07:45Z"}
]
}Get Profile Changes
Track bio and username history.
Endpoint
GET /api/profile-changesQuery Parameters
user(string, required)
Example Request
GET https://fouryoursafety.fun/api/profile-changes?user=TokenShillerExample Response for bio changes (fictitious information)
{
"user": "TokenShiller",
"changes": [
{
"field": "bio",
"old": "Lover of cats and memes",
"new": "Early investor in $TRUMP",
"changed_at": "2025-09-25T08:00:00Z"
},
{
"field": "username",
"old": "TokenShiller",
"new": "TRUMP_God",
"changed_at": "2025-09-26T09:30:00Z"
}
]
}Get Key Followers
Identify notable accounts in a user’s follower network.
Instantly find out if any notable figures in CT are following the project you're eyeballing, this usually gives you a clear indication of alpha or not. See reputable traders following? Then you're most likely on the right track.
Endpoint
GET /api/key-followersQuery Parameters
user(string, required)
Example Request
GET https://fouryoursafety.fun/api/key-followers?user=CryptoGuruExample Response for key followers (fictitious information)
{
"user": "loof",
"key_followers": [
{"username": "cupseyy", "score": 9291},
{"username": "ga__ke", "score": 10292}
]
}Error Codes
200 OK– Successful request400 Bad Request– Invalid query parameters401 Unauthorized– Missing or invalid API key404 Not Found– Resource not found429 Too Many Requests– Rate limit exceeded500 Internal Server Error– Unexpected server error
Rate Limits
Free Tier: 100 requests / day
Pro Tier: 10,000 requests / day
Exceeding limits returns
429 Too Many Requests
Example Workflow
This workflow allows traders to detect suspicious patterns and researchers to archive data systematically.
Last updated