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

Export Polymarket prediction markets by category, keyword or event: outcome prices, implied probabilities, bid/ask, 24 h change, volume, liquidity and end dates. Official public API, no login.

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

## Pricing

from $2.00 / 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.

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

Export Polymarket prediction markets to JSON, CSV or Excel by category, keyword or event link. For every market you get the question, each outcome's price and implied probability, last trade price, best bid and ask, spread, 24-hour and 7-day price change, total, 24-hour and weekly volume, liquidity, start and end dates, tags and the market and event links.

It uses Polymarket's official public market data API (Gamma API). No login, API key, wallet or proxy needed. It only reads data: it never places trades.

### What you can use it for

- **Odds tracking**: follow the implied probability of elections, rate decisions, crypto prices or sports results over time.
- **News and research**: add live market odds to articles, newsletters and dashboards.
- **Trading research and backtests**: export resolved markets with their final prices and volumes.
- **Market scanning**: find the markets with the most 24-hour volume, the deepest liquidity or the nearest end date.
- **AI and data projects**: feed structured forecasts into models or agents.

### What data you get

| Field | Description |
|---|---|
| `marketId`, `question`, `groupItemTitle` | Market ID, question and option label inside multi-option events |
| `eventTitle`, `url` | Parent event and its Polymarket link |
| `outcomes` | Each outcome with `price` (0 to 1) and `probabilityPct` |
| `yesPrice` | Price of the Yes outcome (implied probability) |
| `lastTradePrice`, `bestBid`, `bestAsk`, `spread` | Order book snapshot |
| `oneDayPriceChange`, `oneWeekPriceChange` | Price change over 24 hours and 7 days |
| `volume`, `volume24hr`, `volume1wk`, `liquidity` | Volume and liquidity in USD |
| `active`, `closed`, `acceptingOrders` | Market status |
| `startDate`, `endDate`, `createdAt` | Dates (ISO 8601) |
| `tags` | Event tags, for example Politics or Crypto |
| `description`, `resolutionSource` | Resolution rules (optional) |
| `slug`, `eventSlug`, `eventId`, `conditionId`, `clobTokenIds`, `image` | IDs for joining with other Polymarket data |
| `source`, `scrapedAt` | The input that found the market and the scrape time |

### How to use it

1. Add **Categories** (for example `politics`, `crypto`, `sports`, `economy`), **Search queries** or **Event URLs**. Leave all three empty for the top markets across Polymarket.
2. Pick the **Market status**: open, closed (resolved) or all.
3. Choose **Sort events by** and optional minimum volume or liquidity.
4. Set **Max markets per input**, click **Start** and export from the **Output** tab.

#### Example input

```json
{
  "categories": ["politics", "economy"],
  "searchQueries": ["Fed rate"],
  "eventUrls": ["https://polymarket.com/event/what-price-will-bitcoin-hit-in-2026"],
  "status": "open",
  "sortBy": "volume24hr",
  "minVolume": 10000,
  "maxMarkets": 200
}
```

#### Example output

One record from a real run:

```json
{
  "marketId": "701502",
  "question": "Will Bitcoin dip to $45,000 by December 31, 2026?",
  "groupItemTitle": "↓ 45,000",
  "eventTitle": "What price will Bitcoin hit in 2026?",
  "url": "https://polymarket.com/event/what-price-will-bitcoin-hit-before-2027",
  "outcomes": [
    {
      "name": "Yes",
      "price": 0.0835,
      "probabilityPct": 8.35
    },
    {
      "name": "No",
      "price": 0.9165,
      "probabilityPct": 91.65
    }
  ],
  "yesPrice": 0.0835,
  "lastTradePrice": 0.078,
  "bestBid": 0.077,
  "bestAsk": 0.09,
  "spread": 0.013,
  "oneDayPriceChange": -0.003,
  "oneWeekPriceChange": 0.0395,
  "volume": 10253679.987517001,
  "volume24hr": 56761.184699,
  "volume1wk": 852725.4951920001,
  "liquidity": 174431.96295,
  "active": true,
  "closed": false,
  "acceptingOrders": true,
  "startDate": "2025-11-24T19:07:15.386Z",
  "endDate": "2027-01-01T05:00:00.000Z",
  "createdAt": "2025-11-24T18:55:15.691Z",
  "tags": [
    "Bitcoin",
    "Yearly",
    "Hit Price",
    "Crypto Prices",
    "Crypto",
    "Earn 3.25%"
  ],
  "slug": "will-bitcoin-dip-to-45000-by-december-31-2026-674-923-755-971-998-525-926-245-316-517-544-589-965-923-986-841-815-224-586-231-289-533-573",
  "eventSlug": "what-price-will-bitcoin-hit-before-2027",
  "eventId": "89502",
  "conditionId": "0x024b68f77bfc019341ee3db8f57c103334e4b9430bba4746d8c94aafd8b36fee",
  "clobTokenIds": [
    "9894510651052373088408067031031513212801618531203062911959630395716258202132",
    "20326394798700413571801660749437036272627203479853632032510011746755865615562"
  ],
  "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/BTC+fullsize.png",
  "source": "category: crypto",
  "scrapedAt": "2026-11-19T15:17:34.268Z"
}
```

### Pricing

Pay per event: **$2.00 per 1,000 markets** saved, plus a tiny standard start fee and Apify platform usage (usually a fraction of a cent per run). Set **Max cost per run** to cap spending.

### Tips and limits

- **Max markets per input** applies to each category, search query and event separately. A market found by two inputs is saved and charged once.
- Events with many options (for example "What price will Bitcoin hit?") return one row per option, highest volume first.
- Prices are a snapshot at run time. Schedule the Actor (for example every hour) to build a price history.
- Category slugs are Polymarket tag slugs. A wrong slug returns no rows; the log and `RUN_SUMMARY` show saved counts per input.
- Search uses Polymarket's own event search, so results keep its relevance order.

### FAQ

**Does it need a Polymarket account or wallet?** No. It reads public market data only.

**Can it place bets or trades?** No. It is read-only.

**Can I get resolved markets?** Yes. Set **Market status** to "Closed / resolved".

### Legal note

This Actor reads Polymarket's public market data API. It is not affiliated with Polymarket. It does not give financial advice. Use the data in line with Polymarket's terms, the laws of your country and your own legitimate purpose.

# Actor input Schema

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

Polymarket category or tag slugs, for example politics, crypto, sports, economy, tech, elections, bitcoin. Leave empty together with the other inputs to get the top markets across all of Polymarket.

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

Optional. Keywords to search Polymarket events, for example "Fed rate", "Bitcoin", "election".

## `eventUrls` (type: `array`):

Optional. Polymarket event links (https://polymarket.com/event/<slug>) to export every market in that event.

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

Open markets only, resolved (closed) markets only, or both.

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

Order used for category and all-markets listings. Search results keep Polymarket's relevance order.

## `minVolume` (type: `integer`):

Optional. Skip markets with less total trading volume.

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

Optional. Skip markets with less liquidity.

## `includeDescription` (type: `boolean`):

Add each market's resolution rules text and resolution source.

## `maxMarkets` (type: `integer`):

Maximum number of markets to save for each category, search query or event.

## Actor input object example

```json
{
  "categories": [
    "crypto"
  ],
  "status": "open",
  "sortBy": "volume24hr",
  "includeDescription": false,
  "maxMarkets": 20
}
```

# Actor output Schema

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

No description

## `resultsFull` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "categories": [
        "crypto"
    ],
    "maxMarkets": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("dabooti/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 = {
    "categories": ["crypto"],
    "maxMarkets": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("dabooti/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 '{
  "categories": [
    "crypto"
  ],
  "maxMarkets": 20
}' |
apify call dabooti/polymarket-markets-scraper --silent --output-dataset

```

## MCP server setup

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