# Polymarket · Markets list

Get market and financial data with Polymarket · Markets list from Alexandria through one Spiral API key. Browse prediction markets by slug, condition ID, token ID, tag, closing status or volume. Read outcomePrices alongside outcomes; both are JSON-encoded strings. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Finance
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `polymarket/markets/list`
- Page: https://spiral.ai/tools/alexandria/polymarket/markets/list

## Pricing

$0.013 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `limit` (required) | number | 1 to 100 | — | Number of records to return (1 to 100); required to keep each response bounded. |
| `id` | list |  | — | Gamma numeric identifier; list endpoints accept repeated IDs. |
| `slug` | list |  | — | Exact slug; list endpoints accept repeated slugs. |
| `order` | text |  | — | Comma-separated upstream field names to sort by, for example volume. |
| `closed` | true or false |  | — | Filter by whether the market, event or series is closed. |
| `offset` | number | 0 to … | — | Number of records to skip; increment by the page size. |
| `tag_id` | number |  | — | Numeric topic tag ID from tags/list. |
| `ascending` | true or false |  | — | Whether to sort in ascending order. |
| `end_date_max` | text |  | — | Latest end date, in ISO 8601 format. |
| `end_date_min` | text |  | — | Earliest end date, in ISO 8601 format. |
| `condition_ids` | list |  | — | Condition IDs, serialized as repeated query parameters. |
| `clob_token_ids` | list |  | — | CLOB outcome token IDs, serialized as repeated query parameters. |
| `volume_num_max` | number |  | — | Maximum market volume. |
| `volume_num_min` | number |  | — | Minimum market volume. |
| `liquidity_num_max` | number |  | — | Maximum market liquidity. |
| `liquidity_num_min` | number |  | — | Minimum market liquidity. |

## Example

```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/markets/list",
    "input": {
      "limit": 1
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=polymarket%2Fmarkets%2Flist

## Common questions

### Polymarket · Markets list

**How much does Polymarket · Markets list cost?**

$0.013 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Polymarket · Markets list through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "polymarket/markets/list"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Polymarket · Markets list?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Polymarket · Markets list?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

