Skip to main content

pdata-client

Python client, AI-assistant plugins and sample data for pdata.world, a free, read-only API for prediction-market data from 12 venues. It covers Polymarket, Kalshi, Manifold, Myriad, Limitless, Predict, Opinion, Gemini, Hyperliquid, MNX, Seer and XO Market.

pip install pdata-client
from pdata import Client

pd = Client()
page = pd.markets(source=["kalshi", "polymarket"], closed=False, sort="-volume_24hr", page_size=5)
for market in page["items"]:
    print(market["source"], market["question"], market.get("probability"), market.get("quote_tier"))

Cite as pdata.world, Prediction-market prices, volumes and results, snapshot 2026-11-23, CC BY 4.0. Snapshot DOI 10.5281/zenodo.24476601. For the dataset across versions, use concept DOI 10.5281/zenodo.23211610.

Install

pip install pdata-client
# or the latest commit:
pip install git+https://github.com/noskillcoding/pdata-client

The client uses only the standard library and runs on Python 3.9 or later. To embed it, copy src/pdata/client.py and src/pdata/_version.py into the same package. It sends pdata-client/<version> (+https://pdata.world/agents) as its User-Agent. Pass user_agent= to name your own project.

What the client covers

API 2.18.0 serves REST at https://api.pdata.world/api/v1 with no API key or signup.

Method API operation What it returns
markets(**filters), iter_markets(...) GET /markets Markets, one page or all pages
market(source, id) GET /markets/{source}/{id} One market
markets_batch(ids) GET /markets/batch Up to 50 markets by source:market_id, with missing keys in not_found
top_movers(...), closing_soon(...) GET /markets/top-movers, /markets/closing-soon Large 24-hour price changes or upcoming closes
events(**filters), iter_events(...) GET /events Events that group the markets of a question
event(source, id) GET /events/{source}/{id} One event with its markets or archived results
event_brief(source, id, format="md") GET /events/{source}/{id}/brief A compact event brief, as Markdown or JSON
event_history(source, id, range=...) GET /events/{source}/{id}/history Price and 24-hour volume series for 24h, 7d, 30d or all
similar_events(source, id) GET /events/{source}/{id}/similar Similar events
compare_pairs(...) GET /compare/pairs Matched Polymarket and Kalshi questions with firm prices
search(q) GET /search/suggest Events and markets by title
status() GET /status API version and venue clocks for all 12 venues
summary() GET /summary Per-venue counts and 24-hour volume
news_movers(...) GET /news/movers Stories grouped from qualifying price moves
bulk_index(), iter_bulk(kind) /bulk/ Nightly files, streamed without saving
status = pd.status()  # status["venues"]["kalshi"]["checked_at"]
batch = pd.markets_batch(["polymarket:561261"])
brief = pd.event_brief("polymarket", "31552", format="md")
history = pd.event_history("polymarket", "31552", range="7d",
                           interval="1d", max_points=7, markets_limit=1)
pairs = pd.compare_pairs(left="polymarket", right="kalshi", limit=1)
lean = pd.markets(source="polymarket", view="lean", limit=5)
tier = lean["items"][0].get("quote_tier") if lean["items"] else None
clocks = lean["_meta"].get("venues", {})

REST defaults to full rows. Use view="lean" on market and event lists, top movers and closing soon. limit aliases page_size on paged lists, including news_movers. Give both aliases the same value if you supply both. Market rows expose quote_tier when available. Label non-firm prices with their tier. Where present, _meta.venues gives the latest completed cycle's checked_at, typical cycle_period_s and census coverage by venue.

JSON methods return the decoded response unchanged. A Markdown brief returns a string. API errors raise PdataError with a code and message. See the API reference and OpenAPI.

Runnable examples include quickstart.py and resolved_archive.py.

The MCP server and the assistant plugins

pdata.world hosts a read-only MCP server with 21 tools at https://api.pdata.world/mcp over Streamable HTTP. It needs no API key or sign-in. The official MCP registry lists the server as world.pdata/mcp.

  • Claude — Open Customize → Connectors → + Add → Add custom connector. Enter pdata and the server URL, select No sign in, then Add. On Team and Enterprise, an owner adds it under Organization settings → Connectors → Add → Custom → Web. Enable pdata from + → Connectors in the chat.
  • Claude Code — Run claude mcp add --transport http pdata https://api.pdata.world/mcp. Check with claude mcp get pdata.
  • ChatGPT — In an eligible web workspace, use Plugins → + → Add custom MCP server, enter pdata and the server URL, choose No authentication, then Create as a plugin. Install it and select it with @ in a chat. In the Developer Mode interface, use Settings → Apps → Advanced settings, then Apps → Create → Scan Tools → Create.
  • Cursor — Copy examples/mcp.json to .cursor/mcp.json or ~/.cursor/mcp.json, or merge the pdata entry into an existing mcpServers object.
  • VS Code — In ~/.copilot/mcp-config.json or $COPILOT_HOME/mcp-config.json, add "pdata": {"type":"http","url":"https://api.pdata.world/mcp","tools":["*"]} under mcpServers. For an editor-managed setup, add the entry with type and url under servers in .vscode/mcp.json.

See the Connect section of the agent guide for full setup instructions.

  • Claude Code plugin — For the server and skill together, run claude plugin marketplace add noskillcoding/pdata-client followed by claude plugin install pdata@pdata-world.
  • Gemini CLI — gemini extensions install https://github.com/noskillcoding/pdata-client adds the same server and skill.
  • Skill installer — npx skills add noskillcoding/pdata-client discovers pdata-prediction-markets.

What is in this repository

Path What it is
src/pdata/ The Python client, published on PyPI as pdata-client
.claude-plugin/, .mcp.json, skills/ Claude Code plugin, marketplace and shared skill
gemini-extension.json Gemini CLI extension
apify/ Source of an Apify actor that returns events with current prices
data/ Historical samples of the bulk files, CC BY 4.0
examples/ Runnable scripts and an MCP client config

Other ways to get the same data

  • Nightly bulk files include markets-open, events-open, resolved (archived events) and resolved-markets (archived markets) as gzipped JSON Lines. Line 1 of each file is a manifest with the licence and field definitions. Bulk downloads
  • Dataset snapshot — The 2026-11-23 Zenodo snapshot contains four Parquet exports. The corresponding Hugging Face tag is 2026-11-23. The dataset is also listed on Kaggle.
  • Read-only Postgres — The agent guide includes connection details and supported views. SQL examples
  • The website — Event pages use https://pdata.world/events/{source}/{id}. Data downloads and access methods

Sample data

The samples from 7 October 2026 include 1,000 open markets, 500 open events and 1,000 settled events. Each file starts with the manifest for that snapshot. data/

Units and things to know

  • probability and market prices are on a 0–1 scale.
  • Volume is in US dollars on every venue except Manifold, which uses play-money mana.
  • In the resolved archive, probability records the last price pdata saw. Use the separate result field for the reported settlement.
  • A pruned event can return "kind": "tombstone" with archived resolutions. The agent guide describes history and data freshness.

Research using this data

Citing

Credit pdata.world and link to the source. Event detail can carry a ready-made citation in _meta.cite_as. When citing a specific dataset snapshot, use 10.5281/zenodo.24476601 for the 2026-11-23 release. 10.5281/zenodo.23211610 is the stable concept DOI for all versions. GitHub's Cite this repository button uses CITATION.cff.

Licence

The code, plugin files and Apify actor are under the MIT licence. The pdata.world aggregation and samples are under CC BY 4.0. The underlying market data remains subject to each venue's own terms.

pdata.world is independent and has no affiliation with the venues it tracks.

Releasing

Keep the version in src/pdata/_version.py, .claude-plugin/plugin.json and gemini-extension.json in sync. A push of a matching v<version> tag triggers publish.yml, which builds the distributions, tests the wheel and uses PyPI trusted publishing.

Metadata

Release files for pdata-client 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdata-client 0.2.0
File Size Uploaded Provenance Actions
pdata_client-0.2.0.tar.gz 19.5 kB With provenance Details for pdata_client-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdata-client 0.2.0
File Interpreter ABI Platform Actions
pdata_client-0.2.0-py3-none-any.whl Python 3 none any Details for pdata_client-0.2.0-py3-none-any.whl

Total release size: 32.4 kB

Release files / pdata_client-0.2.0.tar.gz

Download URL pdata_client-0.2.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
975e4764fd5d900dca2c5d05ebe5f6fb0b0951b6064daaba87a471074a8affdd
BLAKE2b-256 checksum
How to use checksums
a629e4d881df1bb44bf88dffbf3fe67ef7c622a71f3f8e0e3969f46d55594c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / pdata_client-0.2.0-py3-none-any.whl

Download URL pdata_client-0.2.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ea3eda83939c4571b1dd425c34dc8c5d5457855ba4ea3db88f9bbd9e25a8017
BLAKE2b-256 checksum
How to use checksums
c742f1889a4acb9595bbaed71f03168bf80a690a5236779e34bbfecb8a7aa92c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for pdata-client 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pdata_client-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page