# Polymarket Prediction Markets Scraper — Odds, Volume, Order (`spotless_studios/polymarket-scraper`) Actor

Extract live Polymarket prediction markets and events via the Gamma API. Captures implied probabilities, YES/NO prices, bid-ask spread, 24h/7d/30d trading volume, liquidity, open interest, 1d/7d/30d price changes, CLOB token IDs, and resolution rules.

- **URL**: https://apify.com/spotless_studios/polymarket-scraper.md
- **Developed by:** [Spotless Studios](https://apify.com/spotless_studios) (community)
- **Categories:** AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 polymarket contract extracteds

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 Prediction Markets, Odds & Liquidity Scraper

Extract live prediction markets, implied probabilities (`yesPrice` / `noPrice`), order-book bid/ask spreads, 24h/7d/30d trading volume, liquidity, open interest, and 1d/7d/30d price deltas from **[Polymarket](https://polymarket.com)** via the official Gamma API.

Built for **quantitative traders**, **cross-venue arbitrage bots (Polymarket vs. Kalshi)**, **political & macro analysts**, and **AI forecasting agents**.

***

### What Does This Scraper Extract?

| Field | Type | Description |
|---|---|---|
| `marketId` | `string` | Unique Polymarket market ID |
| `eventId` | `string` | Parent event ID |
| `eventTicker` | `string` | Parent event ticker / slug |
| `eventTitle` | `string` | Parent event headline |
| `question` | `string` | Exact market resolution question |
| `groupItemTitle` | `string \| null` | Outcome label within multi-choice events |
| `outcomes` | `string[]` | Outcome labels (`["Yes", "No"]`) |
| `outcomePrices` | `number[]` | Outcome decimal prices (`[0.64, 0.36]`) |
| `yesPrice` | `number \| null` | Current YES share price (`0.00`–`1.00`) |
| `noPrice` | `number \| null` | Current NO share price (`0.00`–`1.00`) |
| `impliedProbabilityPct` | `number \| null` | Implied YES probability percentage (`0`–`100`) |
| `bestBid` | `number \| null` | Best bid price on CLOB orderbook |
| `bestAsk` | `number \| null` | Best ask price on CLOB orderbook |
| `lastTradePrice` | `number \| null` | Most recent execution price |
| `spread` | `number \| null` | Bid-ask spread in dollars |
| `volume24hr` | `number \| null` | 24-hour trading volume in USD |
| `volume1wk` | `number \| null` | 7-day trading volume in USD |
| `volume1mo` | `number \| null` | 30-day trading volume in USD |
| `volumeTotal` | `number \| null` | Cumulative lifetime trading volume in USD |
| `liquidity` | `number \| null` | Active orderbook liquidity in USD |
| `openInterest` | `number \| null` | Event open interest in USD |
| `oneDayPriceChange` | `number \| null` | 24h probability shift |
| `oneWeekPriceChange` | `number \| null` | 7d probability shift |
| `oneMonthPriceChange` | `number \| null` | 30d probability shift |
| `conditionId` | `string \| null` | On-chain CTF condition hash |
| `clobTokenIds` | `string[]` | CLOB token IDs for programmatic execution |
| `resolutionSource` | `string \| null` | Authoritative oracle resolution source |
| `marketUrl` | `string` | Direct URL on `polymarket.com` |
| `scrapedAt` | `string` | ISO-8601 extraction timestamp |

***

### High-Value Use Cases

1. **Polymarket vs. Kalshi Arbitrage Detection**: Pair with `kalshi-markets-scraper` to compare implied probabilities on identical macro, Fed, and election contracts in real time.
2. **Momentum & Whale Alert Pipelines**: Filter by `minVolume24h` and rank by `oneDayPriceChange` to spot sudden probability swings before mainstream news coverage.
3. **LLM Grounding & Forecasting Agents**: Feed live market-implied probabilities into AI research agents as calibrated priors.

***

### Input Example

```json
{
  "searchQuery": "fed",
  "tagSlug": "macro",
  "sortBy": "volume24hr",
  "activeOnly": true,
  "minVolume24h": 10000,
  "minLiquidity": 5000,
  "maxResults": 50
}
```

***

### Output Example

```json
{
  "marketId": "540219",
  "eventId": "19402",
  "eventTicker": "fed-interest-rates-june-2026",
  "eventTitle": "Fed Interest Rate Decision in June",
  "question": "Will the Federal Reserve cut interest rates by 25 bps in June?",
  "groupItemTitle": "25 bps decrease",
  "outcomes": ["Yes", "No"],
  "outcomePrices": [0.635, 0.365],
  "yesPrice": 0.635,
  "noPrice": 0.365,
  "impliedProbabilityPct": 63.5,
  "bestBid": 0.63,
  "bestAsk": 0.64,
  "lastTradePrice": 0.635,
  "spread": 0.01,
  "volume24hr": 482910.45,
  "volume1wk": 3120400.12,
  "volume1mo": 9840110.5,
  "volumeTotal": 14520890.0,
  "liquidity": 612400.0,
  "openInterest": 2450000.0,
  "oneDayPriceChange": 0.045,
  "oneWeekPriceChange": 0.11,
  "oneMonthPriceChange": -0.02,
  "active": true,
  "closed": false,
  "acceptingOrders": true,
  "marketUrl": "https://polymarket.com/event/fed-interest-rates-june-2026",
  "scrapedAt": "2026-10-27T14:00:00.000Z"
}
```

***

### More from Spotless Studios

**[All actors on Apify](https://apify.com/spotless_studios)** · Support: spotless.studios.info@gmail.com

| Actor | Best for |
|-------|----------|
| [SLED Government Bids](https://apify.com/spotless_studios/sled-procurement-scraper) | Daily US gov RFP / bid alerts |
| [Webflow Experts](https://apify.com/spotless_studios/webflow-experts-scraper) | Webflow agency & freelancer leads |
| [Stripe Partners](https://apify.com/spotless_studios/stripe-partners-scraper) | Stripe implementation partner lists |
| [UK Planning Applications](https://apify.com/spotless_studios/uk-planning-applications-scraper) | UK planning leads + agent contacts |
| [Product Hunt](https://apify.com/spotless_studios/product-hunt-scraper) | Every PH launch + makers / websites |
| [Duunitori Jobs](https://apify.com/spotless_studios/duunitori-jobs-scraper) | Finland job listings |
| [Clutch Agencies](https://apify.com/spotless_studios/clutch-agencies-scraper) | Clutch agency prospecting |
| [Skool Communities](https://apify.com/spotless_studios/skool-communities-scraper) | Skool community & creator leads |

# Actor input Schema

## `searchQuery` (type: `string`):

Filter Polymarket events and markets by keyword (e.g. "AI", "Fed", "Bitcoin", "Election", "IPO"). Leave empty to fetch top markets.

## `tagSlug` (type: `string`):

Optional Polymarket tag slug (e.g. "politics", "crypto", "sports", "pop-culture", "business", "science", "ai").

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

How to order Polymarket events.

## `activeOnly` (type: `boolean`):

Only include currently open, active markets accepting orders.

## `minVolume24h` (type: `number`):

Only keep markets with at least this 24-hour trading volume in USD (0 = no minimum).

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

Only keep markets with at least this liquidity in USD (0 = no minimum).

## `minImpliedProb` (type: `number`):

Filter contracts where the leading/YES implied probability is >= this percentage (0-100).

## `maxImpliedProb` (type: `number`):

Filter contracts where the leading/YES implied probability is <= this percentage (0-100).

## `eventSlugs` (type: `array`):

Specific Polymarket event slugs or URLs (e.g. "https://polymarket.com/event/kraken-ipo-in-2025").

## `includeKeywords` (type: `array`):

Keep items whose text fields contain these words. /regex/ supported.

## `excludeKeywords` (type: `array`):

Drop items containing any of these words or /regex/.

## `keywordMatch` (type: `string`):

Require any or all include keywords.

## `onlyNewItems` (type: `boolean`):

Remember items from previous runs and save only ones not seen before.

## `stateKey` (type: `string`):

Separate memory per saved search.

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

Stop after saving this many items.

## `outputPreset` (type: `string`):

Quickly choose how much data to save per record: full record, lean summary, or contacts & links only.

## `outputFields` (type: `array`):

Save only these fields, in this order. Supports nested dot-paths. Empty keeps all fields from the selected preset.

## `excludeFields` (type: `array`):

Remove specific fields from each saved record to keep datasets compact.

## `includeEmptyFields` (type: `boolean`):

When turned off, strips null, empty strings, empty arrays, and empty objects from every saved record.

## `requiredFields` (type: `array`):

Only save (and only pay for) records where every listed field has a non-empty value.

## `maxConcurrency` (type: `integer`):

Requests fetched in parallel.

## `maxRequestRetries` (type: `integer`):

Retries per request.

## `requestTimeoutSecs` (type: `integer`):

Timeout per request.

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

Optional; direct connection is tried first.

## `proxyEscalation` (type: `boolean`):

If the site blocks the run, automatically step up from direct to Apify datacenter, then residential proxy.

## Actor input object example

```json
{
  "tagSlug": "",
  "sortBy": "volume24hr",
  "activeOnly": true,
  "minVolume24h": 0,
  "minLiquidity": 0,
  "minImpliedProb": 0,
  "maxImpliedProb": 100,
  "eventSlugs": [],
  "keywordMatch": "any",
  "onlyNewItems": false,
  "stateKey": "default",
  "maxResults": 25,
  "outputPreset": "full",
  "includeEmptyFields": true,
  "maxConcurrency": 6,
  "maxRequestRetries": 4,
  "requestTimeoutSecs": 45,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyEscalation": true
}
```

# Actor output Schema

## `items` (type: `string`):

Extract live Polymarket prediction markets and events via the Gamma API. Captures implied probabilities, YES/NO prices, bid-ask spread, 24h/7d/30d trading volume, liquidity, open interest, 1d/7d/30d price changes, CLOB token IDs, and resolution rules.

# 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 = {
    "searchQuery": "",
    "maxResults": 25,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("spotless_studios/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 = {
    "searchQuery": "",
    "maxResults": 25,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("spotless_studios/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 '{
  "searchQuery": "",
  "maxResults": 25,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call spotless_studios/polymarket-scraper --silent --output-dataset

```

## MCP server setup

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