# Election odds from Polymarket and Kalshi

**Use case:** 

Election and politics markets from both platforms in one schema: candidates, parties and outcomes with their implied probability, 24h change, volume and liquidity. Sorted by trading activity.

## Input

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "status": "open",
  "categories": [
    "elections",
    "politics"
  ],
  "minVolume": 1,
  "minVolume24h": 0,
  "endingWithinDays": 0,
  "resolvedWithinDays": 3,
  "sortBy": "volume24h",
  "maxMarkets": 200,
  "includePriceHistory": false,
  "historyResolution": "daily",
  "includeRules": false
}
```

## Output

```json
{
  "platform": {
    "label": "Platform"
  },
  "category": {
    "label": "Category"
  },
  "event": {
    "label": "Event"
  },
  "outcome": {
    "label": "Outcome"
  },
  "market": {
    "label": "Market"
  },
  "probability": {
    "label": "Probability",
    "format": "number"
  },
  "priceChange24h": {
    "label": "24h change",
    "format": "number"
  },
  "yesBid": {
    "label": "Bid",
    "format": "number"
  },
  "yesAsk": {
    "label": "Ask",
    "format": "number"
  },
  "volume24h": {
    "label": "24h volume",
    "format": "number"
  },
  "volume": {
    "label": "Volume",
    "format": "number"
  },
  "volumeUnit": {
    "label": "Unit"
  },
  "closeTime": {
    "label": "Closes (UTC)",
    "format": "date"
  },
  "status": {
    "label": "Status"
  },
  "result": {
    "label": "Result"
  },
  "url": {
    "label": "Link",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Polymarket & Kalshi Scraper: Odds, Price History, Results](https://apify.com/sports-odds-lab/polymarket-kalshi-odds.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sports-odds-lab/polymarket-kalshi-odds.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/sports-odds-lab/polymarket-kalshi-odds.md

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`).
