Polymarket outcome price history

GET https://api.api.sh/polymarket/v1/price-history
1 credit / call finance & crypto try it in the playground →

The price (implied probability, 0-1) of one outcome over time: a point per fidelity minutes for a preset interval, or between start and end. Pick the market by slug/id/url plus outcome (default the first, usually Yes), or pass the outcome's token_id.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
slug string Market slug (or id, url, token_id). Example: will-donald-trump-win-the-2024-us-presidential-election
id string Market id.
url string A polymarket.com market link.
token_id string Outcome token id (from a market's outcomes).
outcome string Outcome name, e.g. Yes or No (default the first outcome). Example: Yes
interval 1h | 6h | 1d | 1w | 1m | max 1h, 6h, 1d, 1w, 1m or max (default). Example: max
start string Start (ISO); with end instead of interval; start to end up to 92 days.
end string End (ISO; default now).
fidelity integer Minutes per point (default depends on interval: 1 to 1440).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/polymarket/v1/price-history?slug=will-donald-trump-win-the-2024-us-presidential-election" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.