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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/pmwallets-com:pmwallets-com-exports-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
openapi: 3.2.0
info:
title: PMWallets Exports API
version: 1.0.0
summary: Polymarket wallet leaderboard, address unlocks, live fill subscriptions and trade-history exports.
description: 'PMWallets tracks every Polymarket fill on Polygon, groups wallets that belong together into **entities**, and ranks them by forward-only PnL over published windows (`30d`, `7d`; each recomputed about once a day). It sells three things: the **address** behind an entity, a **live stream of its fills** (billed per hour), and **per-wallet daily trade-history files**.
**Handles vs addresses.** An entity whose address you have not bought is named by a 12-character **handle** in `entityId` (Crockford base32, e.g. `7KQ2MF9X4B1C`) with a masked address in `label` (`0x4b96…984e`). After you unlock it (`POST /v1/account/reveals`), follow it, or unlock it from a plan, `entityId` and `label` are the full 0x address. Send handles back to every endpoint that takes an entity; a raw address is only accepted from a caller who already holds it. A masked label is never accepted.
**Money.** Prices are integer US cents. Charges come from the prepaid account balance (top-ups happen on https://pmwallets.com). Every charging call takes a ceiling (`maxPriceCents` / `maxCents`) and answers 409 instead of charging more. 402 means not enough balance; nothing was charged.
**Quotas.** A signed-in board read spends rows from a 20,000-row daily allowance (UTC day). Opening an entity page as a subscriber, unlocking, subscribing and exporting each spend one unit of a daily *distinct-entity* budget (50 by default, raised by plans); touching the same entity again that day is free. Over-limit answers are 403. Heavy reads are rate limited per account and per IP (429).
**Auth.** Send an API key `pmw__` in `x-api-key` (`Authorization: Bearer ` also works). Create keys at https://pmwallets.com/keys. A key can spend the balance but cannot manage keys, add/remove webhooks or change a card plan (session-only, not in this document). Without a key: the 20-row board sample, periods, plans, rate card, markets, latency and readiness.
**Live fills are not in this document.** They arrive over the WebSocket `wss://api.pmwallets.com/v1/ws` (send the key in `x-api-key`; one API connection per account, `?clientId=&takeover=1` replaces another) or as signed webhooks (see `webhooks.fill`; the endpoint is registered on the website). An agent without a long-running process can poll `GET /v1/account/fills` with the `next` cursor instead: same fills, same `eventId`, scoped to active subscriptions, retained 60 days.
**Units.** In fills, `usdc`, `shares` and `fee` are integer strings in 1e-6 units (`"1824000000"` = $1,824); `price` is a decimal string; `ts` is UTC `YYYY-MM-DD HH:MM:SS`. Board and entity figures (`realizedPnl`, `grossBuyUsdc`, …) are dollars as numbers.'
contact:
name: PMWallets
url: https://pmwallets.com
email: support@pmwallets.com
servers:
- url: https://api.pmwallets.com
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Exports
description: Per-wallet daily trade-history files.
paths:
/v1/exports/rate-card:
get:
operationId: getExportRateCard
tags:
- Exports
summary: Export price list
security: []
description: Per-day marginal price tiers, limits and the CSV columns of the daily files.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
currency:
type: string
cnyPerUsd:
type: number
minDays:
type: integer
maxDays:
type: integer
maxEntities:
type: integer
rateCard:
type: array
items:
$ref: '#/components/schemas/RateTier'
quantityDiscount:
type: array
items:
type: number
bulkDiscount:
type: number
columns:
type: array
items:
type: string
format:
type: string
const: csv.zst
files:
type: string
'429':
$ref: '#/components/responses/RateLimited'
/v1/account/exports/window:
get:
operationId: getExportWindow
tags:
- Exports
summary: Sellable export days and quick ranges
security:
- ApiKeyAuth: []
description: The span of published daily files you can buy, with the 30/60/90/all-day ranges priced for one entity.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
window:
type:
- object
- 'null'
properties:
from:
type: string
to:
type: string
presets:
type: array
items:
type: object
properties:
id:
type: string
enum:
- '30'
- '60'
- '90'
- all
from:
type: string
to:
type: string
days:
type: integer
sellable:
type: boolean
priceCents:
type: integer
minDays:
type: integer
maxDays:
type: integer
archive:
type: object
properties:
days:
type: integer
from:
type:
- string
- 'null'
to:
type:
- string
- 'null'
missing:
type: array
items:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/exports/quote:
post:
operationId: quoteExport
tags:
- Exports
summary: Price an export
security:
- ApiKeyAuth: []
description: Price of (entities × days); dates are clamped into the sellable window. Charges nothing, spends no budget. Name all entities the same way (all handles or all addresses).
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExportRequest'
example:
entityIds:
- 7KQ2MF9X4B1C
from: '2026-08-01'
to: '2026-09-29'
responses:
'201':
description: Quote (HTTP 201, nothing charged).
content:
application/json:
schema:
$ref: '#/components/schemas/ExportQuote'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/exports:
get:
operationId: listExports
tags:
- Exports
summary: Your export orders
security:
- ApiKeyAuth: []
description: Your last 50 export orders, newest first.
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ExportOrder'
'401':
$ref: '#/components/responses/Unauthorized'
post:
operationId: createExport
tags:
- Exports
summary: Buy an export
security:
- ApiKeyAuth: []
description: 'CHARGES THE BALANCE the order price; grants the entities'' daily wallet files over [from, to] (30+ days, max 25 entities). maxPriceCents caps it (required for 2+). Same order within 24 h returns the existing one, no charge. 1 distinct-entity unit per entity. viaPlan: from the plan, free.'
requestBody:
required: true
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ExportRequest'
- type: object
properties:
maxPriceCents:
type: integer
minimum: 0
description: Ceiling in cents (quote orderPriceCents). Required for 2+ entities.
viaPlan:
type: boolean
description: Use the plan export allowance (whole window, no charge).
example:
entityIds:
- 7KQ2MF9X4B1C
from: '2026-08-01'
to: '2026-09-29'
maxPriceCents: 390
responses:
'201':
description: Paid (or granted) and ready (HTTP 201).
content:
application/json:
schema:
type: object
properties:
id:
type: string
priceCents:
type: integer
days:
type: integer
rows:
type: integer
from:
type: string
to:
type: string
status:
type: string
const: ready
viaPlan:
type: boolean
'400':
description: 'Bad body, mixed handle/address naming, or `error: not_sellable` (below 30 days / no data).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
description: '`error: insufficient_balance` (priceCents, balanceCents) or `error: no_plan` for viaPlan. Nothing charged.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: '`error: entity_budget`: daily distinct-entity limit reached.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`error: price_changed` with the new `quote`, or `error: plan_exhausted` (cap, used, needed). Nothing charged.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
$ref: '#/components/responses/Unavailable'
x-requires-human-confirmation: true
/v1/account/exports/{id}:
get:
operationId: getExport
tags:
- Exports
summary: One export order
security:
- ApiKeyAuth: []
parameters:
- name: id
in: path
required: true
description: Export order id.
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ExportOrder'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
/v1/account/exports/{id}/files:
get:
operationId: listExportFiles
tags:
- Exports
summary: Files an export grants
security:
- ApiKeyAuth: []
description: One file per wallet per UTC day with fills (zstd-compressed CSV). Fetch each `path` to download.
parameters:
- name: id
in: path
required: true
description: Export order id.
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
files:
type: array
items:
$ref: '#/components/schemas/ExportFile'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
/v1/account/data/{wallet}/{day}:
get:
operationId: downloadExportFile
tags:
- Exports
summary: Download one purchased daily file
security:
- ApiKeyAuth: []
description: 302 redirect to a signed link (valid 5 minutes) for `-.csv.zst`. 404 both when not purchased and when the wallet had no fills that day.
parameters:
- name: wallet
in: path
required: true
description: 0x wallet address (from the files list).
schema:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
- name: day
in: path
required: true
description: UTC day YYYY-MM-DD.
schema:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
responses:
'302':
description: Redirect to the file.
headers:
Location:
description: Short-lived download URL.
schema:
type: string
format: uri
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
components:
schemas:
RateTier:
type: object
properties:
fromDay:
type: integer
toDay:
type:
- integer
- 'null'
perDayCents:
type: integer
Error:
type: object
description: Error body. `message` is always present; machine-readable refusals add `error` (unlock, export, subscription paths) or `code` (plan paths) plus the figures the caller needs.
properties:
statusCode:
type: integer
message:
description: Human-readable reason (English).
oneOf:
- type: string
- type: array
items:
type: string
error:
type: string
description: Machine code, e.g. insufficient_balance, price_changed, not_unlocked, address_not_unlocked, entity_budget, not_sellable, plan_exhausted, no_plan.
code:
type: string
description: Machine code on plan endpoints, e.g. insufficient_balance, price_changed, card_active, already_queued, request_conflict.
required:
- message
additionalProperties: true
ExportRequest:
type: object
required:
- entityIds
- from
- to
properties:
entityIds:
type: array
minItems: 1
maxItems: 25
items:
type: string
description: Entity handles, or 0x addresses — all the same form.
from:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
description: First UTC day, inclusive.
to:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
description: Last UTC day, inclusive.
ExportQuote:
type: object
properties:
window:
type: object
properties:
from:
type: string
to:
type: string
days:
type: integer
description: The sellable span.
from:
type: string
description: Requested day, clamped into the window.
to:
type: string
days:
type: integer
sellable:
type: boolean
reason:
type: string
enum:
- below_minimum
- no_data
minDays:
type: integer
entities:
type: integer
priceCents:
type: integer
description: One entity.
orderPriceCents:
type: integer
description: The whole order; send it back as maxPriceCents.
perEntityCents:
type: integer
discount:
type: number
price:
type: object
properties:
cents:
type: integer
usd:
type: number
cny:
type: number
breakdown:
type: array
items:
type: object
properties:
fromDay:
type: integer
toDay:
type: integer
days:
type: integer
perDayCents:
type: integer
cents:
type: integer
rateCard:
type: array
items:
$ref: '#/components/schemas/RateTier'
ExportFile:
type: object
properties:
wallet:
type: string
day:
type: string
description: YYYY-MM-DD (UTC).
rows:
type: integer
bytes:
type: integer
path:
type: string
description: 'GET it (with the key) for a 302 to the file: /v1/account/data/{wallet}/{day}.'
ExportOrder:
type: object
properties:
id:
type: string
entityIds:
type: array
items:
type: string
description: The entities as 0x addresses.
fromDay:
type: string
toDay:
type: string
days:
type: integer
rows:
type:
- integer
- 'null'
description: Fill rows granted; null for orders that are not ready.
priceCents:
type: integer
status:
type: string
description: ready for every current order (legacy orders may be refunded/failed).
fileBytes:
type:
- integer
- 'null'
error:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
readyAt:
type:
- string
- 'null'
format: date-time
viaPlan:
type: boolean
description: List endpoint only.
responses:
NotFound:
description: Not found (or not yours).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: No valid API key (missing, malformed, unknown or revoked).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 401
message: Unauthorized
BadRequest:
description: Invalid parameter or body; `message` names what was expected.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unavailable:
description: Temporarily unavailable; nothing was charged. Retry shortly.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limited. Per IP 240/min overall and 180/min on the board and entity routes; per account 120/min (anonymous 60/min per IP) on board, entity and market reads. A `retry-after` header may be set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 429
message: rate limited
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: 'API key `pmw_<12 hex>_<64 hex>` from https://pmwallets.com/keys. `Authorization: Bearer <key>` is accepted too.'