API ReferenceToken APIGet Token Pairs by AddressVersion: 2.2Get Token Pairs by AddressGEThttps://solana-gateway.moralis.io/token/:network/:address/pairsGet the supported pairs for a specific token address.PATH PARAMSnetworkstringrequiredThe network to querymainnetdevnetaddressstringrequiredThe address of the contractlimitnumberThe limit per pagecursorstringThe cursor to use for getting the next pageResponses200 Returns the supported pairs for the token.objectAPI KEYTest Live APINode.jsPythoncURLGoPHP// Dependencies to install:// $ npm install node-fetch --save// add "type": "module" to package.jsonimport fetch from 'node-fetch';const options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)curl --request GET \ --url 'https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the supported pairs for the token.{ "cursor": "string", "pageSize": 100, "page": 2, "pairs": [ { "exchangeAddress": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8", "exchangeName": "Raydium AMM v4", "exchangeLogo": "https://entities-logos.s3.amazonaws.com/raydium.png", "pairLabel": "SRM/USDT", "pairAddress": "af8HJg2ffWoKJ6vKvkWJUJ9iWbRR83WgXs8HPs26WGr", "usdPrice": 0.031079, "usdPrice24hrPercentChange": 5.0889294650706685, "usdPrice24hrUsdChange": 5.0889294650706685, "liquidityUsd": 1.259524, "baseToken": "SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt", "quoteToken": "USDT", "pair": [ { "tokenAddress": "SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt", "tokenName": "Serum", "tokenSymbol": "SRM", "tokenLogo": "", "tokenDecimals": "6", "pairTokenType": "token0", "liquidityUsd": 0.635072 } ] } ]}