> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# DetailedPredictionEventStatsInput

> Input type of `detailedPredictionEventStats`.

<div data-generated>
  ## GraphQL

  ```
  input DetailedPredictionEventStatsInput {
    eventId: String!
    timestamp: Int
    durations: [PredictionStatsDuration!]
    bucketCount: Int
  }

  enum PredictionStatsDuration {
    week1
    day1
    hour12
    hour4
    hour1
    min5
  }
  ```

  ### Used By

  **Used as input by**

  * [detailedPredictionEventStats](/api-reference/queries/detailedpredictioneventstats.md): Returns windowed and all-time stats for a prediction event.
</div>

## Example Usage

```graphql theme={null}
{
  detailedPredictionEventStats(
    input: {
      eventId: "67284:Polymarket:0xc5d563a36ae78145c45a50134d48a1215220f80a:137"
    }
  ) {
    eventId
    predictionEvent {
      question
      protocol
    }
    statsDay1 {
      statsCurrency {
        volumeUsd
      }
    }
  }
}
```

## Field Descriptions

### Required Fields

* **`eventId`** (String!) - The unique identifier for the prediction event (e.g., `67284:Polymarket:0xc5d563a36ae78145c45a50134d48a1215220f80a:137`)

### Usage Notes

* This input type accepts only the `eventId` field
* Use this to fetch detailed statistics for a specific prediction event
* Event IDs are unique identifiers in the format `<venueId>:<protocol>:<address>:<networkId>`
* To find event IDs, use [`filterPredictionEvents`](/api-reference/queries/filterpredictionevents) or get them from the `eventId` field on prediction markets
* The event must exist and have available data, otherwise the query returns null

### Related Queries

* [`detailedPredictionEventStats`](/api-reference/queries/detailedpredictioneventstats) - Query that uses this input type
* [`filterPredictionEvents`](/api-reference/queries/filterpredictionevents) - Find events to get their IDs
* [`detailedPredictionMarketStats`](/api-reference/queries/detailedpredictionmarketstats) - Get stats for a specific market within an event
