Prediction Ending Soon
by api.seerium.xyz in Markets & finance
Ending soon and expiring prediction market API for Polymarket, Kalshi, and Gemini. Find active markets resolving soon with close time, bid/ask prices, volume, liquidity, venue, and market links.
GET https://api.seerium.xyz/v1/prediction/ending-soon
Last 30 days
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 238 ms typical, 490 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
GET https://api.seerium.xyz/v1/prediction/ending-soon
Each call costs $0.1 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://api.seerium.xyz/v1/prediction/ending-soon?hours=24&limit=25&source=allParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
hours | number | No | Optional resolving-soon window in hours. Defaults to 24. |
limit | number | No | Optional maximum ending-soon markets to return. Defaults to 25. |
source | string | No | Optional prediction market venue filter: polymarket, kalshi, gemini, or all. Defaults to all. One of: polymarket, kalshi, gemini, all. |
Example response
The provider's example. We can't check it without paying.
Example response, 89 lines
{
"data": {
"criteria": {
"hours": 24,
"limit": 25,
"source": "all"
},
"returned": 1,
"rows": [
{
"acceptingOrders": true,
"active": true,
"archived": false,
"closed": false,
"conditionId": "KXBTC-26MAY31-B100000",
"endDateIso": "2026-05-31T20:00:00.000Z",
"eventSlug": "bitcoin-price-may-31-2026",
"eventTitle": "Bitcoin price on May 31, 2026",
"indicative": true,
"lastPrice": 0.43,
"liquidity": 12800,
"marketSlug": "kxbtc-26may31-b100000",
"marketTicker": "KXBTC-26MAY31-B100000",
"marketUrl": "https://kalshi.com/markets/KXBTC-26MAY31-B100000",
"minOrderSize": 1,
"minTickSize": 0.01,
"minutesUntilEnd": 240,
"noAsk": 0.58,
"noBid": 0.56,
"noPrice": 0.57,
"question": "Will Bitcoin be above $100,000 on May 31, 2026?",
"seriesSlug": "bitcoin",
"seriesTicker": "KXBTC",
"source": "kalshi",
"sourceUpdatedAt": "2026-05-31T15:56:00.000Z",
"volume": 193200,
"volume24h": 28450,
"yesAsk": 0.44,
"yesBid": 0.42,
"yesPrice": 0.43
}
],
"sourceCounts": {
"gemini": 3,
"kalshi": 4,
"polymarket": 5
},
"sourceUpdatedAt": {
"gemini": "2026-05-31T15:54:30.000Z",
"kalshi": "2026-05-31T15:56:00.000Z",
"polymarket": "2026-05-31T15:55:00.000Z"
},
"timestamp": 1760000000000,
"totalCandidates": 12,
"warnings": []
},
"meta": {
"freshnessMs": 30000,
"generatedAt": "2026-03-25T12:00:00.000Z",
"requestId": "req_example_123",
"updatedAt": "2026-03-25T11:59:30.000Z"
},
"product": {
"accepts": [
{
"network": "eip155:8453",
"payTo": "0x81832eEDe3a4ad96CB3D7cA09977636D912fd3D5",
"price": "$0.1000",
"scheme": "exact"
},
{
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "2h752kAbb9z1jpdSzqMEYg9JHv6TPJ6T2BfAJMyjLFtZ",
"price": "$0.1000",
"scheme": "exact"
}
],
"id": "prediction-ending-soon",
"method": "GET",
"name": "Ending Soon Prediction Markets API",
"networks": [
"eip155:8453",
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
],
"path": "/v1/prediction/ending-soon",
"price": "$0.1000"
},
"service": "seerium-x402-api"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.1.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.seerium.xyz/v1/prediction/ending-soon?hours=24&limit=25&source=all'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.seerium.xyz/v1/prediction/ending-soon?hours=24&limit=25&source=all' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.1 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.1" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.1 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.seerium.xyz%2Fv1%2Fprediction%2Fending-soon
const res = await pay("https://api.seerium.xyz/v1/prediction/ending-soon?hours=24&limit=25&source=all");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.1 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.1"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://api.seerium.xyz/v1/prediction/ending-soon?hours=24&limit=25&source=all")
print(res.status_code, res.text)Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 273 ms | $0.1 |
| 7 h ago | Passed | 402 | 220 ms | $0.1 |
| 11 h ago | Passed | 402 | 189 ms | $0.1 |
| 15 h ago | Passed | 402 | 287 ms | $0.1 |
| 18 h ago | Passed | 402 | 254 ms | $0.1 |
| 23 h ago | Passed | 402 | 320 ms | $0.1 |
| 26 h ago | Passed | 402 | 235 ms | $0.1 |
| 30 h ago | Passed | 402 | 216 ms | $0.1 |
| 33 h ago | Passed | 402 | 238 ms | $0.1 |
| 37 h ago | Passed | 402 | 332 ms | $0.1 |
| 40 h ago | Passed | 402 | 258 ms | $0.1 |
| 44 h ago | Passed | 402 | 220 ms | $0.1 |
| 47 h ago | Passed | 402 | 490 ms | $0.1 |
| 2 days ago | Passed | 402 | 221 ms | $0.1 |
| 2 days ago | Passed | 402 | 192 ms | $0.1 |