FSB FSB API DOCS

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 →

100% Free
15 req/min
Strict JSON Payload
New · 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"
read
Account, settings, favorites, tracked accounts, your keys.
write
Change settings, favorites and tracked accounts. Includes read.
email
Adds the account's email address to /me.

Sign users in from an app (device flow)

  1. Your app calls POST /auth/device with client_name and scope.
  2. Show the user_code and open verification_uri_complete in the browser (Custom Tab on Android). The user signs in to FSB and taps Approve.
  3. Meanwhile poll POST /auth/token with the device_code every interval seconds. You get authorization_pending until the user approves, then an access_token. Codes expire after 10 minutes and work once.
  4. 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

MethodPathNeedsWhat 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/mereadYour account, linked X/Discord, settings, limits and your own X shadowban status.
GET/me/settingsreadtheme and hide_presence.
PATCH/me/settingswriteJSON body with theme ("v2"/"legacy") and/or hide_presence (bool).
GET/me/favoritesreadFavorited profiles with their current status.
PUT / DELETE/me/favorites/{username}writeAdd or remove a favorite (max 6). Idempotent.
GET/me/trackedreadAccounts you monitor with email alerts, with current status.
POST/me/trackedwriteStart tracking. Body: username. Max 5 plus your own X account; needs an email on the account.
DELETE/me/tracked/{username}writeStop tracking.
GET/me/tokensreadYour keys and connected apps (never the secrets).
DELETE/me/tokens/currentany tokenRevoke the token making the request (sign out).

Limits

No key, per IP15 / min
Per token60 / min
Per account, all tokens5,000 / day
Changes (PUT/PATCH/POST/DELETE)20 / min
Profile lookups with a token20 / min
Keys + apps per account10

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

Interactive Console

Live Endpoint Explorer

Test live against real Twitter/X targets
GET
https://visiuun.com/fsb/?api=
Quick handles:
Ready • -- ms • -- KB
// 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.

https://visiuun.com/fsb/?api={username}
https://visiuun.com/fsb/?api&target={username}

Fair Use & Rate Limits

The free tier permits 15 requests per minute per client IP. Response headers keep client clients synchronized with remaining quota:

X-RateLimit-Limit 15
X-RateLimit-Remaining 0 - 15
X-RateLimit-Reset Unix timestamp
Retry-After Seconds to wait (on 429)
Code Samples

Integration Snippets

curl -s -X GET "https://visiuun.com/fsb/?api=elonmusk" \
  -H "Accept: application/json" \
  -H "User-Agent: YourApp/1.0"
Data Contracts

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`.
HTTP Protocol

Status Codes & Error Handling

200 OK

Successful inspection. Account telemetry and diagnostics returned cleanly.

400 Bad Request

Invalid username format or missing target parameter.

403 Forbidden

Blocked access via cloud proxies, Tor exit nodes, or automated scrapers.

404 Not Found

Account does not exist on Twitter/X, has been deleted, or is suspended.

429 Rate Limit

Hourly rate limit exceeded (15 req/min). Inspect Retry-After header.

502 Bad Gateway

Twitter upstream service is temporarily unreachable or undergoing maintenance.