JSON · Data key or x402 · open archive older than 30 days
Polymarket tweet count API
One call returns our count, the XTracker settlement count, Polymarket's page number and the gaps between them, for Elon Musk, Ted Cruz and Donald Trump.
curl -H "X-API-Key: YOUR_DATA_KEY" https://polystrike.xyz/api/v1/meta/elon
{
"freshness": "live",
"freshness_delay_sec": 0,
"data": [{
"event_title": "Elon Musk # tweets September 29 - October 6, 2026?",
"real_counter": 42,
"polymarket_xtracker_counter": 41,
"polymarket_ui_counter": 41,
"settlement_delta": 1,
"end_ts": 1791302400000
}]
}Endpoints
| Route | Access | Returns |
|---|---|---|
GET /api/v1/meta/{elon,cruz,trump} | Data key or x402 | Every open window, live: our count, XTracker, the page count and the gaps |
GET /api/v1/meta/{elon,cruz}/tweets · /meta/trump/posts | Data key or x402 | Recent posts with the counted verdict, up to 100 per page |
GET /api/v1/prediction/{elon,cruz,trump} | Data key or x402 | Bucket prices for each open market |
GET /api/v1/history/{user}/{counter,prices,books,tweets} | Data key or x402 | Minute-level history from our archive |
GET /api/v1/bulk/public | Open, no payment | Parquet archive, files older than 30 days, CC BY 4.0 |
GET /api/v1/bulk/{user} · /ws | Data key | Full parquet files · WebSocket feed |
Data, pay-per-call and the public archive
| Feature | Data · $29 for 30 days | x402 · $0.01 per call | Public archive · open |
|---|---|---|---|
| Counters and deltas | Live | Live | Older than 30 days |
| Posts | Full archive with counted verdict, filter reason and caught deletions | Same, through the API | — |
| Counter and bucket-price history, per minute | Everything since we started capturing | Same, through the API | Older than 30 days |
| Order-book depth | Yes | Yes | — |
| Bulk parquet files | Full archive per account | — | Yes |
| WebSocket feed | Yes | — | — |
| Requests per hour | 10,000 | No hourly cap | — |
Data is $290 for a year. x402 is paid in USDC on Base with no key or account; call
a paid endpoint and the 402 reply carries the payment details. The public archive is parquet at /api/v1/bulk/public under CC BY 4.0. There is no free key. Payment
steps for a Data key are in the FAQ below.
curl -A "my-app/1.0" https://polystrike.xyz/api/v1/bulk/public
MCP for AI agents
Claude and other MCP clients can call the counters as tools: get_market_metadata, get_recent_tweets and check_health. Send your Data key as an x-api-key header; the data tools need it.
# Claude Code claude mcp add --transport http polystrike https://polystrike.xyz/mcp --header "x-api-key: YOUR_DATA_KEY" # Claude Desktop and other stdio clients npx mcp-remote https://polystrike.xyz/mcp --header "x-api-key:YOUR_DATA_KEY"
Legacy SSE transport: https://polystrike.xyz/mcp/sse
Code examples
Python and TypeScript
import json, urllib.request
req = urllib.request.Request(
"https://polystrike.xyz/api/v1/meta/elon",
headers={
"X-API-Key": "YOUR_DATA_KEY",
"User-Agent": "my-app/1.0", # Cloudflare refuses urllib's default
},
)
body = json.load(urllib.request.urlopen(req))
print(body["freshness"], body["freshness_delay_sec"])
for event in body["data"]:
print(event["event_title"], event["real_counter"],
event["polymarket_xtracker_counter"], event["settlement_delta"]) const res = await fetch("https://polystrike.xyz/api/v1/meta/elon", {
headers: { "X-API-Key": "YOUR_DATA_KEY", "User-Agent": "my-app/1.0" },
});
const body = await res.json();
for (const ev of body.data) {
console.log(ev.event_title, ev.real_counter,
ev.polymarket_xtracker_counter, ev.settlement_delta);
} Both read the counters endpoint with a Data key. Send a User-Agent header: Cloudflare refuses requests without one and Python urllib's default one.
How this compares to XTracker
XTracker is Polymarket's settlement oracle and updates roughly every 5 minutes; it has no documented public API. For settlement, its number is final. We track the accounts directly and return both XTracker's number and our own in one response, so you can watch the count move and see the gap without scraping anything.
FAQ
Is there a free API?
No. The API serves Data keys ($29 for 30 days, $290 a year: live counters, the full post archive, minute-level counter and price history, order books, bulk parquet files and 10,000 requests an hour) and x402 payments of $0.01 per call in USDC on Base. The public archive is open: counter and bucket-price snapshots older than 30 days at /api/v1/bulk/public, under CC BY 4.0. The counter pages on this site are free to read, about 30 minutes behind.
Where does the data come from?
We query X directly, every second for @elonmusk and every 5 seconds for @tedcruz, and Truth Social every 15 seconds for @realDonaldTrump (about every 5 minutes when it blocks our fast reader), and we classify each post against Polymarket's settlement rules. Each response also carries the numbers Polymarket publishes: the XTracker count the market settles on and the count on the market page.
Does XTracker have a public API?
Not a documented one. XTracker is Polymarket's settlement oracle; its site shows a counter that updates about every 5 minutes. We report its number next to ours in every response, with the gap already computed.
How do I pay for the Data tier?
Send USDC on Polygon or Base to 0x2B1204Ed8152F888092cB4e25FeF6348C646C578: $29 for 30 days or $290 for a year. Then send the transaction hash and your email with the form on the home page, or to hello@polystrike.xyz. Keys are issued by hand, usually within a few hours. On-chain payments are final, so check the data first: the examples on this page show the response shape, the public archive is open, and one x402 call costs $0.01.