# Xanguard — Real-Time Twitter/X Monitoring Platform (Full Reference) > Xanguard is a real-time Twitter/X monitoring platform that delivers tweet alerts (median ~200 ms on paid plans, published live at https://xanguard.tech/speed/), community gate detection, profile watching, follow/unfollow tracking, new-follower detection, deleted-tweet detection, contract-address tweet search, and engagement monitoring across 9 products. Xanguard serves crypto traders, DeFi protocols, trading bots, and AI agents through Telegram bots, WebSocket feeds and REST APIs, plus HMAC-signed webhooks on paid Tweet Alerts plans. The B2B WebSocket API uses TweetCatcher-compatible opcodes and starts at $49/mo for 50 handles. - Website: https://xanguard.tech - API Documentation: https://docs.xanguard.tech - Telegram Bot Guides: https://docs.xanguard.tech/telegram/ - OpenAPI Spec: https://xanguard.tech/openapi.json - Blog: https://xanguard.tech/blog/ - Health: https://xanguard.tech/health --- ## Core Products ### 1. Tweet Alerts (@Xanguard_bot) — Free + Paid ($19-$700/mo) Plans: Free 1 account · Starter $19 (10) · Growth $49 (35) · Pro $99 (75) · Business $179 (150) · Scale $230 (200) · Enterprise $349 (500) · Ultra $700 (1,000). Tweet notifications with a measured median of ~200 ms on paid plans (the free plan is slower). Delivery via Telegram. Paid plans can also register HMAC-SHA256 signed webhooks (headers `X-Signature` and `X-Webhook-Id`; limit per plan: Starter 1, Growth 2, Pro 5, Business and Scale 10, Enterprise 25, Ultra 50; not on the free plan). High-volume WebSocket and REST feeds come with B2B plans (API keys are issued in @B2B_Xanguard_bot). Features keyword filtering, contract address extraction with a live token box on Telegram alerts (price, market cap, FDV, liquidity, 24h volume, price change, ATH, buys/sells, token age, DexScreener and pump.fun links), reply/quote filtering, and mute controls. The free tier supports 1 handle with Telegram delivery. Paid tiers support 10 to 1,000 handles. - Bot: https://t.me/Xanguard_bot - Page: https://xanguard.tech/ ### 1b. Add-ons inside @Xanguard_bot (each a separate subscription, no Tweet Alerts plan required, paid in SOL) - **Follow Watch** (https://xanguard.tech/follow-watch/): Telegram alerts when a watched account follows or unfollows someone, with the followed account's name, bio and follower counts. New follows alerted in a median of 284 ms, 93.5% under 500 ms (measured from the moment X shows the follow; 784 follows, 48h to 20 Sep 2026). 15 accounts $15/mo · 60 $59 · 120 $89 · 350 $189 · 600 $299. - **Profile Watch**: alerts on name, bio, avatar and banner changes. 35 accounts $35/mo · 75 $75 · 150 $150 · 500 $500. - **Keyword Alerts**: one keyword list applied to all tracked accounts, $10/mo flat. Per-account keyword filters are included in every plan. - **Search Alerts**: keyword monitoring across all of X, 20 queries for $50/mo. Checked on a schedule, as often as every minute (you choose: 1 min, 5 min, 10 min, 30 min, 1 h or 6 h), not in real time. ### 2. Community Watch (@F_xanguard_bot) — $100-$1,500/mo Twitter/X Community monitoring with approximately 5-second detection. Tracks when watched accounts join communities, community renames and description changes, follows, and new-follower events. (X stopped new community creation in April 2026, so alerts focus on existing communities.) Delivery: Telegram, API, and webhook (on request). - Bot: https://t.me/F_xanguard_bot - Page: https://xanguard.tech/communities/ ### 3. Convergence Tracker (@T_Xanguard_bot) — $100-$1,500/mo Multi-account community clustering detection. Identifies when multiple monitored Twitter accounts join the same community within a configurable time window. Delivery: Telegram, API, and webhook (on request). - Bot: https://t.me/T_Xanguard_bot - Page: https://xanguard.tech/tracker/ ### 4. Xanguard B2B (@B2B_Xanguard_bot) — $49-$2,849/mo High-volume real-time Twitter monitoring via WebSocket with TweetCatcher-compatible opcodes. Positioned as Tweets + Profile + new-follower + deleted-tweet detection. Modules: tweets (realtime), follow/unfollow detection (follows), profile change detection (profile_watch), new-follower detection (followers — know the instant a tracked account gains a new follower, and exactly who it was), and deleted-tweet detection (realtime — get alerted the moment a tracked account deletes a tweet). REST endpoints for on-demand data. Supports up to 1,000 handles per client. - Bot: https://t.me/B2B_Xanguard_bot - WS Endpoint: wss://api.xanguard.tech/v1/dt/realtime/ws ### 5. Trending Alerts (@Trends_Xanguard_bot) — $39/mo Trending tweet monitoring across 24 categories. Pro tier at $39/mo for all categories with WebSocket and REST access. - Bot: https://t.me/Trends_Xanguard_bot - Page: https://xanguard.tech/trending/ ### 6. Engagement Tracker (@E_Xanguard_bot) — $100-$200/mo Real-time tweet engagement monitoring. Tracks likes, retweets, replies, views, and bookmarks on specific tweets. - Bot: https://t.me/E_Xanguard_bot ### 7. PF — pump.fun Callouts + Wallet Events (@PF_Xanguard_bot) — $100-$500/mo Real-time pump.fun caller callout alerts with entry market cap, caller position size, cost basis, thesis, and the caller's track record (win rate at 2x+, median multiple, followers). Milestone pings at 2x/5x/10x with time-to-hit. Wallet events too: livestreams, launches, graduations. Callouts, Livestream, Token Launch and Graduation are four separate subscriptions on the same grid: $100 (3 callers or wallets), $180 (6), $270 (10), $500 (20), per alert type. - Bot: https://t.me/PF_Xanguard_bot (`/call` for callers, `/add` for wallets) - Page: https://xanguard.tech/pumpfun/ ### 8. Search Alerts — $50/mo add-on Keyword search monitoring across all of X, 20 queries for $50/mo. Checks as often as every minute (you choose: 1 min to 6 h). Not real-time. Bought inside @Xanguard_bot; no Tweet Alerts plan required. ### 9. CA Search (B2B add-on) — $100-$250/mo Full tweet search by contract address, ticker, cashtag, or keyword via `POST /v1/search`. Each call walks the last 24 hours of matches and returns up to 200 tweets with full author metadata, engagement metrics, quote/reply context, and a summary (unique authors, total reach, top 5 callers). Auth: B2B `dt_` key; also accepts the twitterapi.io-compatible `X-API-Key` header. - Docs: https://docs.xanguard.tech/#ca-search --- ## B2B API Pricing ### Starter (tweets + deleted-tweet) | Handles | Price | |---------|-------| | 50 | $49/mo | | 250 | $229/mo | | 500 | $449/mo | | 1,000 | $849/mo | ### Pro (+ profile watch + new-follower) | Handles | Price | |---------|-------| | 50 | $99/mo | | 250 | $429/mo | | 500 | $749/mo | | 1,000 | $1,349/mo | ### Enterprise (+ follow/unfollow, all 5 modules) | Handles | Price | |---------|-------| | 50 | $249/mo | | 250 | $979/mo | | 500 | $1,649/mo | | 1,000 | $2,849/mo | ### Comparison to Alternatives - **TweetStream**: $199/mo ($139/mo billed annually), tweet-focused feed (checked September 2026) - **TweetCatcher**: EUR 300/mo for 200 handles (tweets + follows) (checked September 2026) - **Official X API**: pay-per-use since 2026: $0.005 per post read, $0.010 per user read, 3 million post reads a month before Enterprise; filtered stream limited to 1 connection (docs.x.com, checked 5 October 2026). Comparison: https://xanguard.tech/blog/xanguard-vs-x-api/ Xanguard provides tweet detection in a median of ~200 ms, 5 monitoring modules, WebSocket and REST delivery, and starts at $49/mo for 50 handles. ### CA Search add-on (requires any B2B tier) | Searches/day | Price | |--------------|-------| | 1,000 | $100/mo | | 2,000 | $180/mo | | 5,000 | $250/mo | Payment is accepted in SOL (Solana) only. All monitoring is non-custodial and read-only. A 10% referral commission is available with instant SOL payout. --- ## Authentication ### Bearer Token (REST API) Each product uses a prefixed API key obtained from the corresponding Telegram bot: - **Tweet Alerts**: `xg_` prefix from @Xanguard_bot - **Community Watch**: `cw_` prefix from @F_xanguard_bot - **Convergence Tracker**: `ct_` prefix from @T_Xanguard_bot - **Xanguard B2B**: `dt_` prefix from @B2B_Xanguard_bot - **Engagement Tracker**: `et_` prefix from @E_Xanguard_bot - **Trending Alerts**: `trend_` prefix from @Trends_Xanguard_bot - **PumpFun Bot**: `pf_` prefix from @PF_Xanguard_bot - **Search Alerts**: `sa_` prefix from @Xanguard_bot ``` Authorization: Bearer ``` ### WebSocket Auth (Tweet Alerts) Pass api_key as query parameter: ``` wss://api.xanguard.tech/v1/ws?api_key= ``` ### WebSocket Auth (B2B Realtime) Connect without auth, receive HELLO, then send LOGIN opcode with `dt_` key. See B2B Realtime section below. ### WebSocket Auth (Other Products) Pass api_key as query parameter on each product's WS endpoint: ``` wss://api.xanguard.tech/v1/{product}/ws?api_key= ``` ### JWT Cookie (Web Dashboard) Cookie name: `xg_session`. Obtained via POST `/v1/auth/telegram` or POST `/v1/auth/apikey`. ## Response Envelope All REST responses use this envelope: ```json {"ok": true, "data": { ... }} {"ok": false, "error": "Error message"} ``` ## Error Codes | Status | Meaning | |--------|---------| | 401 | Missing or invalid API key | | 403 | Insufficient tier / feature not available | | 404 | Resource not found | | 409 | Handle already tracked / duplicate | | 429 | Rate limit exceeded (per-key, per-second, based on tier) | | 500 | Internal server error | --- ## Xanguard B2B Realtime API (WebSocket) High-volume real-time feed with TweetCatcher-compatible opcode protocol. Supports tweets, follows, profile changes, new-follower detection, and deleted-tweet detection. Auth: `dt_` prefixed API key. ### WebSocket Endpoint ``` wss://api.xanguard.tech/v1/dt/realtime/ws ``` No query parameter required. Authentication happens via the LOGIN opcode after connection. Maximum 5 concurrent WebSocket connections per API key. ### Opcodes | Opcode | Name | Direction | Description | |--------|------|-----------|-------------| | 10 | HELLO | server -> client | Sent on connect, includes heartbeat_interval | | 2 | LOGIN | client -> server | Send API key to authenticate | | 4 | READY | server -> client | Auth successful, includes client config | | 0 | EVENT | server -> client | Real-time event data | | 1 | HEARTBEAT | client -> server | Keep-alive ping | | 11 | HEARTBEAT_ACK | server -> client | Response to heartbeat | | 3 | DISCONNECT | server -> client | Connection terminated with reason | ### Connection Flow 1. Connect to `wss://api.xanguard.tech/v1/dt/realtime/ws` 2. Receive HELLO (immediately): ```json {"op": 10, "d": {"heartbeat_interval": 30000}} ``` 3. Send LOGIN within 15 seconds: ```json {"op": 2, "d": "dt_your_api_key_here"} ``` 4. Receive READY on success (the connection limit, 5 per key, is not included in READY): ```json {"op": 4, "d": {"client_id": 1, "modules": ["realtime", "follows"], "handles": 150, "max_handles": 1000}} ``` Or DISCONNECT on failure: ```json {"op": 3, "d": {"reason": "Invalid or expired API key"}} ``` 5. Receive EVENTs based on enabled modules. 6. Send HEARTBEAT every `heartbeat_interval` ms to stay connected: ```json {"op": 1} ``` Connection is closed after 90 seconds without a heartbeat. ### Event Types #### twitter.post.new (module: realtime) First delivery of a detected tweet. May have partial metadata. Clients should store this and replace with `twitter.post.update` if received. ```json { "op": 0, "d": { "event": "twitter.post.new", "event_id": "evt_1234567890123456789", "task_info": {"handle": "example_dev"}, "data": { "id": "1234567890123456789", "created_at": 1712000000000, "type": "post", "text": "Hello world", "media": [{"type": "photo", "url": "https://pbs.twimg.com/media/..."}], "mentions": ["example_founder"], "author": { "id": "1234567890", "handle": "example_dev", "name": "Example Dev", "avatar": "https://pbs.twimg.com/profile_images/...", "description": "Example account used in these docs", "verification": {"is_verified": true}, "stats": {"followers": 12000, "following": 800} }, "in_reply_to": null, "quoted_tweet": null, "possibly_sensitive": false } } } ``` Tweet types in `data.type`: `"post"`, `"reply"`, `"quote"`, `"repost"` #### twitter.post.update (module: realtime) Enriched re-delivery of a previously sent tweet with complete metadata. Shares the same `data.id` as the original `twitter.post.new`. Clients should replace any previously stored data for this tweet ID. Same payload structure as `twitter.post.new`. ```json { "op": 0, "d": { "event": "twitter.post.update", "event_id": "evt_u_1234567890123456789", "task_info": {"handle": "example_dev"}, "data": { "id": "1234567890123456789", "created_at": 1712000000000, "type": "quote", "text": "This is huge", "media": [], "mentions": [], "author": { "id": "1234567890", "handle": "example_dev", "name": "Example Dev", "avatar": "https://pbs.twimg.com/profile_images/...", "description": "Example account used in these docs", "verification": {"is_verified": true}, "stats": {"followers": 12000, "following": 800} }, "in_reply_to": null, "quoted_tweet": { "id": "9876543210987654321", "text": "Original tweet text here", "author": {"handle": "example_founder", "name": "Example Founder"} }, "possibly_sensitive": false } } } ``` #### twitter.following.new (module: follows) Fired when a monitored handle follows a new account. ```json { "op": 0, "d": { "event": "twitter.following.new", "event_id": "evt_f_example_dev_1712000000", "task_info": {"handle": "example_dev", "id": "1234567890"}, "data": { "id": "1234567890", "handle": "example_founder", "name": "Example Founder" } } } ``` #### twitter.profile.update (module: profile_watch) Fired when a monitored handle changes their bio, name, avatar, or pinned tweet. ```json { "op": 0, "d": { "event": "twitter.profile.update", "event_id": "evt_p_example_dev_1712000000", "task_info": {"handle": "example_dev"}, "data": { "field": "bio", "prev": "Old bio text", "updated": "New bio text" } } } ``` Fields: `"bio"`, `"name"`, `"avatar"`, `"pinned_tweet"` #### twitter.follower.new (module: followers) Fired when a monitored handle gains a new follower. Identifies exactly who the new follower was. ```json { "op": 0, "d": { "event": "twitter.follower.new", "event_id": "evt_fl_example_dev_1712000000", "task_info": {"handle": "example_dev"}, "data": { "id": "12345678", "handle": "newfollower", "name": "New Follower" } } } ``` #### twitter.tweet.deleted (module: realtime) Fired when a monitored handle deletes a tweet, usually within about 2 minutes (each deletion is confirmed before it is sent). Included on every B2B tier. `text` carries the deleted tweet's text when Xanguard saw the tweet; `tweet_id` and `text` are `null` when a deletion is confirmed but the specific tweet cannot be identified. Guide: https://xanguard.tech/deleted-tweets/ ```json { "op": 0, "d": { "event": "twitter.tweet.deleted", "event_id": "evt_del_example_dev_1712000000", "event_time": 1712000000000, "task_info": {"handle": "example_dev"}, "data": { "tweet_id": "1234567890123456789", "text": "Deleted tweet text, when available" } } } ``` --- ## Xanguard B2B REST API On-demand Twitter data endpoints. Auth: `Bearer dt_...` ### GET /v1/dt/targets List watched handles for this client. ### POST /v1/dt/targets Add a handle to watch. Request: ```json {"handle": "example_dev"} ``` ### DELETE /v1/dt/targets/{handle} Remove a handle from watch list. ### GET /v1/dt/profile/{handle} Get Twitter profile data (bio, followers count, following count, verified status, etc.). ### GET /v1/dt/profile/{handle}/history Get historical profile changes for a handle. ### GET /v1/dt/tweets/{handle} Get recent tweets for a handle. ### GET /v1/dt/following/{handle} Get the list of accounts a handle follows. ### GET /v1/dt/followers/{handle} Get followers of a handle. ### GET /v1/dt/communities/{handle} Get community memberships for a handle. ### GET /v1/dt/social/diff/{handle} Get social graph changes since last check (new follows, unfollows, follower changes). ### GET /v1/dt/webhook Get the stored webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### PUT /v1/dt/webhook Store a webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. Request: ```json {"url": "https://your-server.com/dt-webhook"} ``` ### GET /v1/dt/status Get Xanguard B2B service status and quota usage. ### WebSocket: GET /v1/dt/realtime/ws Product-specific WebSocket. Connect: `wss://api.xanguard.tech/v1/dt/realtime/ws`. Authenticate via the LOGIN opcode after connecting (no query parameter) — see the Xanguard B2B Realtime API section above. --- ## Tweet Alerts API Real-time tweet notifications (median detection ~200 ms on paid plans). Auth: Bearer token (no prefix). ### WebSocket: GET /v1/ws Connect: `wss://api.xanguard.tech/v1/ws?api_key=` Also supports JWT cookie auth (web dashboard). **Client messages:** ```json {"type": "subscribe", "handles": ["example_dev", "example_founder"]} ``` ```json {"type": "unsubscribe", "handles": ["example_dev"]} ``` ```json {"type": "ping"} ``` **Server messages:** Subscribe/unsubscribe acknowledgment: ```json {"type": "ack", "action": "subscribe", "handles": ["example_dev", "example_founder"], "active": 2, "max": 50} ``` Tweet alert: ```json { "type": "alert", "tweet_id": "1234567890123456789", "handle": "example_dev", "text": "Hello world", "url": "https://x.com/example_dev/status/1234567890123456789", "image_url": "https://pbs.twimg.com/media/...", "image_urls": ["https://pbs.twimg.com/media/..."], "is_reply": false, "is_quote": false, "timestamp": 1712000000000, "original_tweet_id": null, "possibly_sensitive": false, "mentions": ["example_founder"] } ``` Pong: ```json {"type": "pong"} ``` Error: ```json {"type": "error", "message": "Rate limit exceeded"} ``` ### GET /v1/accounts List tracked Twitter handles for the authenticated user. Response: ```json {"ok": true, "data": {"accounts": [{"handle": "example_dev", "is_active": true, "keywords": [], "muted": false, "added_at": "2024-01-01T00:00:00Z", "profile": null}], "count": 1, "limit": 50}} ``` ### POST /v1/accounts Add Twitter handles (max 25 per request). Handles are normalized to lowercase, @ stripped. Request: ```json {"handles": ["example_dev", "example_founder"]} ``` ### GET /v1/accounts/{handle} Get details for a single tracked handle including profile data. ### DELETE /v1/accounts/{handle} Remove a handle from tracking. ### PUT /v1/accounts/{handle}/keywords Set keyword filters. Only tweets containing at least one keyword will trigger alerts. Request: ```json {"keywords": ["bitcoin", "solana", "$SOL"]} ``` ### DELETE /v1/accounts/{handle}/keywords Clear keyword filters (receive all tweets from this handle). ### PUT /v1/accounts/{handle}/mute Mute or unmute a handle (suppress alerts without removing it). Request: ```json {"muted": true} ``` ### GET /v1/settings Get user notification settings. ### PATCH /v1/settings Update notification settings. ### GET /v1/subscription Get current subscription tier, limits, and expiration. ### GET /v1/plans List available subscription plans with pricing. ### POST /v1/webhooks Register a webhook URL for tweet delivery (paid Tweet Alerts plans). Payloads are signed with HMAC-SHA256 in the `X-Signature` header, with `X-Webhook-Id` identifying the webhook. Limit per plan: Starter 1, Growth 2, Pro 5, Business and Scale 10, Enterprise 25, Ultra 50; the free plan has none. Request: ```json {"url": "https://your-server.com/webhook"} ``` ### GET /v1/webhooks List registered webhooks. ### DELETE /v1/webhooks/{id} Delete a webhook. --- ## Community Watch API Monitor Twitter community membership changes (~5s detection). Auth: `Bearer cw_...` ### WebSocket: GET /v1/cw/ws Connect: `wss://api.xanguard.tech/v1/cw/ws?api_key=cw_...` ### GET /v1/cw/targets List monitored handles. ### POST /v1/cw/targets Add a handle to monitor for community changes. Request: ```json {"handle": "example_dev"} ``` ### DELETE /v1/cw/targets/{handle} Remove a handle from monitoring. ### GET /v1/cw/webhook Get configured webhook URL. ### PUT /v1/cw/webhook Set webhook URL. Webhook delivery is available on request (HMAC-SHA256 in `X-Signature`, plus `X-CW-Client-Id`); contact support to enable it. ### GET /v1/cw/settings Get notification settings (which event types are enabled, etc.). ### PATCH /v1/cw/settings Update notification settings. ### GET /v1/cw/status Get Community Watch service status. --- ## Convergence Tracker API Detect when multiple monitored accounts cluster in the same community. Auth: `Bearer ct_...` ### WebSocket: GET /v1/ct/ws Connect: `wss://api.xanguard.tech/v1/ct/ws?api_key=ct_...` ### GET /v1/ct/targets List monitored handles. ### POST /v1/ct/targets Add a handle. Request: ```json {"handle": "example_dev"} ``` ### DELETE /v1/ct/targets/{handle} Remove a handle. ### GET /v1/ct/convergence Get current convergence data (which communities have multiple monitored accounts). ### GET /v1/ct/convergence/history Get historical convergence events. ### GET /v1/ct/settings Get convergence detection settings (time window, min threshold). ### PATCH /v1/ct/settings Update settings. ### GET /v1/ct/webhook Get configured webhook URL. ### PUT /v1/ct/webhook Set webhook URL. Webhook delivery is available on request (HMAC-SHA256 in `X-Signature`, plus `X-CT-Client-Id`); contact support to enable it. ### GET /v1/ct/status Get service status. --- ## Engagement Tracker API Track real-time engagement metrics on specific tweets. Auth: `Bearer et_...` ### WebSocket: GET /v1/et/ws Connect: `wss://api.xanguard.tech/v1/et/ws?api_key=et_...` ### GET /v1/et/targets List tracked tweet IDs. ### POST /v1/et/targets Add tweets to track. Request: ```json {"tweet_ids": ["1234567890123456789"]} ``` ### DELETE /v1/et/targets/{tweet_id} Stop tracking a tweet. ### GET /v1/et/engagement/{tweet_id} Get current engagement metrics (likes, retweets, replies, views, bookmarks). ### GET /v1/et/webhook Get configured webhook URL. ### PUT /v1/et/webhook Set webhook URL. ### GET /v1/et/status Get service status. --- ## Trending Alerts API Twitter trending topic alerts across 24 categories. Auth: `Bearer trending_...` ### WebSocket: GET /v1/trending/ws Connect: `wss://api.xanguard.tech/v1/trending/ws?api_key=trending_...` ### GET /v1/trending/categories List available trending categories (Crypto, News, Sports, Music, Tech, etc.). ### GET /v1/trending/subscriptions Get your subscribed categories. ### PUT /v1/trending/subscriptions Set which categories to receive alerts for. ### GET /v1/trending/webhook Get the stored webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### PUT /v1/trending/webhook Store a webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### GET /v1/trending/status Get service status. --- ## PumpFun Bot API Real-time pump.fun caller callouts, milestones, token launches, and wallet events. Auth: `Bearer pf_...` ### WebSocket: GET /v1/pf/ws Connect: `wss://api.xanguard.tech/v1/pf/ws?api_key=pf_...` Wallet-event frames stream for watched wallets; callout frames (`callout_new`, `callout_milestone`) stream for callers tracked through the Callout Alerts addon (403 without it). Callout frames carry: ```json { "event_type": "callout_new", "caller_wallet": "6vbrTLsW...", "caller_username": "Cupsey", "mint": "CekGTBEd...", "callout_mcap": 14600, "multiplier": 1.0, "amount_held": 8400000, "cost_basis_sol": 0.9, "thesis": "We will see", "milestone": null } ``` `callout_milestone` frames add `milestone` ("2x" / "5x" / "10x") and the live `multiplier`. Manage tracked callers in @PF_Xanguard_bot with `/call`. ### GET /v1/pf/targets List watched wallets. ### POST /v1/pf/targets Add a wallet to watch. Request: ```json {"wallet": "So11111111111111111111111111111111111111112"} ``` ### DELETE /v1/pf/targets/{wallet} Remove a wallet. ### GET /v1/pf/events Get recent events for watched wallets. ### GET /v1/pf/webhook Get the stored webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### PUT /v1/pf/webhook Store a webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### GET /v1/pf/status Get service status. --- ## Search Alerts API Keyword-based tweet monitoring via Twitter search. Auth: `Bearer sa_...` ### WebSocket: GET /v1/sa/ws Connect: `wss://api.xanguard.tech/v1/sa/ws?api_key=sa_...` ### GET /v1/sa/queries List saved search queries. ### POST /v1/sa/queries Add a search query. Request: ```json {"query": "solana pump"} ``` ### DELETE /v1/sa/queries/{id} Remove a search query. ### GET /v1/sa/webhook Get the stored webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### PUT /v1/sa/webhook Store a webhook URL. Stored only; delivery is not currently sent. Use WebSocket or REST. ### GET /v1/sa/status Get service status. --- ## CA Search API (B2B add-on) Full tweet search by contract address, ticker, cashtag, or keyword. Auth: `Authorization: Bearer dt_...` or `X-API-Key: dt_...` (twitterapi.io-compatible). Requires a B2B key with CA Search enabled (Extra Features menu in @B2B_Xanguard_bot). ### POST /v1/search Each call walks the last 24 hours of matches (newest first) and returns up to 200 tweets with full author + engagement metadata. Hot queries that exceed 200 tweets per 24h return `has_next_page: true` — pass `next_cursor` back as `cursor` to continue. Request: ```json {"query": "0x7a848a5a8169aa6a2f603d056a749f924f504444"} ``` Optional continuation: ```json {"query": "$SOL", "cursor": ""} ``` Response (truncated): ```json { "ok": true, "data": { "tweets": [ { "type": "tweet", "id": "1947000000000000000", "url": "https://x.com/hongxiao_sol/status/1947000000000000000", "text": "$EXAMPLE just launched, CA: 0x7a84…4444", "createdAt": "Sun Jul 20 10:15:00 +0000 2026", "retweetCount": 3, "replyCount": 1, "likeCount": 42, "quoteCount": 0, "viewCount": 5100, "bookmarkCount": 2, "lang": "en", "isReply": false, "inReplyToId": "", "inReplyToUsername": "", "conversationId": "1947000000000000000", "author": { "userName": "hongxiao_sol", "name": "Hong", "id": "1500000000000000000", "followers": 11145, "following": 320, "isBlueVerified": true, "profilePicture": "https://pbs.twimg.com/profile_images/…", "description": "sol maxi", "createdAt": "Mon Mar 15 09:00:00 +0000 2021", "statusesCount": 8900, "mediaCount": 1200, "favouritesCount": 4500 }, "entities": {"hashtags": [], "urls": [], "user_mentions": []}, "quoted_tweet": null, "retweeted_tweet": null } ], "summary": { "total_tweets": 20, "unique_authors": 17, "total_reach": 208122, "top_callers": ["@whalecaller", "@hongxiao_sol"] }, "window_hours": 24, "has_next_page": false, "next_cursor": null } } ``` Context fields per tweet: - `quoted_tweet` — nested tweet object when the tweet quotes another - `retweeted_tweet` — nested original when the tweet is a repost - `original` — parent tweet (id, text, author username) when the tweet is a reply Limits: 10 requests/sec per key. Daily allowance per plan: 1,000 / 2,000 / 5,000 searches per day ($100 / $180 / $250 per month). Errors: 400 missing/oversized query · 401 missing/invalid key · 403 CA Search not enabled on key · 429 rate limit or daily allowance exhausted · 500 upstream failure (retry). --- ## Web Auth Endpoints Used by the web dashboard at xanguard.tech. Not needed for API/bot integrations. ### POST /v1/auth/telegram Login via Telegram widget data. Returns JWT in `xg_session` cookie. ### POST /v1/auth/apikey Login via API key. Returns JWT in `xg_session` cookie. ### POST /v1/auth/logout Clear session cookie. ### GET /v1/auth/me Get current authenticated user info (requires JWT cookie). ### GET /v1/feed Get tweet feed for dashboard display (requires JWT cookie). ### GET /v1/api-keys List API keys for the authenticated user (requires JWT cookie). ### POST /v1/api-keys Create a new API key (requires JWT cookie). ### DELETE /v1/api-keys/{id} Revoke an API key (requires JWT cookie). --- ## Rate Limits - REST endpoints are rate-limited per API key based on subscription tier (requests per second). - WebSocket connections are limited per plan. - 429 responses: `{"ok": false, "error": "Rate limit exceeded. Try again in 1 second."}` --- ## Guides and comparisons (checked 5 October 2026) - Deleted tweets, how to see them and get alerts with the text: https://xanguard.tech/deleted-tweets/ - Elon Musk, Trump and CZ tweet alerts in Telegram (@elonmusk median detection 193 ms, 30 days to 5 Oct 2026): https://xanguard.tech/elon-musk-tweet-alerts/ - Twitter keyword, hashtag and cashtag alerts (free filters, Keyword Alerts $10, Search Alerts $50): https://xanguard.tech/search-alerts/ - Twitter follow tracker, who an account just followed (Follow Watch, median 284 ms): https://xanguard.tech/follow-watch/ - X/Twitter feed for trading terminals and bots (event types, filters, integration, pricing): https://xanguard.tech/b2b/trading-terminals/ - Lowest-latency Twitter/X APIs, published numbers compared: https://xanguard.tech/b2b/lowest-latency-twitter-api/ - Xanguard vs the official X API (pay-per-use costs, rate limits): https://xanguard.tech/blog/xanguard-vs-x-api/ - twitterapi.io alternatives (Xanguard drop-in for its stream, GetXAPI, Sorsa, TweetStream, X API): https://xanguard.tech/blog/twitterapi-io-alternatives/ - X API pricing 2026 and alternatives: https://xanguard.tech/blog/x-api-pricing-alternatives/ - What is J7Tracker (independent explainer, not affiliated): https://xanguard.tech/blog/j7tracker-alternative/ --- ## Use Cases - **Crypto Trading Bots**: Receive tweet alerts (median ~200 ms) from key opinion leaders and project accounts to execute trades programmatically via WebSocket. - **DeFi Protocols**: Monitor community gate changes and profile updates for risk assessment and governance tracking. - **Alpha Groups**: Track convergence of multiple accounts into the same community as an early coordination signal. - **Market Makers**: Integrate the B2B WebSocket feed into existing infrastructure for real-time social signal ingestion at scale. - **AI Agents**: Consume structured tweet and social graph data via REST and WebSocket APIs for autonomous decision-making. - **Analytics Platforms**: Aggregate engagement data, follower changes, and profile history for social intelligence dashboards. - **Sniper Bots**: Combine tweet alerts with pump.fun livestream data for automated token launch detection and execution. --- ## Quick Start: Tweet Alerts WebSocket (JavaScript) ```javascript const ws = new WebSocket('wss://api.xanguard.tech/v1/ws?api_key=YOUR_KEY'); ws.onopen = () => { ws.send(JSON.stringify({type: 'subscribe', handles: ['example_dev']})); }; ws.onmessage = (event) => { const msg = JSON.parse(event.data); if (msg.type === 'alert') { console.log(`New tweet from @${msg.handle}: ${msg.text}`); console.log(`URL: ${msg.url}`); } }; ``` ## Quick Start: B2B Realtime WebSocket (JavaScript) ```javascript const ws = new WebSocket('wss://api.xanguard.tech/v1/dt/realtime/ws'); ws.onmessage = (event) => { const msg = JSON.parse(event.data); switch (msg.op) { case 10: // HELLO ws.send(JSON.stringify({op: 2, d: 'dt_YOUR_API_KEY'})); break; case 4: // READY console.log('Connected:', msg.d.modules, msg.d.handles, 'handles'); break; case 0: // EVENT console.log('Event:', msg.d.event, msg.d.data); break; } }; // Send heartbeat every 30s setInterval(() => { if (ws.readyState === WebSocket.OPEN) { ws.send(JSON.stringify({op: 1})); } }, 30000); ``` ## Quick Start: B2B Realtime WebSocket (Python) ```python import asyncio import json import websockets async def connect(): async with websockets.connect('wss://api.xanguard.tech/v1/dt/realtime/ws') as ws: # Receive HELLO hello = json.loads(await ws.recv()) assert hello['op'] == 10 # Send LOGIN await ws.send(json.dumps({'op': 2, 'd': 'dt_YOUR_API_KEY'})) # Receive READY ready = json.loads(await ws.recv()) assert ready['op'] == 4 print(f"Connected: {ready['d']['modules']}, {ready['d']['handles']} handles") # Listen for events and send heartbeats async def heartbeat(): while True: await asyncio.sleep(30) await ws.send(json.dumps({'op': 1})) asyncio.create_task(heartbeat()) async for message in ws: msg = json.loads(message) if msg['op'] == 0: # EVENT print(f"Event: {msg['d']['event']} — {msg['d']['data']}") asyncio.run(connect()) ``` ## Quick Start: REST API (curl) ```bash # List tracked accounts curl -H "Authorization: Bearer YOUR_KEY" https://api.xanguard.tech/v1/accounts # Add handles curl -X POST -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"handles": ["example_dev", "example_founder"]}' \ https://api.xanguard.tech/v1/accounts # Register webhook curl -X POST -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://your-server.com/webhook"}' \ https://api.xanguard.tech/v1/webhooks # B2B: get profile curl -H "Authorization: Bearer dt_YOUR_KEY" \ https://api.xanguard.tech/v1/dt/profile/example_dev # B2B: add target curl -X POST -H "Authorization: Bearer dt_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"handle": "example_dev"}' \ https://api.xanguard.tech/v1/dt/targets ``` --- ## Key Facts - Tweet detection latency: measured median ~200 ms on paid plans; live p50/p95/p99 at https://xanguard.tech/speed/ (detection on our servers; Telegram delivery adds roughly 0.3-0.4 s; end-to-end to your Telegram is about 0.6 s median). Pump.fun callouts: real-time (seconds from the caller's post). - All detection is powered by proprietary infrastructure. No reliance on the X/Twitter API. - Payment: Solana (SOL) only. Non-custodial, read-only monitoring. - 10% referral commission with instant SOL payout. - WebSocket connections support automatic reconnection. Clients should implement exponential backoff. ## Support - Direct contact (fastest): **@notAdegen on Telegram** (https://t.me/notAdegen) — support is handled directly by the developer who builds Xanguard. No ticket queue. Technical questions, custom plans. - **Switching providers**: twitterapi.io is drop-in compatible (one-line change, keep your `X-API-Key` header and payload shapes — https://xanguard.tech/migrate/twitterapi-io/); the B2B WebSocket speaks TweetCatcher-compatible opcodes (change the URL and key, then map the few payload fields that differ; guide: https://xanguard.tech/blog/tweetcatcher-vs-xanguard/). For any other provider, send the payload/docs — an alias layer mapping your workflow is typically built within hours, in the same chat with the dev. - Telegram bots: @Xanguard_bot, @B2B_Xanguard_bot, @F_xanguard_bot, @T_Xanguard_bot, @E_Xanguard_bot, @Trends_Xanguard_bot, @PF_Xanguard_bot, @ECA_Xanguard_bot - Website: https://xanguard.tech - API docs: https://docs.xanguard.tech - Blog: https://xanguard.tech/blog/ - Health: https://xanguard.tech/health - Referral: https://xanguard.tech/referral/