Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Pump.fun Token Pairs with Moralis API

Retrieve all token pairs, pair stats, and aggregated stats for any Pump.fun token using the Moralis Solana API. This guide will show you how to fetch token pairs by token address! πŸš€

✨ What You Can Do​

With this API, you can:

  • Retrieve all token pairs for a given Pump.fun token
  • Get detailed stats for a specific pair (price, volume, liquidity)
  • Fetch aggregated stats across all pairs for a token
  • Use this data for DEX analytics, trading dashboards, and more

πŸ” 3 Ways to Fetch Pump.fun Token Pairs​

The Moralis API lets you fetch token pair data in 3 ways:

  1. By Token Address (πŸ’‘ This example) – Retrieve all trading pairs for a specific Pump.fun token
  2. Pair Stats – Get detailed stats for a specific pair (volume, price, liquidity)
  3. Aggregated Pair Stats – Get overall stats across all pairs for a token

In this guide, we’ll focus on retrieving token pairs by token address.


πŸ›  Step 1: Get Your Moralis API Key​

Before making API calls, you need an API key. Here’s how to get one:

  1. Go to developers.moralis.com and sign up (it’s free!).
  2. Navigate to the "API Keys" section in your dashboard.
  3. Copy your API Key – you’ll need this for making requests.

⚑ Step 2: Fetch Token Pairs by Address​

Visit the token pairs API documentation and make an API request.

You can also use cURL, Postman, or your favorite programming language.

πŸ“ Example API Request​

curl --request GET \
--url 'https://solana-gateway.moralis.io/token/mainnet/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump/pairs' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'

πŸ“– Step 3: Understanding Query Parameters​

ParameterTypeRequiredDescription
networkstringβœ…The blockchain network (e.g., mainnet)
tokenAddressstringβœ…The Pump.fun token address

πŸ”„ Example Response

{
"pairs": [
{
"exchangeAddress": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"exchangeName": "Raydium AMM v4",
"exchangeLogo": "https://entities-logos.s3.amazonaws.com/raydium.png",
"pairAddress": "Bzc9NZfMqkXR6fz1DBph7BDf9BroyEf6pnzESP7v5iiw",
"pairLabel": "Fartcoin /SOL",
"usdPrice": 1.199318671,
"usdPrice24hrPercentChange": 22.664745257790372,
"usdPrice24hrUsdChange": 22.664745257790372,
"volume24hrNative": 273987.170173767,
"volume24hrUsd": 63991693.95772195,
"liquidityUsd": 25907004.26453429,
"baseToken": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
"quoteToken": "So11111111111111111111111111111111111111112",
"inactivePair": false,
"pair": [
{
"tokenAddress": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
"tokenName": "Fartcoin ",
"tokenSymbol": "Fartcoin ",
"tokenLogo": null,
"tokenDecimals": "6",
"pairTokenType": "token0",
"liquidityUsd": 12937540.20684488
},
{
"tokenAddress": "So11111111111111111111111111111111111111112",
"tokenName": "Wrapped SOL",
"tokenSymbol": "SOL",
"tokenLogo": null,
"tokenDecimals": "9",
"pairTokenType": "token1",
"liquidityUsd": 12969464.057689412
}
]
}
]
}

πŸ›  Step 4: Understanding the Response​

FieldDescription
exchangeNameThe DEX where the token is traded
pairAddressThe liquidity pool pair address
pairLabelToken pair name (e.g., Fartcoin/SOL)
usdPriceCurrent price of the token in USD
usdPrice24hrPercentChange24-hour price change in percentage
volume24hrUsdTotal 24-hour trading volume in USD
liquidityUsdTotal liquidity available in USD
baseTokenAddress of the main token in the pair
quoteTokenAddress of the quote token (SOL, USDC, etc.)

πŸ›  Step 5: Use Token Pair Data in Your App​

🎯 Some use cases:

  • Build a DEX analytics dashboard
  • Show price charts for Pump.fun token pairs
  • Track liquidity and trading volume across exchanges