pdata Search API

The search API from pdata — 1 operation(s) for search.

GitHub OpenAPI

Operations 1

GET /api/v1/search/suggest Suggest #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pdata-world:pdata-world-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pdata-world-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'pdata.world API: prediction-market data across 8 platforms…'
  description: 'pdata is a read-only aggregator of live prediction-market data across 8 platforms (Polymarket, Kalshi, Manifold, Myriad, Limitless, Predict, Opinion, Gemini). All endpoints are public; no auth, no key, no paid tier.


    Please send a descriptive `User-Agent` naming your app or agent and a URL where its operator can be reached, so a misbehaving client can be contacted instead of blocked. Fair use: at most 50 requests a second per IP address, with bursts of up to 100; for everything at once, use the nightly bulk files at https://api.pdata.world/bulk/.


    **For AI agents:** a Model Context Protocol server is mounted at https://api.pdata.world/mcp exposing 15 of its operations as tools. For non-MCP agents, a plain JSON descriptor of the MCP surface is available at https://api.pdata.world/api/v1/mcp-info. Quickstart guide: https://pdata.world/agents.md. Verbose index with curl examples: https://pdata.world/llms-full.txt.'
  version: 2.8.0
  contact:
    name: pdata agent guide
    url: https://pdata.world/agents
  license:
    name: CC BY 4.0 (pdata aggregation; source data subject to each venue's terms)
    url: https://creativecommons.org/licenses/by/4.0/
  termsOfService: https://pdata.world/about
servers:
- url: https://api.pdata.world
  description: Production
tags:
- name: Search
paths:
  /api/v1/search/suggest:
    get:
      tags:
      - Search
      summary: Suggest
      description: 'Use when an agent has a name or phrase and needs the `(source, id)` of the matching event or market before calling another tool. Resolves free text against events AND markets in one call, best-first, and reports `total_events` / `total_markets` so the agent can tell a precise hit from an ambiguous one. Every row carries `event_path`, the internal link to use for follow-up lookups. Prefer this over running `list_events?search=` and `list_markets?search=` separately when the goal is identification rather than a filtered listing. Note: `headline` carries literal `` highlight markup — quote `title` instead, or strip the tags.'
      operationId: search_suggest
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 200
          description: Free-text query, matched against event titles and market questions. Queries shorter than 2 characters deliberately return an empty result set rather than half the dataset.
          title: Q
          examples:
          - fed decision
        description: Free-text query, matched against event titles and market questions. Queries shorter than 2 characters deliberately return an empty result set rather than half the dataset.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 20
          minimum: 1
          description: Maximum number of coalesced results to return (1-20, default 8). `total_events` / `total_markets` in the envelope count every match, not this limit; they stop at 20,000 each, and `_meta.total_capped` is then true.
          default: 8
          title: Limit
          examples:
          - 5
        description: Maximum number of coalesced results to return (1-20, default 8). `total_events` / `total_markets` in the envelope count every match, not this limit; they stop at 20,000 each, and `_meta.total_capped` is then true.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchSuggestOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '400':
          description: 'Bad request: an unknown query parameter, an unknown source, a missing argument, or an invalid value or range. `code` says which; `message` lists what is allowed or what to call first.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorOut'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ResponseMetaList:
      properties:
        attribution:
          type: string
          title: Attribution
          description: Who aggregated this data, under which licence, and whose data it is.
          default: Data aggregated by pdata.world (https://pdata.world) from Polymarket, Kalshi, Manifold, Myriad, Limitless, Predict, Opinion and Gemini; CC BY 4.0; source data © each venue.
        canonical_url:
          type: string
          title: Canonical Url
          description: 'Stable URL for this resource: the pdata.world page, or the API URL for list responses.'
        as_of:
          type: string
          format: date-time
          title: As Of
          description: When this response was generated (UTC).
        docs:
          type: string
          title: Docs
          description: API documentation.
          default: https://api.pdata.world/docs
        hint:
          anyOf:
          - type: string
          - type: 'null'
          title: Hint
          description: 'Advice for the next call, present only when there is some: today, why a search may have come back empty and where else to look. Absent otherwise.'
        total_capped:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Total Capped
          description: 'Set on `?search=` and `/search/suggest` responses only. `true` when more rows matched than the search inspects (20,000 per table; 5,000 for the typo-tolerant fallback): `meta.total` (or `total_events` / `total_markets`) is then a lower bound, not the exact count. `/markets` pages normally stay in exact order. `/events` stays in exact order for events matched by their own text and may miss events matched only through a child market. `/search/suggest` ranks the inspected rows only. Absent when the count is exact.'
      type: object
      required:
      - canonical_url
      title: ResponseMetaList
      description: Agent metadata for list/aggregate responses (no cite_as).
    SearchSuggestOut:
      properties:
        results:
          items:
            $ref: '#/components/schemas/SearchHit'
          type: array
          title: Results
          description: The best-ranked matches, at most `limit`.
        total_events:
          type: integer
          title: Total Events
          description: Events matching the query in all; a lower bound when `_meta.total_capped` is set.
        total_markets:
          type: integer
          title: Total Markets
          description: Markets matching the query in all; a lower bound when `_meta.total_capped` is set.
        _meta:
          anyOf:
          - $ref: '#/components/schemas/ResponseMetaList'
          - type: 'null'
          description: 'Response metadata: attribution, canonical URL, as-of time, docs link, and `hint` when nothing matched.'
      type: object
      required:
      - results
      - total_events
      - total_markets
      title: SearchSuggestOut
      description: 'Envelope kept distinct from `Page` because suggest never paginates

        — `total` is meaningless when ranking truncates aggressively at 8.


        But we *do* expose total match counts: the site''s "see all results"

        footer uses them to choose which view to open (events or markets), so

        the typeahead is a launchpad to the markets page, not a dead-end at 8

        hits. A count that reached the cap is a lower bound, and the response

        then carries `_meta.total_capped`.'
    ErrorOut:
      description: The body of every error response.
      properties:
        code:
          title: Code
          type: string
          description: Machine-readable reason, e.g. `unknown_param`, `invalid_source`, `missing_argument`, `not_found`.
        message:
          title: Message
          type: string
          description: What went wrong and what to send instead, in one or two sentences.
        detail:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          default: null
          title: Detail
          description: 'Structured extras when there are any: `missing` and `next_tool` for `missing_argument`, `did_you_mean` (closest documented paths) for an unknown path.'
        docs:
          default: https://api.pdata.world/docs
          title: Docs
          type: string
          description: API documentation.
        home:
          default: https://api.pdata.world/
          title: Home
          type: string
          description: The API's front door, which links every surface.
      required:
      - code
      - message
      title: ErrorOut
      type: object
    SearchHit:
      properties:
        kind:
          type: string
          enum:
          - event
          - market
          title: Kind
          description: 'What matched: an event (a question with one or more markets) or one market (one yes/no question or one outcome).'
        id:
          type: string
          title: Id
          description: The venue's own id of the event or market; unique within `source`.
        source:
          type: string
          title: Source
          description: 'Venue: polymarket, kalshi, manifold, myriad, limitless, predict, opinion or gemini.'
        title:
          type: string
          title: Title
          description: The event's title, or the market's question or outcome label (read it with `event_title`).
        headline:
          anyOf:
          - type: string
          - type: 'null'
          title: Headline
          description: '`title` with the query''s matched fragments wrapped in literal `<b>`/`</b>` tags (Postgres `ts_headline` output), for callers that render highlighted search rows. This is markup, not prose: non-rendering consumers — LLM agents especially — should quote `title` instead, or strip the tags before echoing this field. Null when the row was matched without highlighting.'
        status:
          type: string
          enum:
          - open
          - closing-soon
          - past
          - resolved
          title: Status
          description: open; closing-soon (an unresolved row whose end date is within 36 hours); past (the end date has passed but the venue has not closed it); resolved (closed by the venue).
        volume_24hr:
          anyOf:
          - type: number
          - type: 'null'
          title: Volume 24Hr
          description: Venue-reported 24h volume, in the venue's own unit (shares, contracts, mana); not converted between venues.
        volume:
          anyOf:
          - type: number
          - type: 'null'
          title: Volume
          description: Venue-reported lifetime volume, in the venue's own unit (shares, contracts, mana); not converted between venues.
        child_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Child Count
          description: Number of child markets (events only); null for markets.
        url_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Url Path
          description: The venue's own page for this row when known (https://…); otherwise, for events, the internal pdata path.
        event_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Event Path
          description: 'Internal pdata.world path to the row''s event page: `/events/{source}/{event_id}`, plus `#market={market_id}` for a market, which pre-selects it. Null for a market with no parent event.'
        event_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Event Title
          description: 'Markets: the parent event''s title, which an outcome label such as `Putin` needs. Null for event rows, whose `title` is the event title.'
        probability:
          anyOf:
          - type: number
          - type: 'null'
          title: Probability
          description: 'Markets: the implied probability of the first outcome (usually YES), in [0, 1]. Events: set only for a single-market event; null otherwise.'
        prob_24h_change:
          anyOf:
          - type: number
          - type: 'null'
          title: Prob 24H Change
          description: 24-hour change in `probability`, signed, on the same [0, 1] scale (0.12 = up 12 points). Null without usable history.
        end_date:
          anyOf:
          - type: string
          - type: 'null'
          title: End Date
          description: Scheduled close or expiry as the venue reports it, ISO 8601 (UTC).
        pdata_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Pdata Url
          description: 'Absolute address of the row''s event page on pdata.world: `event_path` without its `#market=` fragment. Null when `event_path` is.'
      type: object
      required:
      - kind
      - id
      - source
      - title
      - headline
      - status
      - volume_24hr
      - volume
      - child_count
      - url_path
      - event_path
      - event_title
      - probability
      - prob_24h_change
      - end_date
      title: SearchHit
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
externalDocs:
  url: https://pdata.world/agents
  description: Agent quickstart — MCP setup, citation policy, schema policy.