> ## 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.

# SearchPredictionMarket

> Metadata for a prediction market returned in search results.

<div data-generated>
  ## GraphQL

  ```
  type SearchPredictionMarket {
    id: String!
    eventId: String!
    protocol: PredictionProtocol!
    venueMarketId: String!
    venueMarketSlug: String
    exchangeAddress: String
    networkId: Int
    venueEventId: String
    label: String
    suggestedLabel: String
    question: String
    collateral: String!
    createdAt: Int!
    opensAt: Int
    closesAt: Int
    resolvesAt: Int
    resolvedAt: Int
    status: PredictionEventStatus!
    tags: [String!]
    imageThumbUrl: String
  }

  enum PredictionProtocol {
    POLYMARKET
    KALSHI
  }

  enum PredictionEventStatus {
    OPEN
    SUSPENDED
    RESOLVED
    CANCELLED
    PENDING
  }
  ```

  ### Used By

  **Returned by**

  * [eventScopedFilterPredictionMarkets](/api-reference/queries/eventscopedfilterpredictionmarkets.md): Filters prediction markets within a single event and returns structured classification metadata for each market. Use this instead of `filterPredictionMarkets` when you need entrant/segment/ladder details (country codes, period+stat grouping, parsed numeric/date rungs) without re-parsing labels client-side.
  * [filterPredictionMarkets](/api-reference/queries/filterpredictionmarkets.md): Filters prediction markets using optional text, IDs, event constraints, and ranking criteria.
</div>
