Get batched prices for multiple tokens on a network.
curl --request GET \
--url https://api.dexpaprika.com/networks/{network}/multi/pricesimport requests
url = "https://api.dexpaprika.com/networks/{network}/multi/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dexpaprika.com/networks/{network}/multi/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dexpaprika.com/networks/{network}/multi/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dexpaprika.com/networks/{network}/multi/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dexpaprika.com/networks/{network}/multi/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dexpaprika.com/networks/{network}/multi/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"chain": "ethereum",
"price_usd": 4400.569711292153
},
{
"id": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"chain": "ethereum",
"price_usd": 1.0002529851244053
}
]Get batched prices for multiple tokens on a network.
Fetch current USD prices for up to 10 token addresses in a single request
GET
/
networks
/
{network}
/
multi
/
prices
Get batched prices for multiple tokens on a network.
curl --request GET \
--url https://api.dexpaprika.com/networks/{network}/multi/pricesimport requests
url = "https://api.dexpaprika.com/networks/{network}/multi/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dexpaprika.com/networks/{network}/multi/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dexpaprika.com/networks/{network}/multi/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dexpaprika.com/networks/{network}/multi/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dexpaprika.com/networks/{network}/multi/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dexpaprika.com/networks/{network}/multi/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"chain": "ethereum",
"price_usd": 4400.569711292153
},
{
"id": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"chain": "ethereum",
"price_usd": 1.0002529851244053
}
]Endpoint overview
Fetch current USD prices for multiple token addresses in a single request.See also: Token details
Usage
Pass thenetwork path parameter and provide a comma-separated list in the tokens query parameter.
curl -X GET "https://api.dexpaprika.com/networks/ethereum/multi/prices?tokens=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7" | jq
- Only tokens with available prices are returned (unknown/unpriced tokens are omitted).
- The order of results is not guaranteed.
- If all provided tokens are invalid or unpriced, the response is an empty array with HTTP 200.
- Duplicate input addresses may produce duplicate entries; dedupe client-side if needed.
- Provide tokens as a comma-separated list in a single
tokensparameter (explode=false). - Maximum 10
tokensper request. More than 10 will return HTTP 400. - Each address in the batch costs one credit, so ten tokens in one call cost the same ten credits as ten single-token calls. Batching saves round trips, not credits. See pricing for what each plan includes.
Response example
Response
[
{
"id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"chain": "ethereum",
"price_usd": 4400.5697112921535
},
{
"id": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"chain": "ethereum",
"price_usd": 1.0002529851244053
}
]
FAQs
How do I pass multiple tokens?
How do I pass multiple tokens?
Repeat the
tokens query parameter for each address (e.g., ?tokens=0x...&tokens=0x...).What happens to unknown tokens?
What happens to unknown tokens?
They are ignored and omitted from the response.
Is the result order guaranteed?
Is the result order guaranteed?
No. Do not rely on response order.
What if all tokens are invalid or unpriced?
What if all tokens are invalid or unpriced?
The endpoint returns HTTP 200 with an empty array.
Are duplicate token addresses deduped?
Are duplicate token addresses deduped?
No. Duplicate inputs may yield duplicate entries; dedupe client-side if required.
Can I send a comma-separated list in one tokens param?
Can I send a comma-separated list in one tokens param?
Yes. Provide a single
tokens parameter with comma-separated addresses.How many tokens can I request at once?
How many tokens can I request at once?
Up to 10. Requests with more than 10 tokens return HTTP 400.
Path Parameters
Query Parameters
A comma-separated list of token contract addresses.
Constraints:
- A maximum of 10 token addresses can be provided.
- The total length of the string must not exceed 2000 characters.
Example: ?tokens=0xc02...cc2,0xdac...ec7
Maximum array length:
10Was this page helpful?