Crypto Price SSE API

Real-time prices for 2.4M+ coins as Server-Sent Events: one GET request that stays open, with credits charged per delivered data event. The recommended transport for front ends; back ends use WebSockets.

10,000 credits a month, no credit card. WebSocket and SSE streaming are available on all plans.

All plans · 30-day trial on paid plans · https://api.coinranking.com/v2/real-time/sse

curl
# -N disables output buffering, -g stops curl from interpreting the [] in the URL
curl -N -g 'https://api.coinranking.com/v2/real-time/sse/rates?currency-uuids[]=Qwsogvtv82FCd&currency-uuids[]=razxDUgYGNAdQ' \
  -H 'x-access-token: YOUR_KEY'

# First line confirms the subscription, then one data: line per price update
# data: {"type":"rate","currencyUuid":"Qwsogvtv82FCd","price":"125423.83","volume":"6270550403.28"}

Three Streams, Same Data as the WebSockets

Each SSE path mirrors the WebSocket path of the same name: same subscriptions, throttle and message fields, plus a type field.

Eligible plans can access DEX markets through Real-Time DEX Data.

SSE or WebSocket

One data set, two transports. Pick by where the client runs.

Coinranking Server-Sent Events compared with Coinranking WebSocket API
Server-Sent EventsWebSocket
Recommended forFront endsBack ends
ProtocolHTTP GET, text/event-streamWebSocket upgrade, wss://
Base URLhttps://api.coinranking.com/v2/real-time/ssewss://api.coinranking.com/v2/real-time
Authenticationx-access-token header, or query parameter for EventSourcex-access-token query parameter
Change subscriptionsOpen a new streamSend a JSON message on the open socket
Subscribe to everythinglist=allUp to 100 UUIDs per connection
ReconnectAutomatic in EventSource, after 5 secondsReopen the URL
Through proxies, CDNs, serverlessYes, it is a normal HTTP responseOnly where upgrades are allowed
CostPer delivered message, at your plan ratePer delivered message, at your plan rate
PlanAll plansAll plans

Built for Production Front Ends

What the stream does for you, and the one thing to do yourself.

Validated Before It Streams

A bad UUID, throttle or key returns a normal JSON error with a code, before a single byte streams. Match on the code.

Confirmed on Open

The first message lists what you subscribed to and the throttle. Every data message carries a type field.

Heartbeats and Reconnect

A :ping keeps idle timeouts away and the stream announces retry: 5000. No maximum duration.

Any HTTP Client

EventSource, fetch, curl, Python requests with stream=True, Node, Deno, Bun. The docs have each one.

Keep the key on your server and proxy the stream through your own origin; the docs include a Node proxy and a fetch-based client that reads error codes EventSource cannot.

SSE by Plan

SSE and WebSocket access is available on all plans.

Coinranking API plans and limits
FreeBasicStartupGrowthProfessional
Monthly price$0$24$49$99$199
Monthly credits10,000500,0001,000,0002,000,0005,000,000
REST rate limit5 / second1,000 / minute2,000 / minute4,000 / minute6,000 / minute
WebSocket and SSE accessIncludedIncludedIncludedIncludedIncluded
Credits per delivered message0.050.0250.010.0050.0025
Minimum update interval60s10s5s1s1s
Shared streaming connections1251020
API keys1125Unlimited
Historical window, where supported1 year5 yearsAll time (from 2010)All time (from 2010)All time (from 2010)
Maximum results per response1005,0005,0005,0005,000

Streaming is also available on Enterprise. Endpoint-specific limits may be lower. Preview allowances are shared across every API key on your account. Every paid plan offers a 30-day free trial. Compare all features.

SSE Questions

Stream Prices over SSE

One GET request and the first price arrives. Professional is free for 30 days.

10,000 credits a month, no credit card. WebSocket and SSE streaming are available on all plans.

    Crypto Price SSE API over Plain HTTP | Coinranking