Skip to main content
client.gamma.events.getEventById fetches a single event with extensive metadata—market snapshots, volume metrics, imagery, chat details, and template information.

Request

const event = await client.gamma.events.getEventById(id, params);

Parameters

NameTypeRequiredNotes
idnumber (≥ 0)Event ID.
include_chatbooleanInclude chat metadata.
include_templatebooleanInclude template metadata.

Response

The API returns a single Event object. Fields match those surfaced by the Polymarket app: titles, descriptions, imagery, liquidity/volume metrics, nested markets, tags, chat rooms, and more.

Usage example

const event = await client.gamma.events.getEventById(35723, {
  include_chat: true,
  include_template: true,
});

console.log(event.title, event.markets?.length);

Failure modes

  • id must be numeric.