FSB API
Integrate real-time Twitter reach diagnostics into your bot, dashboard or app. Public data needs no key. Free keys and app sign-in unlock each user's own account: settings, favorites and tracked accounts. API v1 →
Accounts, keys & apps
Everything public still works without a key. Sign users in to read and change their own FSB account: settings, favorites and tracked accounts. Build a bot, a dashboard or a full Android/iOS app on top of it.
Base URL: https://visiuun.com/fsb/api/v1
Public
No key. /status, /profiles/{username}. 15 requests/min per IP.
Personal key
For your own scripts and bots. Create one at https://visiuun.com/fsb/apps. 60 requests/min.
App sign-in
For apps other people use. Users approve a short code on FSB, your app never sees their Discord or X login. How it works.
Authentication
Send the token in the Authorization header. Tokens in the URL are rejected, because URLs end up in logs. Keep tokens out of websites' JavaScript and public repos; revoke a leaked one instantly at /apps.
curl https://visiuun.com/fsb/api/v1/me \
-H "Authorization: Bearer fsb_your_token_here"
/me.Sign users in from an app (device flow)
- Your app calls
POST /auth/devicewithclient_nameandscope. - Show the
user_codeand openverification_uri_completein the browser (Custom Tab on Android). The user signs in to FSB and taps Approve. - Meanwhile poll
POST /auth/tokenwith thedevice_codeeveryintervalseconds. You getauthorization_pendinguntil the user approves, then anaccess_token. Codes expire after 10 minutes and work once. - Store the token in encrypted storage (Android Keystore / EncryptedSharedPreferences). On sign-out call
DELETE /me/tokens/current.
// Kotlin (OkHttp + org.json)
val api = "https://visiuun.com/fsb/api/v1"
val json = "application/json".toMediaType()
val start = JSONObject(client.newCall(Request.Builder().url("$api/auth/device")
.post("""{"client_name":"My FSB App","scope":"read write"}""".toRequestBody(json)).build())
.execute().body!!.string()).getJSONObject("data")
showCode(start.getString("user_code"))
openCustomTab(start.getString("verification_uri_complete"))
var token: String? = null
while (token == null) {
delay(start.getInt("interval") * 1000L)
val res = JSONObject(client.newCall(Request.Builder().url("$api/auth/token")
.post("""{"device_code":"${start.getString("device_code")}"}""".toRequestBody(json)).build())
.execute().body!!.string())
if (res.getBoolean("ok")) token = res.getJSONObject("data").getString("access_token")
else if (res.getJSONObject("error").getString("code") !in listOf("authorization_pending", "slow_down")) break
}
Endpoints
| Method | Path | Needs | What it does |
|---|---|---|---|
| GET | / | — | Endpoint list, your limits and scopes. |
| GET | /status | — | Health of FSB's checking services (same data as the status page). |
| GET | /profiles/{username} | — | Profile (incl. avatar and banner {url, original} or null), shadowban verdict and each test. Add ?include=history,posts for the check history and recent posts. With a token it also returns favorited. |
| GET | /profiles/{username}/posts | — | Recent posts and reposts (no replies) with media: direct pbs.twimg.com image and video.twimg.com MP4 URLs plus thumbnails, and quoted posts. ?limit= up to 100, ?media=1 for media posts only. |
| GET | /search?q= | — | Find accounts by handle, display name, profile link or numeric X ID. Results are confirmed real profiles; add &loose=1 to include autocomplete guesses. Uncached searches: 10/min. |
| GET | /explore | — | Every checked profile (the Global Board). ?status=all|shadowbanned|clean|sensitive|unknown, &sort=recent|views|favorites|followers, &page=, &limit= up to 50. With a token each item has favorited. |
| GET | /random | — | One random checked profile. Takes the same ?status= filter and &exclude={username}. |
| POST | /auth/device | — | Start an app sign-in. Body: client_name, scope. |
| POST | /auth/token | — | Poll for the token. Body: device_code. |
| GET | /me | read | Your account, linked X/Discord, settings, limits and your own X shadowban status. |
| GET | /me/settings | read | theme and hide_presence. |
| PATCH | /me/settings | write | JSON body with theme ("v2"/"legacy") and/or hide_presence (bool). |
| GET | /me/favorites | read | Favorited profiles with their current status. |
| PUT / DELETE | /me/favorites/{username} | write | Add or remove a favorite (max 6). Idempotent. |
| GET | /me/tracked | read | Accounts you monitor with email alerts, with current status. |
| POST | /me/tracked | write | Start tracking. Body: username. Max 5 plus your own X account; needs an email on the account. |
| DELETE | /me/tracked/{username} | write | Stop tracking. |
| GET | /me/tokens | read | Your keys and connected apps (never the secrets). |
| DELETE | /me/tokens/current | any token | Revoke the token making the request (sign out). |
Limits
Every response carries X-RateLimit-* headers; a 429 includes Retry-After. Results are cached, so polling a profile faster than every few minutes gives you the same answer.
Responses & errors
{ "ok": true, "data": { ... } }
{ "ok": false, "error": { "code": "insufficient_scope",
"message": "This token is missing the 'write' scope." } }
Common codes: auth_required 401, invalid_token 401, insufficient_scope 403, not_found 404, limit_reached 409, invalid_value 422, rate_limited 429, upstream_unavailable 502.
Showing FSB results publicly? Credit them as “Shadowban data by FSB Sentinel” and link to https://visiuun.com/fsb/ (each profile response has an fsb_url for this).
Shadowban tests are true, false or null. null means the test could not be completed; it is never reported as clean, and the verdict is then "unknown".
Live Endpoint Explorer
// Click "Send Request" to inspect the live response
Root Endpoints
All requests must be issued over standard HTTPS. Responses are served with application/json encoding.
Fair Use & Rate Limits
The free tier permits 15 requests per minute per client IP. Response headers keep client clients synchronized with remaining quota:
Integration Snippets
curl -s -X GET "https://visiuun.com/fsb/?api=elonmusk" \
-H "Accept: application/json" \
-H "User-Agent: YourApp/1.0"
Payload Schema Reference
Descriptions for all entities returned within the data root object.
data.profile
Profile Metadata Object| Field | Type | Description |
|---|---|---|
| username | string | Handle/screen name without leading `@`. |
| name | string | Display name specified on the account profile. |
| avatar | string | Authentic HD 400x400 avatar URL hosted on Twitter CDN. |
| avatar_proxy | string | CORS-friendly cached avatar proxy URL provided by FSB. |
| bio | string | Self-declared profile description. |
| verified | boolean | True if account holds X Premium or legacy blue verification badge. |
| stats | object | Followers, following, posts count, likes count, and follower-to-following ratio. |
data.shadowban
Algorithmic Diagnostics| Field | Type | Description |
|---|---|---|
| is_shadowbanned | boolean | True if any algorithmic restriction (search, suggestion, ghost, or reply deboost) is active. |
| status | string | "Clean" or "Shadowbanned". |
| health_score | integer | Composite reach integrity score from 0 to 100. |
| tests.search_ban | object | Indicates if tweets are completely hidden from Twitter/X search results. |
| tests.search_suggestion_ban | object | Indicates if handle is suppressed from typeahead search suggestions and recommendation feeds. |
| tests.ghost_ban | object | Indicates if replies are isolated and hidden from third-party thread observers. |
| tests.reply_deboosting | object | Indicates if replies are relegated behind the 'Show more replies' / 'probable spam' demotion barrier. |
data.post_intelligence
Timeline Metrics & Outliers| Field | Type | Description |
|---|---|---|
| sample_size | integer | Count of recent posts evaluated (typically 20 - 40). |
| engagement_rate_percent | float | Standardized engagement percentage relative to active followers and views. |
| link_penalty_exposure_percent | float | Percentage of posts containing outside links (which trigger algorithmic demotion). |
| outliers | object | High-impact posts: `best_performing`, `highest_algorithmic_impact`, `most_discussed`, `lowest_performing`. |
Status Codes & Error Handling
Successful inspection. Account telemetry and diagnostics returned cleanly.
Invalid username format or missing target parameter.
Blocked access via cloud proxies, Tor exit nodes, or automated scrapers.
Account does not exist on Twitter/X, has been deleted, or is suspended.
Hourly rate limit exceeded (15 req/min). Inspect Retry-After header.
Twitter upstream service is temporarily unreachable or undergoing maintenance.