# Polymarket Markets Scraper (`nanodata/polymarket-markets-scraper`) Actor

Get Polymarket prediction markets with outcome prices, volume, liquidity, bid and ask, dates, tags and event data. Filter by tag, keyword or volume. Pay per market.

- **URL**: https://apify.com/nanodata/polymarket-markets-scraper.md
- **Developed by:** [nanodata](https://apify.com/nanodata) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 polymarket market scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Polymarket Markets Scraper

Get prediction markets from Polymarket as clean rows: the question, the price of each outcome, traded volume, liquidity, bid and ask, dates, tags and the link to the market page. Filter by tag, keyword or minimum volume, and sort by volume. You pay per market delivered.

Polymarket lists the prices of its markets publicly. This actor reads that public list and turns text-encoded values (outcomes, prices, token ids) into real arrays and numbers, so the output goes straight into a spreadsheet, a database or a model.

### What you get

For every market:

- Identity: id, slug, question, description, condition id, link to the market page on polymarket.com
- Outcomes: outcome names, outcome prices as numbers between 0 and 1, order book token ids
- Money: total volume, 24 hour, 7 day, 30 day and 1 year volume, liquidity
- Order book: bid, ask, last trade price, spread, price change over 1 hour, 1 day, 1 week, 1 month and 1 year
- Dates: start, end, created, updated, closed time
- Status: active, closed, archived, restricted, featured, accepting orders
- Topic: tags (id, label, slug), tag slugs, category when published
- Event: event id, slug, title, ticker, dates, images, event volume, liquidity and open interest
- Images: market image and icon

Fields the source does not publish for a market are null. Numbers are numbers, not text.

### Pricing

Pay per event. You pay for what is delivered.

| Event | Name | Price |
|---|---|---|
| Run start, charged once per run together with the first rows | `actor-start` | $0.001 per run |
| One market in the dataset | `market-result` | $0.0015 per market ($1.50 per 1,000) |

A run that finds nothing charges nothing. If you set a maximum cost per run, the actor stops cleanly when the limit is reached and keeps the rows it already delivered.

### Input

| Field | What it does |
|---|---|
| `tags` | Tag names as on polymarket.com, for example `politics`, `crypto`, `sports`, `elections`. Each tag is read in turn and `maxResults` is shared between them. Empty means all markets. |
| `keywords` | Keep only markets whose question, answer label, event title or slug contains one of the words. Checked after loading, so pair it with a tag. |
| `active` | Only active markets. Left empty it is on. |
| `closed` | Return closed markets instead of open ones. Default off. |
| `minVolume` | Minimum total volume in USD. |
| `minLiquidity` | Minimum liquidity in USD. |
| `orderBy` | `volume` (default), `volume24hr`, `liquidity`, `endDate`, `startDate` or `createdAt`. |
| `ascending` | Sort from the lowest value up. Default off. |
| `maxResults` | Markets for the run. Default 100, maximum 5,000. An empty input returns a demo of 5. |
| `maxPages` | Pages read per tag, 50 markets each. Default 20, maximum 200. |

Numbers and true/false values are also accepted as text, for example `"maxResults": "50"`.

#### Example: the biggest politics and crypto markets

```json
{
  "tags": ["politics", "crypto"],
  "maxResults": 120
}
```

#### Example: Bitcoin markets with at least 100,000 USD volume

```json
{
  "tags": ["crypto"],
  "keywords": ["bitcoin"],
  "minVolume": 100000,
  "maxResults": 50
}
```

#### Example: markets that were active in the last day, by 24 hour volume

```json
{
  "orderBy": "volume24hr",
  "maxResults": 100
}
```

### Output sample

```json
{
  "id": "559651",
  "slug": "xi-jinping-out-before-2027",
  "question": "Xi Jinping out before 2027?",
  "url": "https://polymarket.com/event/xi-jinping-out-before-2027",
  "outcomes": ["Yes", "No"],
  "outcomePrices": [0.0175, 0.9825],
  "volume": 17028269.09,
  "volume24hr": 20331.09,
  "liquidity": 274029.55,
  "bestBid": 0.017,
  "bestAsk": 0.018,
  "lastTradePrice": 0.017,
  "spread": 0.001,
  "endDate": "2027-01-01T04:59:00Z",
  "active": true,
  "closed": false,
  "tagSlugs": ["politics", "world"],
  "eventSlug": "xi-jinping-out-before-2027",
  "eventTitle": "Xi Jinping out before 2027?",
  "clobTokenIds": ["9103...", "1849..."],
  "scrapedAt": "2026-11-06T10:00:00Z"
}
```

### FAQ

**Where does the data come from?**
From the public market list that Polymarket publishes for its own site. No account or key is needed.

**What does an outcome price mean?**
It is the current market price of that outcome between 0 and 1, which traders read as an implied probability. The prices are in the same order as the outcome names.

**Why is `url` sometimes null?**
The link is built from the event slug. A market without an event has no page address in the list, so the field stays null.

**Can I search by any word?**
Tags are matched by Polymarket itself. Keywords are matched after loading, on the question, answer label, event title and slug. With only keywords, the actor reads the markets in your chosen order up to `maxPages` pages and keeps the matches. Add a tag to reach further.

**How fresh is the data?**
Prices and volumes are read when the run happens. Run it on a schedule to build a price history.

**Can a market appear twice?**
No. Rows are unique by market id, also when the same market is in two tags. Any repeats from overlapping pages are skipped and mentioned in the run status.

**What happens if I stop the run or it restarts?**
Progress is saved after every batch. A restarted run continues where it stopped, without repeating rows or charges.

**How fast is it?**
The actor waits a short moment between requests to stay within the published limits. About 50 markets arrive per request.

**Can I use this to place trades?**
No. The actor reads public market information only.

# Actor input Schema

## `tags` (type: `array`):

Tag names as shown on polymarket.com, for example politics, crypto, sports or elections. Each tag is read in turn and the result limit is shared between them. Leave empty for all markets.

## `keywords` (type: `array`):

Keep only markets whose question, answer label, event title or slug contains one of these words. The words are checked after loading, so combine them with a tag for a faster search. Leave empty for no word filter.

## `active` (type: `boolean`):

Only active markets. Left empty it is on, except when Closed markets are requested.

## `closed` (type: `boolean`):

Return closed markets instead of open ones. Default off.

## `minVolume` (type: `number`):

Only markets with at least this total traded volume. Leave empty for no minimum.

## `minLiquidity` (type: `number`):

Only markets with at least this liquidity. Leave empty for no minimum.

## `orderBy` (type: `string`):

How markets are sorted before they are read. Highest values come first unless Ascending is on.

## `ascending` (type: `boolean`):

Sort from the lowest value to the highest. Default off.

## `maxResults` (type: `integer`):

Maximum markets for the run, shared between all tags. Default 100, maximum 5,000. An empty input runs a tiny demo of 5 markets.

## `maxPages` (type: `integer`):

Upper limit of pages read for each tag (50 markets per page). Matters mainly with keywords, which can need many pages. Default 20, maximum 200.

## `proxyConfiguration` (type: `object`):

Keep the default.

## Actor input object example

```json
{
  "closed": false,
  "orderBy": "volume",
  "ascending": false,
  "maxResults": 100,
  "maxPages": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Polymarket prediction markets with prices, volume and liquidity

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/polymarket-markets-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("nanodata/polymarket-markets-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nanodata/polymarket-markets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nanodata/polymarket-markets-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ilpoBvvvPoBbfQQTx/builds/UkqvmkAvQobH7rrdE/openapi.json
