Skip to main content

Installation

Prerequisites

  • PHP 7.4 or higher
  • Composer
  • ext-json PHP extension
  • Connection to the internet to access the DexPaprika API
  • No API key needed to start

PHP SDK Quickstart

Using an API key (optional)

The SDK works without a key, and that is the default. A free key raises the monthly credit allowance. It does not raise the per-minute request limit, which is the same on both free tiers. Current figures are on the rate limits page. Requires v1.8.0 or later.
An explicit key beats the environment variable, and no key at all keeps the keyless behaviour unchanged. The host is never inferred from the key: free keys are served from the default base URL, and only Pro moves to api-pro.dexpaprika.com.
The key is sent as the entire Authorization header value. Nothing goes in front of it, no scheme word of any kind. The SDK writes the header for you, so this matters when you are debugging what went out or calling the API directly. See 401 Unauthorized.

API Methods Reference

Parameters marked with an asterisk (*) are required.
category
category
category
category
category

Complete Example

Advanced Features

Error Handling

Caching System

Pagination Helper

Working with Objects

Resources

API Status

The DexPaprika API provides consistent data with stable endpoints. Requests are answered without an API key on the free tier, and a free key raises the monthly credit allowance. We aim to maintain backward compatibility and provide notice of any significant changes.

FAQs

Not to start. Keyless requests work at 50,000 credits a month per IP, and a free registered key raises that to 300,000 with no card.
Use Coverage Checker or list Networks and query Tokens/Pools to discover addresses.
Use pools/transactions endpoints with pool_address, network, and time/paging params as documented.
15 requests a minute keyless, 30 with a free key and 300 on Pro, against a monthly allowance of 50,000 credits keyless, 300,000 with a free key, or 5,000,000 on Pro. Retry transient HTTP errors with backoff. See rate limits for how the counters work, and Pro pricing for what the 5,000,000 credit tier costs.