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

# Popular searches

> The search queries that at least 5 different callers (IP addresses; an IPv6 /64 counts as one) searched over the last 7 days, most searchers first. `count` is an estimate (within about 1%). Only searches that found events by their own words or a synonym (not by a typo match) are counted, folded as the search log writes them (lower-case, accents folded; queries with digits, emails, wallet addresses or long runs are left out); typing prefixes and blocked phrases are left out. A search shows here within about 3 minutes. Public, no key needed; answered with `Cache-Control: public, max-age=60`. An empty array when nothing qualifies.



## OpenAPI

````yaml /api-reference/openapi.json get /api/search/popular
openapi: 3.1.0
info:
  title: PredictStreet API
  description: >-
    Client-facing HTTP API for the PredictStreet prediction-market platform.
    **Partner kinds.** Every authenticated endpoint except the partner-level
    platform reads (`/api/platform/status`, `/notices`, `/maintenance`) resolves
    a request's *effective wallet* from the partner row. `single_wallet`
    partners bind to one `associatedWallet` set at creation. `multi_wallet`
    partners declare the actor on every request via an `X-User-Wallet:
    0x<40-hex>` header. See the [Partner kinds](/auth/api-keys#partner-kinds)
    doc for the full contract.
  version: '2026-06-16'
  contact:
    name: PredictStreet partners
    email: partners@predictstreet.com
servers:
  - url: https://core-api.adipredictstreet.com
    description: Production — replace with the API host issued at partner onboarding.
security: []
tags:
  - name: Deposits
    description: >-
      Gasless USDC deposit relay - submit a signed EIP-2612 permit and the
      platform broadcasts the on-chain deposit for you (no gas).
  - name: Events
    description: >-
      Polymarket-style event grouping with football metadata (group, stage,
      teams, tags).
  - name: Tags
    description: Curated tag taxonomy used to filter events.
  - name: Markets
    description: 'Public market data: list, detail, orderbook, trades, OHLC.'
  - name: Crypto
    description: >-
      Crypto price markets: the underlying-asset price curve and Up/Down series
      navigation. The markets themselves are ordinary binary markets — list them
      through /api/markets and /api/events.
  - name: Orders
    description: >-
      Signed-order place / cancel / read. Requires `X-Api-Key` with
      `orders:read` / `orders:write` scope; every write additionally requires an
      EIP-712 signature over the order.
  - name: Portfolio
    description: >-
      Balances, positions, trades, fees, vault info for the key's
      `associatedWallet`. Requires `X-Api-Key` with `portfolio:read` scope.
  - name: Matches
    description: >-
      A match groups several events into one fixture/card (1X2 + first-scorer +
      over-under under one matchup).
  - name: Vault
    description: >-
      Backend co-signatures for ERC-1155 split / merge, and recovery for
      off-chain locks when the corresponding chain tx never confirmed. Requires
      `X-Api-Key` with `vault:write` scope plus an EIP-712 signature over the
      operation.
  - name: Leaderboard
    description: Public ranked leaderboard across PnL / volume buckets.
  - name: Search
    description: Global search across users, events, and matches.
  - name: Withdrawal Security
    description: >-
      Self-service withdrawal 2FA (TOTP) and withdrawal-address whitelist. Same
      endpoints serve the web app (user sessions) and API-key integrators.
      Mutations need `vault:write`, reads `portfolio:read`. Both are opt-in per
      wallet and only gate withdrawals once the platform enables
      withdrawal-security enforcement.
  - name: Platform
    description: >-
      Platform reference data and state. The contract registry and the fee
      configuration are public and need no key. The freeze flag (`/status`),
      active notices (`/notices`) and maintenance windows (`/maintenance`) need
      a partner API key in `X-Api-Key`.
paths:
  /api/search/popular:
    get:
      tags:
        - Search
      summary: Popular searches
      description: >-
        The search queries that at least 5 different callers (IP addresses; an
        IPv6 /64 counts as one) searched over the last 7 days, most searchers
        first. `count` is an estimate (within about 1%). Only searches that
        found events by their own words or a synonym (not by a typo match) are
        counted, folded as the search log writes them (lower-case, accents
        folded; queries with digits, emails, wallet addresses or long runs are
        left out); typing prefixes and blocked phrases are left out. A search
        shows here within about 3 minutes. Public, no key needed; answered with
        `Cache-Control: public, max-age=60`. An empty array when nothing
        qualifies.
      operationId: SearchPopularController_popular
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 20
            default: 8
          description: >-
            How many queries, 1–20; defaults to 8. Not plain digits or `0` → 400
            `invalid_limit`; above 20 → 400 `limit_too_large`
            (`error.details.max`: 20).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PopularSearch'
        '400':
          description: '`invalid_limit` or `limit_too_large`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
        - {}
components:
  schemas:
    PopularSearch:
      type: object
      required:
        - query
        - count
      properties:
        query:
          type: string
          description: >-
            The query as the search log folds it: lower-case, accents folded,
            punctuation as spaces.
          example: arsenal
        count:
          type: integer
          description: >-
            Different callers who searched this query and found events over the
            last 7 days (an estimate).
          example: 2400
    ErrorEnvelope:
      type: object
      description: >-
        Error body returned by every API error (same shape as `Error`). Branch
        on `error.code`, not on `message`.
      required:
        - status
        - error
      properties:
        status:
          type: integer
          description: HTTP status, repeated in the body.
          example: 400
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable code.
              example: bad_request
            message:
              type: string
            trace_id:
              type: string
              description: Request trace id; quote it to support. May be absent.
            retryAfterSec:
              type: integer
              description: >-
                Seconds to wait before retrying, when the server says so (also
                sent as the `Retry-After` header).
            retryable:
              type: boolean
              description: >-
                Whether the same request may be sent again as it is. Absent when
                the server does not say.
            details:
              type: object
              additionalProperties: true
              description: Extra structured context thrown with the error.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.