Skip to main content
An event groups related markets under a single theme, such as an election or a tournament. Events are identified by an event_slug or a numeric id. The Events endpoints cover discovery, the markets and outcomes that make up an event, charts, metrics, and per-event analytics.

Discover

Structure and metrics

Analytics

Holders and series

Example

import { StructClient } from "@structbuild/sdk";

const client = new StructClient({ apiKey: "YOUR_API_KEY" });

const { data: event } = await client.events.getEventBySlug({ slug: "us-election-2028" });

const { data: metrics } = await client.events.getEventMetrics({
  event_slug: "us-election-2028",
  timeframe: "24h",
});
Last modified on June 16, 2026