Search Alerts API: keyword matches across X

Programmatic access to Search Alerts — keyword search alerts. For bot commands & pricing, see the Search Alerts Telegram guide.

Auth: Bearer token with sa_ prefix, generated via the API Key button in the Search Alerts management screen.

Authorization: Bearer sa_your_api_key_here
MethodPathDescription
GET/v1/sa/queriesList search queries
POST/v1/sa/queriesAdd query. Body: {"query_text": "solana airdrop"}
DELETE/v1/sa/queries/{id}Remove query
GET/v1/sa/webhookGet saved webhook URL
PUT/v1/sa/webhookSave a webhook URL. Delivery: WebSocket today; webhook delivery coming soon
GET/v1/sa/statusSubscription status, query count, max queries

Match Event

{
  "type": "search_alert",
  "data": {
    "query_id": 1,
    "query_text": "solana airdrop",
    "tweet_id": "1234567890",
    "full_text": "Massive Solana airdrop incoming...",
    "screen_name": "CryptoWhale",
    "display_name": "Crypto Whale",
    "tweet_url": "https://x.com/CryptoWhale/status/1234567890"
  }
}

WebSocket

wss://api.xanguard.tech/v1/sa/ws?api_key=sa_your_key

Receives JSON events when new tweets match your keyword queries. Each query is checked across all of X at the interval you choose (1 min to 6 h), so matches are not real-time. Webhook delivery for Search Alerts is coming soon.