# Polymarket Scraper: Odds, Volume & Price History (`tacps126/polymarket-markets`) Actor

Polymarket markets and events: probability, outcome prices, bid/ask, 24h and 7d change, volume, liquidity, close date, resolution, result, daily price history. Search, categories, links, move alerts.

- **URL**: https://apify.com/tacps126/polymarket-markets.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Business, News, Developer tools
- **Security:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 markets

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Odds, Volume & Price History

Every **Polymarket** market you need in one table: **probability**, every outcome's price, bid and ask, **24-hour and 7-day change**, **volume**, **liquidity**, close date, resolution status and, once settled, the **result**. Search by keyword or category, paste event links, add **daily price history**, and schedule it to get an **alert row whenever a market moves** by the points you choose.

**Built for** traders and forecasters, journalists and newsletters, quant and research teams, app and bot builders, and AI agents.

### What you get

One row per market: a yes/no market, or one outcome of a multi-outcome event (each candidate, each rate decision, each team).

| Field | Meaning |
|---|---|
| `marketId`, `conditionId`, `slug`, `eventId`, `eventTitle`, `question`, `outcome`, `url` | The market |
| `probability` | Market-implied chance of the first outcome ("Yes"), 0 to 1 |
| `outcomes` | Every outcome with its price, e.g. Yes 0.275, No 0.725 |
| `lastPrice`, `yesBid`, `yesAsk`, `noBid`, `noAsk`, `spread` | Quotes, 0 to 1 |
| `change24h`, `change7d` | Probability change over 24 hours and 7 days |
| `volume`, `volume24h`, `liquidity` | In US dollars |
| `category`, `openTime`, `closeTime` | When it trades |
| `status` (open, closed, resolved), `resolutionStatus`, `result`, `rules` | How it settles |
| `priceHistory` | `[{date, probability}]`, one point per day, with **History days** set |
| `previousProbability`, `movePoints` | On alert runs: the price last delivered and the move since, in percentage points |

### How to use it

Busiest Polymarket markets right now:

```json
{ "maxItems": 50 }
```

Fed-rate markets with 30 days of history:

```json
{ "search": "fed rate", "historyDays": 30 }
```

Crypto markets with $10,000+ traded today, biggest movers first:

```json
{ "categories": ["crypto"], "minVolume24h": 10000, "sortBy": "move24h" }
```

Alert when any politics market moves 5 points (schedule hourly):

```json
{ "categories": ["politics"], "minVolume24h": 5000, "alertMovePoints": 5 }
```

Specific events by link:

```json
{ "markets": ["https://polymarket.com/event/fed-decision-in-december-20260729232808632"] }
```

### Options

| Option | What it does |
|---|---|
| **Platforms** (`platforms`) | Fixed to Polymarket in this Actor |
| **Search** (`search`) | Keywords in the question, event or outcome, e.g. `fed rate`, `bitcoin` |
| **Categories** (`categories`) | politics, elections, economics, finance, crypto, sports, tech-science, ai, climate-weather, culture, world, companies, health |
| **Markets** (`markets`) | Polymarket event or market links, slugs or condition ids |
| **Status** (`status`) | `open` (default), `closed` (includes resolved, with result) or `all` |
| **Sort by** (`sortBy`) | `volume24h`, `volume`, `liquidity`, `closingSoon`, `newest`, `move24h` |
| **Minimum total / 24-hour volume** (`minVolume`, `minVolume24h`) | In US dollars |
| **Minimum liquidity** (`minLiquidity`) | In US dollars |
| **Closes within (days)** (`closesWithinDays`) | Only markets settling within this many days |
| **History days** (`historyDays`) | Daily price history, up to 365 days |
| **Max markets** (`maxItems`) | Most rows per run |
| **Only new** (`onlyNew`, `monitorName`) | With a schedule, each run returns only markets earlier runs did not deliver |
| **Alert on moves** (`alertMovePoints`) | Return only markets whose probability moved at least this many percentage points since last delivered |

### Pricing

**$3 per 1,000 markets**, plus a small start fee per run. Price history is included. On the Apify free plan a run returns up to 100 markets.

### Good to know

- Categories: politics, elections, economics, finance, crypto, sports, tech and science, AI, climate and weather, culture, world, companies, health.
- A finished game or event shows as closed while its result is being confirmed, and as resolved with `result` once settled.
- The first alert run returns every match as the baseline; later runs return only moves (and new markets).
- Need Kalshi, Manifold or PredictIt too? **Prediction Markets** (tacps126/prediction-markets) covers all four in one table.
- Prices are delayed snapshots for research, not a trading feed.
- Questions: **tacps126@gmail.com**.

# Actor input Schema

## `platforms` (type: `array`):

Polymarket. Kalshi, Polymarket, Manifold and PredictIt together are in Prediction Markets (tacps126/prediction-markets).

## `search` (type: `string`):

Keywords, e.g. `fed rate`, `bitcoin`, `election`, `Super Bowl`. Leave empty for the busiest markets.

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

Only markets in these categories (any match). Ignored when Search is set on Polymarket.

## `markets` (type: `array`):

Polymarket event or market links (polymarket.com/event/...), slugs or condition ids.

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

Open markets (default), closed and settled markets with their result, or both.

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

Order of results. Volume and liquidity take the top of each platform in turn, since units differ.

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

Minimum total volume in US dollars.

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

Same units as total volume.

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

Order-book or pool liquidity (Polymarket, Manifold).

## `closesWithinDays` (type: `integer`):

Only markets that close within this many days.

## `historyDays` (type: `integer`):

Add a daily price history (`priceHistory`) for Kalshi and Polymarket markets. 0 = none.

## `maxItems` (type: `integer`):

Most markets to return (each outcome of a multi-outcome event counts as one).

## `onlyNew` (type: `boolean`):

Schedule the Actor and each run returns only markets earlier runs did not deliver.

## `alertMovePoints` (type: `number`):

Return only markets whose probability moved at least this many percentage points since they were last delivered, with `previousProbability` and `movePoints`. The first run returns every market as the baseline. Pair with a schedule and the Slack or webhook delivery below.

## `monitorName` (type: `string`):

Optional name for the monitoring history, so several monitors can run side by side.

## `tenantId` (type: `string`):

Optional label used to keep separate histories for different clients or teams.

## `debug` (type: `boolean`):

Save extra diagnostics with the run (for support requests).

## `delivery` (type: `object`):

Webhook: {"webhookUrl": "https://...", "format": "json" | "slack" | "discord", "onlyWhenResults": true, "includeItems": 10}. Google Sheets: {"spreadsheetId": "<id from the sheet URL>", "sheetName": "Sheet1"} plus the service account key below; share the sheet with the service account's e-mail first. Leave empty to only save results in the dataset.

## `googleServiceAccountJson` (type: `string`):

Only for Google Sheets delivery: paste the service account's JSON key. Stored encrypted; the account sees only sheets you share with it.

## Actor input object example

```json
{
  "platforms": [
    "polymarket"
  ],
  "search": "fed rate",
  "status": "open",
  "sortBy": "volume24h",
  "historyDays": 0,
  "maxItems": 100,
  "onlyNew": false,
  "debug": false
}
```

# Actor output Schema

## `results` (type: `string`):

The produced items (default dataset items).

# 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 = {
    "platforms": [
        "polymarket"
    ],
    "search": "fed rate"
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/polymarket-markets").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 = {
    "platforms": ["polymarket"],
    "search": "fed rate",
}

# Run the Actor and wait for it to finish
run = client.actor("tacps126/polymarket-markets").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 '{
  "platforms": [
    "polymarket"
  ],
  "search": "fed rate"
}' |
apify call tacps126/polymarket-markets --silent --output-dataset

```

## MCP server setup

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

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/Qxy40ZpV9ahsKi4mk/builds/lfggbTi6ze9GdViZU/openapi.json
