# Polymarket Markets Scraper · Prices, volume · $1/1K (`mlg14/polymarket-scraper`) Actor

Get Polymarket prediction markets and events for trading research, election tracking and news analysis. Outcome prices, volume, liquidity, bid/ask and price moves, filtered by keyword, category, status. Returns JSON. $1/1K results.

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

## Pricing

$1.00 / 1,000 results

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 Scraper

Scrape Polymarket prediction markets and event groups into structured records with outcome prices, trading volume, liquidity, dates, and public links. Export Polymarket data to JSON, CSV, or spreadsheet files, or use this actor as a Polymarket API alternative when you need filtered, scheduled snapshots in a dataset.

The actor reads public market data and supports keyword discovery, category selection, volume and liquidity thresholds, price movement filters, and separate market or event output. A market is one question with tradable outcomes; an event is the group that holds one or more related markets.

### What data can you extract from Polymarket?

The default output is one row per individual market. Set `itemType` to `events` for one row per event group. The fields below are flat and use the same names in dataset exports. Market-only fields are absent from event rows; event-only fields are absent from market rows. A missing source value appears as `null`.

| Field | Description | Example |
| --- | --- | --- |
| `recordType` | Distinguishes a market row from an event row. | `market` |
| `marketId` | Stable identifier for an individual market. | `4761629` |
| `eventId` | Identifier of the parent event. | `1053963` |
| `question` | The exact market question. | `Will the price of Bitcoin be above $82,000 on September 27?` |
| `eventTitle` | Title of the event group. | `Bitcoin above ___ on September 27?` |
| `description` | Public resolution or context text supplied with the record. | `This market will resolve...` |
| `marketSlug` | Market path component. | `bitcoin-above-82k-on-september-27-2026` |
| `eventSlug` | Event path component. | `bitcoin-above-on-september-27-2026` |
| `url` | Public event page. | `https://polymarket.com/event/bitcoin-above-on-september-27-2026` |
| `tags` | Available topic slugs; a selected tag is included for category scans. | `["crypto"]` |
| `outcomes` | Outcome labels in the same order as prices. | `["Yes","No"]` |
| `outcomePrices` | Decimal prices from zero to one, aligned with outcomes. | `[0.9885,0.0115]` |
| `yesPrice` | Price of the `Yes` outcome, if present. | `0.9885` |
| `noPrice` | Price of the `No` outcome, if present. | `0.0115` |
| `clobTokenIds` | Public order book token identifiers in outcome order. | `["2165...","1023..."]` |
| `volume24hr` | Traded USD volume over the previous 24 hours. | `63727.98` |
| `volumeTotal` | Lifetime traded USD volume. | `106087.01` |
| `liquidity` | Source market liquidity, or the sum of included market liquidity for an event. | `46648.09` |
| `bestBid` | Best available bid recorded by the source. | `0.988` |
| `bestAsk` | Best available ask recorded by the source. | `0.989` |
| `spread` | Source bid and ask spread. | `0.001` |
| `lastTradePrice` | Most recent trade price. | `0.988` |
| `oneDayPriceChangePct` | One day change in percentage points. | `0.7` |
| `oneWeekPriceChangePct` | One week change in percentage points, when available. | `2.4` |
| `oneMonthPriceChangePct` | One month change in percentage points, when available. | `4.1` |
| `startDate` | Start timestamp supplied by the source. | `2026-09-20T16:00:24Z` |
| `endDate` | End timestamp supplied by the source. | `2026-09-27T16:00:00Z` |
| `active` | Source active flag. | `true` |
| `closed` | Source closed flag. | `false` |
| `acceptingOrders` | Whether an individual market accepts orders. | `true` |
| `marketCount` | Number of markets in an event row. | `23` |
| `marketIds` | IDs of the markets belonging to an event row. | `["4761629"]` |
| `capturedAt` | UTC time at which the actor captured the snapshot. | `2026-09-27T00:16:54Z` |

Prices are decimal contract prices, not percentage strings. For a binary market, `0.65` corresponds to a 65% price. Treat it as a market price rather than a guarantee of the outcome. The `yesPrice` and `noPrice` shortcuts are filled only when those exact labels exist; use `outcomes` and `outcomePrices` for other outcome formats. Volume and liquidity values are numeric USD amounts as returned by the public data feed. They are snapshots and can change between runs.

### How to scrape Polymarket

1. Choose `markets` for individual questions or `events` for groups. The default returns individual markets.
2. Optionally enter category slugs such as `crypto` or `politics`, numeric tag IDs, or search phrases. Leaving these lists empty scans the current market feed by the selected sort order.
3. Set a status and optional minimum volume, liquidity, price movement, or time until end. Use `maxItemsPerSource` to control how many candidates the actor scans for each category or phrase.
4. Set `maxItemsTotal` to cap the number of rows charged and stored, then run the actor.
5. Download the resulting dataset in JSON, CSV, or a spreadsheet compatible format. Schedule later runs if you want periodic snapshots.

For an initial check, use the default settings and a modest maximum. For a focused research job, begin with a category or a keyword, then raise the scan limit only if the filters leave too few rows. A category scan uses the site's tag filtering; a keyword query uses the site's public search feed and returns matching event groups or their individual markets.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQueries` | string array | `[]` | Search phrases. Each phrase is searched independently, and duplicate IDs are removed. |
| `categories` | string array | `[]` | Topic slugs, for example `crypto`, `politics`, `sports`, `technology`, or `entertainment`. Multiple slugs form a union. |
| `tagIds` | string array | `[]` | Numeric topic IDs for subjects without a convenient slug in your workflow. These are combined with `categories`. |
| `itemType` | string | `markets` | `markets` for questions and outcome prices, or `events` for event groups. |
| `status` | string | `active` | `active`, `closed`, or `all`. |
| `minVolume24h` | integer | `0` | Minimum previous 24 hour USD volume. |
| `minTotalVolume` | integer | `0` | Minimum lifetime USD volume. |
| `minLiquidity` | integer | `0` | Minimum USD liquidity. |
| `minPriceChangePct` | integer | `0` | Minimum absolute one week or one month change in percentage points for market rows. |
| `minutesUntilEnd` | integer | `0` | Exclude records ending sooner than this many minutes. |
| `sortBy` | string | `volume24hr` | `volume24hr`, `liquidity`, `endDate`, `startDate`, or `volumeNum`. |
| `maxItemsPerSource` | integer | `500` | Maximum candidates examined per category or search phrase. |
| `maxItemsTotal` | integer | `200` | Hard cap on output rows. |
| `proxyConfiguration` | object | enabled | Connection settings for the public data endpoints. |

Example input for 50 liquid crypto market snapshots:

```json
{
  "categories": ["crypto"],
  "itemType": "markets",
  "status": "active",
  "minVolume24h": 1000,
  "minLiquidity": 1000,
  "sortBy": "volume24hr",
  "maxItemsPerSource": 500,
  "maxItemsTotal": 50
}
```

Keyword queries and category filters can be used together. In that case, a keyword result must carry a matching topic tag to pass the category filter. Search results follow the site's search ranking while being collected; the final accepted set is ordered by your chosen `sortBy` field. When you need a complete high volume scan within a topic, use `categories` without keywords and increase `maxItemsPerSource`.

### Output example

This shortened item came from a successful 50 row active crypto market run on September 27, 2026. The full row also contained the public description, market slug, order book token IDs, and price change fields.

```json
{
  "recordType": "market",
  "marketId": "4761629",
  "eventId": "1053963",
  "question": "Will the price of Bitcoin be above $82,000 on September 27?",
  "eventTitle": "Bitcoin above ___ on September 27?",
  "eventSlug": "bitcoin-above-on-september-27-2026",
  "url": "https://polymarket.com/event/bitcoin-above-on-september-27-2026",
  "tags": ["crypto"],
  "outcomes": ["Yes", "No"],
  "outcomePrices": [0.9885, 0.0115],
  "yesPrice": 0.9885,
  "noPrice": 0.0115,
  "volume24hr": 63727.98290100001,
  "volumeTotal": 106087.008606,
  "liquidity": 46648.09026,
  "endDate": "2026-09-27T16:00:00Z",
  "active": true,
  "closed": false,
  "capturedAt": "2026-09-27T00:16:54.904314+00:00"
}
```

Every run captures a new snapshot. Rows are deduplicated by market or event ID within a run, including when multiple requested categories overlap. `capturedAt` makes successive exports easy to distinguish and join. Historical changes across runs require retaining earlier datasets or saving them in your own storage.

### Use cases

- **Market monitoring:** Watch the most traded active questions and find new shifts in trading activity or liquidity. Combine a topic selection with a scheduled run to keep a current list.
- **Election research:** Collect political market questions and prices at regular intervals. Compare the same `marketId` across snapshots to see how prices moved around public events.
- **News research:** Search a named issue, inspect the resolution description, and link a published report to the underlying event page. Use numbers with a timestamp so readers know when they were observed.
- **Portfolio observation:** Export current bid, ask, spread, last trade, and outcome prices for markets you track. A market price is a snapshot and can differ from the price available later.
- **Product data feeds:** Fill a topic page or market directory with current question labels, outcome prices, volumes, and canonical public links. Set a run limit that matches the size of your page.
- **Event discovery:** Switch to event rows to identify groups with many constituent markets, then inspect their `marketIds` and total activity before requesting detailed market rows.

### How much does it cost to scrape Polymarket?

The configured rate is **$1/1K** (one dollar per 1,000 output rows, or $0.001 per row). Billing follows delivered dataset rows, with platform usage included in that per row price. The hard `maxItemsTotal` limit lets you set a predictable ceiling before a run. Actual charges depend on the number of rows returned; a filter that produces fewer rows costs less.

| Delivered rows | Example run | Estimated charge |
| ---: | --- | ---: |
| 50 | Small category check | $0.05 |
| 200 | Default maximum | $0.20 |
| 1,000 | Broader monitored export | $1.00 |

The golden run for this actor produced 50 valid market rows. Its row charge at the configured rate is $0.05. Raising `maxItemsPerSource` only increases the number of candidates examined; it does not itself create billable rows. Raising `maxItemsTotal` allows more delivered results and therefore a higher possible charge. If no records meet the filters, there are no dataset rows to charge.

### Tips for best results

Start with `volume24hr` sorting for markets with current trading activity. Use `volumeNum` when you want established markets with high lifetime turnover, `liquidity` for deeper books, `startDate` for recently added records, and `endDate` for approaching end times. A high volume market can have low current liquidity, so combine thresholds when both matter.

A category scan queries each requested topic separately and merges repeated market IDs. This works well when adjacent categories overlap. For a narrower topic, pass its tag ID rather than scanning a broader parent category and filtering the resulting rows. Tag names and IDs come from the public tag directory and may change over time; unknown tags are skipped with a warning. If every tag is unknown, the run fails clearly instead of silently returning an unrelated feed.

The public market feed sends at most 100 records per page. The actor follows offsets until it reaches `maxItemsPerSource`, the end of the feed, or the run output cap. If you specify a restrictive minimum price move or liquidity threshold, increase `maxItemsPerSource` so the actor can examine more candidates. If you only need a small dashboard, keep both limits low for a quick, bounded run.

Search phrases are independent sources. A broad term can return many event groups, including groups with several markets. The scan limit applies to examined rows; the final total cap applies to accepted output rows. For a phrase with many matches, increasing the source limit explores deeper search pages. If exact category coverage matters more than text relevance, scan by category and apply downstream text filtering to the exported questions and descriptions.

For time series, schedule repeat runs with the same input and retain each dataset. Join records on `marketId` or `eventId` and use `capturedAt` as the observation time. Compare `outcomePrices` positions only after verifying that the corresponding `outcomes` labels match. A contract can stop accepting orders or close, so retain `closed` and `acceptingOrders` as part of every snapshot.

### Limits

The actor uses public data only. It does not place trades, enter an account, access private positions, or promise live order execution. Values may change immediately after capture. End dates and resolution details come from the source and can be updated by the market operator. Treat a result as a dated observation, not a permanent statement about a market.

The market feed includes a short parent event summary but does not always include every parent tag. For a category scan, `tags` contains the selected category. Keyword search and event mode can include more event tags. An unfiltered market scan may have an empty `tags` array even when the site shows topic labels. Descriptions, bid and ask values, and price change intervals can also be absent. A missing one week or one month change does not mean the price stayed constant.

A search query is resolved through event search. A matching event may contain many market rows, so its markets can consume the per source scan allowance quickly. The actor returns the source's matching event and market records; it does not perform a complete full text scan of every historical market. Sorting is applied to the collected set. Very restrictive combinations can produce fewer rows than the requested maximum.

For events, `liquidity` is calculated as the sum of the market liquidity figures included in the event response. This is a practical group measure, not a separate event order book. `minPriceChangePct` applies only to individual markets. The actor does not remove closed markets whose end date is in the future, or active markets whose listed end time has passed, unless the chosen status and time filters exclude them. Status and dates describe different source attributes.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

`https://mcp.apify.com?tools=mlg14/polymarket-scraper`

An agent gets back flat Polymarket market or event rows with outcome prices, volume, liquidity and dates, plus the public `url`. Keep results bounded with `maxItemsTotal` so a run finishes quickly, and save the run input next to the dataset so later snapshots stay comparable.

**Prompt 1:** "Show me the 20 most traded active Polymarket markets about bitcoin right now."

```json
{ "searchQueries": ["bitcoin"], "itemType": "markets", "status": "active", "sortBy": "volume24hr", "maxItemsTotal": 20 }
```

**Prompt 2:** "Get the 30 most active political prediction markets on Polymarket with at least $10,000 traded in 24 hours."

```json
{ "categories": ["politics"], "itemType": "markets", "status": "active", "minVolume24h": 10000, "sortBy": "volume24hr", "maxItemsPerSource": 200, "maxItemsTotal": 30 }
```

**Prompt 3:** "Find Polymarket crypto markets whose price moved at least 10 points in a week or month, with decent liquidity."

```json
{ "categories": ["crypto"], "itemType": "markets", "status": "active", "minLiquidity": 5000, "minPriceChangePct": 10, "maxItemsPerSource": 300, "maxItemsTotal": 25 }
```

### FAQ

#### Is it legal to use the data?

The actor collects publicly accessible market information. Follow the site's terms and applicable law for your use case. If you combine this output with other data, handle any personal data under the rules that apply to you. The actor is intended for public market analysis and does not extract account information.

#### Do I need a proxy?

The actor is configured with a proxy by default. The public JSON endpoints worked on the initial hosted test without a browser challenge. The fetch layer can rotate a session and change proxy route if requests are blocked. Leave the default connection setting in place unless you have a specific routing requirement.

#### How fast is a run?

Runtime depends on the number of categories, search pages, and examined records. A 50 row active crypto golden run succeeded on the hosted service. Large events can include many markets and take longer to transfer. Begin with a modest per source limit, then increase it only when you need deeper coverage.

#### Can I schedule market monitoring?

Yes. Repeat the same input on a schedule, save each resulting dataset, and compare IDs and `capturedAt` values. The actor deduplicates within a run. It does not suppress previously seen IDs across separate runs because repeat snapshots are useful for monitoring price and volume changes.

#### Can I export to a spreadsheet?

Yes. The dataset can be downloaded as JSON, CSV, or a spreadsheet compatible export. Arrays such as outcomes and token IDs are naturally structured in JSON; a tabular export may represent them as serialized cells. Keep `outcomes` and `outcomePrices` together so their positions remain aligned.

#### Why is a price change field empty?

The source does not provide every interval for every market. New, thin, or inactive markets may have a current price without a one week or one month change. The actor preserves that absence as `null`. If `minPriceChangePct` is set, markets without a qualifying interval are excluded.

#### Why did I receive fewer rows than requested?

`maxItemsTotal` is a ceiling, not a target. A category can have fewer active records, keyword results can be sparse, and minimum thresholds can reject many candidates. Increase `maxItemsPerSource` to examine more records. Relax minimums or remove a category filter when the subject is too narrow.

### Integrations

Use the dataset endpoint to feed a dashboard, a scheduled report, a data warehouse, or a spreadsheet import. Run completion notifications can trigger a downstream process that reads the newest rows and compares them with a prior snapshot. The flat identifiers and capture timestamp make merges straightforward: use `marketId` for question level history and `eventId` for group level history.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

## `searchQueries` (type: `array`):

Keyword phrases to search Polymarket events, one search per phrase, results merged. Example: \["bitcoin", "election"]. Use to find markets about a named topic; leave empty to scan by category or the whole feed.

## `categories` (type: `array`):

Polymarket topic tag slugs; several are combined. Examples: politics, crypto, sports, technology, entertainment, elections, basketball. Use to scan one topic such as \["crypto"]; leave empty for all topics.

## `tagIds` (type: `array`):

Numeric Polymarket tag IDs, combined with category slugs. Example: \["21", "100196"]. Use when you know the exact tag ID of a narrow topic; leave empty to rely on categories only.

## `itemType` (type: `string`):

Output one row per market or per event group. Allowed values: markets (one tradable question with outcome prices), events (a group of related markets). Example: markets. Use markets for prices; use events to discover groups.

## `status` (type: `string`):

Which records to return. Allowed values: active (open for trading), closed (resolved or ended), all. Example: active. Use active for current prices and closed for historical research on resolved markets.

## `minVolume24h` (type: `integer`):

Keep only records with at least this USD volume traded in the previous 24 hours. Example: 10000 for liquid, busy markets. Set 0 for no volume filter.

## `minTotalVolume` (type: `integer`):

Keep only records with at least this USD lifetime traded volume. Example: 100000 for established markets. Set 0 for no filter; use it to skip thin, new markets.

## `minLiquidity` (type: `integer`):

Keep only records with at least this USD liquidity (for events, the sum of its markets). Example: 5000 for deep order books. Set 0 for no liquidity filter.

## `minPriceChangePct` (type: `integer`):

For market rows, keep only markets whose absolute one-week or one-month price move is at least this many percentage points. Example: 10 for big movers. Set 0 for no filter; ignored for events.

## `minutesUntilEnd` (type: `integer`):

Exclude records ending sooner than this many minutes from now. Example: 1440 to skip markets ending within a day. Set 0 to disable the filter and include markets about to end.

## `sortBy` (type: `string`):

Order of the collected results. Allowed values: volume24hr, liquidity, endDate, startDate, volumeNum (lifetime volume). Example: volume24hr. Use volume24hr for the most traded markets right now.

## `maxItemsPerSource` (type: `integer`):

Maximum records scanned per category or search phrase before filters; each API page holds up to 100. Example: 500. Increase when filters are strict; use a small value like 100 for quick runs.

## `maxItemsTotal` (type: `integer`):

Hard cap on result rows saved and billed. Example: 50 for a quick check. Use a small number such as 20 to 50 for agent calls to keep runs under 3 minutes; raise it for bulk exports.

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

Proxy settings for requests to the public Polymarket data endpoints. Example: {"useApifyProxy": true}. Leave the default unless you need a specific proxy route.

## Actor input object example

```json
{
  "searchQueries": [
    "bitcoin"
  ],
  "categories": [],
  "tagIds": [],
  "itemType": "markets",
  "status": "active",
  "minVolume24h": 0,
  "minTotalVolume": 0,
  "minLiquidity": 0,
  "minPriceChangePct": 0,
  "minutesUntilEnd": 0,
  "sortBy": "volume24hr",
  "maxItemsPerSource": 500,
  "maxItemsTotal": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `records` (type: `string`):

Public market or event snapshots in the default dataset.

# 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 = {
    "searchQueries": [
        "bitcoin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/polymarket-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 = { "searchQueries": ["bitcoin"] }

# Run the Actor and wait for it to finish
run = client.actor("mlg14/polymarket-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 '{
  "searchQueries": [
    "bitcoin"
  ]
}' |
apify call mlg14/polymarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mlg14/polymarket-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/tAbwzMz5j1DoqSR8K/builds/owDXGhlhjwwT6IMvs/openapi.json
