[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Polymarket event details by ID](https://spiral.ai/integrations/claude-code/polymarket-event-details-by-id)

# How to Use Polymarket event details by ID in Claude Code

Returns one Polymarket event and its underlying markets using its numeric event ID. Use it to revisit a saved event or expand a result from an earlier search.

|  |  |
| --- | --- |
| Model | Polymarket event details by ID |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.013 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Polymarket event details by ID in Claude Code

- Use Polymarket event details by ID for event 90177 and show its title and underlying questions in my project's event inspector.
- Use Polymarket event details by ID to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Polymarket event details by ID and tell me what changed since last week.
- Check Polymarket event details by ID and summarize what you find in three bullet points.
- Pull the newest data from Polymarket event details by ID and give me the result as a table.

## How to set up Polymarket event details by ID in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Polymarket event details by ID**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "polymarket/events/get",
    "input": {
      "id": 1
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Polymarket event details by ID on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Polymarket event details by ID tools and prices

- [Polymarket · Events get](https://spiral.ai/tools/alexandria/polymarket/events/get) (Alexandria): $0.013 per call.

## What can you do with Polymarket event details by ID in Claude Code?

Build a linked Polymarket event directory in your project. Your coding agent can organize event listings and connect selected titles to detailed records and underlying questions.

### Daily election research brief

Build a linked brief of election questions listed on Polymarket. Use new listings to identify additions and detailed event records to explain the underlying questions.

### Newsroom assignment queue

Turn political event titles into reporting leads. Link each lead to its Polymarket event, then inspect the underlying markets before assigning a story.

### Election question directory

Maintain a searchable directory of Polymarket election questions. Add newly discovered events and use detailed records to organize their constituent markets.

### Political coverage review

Compare a research team's election watchlist with the political questions appearing on Polymarket. Identify topics to investigate and inspect the corresponding event records.

### Resolution criteria review

Read event descriptions and resolution sources before comparing forecasts. Flag questions that use different deadlines or definitions of success.

### Market activity comparison

Compare reported volume and liquidity across selected events. Keep event totals separate from the figures for individual underlying markets.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Polymarket event details by ID in other agents

- [Amp](https://spiral.ai/integrations/amp/polymarket-event-details-by-id)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/polymarket-event-details-by-id)
- [Claude](https://spiral.ai/integrations/claude-desktop/polymarket-event-details-by-id)
- [Cline](https://spiral.ai/integrations/cline/polymarket-event-details-by-id)
- [Codex](https://spiral.ai/integrations/codex/polymarket-event-details-by-id)
- [Cursor](https://spiral.ai/integrations/cursor/polymarket-event-details-by-id)
- [Devin](https://spiral.ai/integrations/devin/polymarket-event-details-by-id)
- [dots](https://spiral.ai/integrations/dots/polymarket-event-details-by-id)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/polymarket-event-details-by-id)
- [Gemini](https://spiral.ai/integrations/gemini/polymarket-event-details-by-id)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/polymarket-event-details-by-id)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/polymarket-event-details-by-id)
- [goose](https://spiral.ai/integrations/goose/polymarket-event-details-by-id)
- [Grok](https://spiral.ai/integrations/grok/polymarket-event-details-by-id)
- [Grok Build](https://spiral.ai/integrations/grok-build/polymarket-event-details-by-id)
- [Hermes](https://spiral.ai/integrations/hermes/polymarket-event-details-by-id)
- [Instinct](https://spiral.ai/integrations/instinct/polymarket-event-details-by-id)
- [Manus](https://spiral.ai/integrations/manus/polymarket-event-details-by-id)
- [Muse](https://spiral.ai/integrations/muse/polymarket-event-details-by-id)
- [Muse Code](https://spiral.ai/integrations/muse-code/polymarket-event-details-by-id)
- [n8n](https://spiral.ai/integrations/n8n/polymarket-event-details-by-id)
- [Notion](https://spiral.ai/integrations/notion/polymarket-event-details-by-id)
- [OpenClaw](https://spiral.ai/integrations/openclaw/polymarket-event-details-by-id)
- [opencode](https://spiral.ai/integrations/opencode/polymarket-event-details-by-id)
- [Perplexity](https://spiral.ai/integrations/perplexity/polymarket-event-details-by-id)
- [Raycast](https://spiral.ai/integrations/raycast/polymarket-event-details-by-id)
- [VS Code](https://spiral.ai/integrations/vscode/polymarket-event-details-by-id)
- [Windsurf](https://spiral.ai/integrations/windsurf/polymarket-event-details-by-id)
- [Zapier](https://spiral.ai/integrations/zapier/polymarket-event-details-by-id)

## More Claude Code guides

- [OECD statistical observations](https://spiral.ai/integrations/claude-code/oecd-statistical-observations)
- [Polymarket event details by slug](https://spiral.ai/integrations/claude-code/polymarket-event-details-by-slug)
- [OECD observation lookup](https://spiral.ai/integrations/claude-code/oecd-observation-lookup)
- [Polymarket event listings](https://spiral.ai/integrations/claude-code/polymarket-event-listings)
- [OECD dataset update status](https://spiral.ai/integrations/claude-code/oecd-dataset-update-status)
- [Polymarket market details by ID](https://spiral.ai/integrations/claude-code/polymarket-market-details-by-id)

## Questions about Polymarket event details by ID in Claude Code

**Can Claude Code use Polymarket event details by ID?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Polymarket event details by ID like any built-in tool.

**How much does Polymarket event details by ID cost in Claude Code?**

$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Polymarket event details by ID in Claude Code?**

No. Spiral runs Polymarket event details by ID on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Polymarket event details by ID in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Polymarket event details by ID runs?**

Polymarket event details by ID runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Is a Polymarket event the same as a market?**

An event groups one or more markets. Each underlying market is a separate yes/no question, so an election event can contain several questions rather than one combined probability.

**Does this data also cover Polymarket US?**

Polymarket's international and US exchanges use distinct APIs and manage their data separately. Gamma event data should not be treated as a combined inventory of both exchanges.

**Can Polymarket event records include closed events?**

Yes. Polymarket's general event listing includes both open and closed events when the closed-status filter is omitted.

**Are Polymarket odds fixed after an event is listed?**

No. Trading can continue before an event concludes, and the market-implied probability can change as new information arrives.

**What do Polymarket odds actually measure?**

They represent the market's current implied probability of an outcome. They are a forecast produced by trading, so an event's odds should not be described as an official election result or a confirmed fact.

