Rate limits
Free tiers, keyed or keyless, call
api.dexpaprika.com. Dev, Pro and Enterprise call api-pro.dexpaprika.com and must send the key in the Authorization header; upgrading to Pro is the whole change.
When you exceed the per-minute rate, requests return HTTP 429; retry after a short pause. When the credit allowance runs out, requests return HTTP 402, and retrying will not help.
How the allowance refills
The tiers refill differently, and the difference changes how you pace heavy work. Free tiers use a rolling 30-day window. What counts is your usage over the last 30 days, and the window advances an hour at a time. There is no first-of-the-month reset to wait for: credits come back 30 days after you spent them, to the hour. A burst today therefore constrains you for the next 30 days rather than until the calendar turns over. With a key,period_started_at on GET /usage shows where your window currently begins.
Pro and Enterprise reset on the billing period, anchored to the subscription date, so the whole allowance returns at once.
The practical difference is backfills. Under a calendar month you could spend the allowance and wait for the 1st. Under a rolling window a large one-off pull keeps its weight for a full 30 days, so either spread heavy historical work across days or size it against Pro.
Requests and credits
An HTTP call is a request. What it spends is a credit. One request costs one credit, with no compute units and no per-endpoint weights: a light call and a heavy call cost the same. Credits are the customer-facing unit, and they are what console.dexpaprika.com, invoices and the pricing page count. Two places the distinction matters. The per-minute limit counts requests, so 15 per minute means 15 HTTP calls per minute. Batch endpoints charge one credit per item, so one HTTP call for 10 tokens is 1 request and 10 credits.Pagination rules
The search endpoints page with a cursor.GET /networks/{network}/dexes and GET /networks/{network}/pools/{pool_address}/transactions are the two that still page with numbers.
Reduce API calls
Use batch pricing
Instead of making one request per token:Use streaming for real-time data
If you need live prices, don’t poll the REST API in a loop. Open one streaming connection instead:/sse/prices connection accepts up to 25 assets. The free tiers hold 10 concurrent SSE streams per IP; the 11th returns 429 ip stream limit exceeded. Dev raises that to 30 and Pro to 100.
Streaming is billed the same way as REST: each update delivered over the stream costs one credit. Because updates are pushed only when a swap moves the price, an idle market costs nothing, but a fast-moving one draws on your credit allowance much as polling would. Budget for the update rate of what you subscribe to, not the number of connections.
Cache static data
Some data changes rarely and can be cached:
Data that changes frequently and should be fetched fresh:
- Token prices
- Pool volumes and transaction counts
- Recent transactions
- Current OHLCV candle (incomplete)
Request only what you need
- Use
limitto control page size. Do not fetch 100 items if you need 5 - Use
order_byandsortto get the most relevant results first - Use the filter endpoint for targeted queries instead of fetching all pools and filtering client-side
Handle errors gracefully
Implement exponential backoff
When requests fail, don’t retry immediately in a tight loop:Don’t retry client errors
- 400: fix the request parameters
- 404: verify the network ID and addresses
- 410: use the replacement endpoint
Streaming best practices
Validate before streaming
The streaming API rejects the entire request if any asset is invalid. Always verify tokens exist via REST first:Use batched POST for multiple tokens
Instead of opening multiple GET connections:Reconnect with backoff
Streaming connections can drop (network issues, server restarts). Always implement auto-reconnection:Parse prices as decimals
The streamingp field is a string, not a number. Use decimal parsing to avoid floating-point precision issues:
Production checklist
Before going to production
Before going to production
- Cache network and DEX lists
- Use batch pricing where possible
- Use streaming instead of polling for live prices
- Implement exponential backoff for retries
- Handle all HTTP status codes (200, 400, 404, 410, 429, 500)
- Parse streaming prices as decimals, not floats
- Validate tokens before adding to streaming connections
- Monitor credit spend in console.dexpaprika.com against your tier’s allowance (streaming updates included)
- Consider Pro if approaching your allowance, and budget time for the base URL and header change it needs
FAQs
Is there a per-minute rate limit?
Is there a per-minute rate limit?
Yes. The free tier allows 15 requests a minute without a key and 30 with a free key, and Pro allows 500, alongside the credit allowance. Exceeding the per-minute rate returns HTTP 429; retry after a short pause.
What is the difference between a request and a credit?
What is the difference between a request and a credit?
A request is one HTTP call. A credit is what it spends. One request costs one credit on every plan, with no compute units or per-endpoint multipliers, so the two numbers match except on batch endpoints, where one request charges one credit per item.
Do streaming updates count toward my credits?
Do streaming updates count toward my credits?
Yes. Each price update delivered over an SSE stream costs one credit, the same as a REST call. Updates are pushed only when a swap moves the price, so an idle subscription costs nothing, but an active one draws on your credit allowance.
Can I increase the free tier limit?
Can I increase the free tier limit?
Registering for a free API key raises the keyless 30,000 credits to 100,000. Both are measured over a rolling 30 days, not a calendar month. Beyond that, Pro includes 5,000,000 credits a month on the billing period, with per-1M overage.