Skip to main content
4 complete integration patterns from zero to production. Each workflow includes full code in 4 languages.
PatternBest forReal-timeSetup effort
Monitor & pollBatch processing, dashboards, low-frequency checksNo (interval-based)Low
Real-time webhooksInstant notifications, event-driven pipelinesYesMedium
AI agent (MCP)Natural language queries, conversational analysisYesLow
Tweet compositionAlgorithm-optimized drafts, content workflowsN/ALow

Monitor & poll

Create an API key, start monitoring an X account, then poll for events with pagination.

Step 1: Create a monitor

curl -X POST https://xquik.com/api/v1/monitors \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "elonmusk",
    "eventTypes": ["tweet.new", "tweet.reply", "tweet.quote"]
  }' | jq
Response:
{
  "id": "7",
  "username": "elonmusk",
  "xUserId": "44196397",
  "eventTypes": ["tweet.new", "tweet.reply", "tweet.quote"],
  "createdAt": "2026-02-24T10:30:00.000Z"
}

Step 2: Poll for events

Poll on an interval and paginate through all available events.
# First page
curl "https://xquik.com/api/v1/events?monitorId=7&limit=50" \
  -H "x-api-key: xq_YOUR_KEY_HERE" | jq

# Next page (use nextCursor from previous response)
curl "https://xquik.com/api/v1/events?monitorId=7&limit=50&after=MjAyNi0wMi0yNFQxNTowNTozMC4wMDBafDkwMDI=" \
  -H "x-api-key: xq_YOUR_KEY_HERE" | jq
For real-time delivery without polling, use webhooks instead.

Public draw results

Completed giveaway draws have a public results page at https://xquik.com/results/{drawId}. No authentication required. Share the URL with participants for transparency.

Create a Monitor

Start monitoring a user for real-time events.

Register a Webhook

Receive events on your server in real time.

MCP Server

Connection details and setup instructions.

Signature Verification

Verify webhook payloads with HMAC-SHA256.