How to Use Polymarket market search in Claude Code
Find matching Polymarket events with nested market questions, plus matching tags and public profiles. Use it to discover relevant questions and their identifiers before choosing a market to investigate.
Prompts to try with Polymarket market search in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use Polymarket market search to find Bitcoin events and add a results table to this project with event titles, event IDs, market questions, and market IDs.
Use Polymarket market search for Federal Reserve and implement pagination in this project's search screen using the returned indication that more results remain.
Use Polymarket market search for SpaceX and create a project report containing returned titles, descriptions, resolution sources, and end dates.
Use Polymarket market search for Ethereum and add a comparison view for the market questions nested under each event.
Use Polymarket market search for OpenAI and save the returned event IDs, slugs, market IDs, and condition IDs to a JSON file in this project.
How to set up Polymarket market search in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- 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
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Polymarket market search
One request; the result comes back by polling or a webhook.
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/search/query", "input": { "q": "<q>", "limit_per_type": 1 } }'
Then paste one of the prompts above: Claude Code finds Polymarket market search on Spiral, shows the price and runs it.
Polymarket market search providers and prices
Spiral runs Polymarket market search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit per type | 1 to 100 | Maximum matches per result type (1 to 100); required to bound results. | |
| Page | a number from 1 | Search page number, starting at 1. | |
| Ascending | on or off | Whether to sort in ascending order. | |
| Search tags | on or off | Include matching tags. | |
| Search profiles | on or off | Include matching public profiles. | |
| Keep closed markets | a number | Upstream integer setting for retaining closed markets in search results. |
Every API field of Polymarket · Query is on its tool page: open its card above.
What can you do with Polymarket market search in Claude Code?
Build a topic search screen that shows Polymarket events and their nested market questions. Your coding agent can keep event and market identifiers separate and use the returned pagination metadata to load more matches.
Find markets behind a news topic
Search for Federal Reserve decisions and assemble the matching event titles and market questions for a research brief.
Build a market search interface
Turn topic searches into event results with nested market questions, keeping event and market identifiers separate.
Compare how questions are defined
Find Bitcoin events and compare their returned descriptions, resolution sources, and end dates before selecting questions for analysis.
Maintain a topic watchlist
Repeat searches for Ethereum and flag event or market IDs that were absent from the previous search results.
Prepare a deadline brief
Find SpaceX events and organize their returned end dates alongside the exact market questions.
Discover topic labels
Search for NBA and review matching tags alongside matching events to choose labels for a research index.
Create a market identifier shortlist
Search for OpenAI and collect event IDs, event slugs, market IDs, and condition IDs for the questions relevant to a technology brief.
More on Polymarket market search and Claude Code
Overview
Polymarket market search in other agents
Questions about Polymarket market search in Claude Code
Can Claude Code use Polymarket market search?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Polymarket market search like any built-in tool.
How much does Polymarket market search 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 market search in Claude Code?
No. Spiral runs Polymarket market search 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 market search in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Polymarket market search runs?
Polymarket market search runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.
What does Polymarket search cover?
It searches Polymarket events, tags, and public profiles. Matching market questions appear inside the returned events.
Why can one search result contain several market questions?
A Polymarket event groups one or more related markets. Inspect the nested questions before selecting a market, because the event title can describe a broader topic.
Does one search return every match?
Search responses include a total result count and an indicator of whether more results remain. Use that indicator to decide whether to request another page.
Is Polymarket search guaranteed to be current and complete?
Polymarket's terms explicitly provide no guarantee that its information is updated, complete, or timely. A search result should not be presented as a guaranteed complete view of the source.
Does the market title fully explain what counts as a winning outcome?
No. Polymarket says the title describes the question, while the resolution rules define how it resolves; compare those rules when two questions sound similar.
Start using Polymarket market search in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


