Skip to main content
GET
/
tokens
Search tokens
curl --request GET \
  --url https://api-partner.houdiniswap.com/v2/tokens \
  --header 'Authorization: <api-key>'
import requests

url = "https://api-partner.houdiniswap.com/v2/tokens"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://api-partner.houdiniswap.com/v2/tokens', 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-partner.houdiniswap.com/v2/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);

$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-partner.houdiniswap.com/v2/tokens"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<api-key>")

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-partner.houdiniswap.com/v2/tokens")
.header("Authorization", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-partner.houdiniswap.com/v2/tokens")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "tokens": [
    {
      "icon": "<string>",
      "id": "<string>",
      "chain": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "chainData": {
        "icon": "<string>",
        "addressValidation": "<string>",
        "tokenAddressValidation": "<string>",
        "id": "<string>",
        "created": "2023-11-07T05:31:56Z",
        "name": "<string>",
        "shortName": "<string>",
        "explorerUrl": "<string>",
        "addressUrl": "<string>",
        "kind": "<string>",
        "enabled": true,
        "shortNameV1": "<string>",
        "modified": "2023-11-07T05:31:56Z",
        "memoNeeded": true,
        "hashUrl": "<string>",
        "priority": 123,
        "chainId": 123
      },
      "address": "<string>",
      "decimals": 0,
      "symbol": "",
      "name": "",
      "modified": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "mainnet": true,
      "enabled": true,
      "unverified": true,
      "hasDex": true,
      "hasCex": true,
      "hasSelfPrivate": true,
      "cexTokenId": "",
      "rank": 123,
      "cgId": "<string>",
      "marketCapChange24h": 123,
      "circulatingSupply": 123,
      "price": 123,
      "marketCap": 123,
      "volume": 123,
      "fdv": 123,
      "change": 123,
      "priority": 123,
      "warningMessage": "<string>"
    }
  ],
  "total": 123,
  "totalPages": 123
}
{
"message": "<string>",
"code": "<string>",
"fields": {},
"requestId": "<string>"
}
{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Query Parameters

pageSize
integer<int32>
default:1000

Number of results to return per page

Required range: 1 <= x <= 1000
page
integer<int32>
default:1
Required range: 1 <= x <= 10000
term
string

Search term that matches against name, symbol, address, keyword, cexTokenId fields

Maximum string length: 100
chain
string

Filter by chain. Matches against token.chainData.shortName, e.g. "ethereum"

mainnet
boolean

Filter native/non-native tokens

hasCex
boolean

Filter tokens that support/don't support CEX swaps

hasDex
boolean

Filter tokens that support/don't support DEX swaps

address
string

Filter tokens by contract address

Maximum string length: 200
symbol
string

Filter tokens by symbol, matches against token.symbol field

Maximum string length: 20
unverified
boolean
default:false

Include tokens that are auto-created from addresses and pending manual verification. Excluded by default.

hasSelfPrivate
boolean

Filter tokens that support/don't support private self-to-self swaps

Response

Success

tokens
object[]
required
total
number<double>
required
totalPages
number<double>
required