Skip to main content
GET
/
tokens
/
{id}
Get a token by its ID
curl --request GET \
  --url https://api-partner.houdiniswap.com/v2/tokens/{id} \
  --header 'Authorization: <api-key>'
import requests

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

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/{id}', 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/{id}",
  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/{id}"

	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/{id}")
  .header("Authorization", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

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

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
{
  "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>"
}
{
  "message": "<string>",
  "code": "<string>",
  "requestId": "<string>"
}
{
  "message": "<string>",
  "code": "<string>",
  "fields": {},
  "requestId": "<string>"
}
{
  "message": "<string>",
  "code": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

MongoDB ObjectId of the token

Pattern: ^[a-fA-F0-9]{24}$

Response

Success

icon
string
required
id
string
required
chain
string
required
created
string<date-time>
required
chainData
object
required
address
string | null
decimals
number<double>
default:0
symbol
string
default:""
name
string
default:""
modified
string<date-time>
description
string | null
mainnet
boolean
enabled
boolean
unverified
boolean
hasDex
boolean
hasCex
boolean
hasSelfPrivate
boolean

Indicates if token supports private (self-to-self) swaps. Stored field computed when token is saved. True when token has CEX support AND at least 2 enabled CEX swap provider mappings.

cexTokenId
string
default:""
rank
number<double> | null
cgId
string | null
marketCapChange24h
number<double>

24h market cap change percentage from CoinGecko.

circulatingSupply
number<double>

Token circulating supply from CoinGecko.

price
number<double> | null
marketCap
number<double> | null
volume
number<double> | null
fdv
number<double> | null
change
number<double> | null
priority
number<double> | null
warningMessage
string