Introduction
In this tutorial, you’ll learn how to retrieve Pump.fun token data using the Moralis Solana API. Pump.fun is a popular token launchpad on Solana where new tokens go through bonding curve phases before graduating to DEXs. You’ll learn how to fetch newly created tokens, tokens in bonding phase, and graduated tokens. We’ll use the following Moralis API endpoint:- Get Pump.fun New Tokens - Fetch newly created tokens on Pump.fun
Prerequisites
- Node.js v18+ installed
- A Moralis API key (get one free)
Step 1: Set Up Your Project
Create a new directory for your project and initialize it:Step 2: Create the Script
Create a file calledindex.js and add the following code:
YOUR_API_KEY with your actual Moralis API key.
Step 3: Run the Script
Example Response
Understanding the Response
| Field | Description |
|---|---|
tokenAddress | The Solana token mint address |
name | Token name |
symbol | Token symbol |
createdAt | When the token was created |
marketCap | Current market cap in USD |
priceUsd | Current price in USD |
volume24h | 24-hour trading volume |
holders | Number of unique holders |
bondingProgress | Progress through bonding curve (0-100%) |
isGraduated | Whether token has graduated to DEX |
Understanding Pump.fun Token States
| State | Description |
|---|---|
| New | Recently created tokens (less than 24 hours old) |
| Bonding | Tokens in bonding curve with 20%+ progress |
| Graduated | Tokens that completed bonding and are on DEXs |
Next Steps
- Get Pump.fun Token Swaps and Prices - Get trading data
- API Reference - New Tokens - Full API documentation
- API Reference - Bonding Tokens - Bonding endpoint docs
- API Reference - Graduated Tokens - Graduated endpoint docs

