How to Use Polymarket sports metadata in Muse Code
Get Polymarket’s sports reference records, including sport codes, image links, resolution links, display ordering, tag IDs, and series identifiers. Use the returned identifiers to prepare league browsing and later market searches. Tags arrive as comma-separated text, so split them before building a list of IDs.
Prompts to try with Polymarket sports metadata in Muse Code
Copy an example into Muse Code, or ask in your own words.
Use Polymarket sports metadata to find the NBA and NFL records, then compare their sport codes, tag IDs, and series identifiers with this project's league configuration.
Use Polymarket sports metadata to find the Premier League record and create a fixture containing its returned code, image link, resolution link, tags, and series identifiers.
Use Polymarket sports metadata to find NBA, NFL, and MLB records, then write a parser that turns their comma-separated tags into individual IDs.
Use Polymarket sports metadata to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Polymarket sports metadata and tell me what changed since last week.
How to set up Polymarket sports metadata in Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse 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 sports metadata
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/sports/list", "input": {} }'
Then paste one of the prompts above: Muse Code finds Polymarket sports metadata on Spiral, shows the price and runs it.
Polymarket sports metadata providers and prices
Spiral runs Polymarket sports metadata through Alexandria. Open a card for today's price, with every fee included.
What can you do with Polymarket sports metadata in Muse Code?
Replace hardcoded league mappings and market classifications in a sports project with Polymarket reference data. A coding agent can compare returned tags, series identifiers, and type names with the project's configuration and prepare a reviewable update.
Prepare league search identifiers
Find the NBA, NFL, or Premier League reference record and collect its tag IDs and series identifiers for subsequent market discovery.
Build a sports reference table
Turn returned sport codes, image links, resolution links, and display ordering into a reference table for a sports research interface.
Monitor reference catalog changes
Compare successive responses to report added or removed sport records, changed league identifiers, and changes to valid market type names.
Replace hardcoded sports references
Populate a project's league mappings and market classification choices from returned reference data, then flag differences from the existing configuration.
More on Polymarket sports metadata and Muse Code
Overview
Polymarket sports metadata in other agents
Questions about Polymarket sports metadata in Muse Code
Can Muse Code use Polymarket sports metadata?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Polymarket sports metadata like any built-in tool.
How much does Polymarket sports metadata cost in Muse 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 Muse Code plan is separate.
Do I need an Alexandria account to use Polymarket sports metadata in Muse Code?
No. Spiral runs Polymarket sports metadata 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 sports metadata in Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while Polymarket sports metadata runs?
Polymarket sports metadata runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.
How do the two sports lookups differ?
Sports metadata returns records with six documented fields: sport, image, resolution, ordering, tags, and series. Sports market types returns a marketTypes list of valid classification names.
Are moneyline, spreads, and totals the complete market type list?
Those three appear in the guide’s example. The dedicated lookup returns the list described as all valid sports market types, so use that response for your allowed names.
Does a market type name identify what a market measures?
Yes. Polymarket distinguishes moneyline as which team wins, spreads as the winning margin, and totals as the combined score. Its guide uses returned type names to filter later market listings.
Can I redistribute this data to financial firms?
Polymarket’s terms require written agreement for commercial exploitation of its data for capital market clients or market data distributors. Public availability does not establish that redistribution permission.
Start using Polymarket sports metadata in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


