Filter markets by condition ID Polymarket

Returns the latest 50 prediction managements on Polygon, where condition ID is 0xdb78…a577 and marketplace protocol name is polymarket: block time, block number, transaction hash, transaction time, event type, condition ID, question ID and 13 more fields.

By Divyasshree · saved 24 February 2026 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MarketsByConditionId($conditionIds: [String!]) {
  EVM(network: matic) {
    PredictionManagements(
      limit: { count: 50 }
      orderBy: { descending: Block_Time }
      where: {
        Management: {
          Prediction: {
            Condition: { Id: { in: $conditionIds } }
            Marketplace: { ProtocolName: { is: "polymarket" } }
          }
        }
      }
    ) {
      Block { Time Number }
      Transaction { Hash Time }
      Management {
        EventType
        Prediction {
          Condition {
            Id
            QuestionId
            Outcomes { Id Index Label }
          }
          Question {
            MarketId
            Title
            Image
            ResolutionSource
            CreatedAt
          }
          CollateralToken { Symbol Name }
          Outcome { Id Label }
          OutcomeToken { AssetId SmartContract }
        }
      }
    }
  }
}

Variables

{
  "conditionIds": [
    "0xdb7824bd088c8d00a9306a3659e209ca45a950b3f71d162698c041db64dba577"
  ]
}

Similar queries