# getEvent

**Identifier:** `polymarket_getEvent`

**Provider:** [Polymarket](https://kirha.com/providers/polymarket.md)

Fetch a Polymarket event with all of its markets, not just one. Use it when a question targets one outcome among several siblings (one candidate, one model, one date) so the exact market can be picked by question or groupItemTitle.

## Run it with the CLI

```bash
kirha tools run polymarket_getEvent \
  --input '{
    "eventSlug": "<eventSlug>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "polymarket_getEvent",
  "input": {
    "eventSlug": "<eventSlug>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "eventSlug": {
      "description": "From searchMarkets or getMarket",
      "type": "string"
    },
    "includeClosed": {
      "default": true,
      "type": "boolean"
    },
    "limit": {
      "default": 50,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "eventSlug"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "closed": {
      "type": "boolean"
    },
    "context": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "endDate": {
      "type": "string"
    },
    "eventId": {
      "type": "string"
    },
    "eventSlug": {
      "type": "string"
    },
    "marketSlugs": {
      "description": "Inputs for getMarket and getMarketPriceHistory",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "markets": {
      "description": "Sorted by volume, highest first",
      "items": {
        "additionalProperties": false,
        "properties": {
          "closed": {
            "type": "boolean"
          },
          "endDate": {
            "type": "string"
          },
          "groupItemTitle": {
            "description": "Short label distinguishing this market from siblings in the same event",
            "type": "string"
          },
          "liquidity": {
            "type": "number"
          },
          "marketId": {
            "type": "string"
          },
          "marketSlug": {
            "description": "Input for getMarket and getMarketPriceHistory",
            "type": "string"
          },
          "openInterest": {
            "type": "number"
          },
          "outcomePrices": {
            "description": "Probability per outcome (0-1), same order as outcomes",
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "outcomes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "question": {
            "type": "string"
          },
          "volume": {
            "type": "number"
          },
          "volume24hr": {
            "type": "number"
          }
        },
        "required": [
          "marketId",
          "marketSlug",
          "question",
          "closed",
          "outcomes",
          "outcomePrices"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "title": {
      "type": "string"
    },
    "totalMarkets": {
      "description": "Markets in the event before the limit is applied",
      "type": "number"
    }
  },
  "required": [
    "context",
    "eventId",
    "eventSlug",
    "title",
    "closed",
    "totalMarkets",
    "markets",
    "marketSlugs"
  ],
  "type": "object"
}
```

## Related tools

Other Polymarket tools that this tool refers to, or that refer to it.

- [`getMarketPriceHistory`](https://kirha.com/providers/polymarket/getMarketPriceHistory.md)
- [`getMarket`](https://kirha.com/providers/polymarket/getMarket.md)
- [`searchMarkets`](https://kirha.com/providers/polymarket/searchMarkets.md)

-----

[All Polymarket tools](https://kirha.com/providers/polymarket.md) · [< Back to tools list](https://kirha.com/tools.md)