# Polymarket Prediction Markets Scraper (`talcoe/polymarket-markets`) Actor

Polymarket prediction markets with live prices, volume, liquidity and resolution status. Filter by keyword, category and status, pay only per result returned.

- **URL**: https://apify.com/talcoe/polymarket-markets.md
- **Developed by:** [M Usama](https://apify.com/talcoe) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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

### What does Polymarket Prediction Markets Scraper do?

Polymarket Prediction Markets Scraper pulls live market data from Polymarket: the question, current outcome prices, trading volume, liquidity and resolution status. Filter by keyword, category and market status so you only pay for the markets you care about, and get the top markets by volume first.

### Data source

Public JSON data from gamma-api.polymarket.com, Polymarket's own API for market data. No login is required and the data reflects current prices at the time of the run.

### Why use it?

- Track odds movement on markets that matter to you (politics, crypto, sports, macro events) without opening the site.
- Feed prediction market prices into a trading, arbitrage or research model.
- Monitor resolution status and final prices on closed markets for historical analysis.
- Build alerts or dashboards on top of a clean, consistent JSON feed instead of scraping the website by hand.

### How to use it

1. Open the Actor and set the filters (keyword, category, status, minimum volume).
2. Click Start. Download results as JSON, CSV or Excel, or read them through the API.
3. Add a Schedule and an Integration (Slack, Google Sheets, webhook) to get new records automatically.

### Input

| Field | Description |
|---|---|
| `keyword` | Only return markets whose question or description contains this text. Leave blank to skip. |
| `category` | Polymarket tag slug, for example politics, crypto, sports, pop-culture, business or science. Leave blank for all categories. |
| `status` | `open` (still trading), `closed` (resolved) or `all`. Defaults to `open`. |
| `minVolume` | Only return markets with at least this much total trading volume in USD. |
| `maxResults` | Hard stop for the run. You are billed per result, so this caps the cost. |
| `proxyConfiguration` | Apify proxy is recommended for larger runs. |

Example input:

```json
{
    "keyword": "bitcoin",
    "category": "crypto",
    "status": "open",
    "minVolume": 100000,
    "maxResults": 50
}
```

### Output

Every record has the same shape:

```json
{
    "id": "2063134",
    "question": "Will Adanech Abiebie be the next Prime Minister of Ethiopia?",
    "status": "open",
    "outcomes": ["Yes", "No"],
    "outcomePrices": [0.003, 0.997],
    "volume": 83456209.933,
    "liquidity": 21559.415,
    "volume24hr": 210.05,
    "endDate": "2026-06-01T00:00:00.000Z",
    "startDate": "2026-04-27T21:55:14.576Z",
    "eventTitle": "Next Prime Minister of Ethiopia?",
    "slug": "will-adanech-abiebie-be-the-next-prime-minister-of-ethiopia",
    "url": "https://polymarket.com/event/next-prime-minister-of-ethiopia",
    "description": "General elections are scheduled to be held in Ethiopia on June 1, 2026...",
    "scrapedAt": "2026-09-21T08:37:47.238Z"
}
```

| Field | Meaning |
|---|---|
| `id` | Stable market id, safe for deduplication between runs |
| `question` | The market question as shown on Polymarket |
| `status` | `open`, `closed` or `inactive` |
| `outcomes` | Possible outcomes, usually `["Yes", "No"]` |
| `outcomePrices` | Current price per outcome, in the same order as `outcomes`. Prices are probabilities between 0 and 1 |
| `volume` | Total trading volume in USD since the market opened |
| `liquidity` | Current order book liquidity in USD |
| `volume24hr` | Trading volume in USD over the last 24 hours |
| `endDate` | When the market is scheduled to resolve, ISO format |
| `startDate` | When the market opened, ISO format |
| `eventTitle` | Title of the event this market belongs to (events can group several related markets) |
| `slug` | Market slug used in the Polymarket URL |
| `url` | Direct link to the market on polymarket.com |
| `description` | Full resolution criteria for the market, HTML stripped |

### Pricing

Pay per event: a small fee when a run starts, then a fixed price per result returned. You only pay for markets that pass your filters. Set `maxResults` to cap any run.

### Limitations

- `category` matches Polymarket's own tag slugs. An unrecognized slug is ignored (the run logs a warning and returns unfiltered results) rather than failing the run.
- `keyword` matches against the question and description text returned by the API; it does not search resolved outcome history or comments.
- Order book depth beyond top-line liquidity is not included.

### FAQ

**Is this legal?** The Actor reads market data Polymarket's own API publishes for any visitor without a login. You are responsible for how you use the data.

**Something is missing or broken?** Open an issue in the Issues tab; response time is usually under a day.

# Actor input Schema

## `keyword` (type: `string`):

Only return markets whose question or description contains this text. Leave blank to skip this filter.

## `category` (type: `string`):

Polymarket tag slug, for example politics, crypto, sports, pop-culture, business or science. Leave blank for all categories. Find slugs in a category URL on polymarket.com, e.g. polymarket.com/politics has slug politics.

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

Open markets are still trading. Closed markets are resolved. All returns both.

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

Only return markets with at least this much total trading volume in USD. Use it to skip low activity markets.

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

Hard stop for the run. You are billed per result, so this caps the cost.

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

Apify proxy is recommended for larger runs.

## Actor input object example

```json
{
  "status": "open",
  "minVolume": 0,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "keyword": "",
    "category": "",
    "status": "open",
    "minVolume": 0,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("talcoe/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 = {
    "keyword": "",
    "category": "",
    "status": "open",
    "minVolume": 0,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("talcoe/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 '{
  "keyword": "",
  "category": "",
  "status": "open",
  "minVolume": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call talcoe/polymarket-markets --silent --output-dataset

```

## MCP server setup

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