API Explorer
Real backend first, and read-only by design. This explorer only shows safe public GET routes the frontend already uses in production today, while journalism-specific future routes stay clearly marked as planned.
Read-only policy: this page is intentionally limited to safe public GET routes. It does not expose article create/edit/publish flows, admin endpoints, or any other mutating backend operations.
What's live now: /events/search, /events/by-slug/{slug}, /events/related/{slug}, /price-history/events/by-slug/{slug}, /detections/events/{slug}/timeline, /events/arbitrage, /categories, and /platforms.
What's planned only: the older journalism-specific /api/v1/markets/* routes previously implied by this page. Those remain visible as roadmap items, not live endpoints.
Backend base URL: Configured from frontend runtime settings
/events/searchSearch the live backend for matching events already indexed across supported platforms. This is a real production endpoint the frontend can call today.
Read-only event search used by the frontend today.
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | Required | Search query for an event or topic |
| limit | integer | optional | Maximum results to return |
Try it
Response
// Click ▶ Run to query the live backend
Fetch snippet
const res = await fetch("https://predictionmarkets-us-backend.onrender.com/events/search?q=trump&limit=5");
const data = await res.json();
console.log(data);