Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIPolymarket

    polymarket.events

    A page of Polymarket's events, by search words, topic or trading volume: each event's markets with their outcomes and prices, volume and liquidity.

    Id
    polymarket.events
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/polymarket.events/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of polymarket.events
    FieldTypeDescription
    querystringWords to search Polymarket for, e.g. bitcoin. The events come in the order of Polymarket's own search. Without it, the list of events is read.Limit: at least 1 characters, at most 200 characters.
    tagstringOnly events of this topic, by the name in the topic's address on polymarket.com: politics, crypto, sports, economy. Not together with query.Limit: at most 100 characters.
    sort"volume_24h" | "volume" | "liquidity" | "newest" | "ending_soon"The order of the list: volume_24h (the default: most traded in the last 24 hours first), volume (most traded overall), liquidity, newest, ending_soon. Not together with query.
    status"open" | "closed"open: events still trading. closed: events that have ended.Default: "open".
    pageintegerThe page of the list, from 1; 10 events a page.Limit: 1 to 100. Default: 1.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of polymarket.events
    FieldTypeNotes
    positioninteger or nullThe event's place in the list, from 1. Null for polymarket.event.
    event_idstringPolymarket's id of the event.
    slugstringThe name the event is filed under: the last part of its page's address.
    urlstringThe event's page on polymarket.com.
    titlestringThe event's title, e.g. What price will Bitcoin hit in 2026?.
    descriptionstring or nullThe event's description: what it is about and how it is resolved.
    resolution_sourcestring or nullThe source the event names for its resolution, usually a web address.
    imagestring or nullThe event's picture.
    tagsarray of stringThe topics Polymarket files the event under, e.g. Politics, Crypto.
    start_datestring (date-time) or nullWhen the event opened.
    end_datestring (date-time) or nullWhen the event is due to end.
    activeboolean or nullTrue once the event has been opened for trading.
    closedboolean or nullTrue when the event has ended and its markets no longer trade.
    volumenumber or nullEverything traded in the event's markets so far, in US dollars.
    volume_24hnumber or nullWhat was traded in the last 24 hours, in US dollars.
    liquiditynumber or nullThe money resting in the order books of the event's markets, in US dollars.
    open_interestnumber or nullThe value of the shares outstanding in the event's markets, in US dollars.
    comment_countinteger or nullThe number of comments on the event's page.
    market_countintegerThe number of markets the event has.
    marketsarray of objectThe event's markets, in Polymarket's order. polymarket.event returns every one; polymarket.events returns the first 25 of each event, and market_count says how many there are.
    market_id (in markets[])stringPolymarket's id of the market.
    question (in markets[])stringThe question the market asks, e.g. Will Bitcoin reach $150,000 by December 31, 2026?.
    slug (in markets[])string or nullThe name the market is filed under in its address.
    label (in markets[])string or nullThe market's short name inside its event, e.g. ↑ 150,000, 50+ bps decrease. Null for an event of one market.
    outcomes (in markets[])array of objectThe market's outcomes with their prices, in the market's own order.
    name (in markets[].outcomes[])stringThe outcome as the market names it: Yes, No, or a team's or a candidate's name.
    price (in markets[].outcomes[])number or nullThe outcome's price, 0 to 1: 0.25 reads as one chance in four. For a resolved market, 1 for the outcome that happened and 0 for the others.
    last_trade_price (in markets[])number or nullThe price of the last trade of the first outcome, 0 to 1.
    best_bid (in markets[])number or nullThe best bid for the first outcome, 0 to 1.
    best_ask (in markets[])number or nullThe best ask for the first outcome, 0 to 1.
    one_day_price_change (in markets[])number or nullThe change of the first outcome's price over the last day, in price points: -0.02 is two cents down.
    volume (in markets[])number or nullEverything traded in the market so far, in US dollars.
    volume_24h (in markets[])number or nullWhat was traded in the last 24 hours, in US dollars.
    liquidity (in markets[])number or nullThe money resting in the market's order book, in US dollars.
    end_date (in markets[])string (date-time) or nullWhen the market is due to end.
    active (in markets[])boolean or nullTrue once the market has been opened for trading.
    closed (in markets[])boolean or nullTrue when the market has stopped trading.
    accepting_orders (in markets[])boolean or nullTrue while orders can be placed.
    fetched_atstring (date-time)When the event was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/polymarket.events/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"query":"openai"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("polymarket.events", {"query": "openai"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("polymarket.events", { query: "openai" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "polymarket.events", map[string]any{"query": "openai"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("polymarket.events", Map.of("query", "openai"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run polymarket.events --input query=openai

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "query": "openai"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "polymarket.events",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "query": "openai"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "position": 1,
          "event_id": "193867",
          "slug": "will-anthropic-or-openai-ipo-first",
          "url": "https://polymarket.com/event/will-anthropic-or-openai-ipo-first",
          "title": "Will Anthropic or OpenAI IPO first?",
          "description": "This market will resolve to \"Anthropic\" if Anthropic completes an Initial Public Offering (IPO) before OpenAI completes an IPO by December 31, 2027, 11:59 PM ET, as confirmed by official company announcements and credible news sources. … [truncated]",
          "resolution_source": null,
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/g-7b367ede47.png",
          "tags": [
            "sam altman",
            "OpenAI",
            "Business"
          ],
          "start_date": "2026-01-30T22:45:43.987000Z",
          "end_date": "2028-01-01T04:59:00Z",
          "active": true,
          "closed": false,
          "volume": 464824.35667100013,
          "volume_24h": 8432.7965,
          "liquidity": 20734.93011,
          "open_interest": 105051.323893,
          "comment_count": 3,
          "market_count": 1,
          "markets": [
            {
              "market_id": "1301184",
              "question": "Will Anthropic or OpenAI IPO first?",
              "slug": "will-anthropic-or-openai-ipo-first",
              "label": null,
              "outcomes": [
                {
                  "name": "Anthropic",
                  "price": 0.9985
                },
                {
                  "name": "OpenAI",
                  "price": 0.0015
                }
              ],
              "last_trade_price": 0.999,
              "best_bid": 0.997,
              "best_ask": 1,
              "one_day_price_change": 0.01,
              "volume": 464824.35667100013,
              "volume_24h": 8432.7965,
              "liquidity": 20734.93011,
              "end_date": "2028-01-01T04:59:00Z",
              "active": true,
              "closed": false,
              "accepting_orders": true
            }
          ],
          "fetched_at": "2026-11-19T18:07:41.073113Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: description: 1,045 characters, the first 235 shown.
    • Shortened: tags: 11 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Polymarket scrapers are in their own section there.