Friday, August 8, 2025
No Result
View All Result
Crypeto News
Smarter_way_USA
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
Crypeto News
No Result
View All Result

Pump Fun API – Get pump.fun Token Prices, Swaps, Bonding Status, & More – Moralis for Developers

by crypetonews
March 20, 2025
in Web3
Reading Time: 13 mins read
0 0
A A
0
Home Web3
Share on FacebookShare on Twitter


Looking for an easy way to fetch pump.fun token data? If so, you’ve come to the right place! In today’s tutorial, we’ll introduce the Moralis Pump Fun API, allowing you to fetch everything from price data to the bonding status of any pump.fun token without breaking a sweat!

Eager to know how it works? Check out the example below showing how easy it is to fetch pump.fun token swaps: 

import 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/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump/swaps?order=DESC”,
options
)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));

Calling the script above will give you a list of transactions enriched with prices, transaction types, category tags, and other valuable data. Here’s what it might look like: 

{
//…
“result”: [
{
“transactionHash”: “3S8wDKHkP9si7YajUuub8t7bKwGGc7umSo1bkwhwyT3yQpJJxmSfiGYjUVHD1s6EFt2tuDU1aT3zJdrcQu8xJKLy”,
“transactionType”: “buy”,
“transactionIndex”: 93,
“subCategory”: “newPosition”,
“blockTimestamp”: “2025-01-30T12:51:16.000Z”,
“blockNumber”: 317348443,
“walletAddress”: “9Mt5Z4k49NYa1va4i91nziJURWS1KmkVMxSd6BiLhESL”,
“pairAddress”: “AbCuhWFpcqspj4Cip3FEdJHqzouJqSa9PJLFd8TuvnPw”,
“pairLabel”: “Fartcoin /SOL”,
“exchangeAddress”: “LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo”,
“exchangeName”: “Meteora DLMM”,
“exchangeLogo”: “https://entities-logos.s3.amazonaws.com/meteora.png”,
“baseToken”: “9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump”,
“quoteToken”: “So11111111111111111111111111111111111111112”,
“bought”: {
“address”: “9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump”,
“name”: “Fartcoin”,
“symbol”: “Fartcoin”,
“logo”: null,
“amount”: “16.236165000”,
“usdPrice”: 1.175495875,
“usdAmount”: 19.085544983319373,
“tokenType”: “token0”
},
“sold”: {
“address”: “So11111111111111111111111111111111111111112”,
“name”: “Wrapped SOL”,
“symbol”: “SOL”,
“logo”: null,
“amount”: “0.079320000”,
“usdPrice”: 240.614535941,
“usdAmount”: 19.08554499084012,
“tokenType”: “token1”
},
“baseQuotePrice”: “0.004885390113289905”,
“totalValueUsd”: 19.08554499
}
]
}

With just this single endpoint, you can build powerful features like real-time transaction tables, giving your users in-depth insight into the activity of any pump.fun token! 

To learn more about this powerful interface and explore other endpoints, join us in today’s guide, watch the YouTube video below, or check out the official Pump Fun API docs:

Overview

Moo Deng (MOODENG), Peanut the Squirrel (PNUT), and Fartcoin (FARTCOIN) have been some of the hottest memecoins over the past year. And what do they all have in common? They launched on the pump.fun platform. 

So, how do you track data on these tokens?

Enter the Moralis Pump Fun API – your go-to solution for fetching pump.fun token prices, swaps, bonding status, metadata, and more with just a few lines of code! 

Want to see how it works in practice and learn how to use this premier API to integrate data into your crypto projects? Join us in today’s guide as we lay it all out for you. Let’s go!

What is pump.fun?

Pump.fun is a Solana-based cryptocurrency platform that allows users to create and trade memecoins in an accessible way. The platform launched in 2024 and has quickly become one of the leading websites in the cryptocurrency space, generating hundreds of millions of dollars of revenue in a short span of only 12 months.

Let’s explore some of the key features of pump.fun: 

Easy Token Creation: The pump.fun platform makes the process of creating tokens simple, allowing anyone to launch a memecoin in just minutes.

Fast Transactions & Low Fees: As a Solana-based platform, pump.fun features fast transactions and low fees, making memecoins accessible to everyone. 

Safeguards for Market Manipulation: Pump.fun provides multiple safeguards against market manipulation and crypto scams. A great example is the platform’s bonding curve, which automatically adjusts prices based on supply and demand, minimizing the risk of price manipulation.

All in all, pump.fun is a memecoin generator and marketplace on the Solana blockchain that has grown incredibly fast, becoming one of the most popular platforms in the crypto space in just one year. 

But how do you fetch data for pump.fun tokens? For the answer to this question, join us below as we introduce Moralis for Developers’ Pump Fun API! 

Introducing the Pump Fun API

The Pump Fun API is the ultimate tool for developers looking to supercharge their platforms with comprehensive pumps.fun data. With just a few lines of code, you can fetch prices, metadata, bonding status, and much more for any token on the platform. As such, it’s a powerful tool for anyone looking to build analytics dashboards, trading tools, and other crypto-based applications.

Moralis Pump Fun API

Here’s what you can get using the Pump Fun API: 

Real-Time & Historical Prices: Fetch real-time and historical price data for all pump.fun tokens.

Token Metadata: Retrieve a token’s name, symbol, decimals, supply data, and other key insights.

Token Pairs: Query token pair listings and other relevant trading information.

Bonding Status: Get the bonding progress status for any token on the pump.fun platform.

Token Swaps: Track buy and sell swaps for all tokens on pump.fun, enriched with transaction types, categories, and more. 

OHLCV Data: Get accurate open, high, low, close, and volume (OHLCV) data for all pump.fun tokens.

…and much more!

In short, the Pump Fun API is the ultimate tool for anyone looking to integrate pump.fun token data into a crypto project, enabling seamless access to prices, metadata, swaps, and more with just a few lines of code.

Bonded & Pre-Bonded Token Support

The Pump Fun API supports both bonded and pre-bonded tokens alike, ensuring that you can access all relevant token lifecycle data, from when the asset is created to when it is actively traded on a decentralized exchange (DEX) like Raydium.

So, if you’re looking for a complete solution for pump.fun token data, Moralis provides the most comprehensive and easy-to-use API available on the market. And to highlight the accessibility of this tool, we’ll now walk you through a tutorial on how it works in practice. 

Full Tutorial: How to Get Pump Fun Token Data in 5 Steps with the Moralis API

With the Pump Fun API, you can get everything from price data to bonding status without breaking a sweat. To show you how it works, we’ll walk you through a tutorial on how to fetch the price of a pump.fun token in five simple steps: 

Get an API Key

Find Your Pump Fun Token Address

Write Your Script

Run the Code

Understand & Integrate the Data

However, if you want to follow along in this tutorial, you must first take care of a couple of prerequisites.

Prerequisites

Before you continue, make sure you have the following set up: 

Step 1: Get an API Key

If you haven’t already, the first thing you need to do is sign up with Moralis. To do so, click the ”Start for Free” button at the top right: 

Red arrow pointing at "Start for Free" button.

Once your account is set up, log in, and you’ll find your Moralis API key directly under the ”Home” tab: 

Red arrows pointing at "Home" tab and API key copy button.

Copy and save it for now; you’ll need it in step three. 

Step 2: Find Your Pump Fun Token Address

All tokens on pump.fun have unique contract addresses, which you’ll need to fetch data. So, if you already know the address, you’re good to go. Otherwise, you can find the address by visiting the token’s page on pump.fun or a DEX terminal like Moralis.com. Here’s what it might look like:

Red arrow pointing at copy button for token address.

Step 3: Write Your Script

Next, open your preferred IDE, set up a new folder, launch a terminal, and initialize a project with this terminal command: 

npm init

Install the required dependencies by running these commands: 

npm install node-fetch –save
npm install moralis @moralisweb3/common-evm-utils

Open your ”package.json” file and add ”type”: ”module” to the list:

Type Module highlighted in Package.json file.

Create a new ”index.js” file and add the code below for fetching the price of a token:

import 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/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump/price”,
options
)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));

Next, you need to make some minor configurations to the code. First, add your Moralis API key by replacing YOUR_API_KEY. Also, change the query parameters by replacing the token address with the address you fetched during the previous step:

Image showing code configurations.

Step 4: Run the Code

When you’re done with your script, all that remains is to run the code. To do it, simply navigate to the project’s root folder and run this terminal command: 

node index.js

Step 5: Understand & Integrate the Data

In return for running the script, you’ll get a response that looks something like this: 

{
tokenAddress: ‘9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump’,
pairAddress: ‘Bzc9NZfMqkXR6fz1DBph7BDf9BroyEf6pnzESP7v5iiw’,
exchangeName: ‘Raydium’,
exchangeAddress: ‘675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8’,
nativePrice: {
value: ‘2760494’,
symbol: ‘WSOL’,
name: ‘Wrapped Solana’,
decimals: 9
},
usdPrice: 0.36908449,
usdPrice24h: 0.305156198,
usdPrice24hrUsdChange: 0.063928292,
usdPrice24hrPercentChange: 20.94936705168938,
logo: ‘https://d23exngyjlavgo.cloudfront.net/solana_9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump’,
name: ‘Fartcoin ‘,
symbol: ‘Fartcoin ‘
}

Let’s break it down: 

tokenAddress: The contract address of the pump.fun token.

pairAddress: The liquidity pool pair address for the token.

exchangeName: The name of the DEX from which the price is fetched.

exchangeAddress: The address of the DEX.

nativePrice: Price of the token in the chain’s native currency.

usdPrice: Price of the token in USD.

… and more! 

That’s it – it’s that simple to get the price of a token using the Pump Fun API! 

If you want to get other data, you can follow exactly the same steps and simply replace the endpoint in step three. To learn more about all available endpoints, check out the Moralis Solana API! 

Why Use the Moralis Pump Fun API?

There are many reasons why you should leverage the Pump Fun API offered by Moralis. Here are a few key examples: 

More Data. Fewer Calls: Experience the industry’s most comprehensive APIs, designed with the outcome in mind. For instance, when fetching pump.fun token swaps, you get a response enriched with category tags, transaction types, and more. So, when using Moralis, you get more information with fewer calls, allowing you to streamline crypto data integration for your applications.

Ease-of-Use: Get any token’s real-time prices, bonding status, swaps, OHLCV data, and much more with a few lines of code. Never has it been easier to supercharge your crypto projects with pump.fun token data. 

Enterprise-Grade Security & Reliability: Moralis holds a SOC 2 Type 2 certificate, highlighting our commitment to maintaining the gold standard for security and reliability across all tools and features. 

Moralis logo.

All in all, when using the Moralis Pump Fun API, you get access to a secure, reliable, and intuitive interface offering enriched responses to minimize the calls needed to build sophisticated cryptocurrency-based platforms!

Add pump.fun Charts with Moralis’ Crypto Widgets

If you want to add price charts for a pump.fun token and don’t want to build it from scratch using the OHLCV API, you should check out Moralis’ crypto widgets. With the Price Chart Widget, you can integrate TradingView charts into your platform without breaking a sweat. Here’s an example of what it might look like: 

Widget example.

So, how do you add a chart like this to your platform? 

Here’s a quick breakdown of the process: 

Price widget page.

Step 2: Scroll down to the configuration section, add the pump.fun pair or token address, and customize the chart based on your preferences: 

Configuration section.

Step 3: Copy and integrate the code into your platform: 

Red arrow pointing at "Copy Code" button on widget page.

That’s it; adding a pump.fun token price chart to your project when leveraging Moralis doesn’t have to be more challenging than this!

Beyond the Pump Fun API – Exploring Other APIs & Features

In addition to the Pump Fun API, Moralis offers a wide set of other industry-leading interfaces and tools. Here are some other examples you’ll likely find helpful in your Web3 development efforts: 

Wallet API: The ultimate interface for querying wallet-related data, streamlining the process of building everything from portfolio trackers to tax tools. With the Wallet API, you only need single lines of code to get any wallet’s net worth, decoded history, PnL, and much more. 

NFT API: Get wallet balances, NFT metadata, token prices, and much more with just single API calls. It’s the perfect interface for anyone looking to integrate NFT-related data into a crypto platform. 

DeFi API: Fetch any wallet’s DeFi positions, token liquidity data, ERC-20 allowances, and more with ease. With this premier API, you can integrate reliable and precise data into all your DeFi dapps without breaking a sweat. 

Streams API: Using the Streams API, you can configure custom data pipelines that stream real-time wallet and contract events directly to your applications. Experience 100% delivery guarantees, full cross-chain support, and enriched payloads – all in one simple real-time data solution. 

Extended RPC Methods: With Moralis’ Extended RPC Methods, you get the same features, functionality, and responses found in the APIs via RPC-style methods. Get fully decoded transactions, price data, NFT balances, token balances, and more directly using next-generation RPC nodes. 

To learn more about all other interfaces and tools, check out the Moralis Web3 APIs page! 

Summary: How to Get Prices, Metadata, & More with the Pump Fun API

Pump.fun is a memecoin generator and marketplace, and the platform has quickly become one of the most prominent websites in the space. And tokens like Moo Deng (MOODENG), Peanut the Squirrel (PNUT), Fartcoin (FARTCOIN), and other heavy hitters have launched on the platform, making it a hotbed for memecoins. 

Text: "Summary: How to Get Prices, Metadata, & More with the Pump Fun API"

So, what is the best and easiest way to fetch data for these tokens? 

The answer: Moralis Pump Fun API! 

With the Pump Fun API, you can now effortlessly fetch data about any pump.fun token without breaking a sweat. Here’s some of the information you can get with the API: 

Prices: Get real-time and historical prices.

Metadata: Fetch a token’s name, decimals, symbol, and more.

OHLCV Data: Query the OHLCV data of any pump.fun token.

Bonding Status: Get the bonding progress status for all tokens on the platform. 

…and more! 

As such, if you’re looking for an easy way to get pump.fun token data, check out the Moralis Pump Fun API today!

If you liked this tutorial, consider checking out some more content here on the blog. For instance, learn how to switch from SimpleHash or read about the NFT Rarity API. 



Source link

Tags: APIbondingdevelopersfunMoralisPricesPumpPump.funStatusswapsToken
Previous Post

Trump Media Leaders Back $179M SPAC, Crypto on Radar

Next Post

Holesky Testnet Support Ends in September

Related Posts

Ronin API – Build on Ronin with Moralis
Web3

Ronin API – Build on Ronin with Moralis

May 28, 2025
How to Build NFT Apps on Solana
Web3

How to Build NFT Apps on Solana

May 23, 2025
Solana NFT API – Exploring the Top 2025 NFT API for Solana
Web3

Solana NFT API – Exploring the Top 2025 NFT API for Solana

May 21, 2025
Get Solana Whales – How to Fetch Top Whales of a Solana Token
Web3

Get Solana Whales – How to Fetch Top Whales of a Solana Token

May 19, 2025
Neobank App Development – How to Build a Web3 Neobank
Web3

Neobank App Development – How to Build a Web3 Neobank

May 16, 2025
How to Get Top Solana Token Holders
Web3

How to Get Top Solana Token Holders

May 14, 2025
Next Post
Holesky Testnet Support Ends in September

Holesky Testnet Support Ends in September

SEC Drops Ripple Case—Garlinghouse Calls It a “Surrender”

SEC Drops Ripple Case—Garlinghouse Calls It a "Surrender"

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RECOMMENDED

I Made ,000 in SOL Using These 7 Solana AI Prompts: Here’s the Exact Ones I use | by Crypto Shahar | The Capital | Aug, 2025
Altcoin

I Made $1,000 in SOL Using These 7 Solana AI Prompts: Here’s the Exact Ones I use | by Crypto Shahar | The Capital | Aug, 2025

by crypetonews
August 4, 2025
0

Each of these was tested in the wild. Real trades. Real results.Zoom image will be displayed1. Prompt:“Find low MC tokens...

Shiba Inu Team Member Reveals ‘Primary Challenge’ And ‘Top Priority’ Amid Market Uncertainty

Shiba Inu Team Member Reveals ‘Primary Challenge’ And ‘Top Priority’ Amid Market Uncertainty

August 5, 2025
Digital Bank Grasshopper Bank Raises .6 Million

Digital Bank Grasshopper Bank Raises $46.6 Million

August 6, 2025
POL eyes alt=

POL eyes $0.265 after a 5% rally

August 7, 2025
OpenAI, ChatGPT Releases ‘Smarter’ New Model: GPT-5

OpenAI, ChatGPT Releases ‘Smarter’ New Model: GPT-5

August 7, 2025
BitMEX Founder Arthur Hayes Dumps Ethereum and Two Altcoins, Warns of Imminent Pullbacks in Bitcoin and ETH

BitMEX Founder Arthur Hayes Dumps Ethereum and Two Altcoins, Warns of Imminent Pullbacks in Bitcoin and ETH

August 3, 2025

Please enter CoinGecko Free Api Key to get this plugin works.
  • Trending
  • Comments
  • Latest
Top 10 NFTs to Watch in 2025 for High-Return Investments

Top 10 NFTs to Watch in 2025 for High-Return Investments

November 22, 2024
Uniswap v4 Teases Major Updates for 2025

Uniswap v4 Teases Major Updates for 2025

January 2, 2025
Enforceable Human-Readable Transactions: Can They Prevent Bybit-Style Hacks?

Enforceable Human-Readable Transactions: Can They Prevent Bybit-Style Hacks?

February 27, 2025
Best Cryptocurrency Portfolio Tracker Apps to Use in 2025

Best Cryptocurrency Portfolio Tracker Apps to Use in 2025

April 24, 2025
FTT jumps 7% as Backpack launches platform to help FTX victims liquidate claims

FTT jumps 7% as Backpack launches platform to help FTX victims liquidate claims

July 18, 2025
What’s the Difference Between Polygon PoS vs Polygon zkEVM?

What’s the Difference Between Polygon PoS vs Polygon zkEVM?

November 20, 2023
XRP Official CRYPTO VOTE LIVE NEWS!🔴GENIUS, CLARITY Act

XRP Official CRYPTO VOTE LIVE NEWS!🔴GENIUS, CLARITY Act

46
IMP UPDATE : BILLS PASSED || BITCOIN DOMINANCE FALLING

IMP UPDATE : BILLS PASSED || BITCOIN DOMINANCE FALLING

38
🚨BIG UPDATE ON WAZIRX || ALT COIN PORTFOLIO NO 1

🚨BIG UPDATE ON WAZIRX || ALT COIN PORTFOLIO NO 1

37
BITCOIN: IT'S HAPPENING NOW (Urgent Update)!!! Bitcoin News Today, Ethereum, Solana, XRP & Chainlink

BITCOIN: IT'S HAPPENING NOW (Urgent Update)!!! Bitcoin News Today, Ethereum, Solana, XRP & Chainlink

33
JUST IN XRP RIPPLE DUBAI NEWS!

JUST IN XRP RIPPLE DUBAI NEWS!

25
Flash USDT | How It Became the Biggest Crypto Scam Worldwide

Flash USDT | How It Became the Biggest Crypto Scam Worldwide

31
First-Ever Bitcoin Meme ICO Sparks Mass FOMO Before Listing

First-Ever Bitcoin Meme ICO Sparks Mass FOMO Before Listing

August 8, 2025
Winklevoss Twins Inject Bitcoin Into Trump-Linked Mining Venture

Winklevoss Twins Inject Bitcoin Into Trump-Linked Mining Venture

August 8, 2025
WLD Price Rebounds 4.55% After Binance.US Listing Despite China Warning

WLD Price Rebounds 4.55% After Binance.US Listing Despite China Warning

August 8, 2025
Stellar (XLM) eyes 35% rally as Ripple and SEC end 5-year legal battle

Stellar (XLM) eyes 35% rally as Ripple and SEC end 5-year legal battle

August 8, 2025
Bitcoin’s Comeback or Bull Trap? Analysts Warn of ‘Excessive Optimism’

Bitcoin’s Comeback or Bull Trap? Analysts Warn of ‘Excessive Optimism’

August 8, 2025
Ripple Strikes 0M Deal With Rail to Dominate Global Stablecoin Payments

Ripple Strikes $200M Deal With Rail to Dominate Global Stablecoin Payments

August 8, 2025
Crypeto News

Find the latest Bitcoin, Ethereum, blockchain, crypto, Business, Fintech News, interviews, and price analysis at Crypeto News.

CATEGORIES

  • Altcoin
  • Analysis
  • Bitcoin
  • Blockchain
  • Crypto Exchanges
  • Crypto Updates
  • DeFi
  • Ethereum
  • Metaverse
  • Mining
  • NFT
  • Regulations
  • Scam Alert
  • Uncategorized
  • Videos
  • Web3

LATEST UPDATES

  • First-Ever Bitcoin Meme ICO Sparks Mass FOMO Before Listing
  • Winklevoss Twins Inject Bitcoin Into Trump-Linked Mining Venture
  • WLD Price Rebounds 4.55% After Binance.US Listing Despite China Warning
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

No Result
View All Result
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In