In search of a simple approach to fetch pump.enjoyable token knowledge? If that’s the case, you’ve come to the suitable place! In right now’s tutorial, we’ll introduce the Moralis Pump Enjoyable API, permitting you to fetch every little thing from worth knowledge to the bonding standing of any pump.enjoyable token with out breaking a sweat!
Desperate to know the way it works? Try the instance beneath exhibiting how straightforward it’s to fetch pump.enjoyable token swaps:
import fetch from “node-fetch”;
const choices = {
technique: “GET”,
headers: {
settle for: “software/json”,
“X-API-Key”:
“YOUR_API_KEY”,
},
};
fetch(
“https://solana-gateway.moralis.io/token/mainnet/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump/swaps?order=DESC”,
choices
)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));
Calling the script above gives you a listing of transactions enriched with costs, transaction sorts, class tags, and different beneficial knowledge. Right here’s what it would seem like:
{
//…
“end 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 simply this single endpoint, you may construct highly effective options like real-time transaction tables, giving your customers in-depth perception into the exercise of any pump.enjoyable token!
To be taught extra about this highly effective interface and discover different endpoints, be part of us in right now’s information, watch the YouTube video beneath, or try the official Pump Enjoyable API docs:
Overview
Moo Deng (MOODENG), Peanut the Squirrel (PNUT), and Fartcoin (FARTCOIN) have been a number of the hottest memecoins over the previous yr. And what do all of them have in frequent? They launched on the pump.enjoyable platform.
So, how do you observe knowledge on these tokens?
Enter the Moralis Pump Enjoyable API – your go-to resolution for fetching pump.enjoyable token costs, swaps, bonding standing, metadata, and extra with just some strains of code!
Need to see the way it works in follow and learn to use this premier API to combine knowledge into your crypto tasks? Be a part of us in right now’s information as we lay all of it out for you. Let’s go!
What’s pump.enjoyable?
Pump.enjoyable is a Solana-based cryptocurrency platform that enables customers to create and commerce memecoins in an accessible method. The platform launched in 2024 and has shortly develop into one of many main web sites within the cryptocurrency area, producing a whole lot of thousands and thousands of {dollars} of income in a brief span of solely 12 months.
Let’s discover a number of the key options of pump.enjoyable:
Straightforward Token Creation: The pump.enjoyable platform makes the method of making tokens easy, permitting anybody to launch a memecoin in simply minutes.
Quick Transactions & Low Charges: As a Solana-based platform, pump.enjoyable options quick transactions and low charges, making memecoins accessible to everybody.
Safeguards for Market Manipulation: Pump.enjoyable offers a number of safeguards towards market manipulation and crypto scams. An amazing instance is the platform’s bonding curve, which mechanically adjusts costs based mostly on provide and demand, minimizing the chance of worth manipulation.
All in all, pump.enjoyable is a memecoin generator and market on the Solana blockchain that has grown extremely quick, turning into one of the crucial fashionable platforms within the crypto area in only one yr.
However how do you fetch knowledge for pump.enjoyable tokens? For the reply to this query, be part of us beneath as we introduce Moralis for Builders’ Pump Enjoyable API!
Introducing the Pump Enjoyable API
The Pump Enjoyable API is the final word instrument for builders trying to supercharge their platforms with complete pumps.enjoyable knowledge. With just some strains of code, you may fetch costs, metadata, bonding standing, and rather more for any token on the platform. As such, it’s a robust instrument for anybody trying to construct analytics dashboards, buying and selling instruments, and different crypto-based purposes.

Right here’s what you may get utilizing the Pump Enjoyable API:
Actual-Time & Historic Costs: Fetch real-time and historic worth knowledge for all pump.enjoyable tokens.
Token Metadata: Retrieve a token’s title, image, decimals, provide knowledge, and different key insights.
Token Pairs: Question token pair listings and different related buying and selling info.
Bonding Standing: Get the bonding progress standing for any token on the pump.enjoyable platform.
Token Swaps: Monitor purchase and promote swaps for all tokens on pump.enjoyable, enriched with transaction sorts, classes, and extra.
OHLCV Knowledge: Get correct open, excessive, low, shut, and quantity (OHLCV) knowledge for all pump.enjoyable tokens.
…and rather more!
In brief, the Pump Enjoyable API is the final word instrument for anybody trying to combine pump.enjoyable token knowledge right into a crypto mission, enabling seamless entry to costs, metadata, swaps, and extra with just some strains of code.
Bonded & Pre-Bonded Token Help
The Pump Enjoyable API helps each bonded and pre-bonded tokens alike, guaranteeing which you could entry all related token lifecycle knowledge, from when the asset is created to when it’s actively traded on a decentralized change (DEX) like Raydium.
So, when you’re on the lookout for an entire resolution for pump.enjoyable token knowledge, Moralis offers essentially the most complete and easy-to-use API out there available on the market. And to spotlight the accessibility of this instrument, we’ll now stroll you thru a tutorial on the way it works in follow.
Full Tutorial: The best way to Get Pump Enjoyable Token Knowledge in 5 Steps with the Moralis API
With the Pump Enjoyable API, you may get every little thing from worth knowledge to bonding standing with out breaking a sweat. To point out you the way it works, we’ll stroll you thru a tutorial on how one can fetch the worth of a pump.enjoyable token in 5 easy steps:
Get an API Key
Discover Your Pump Enjoyable Token Tackle
Write Your Script
Run the Code
Perceive & Combine the Knowledge
Nonetheless, if you wish to comply with alongside on this tutorial, you could first deal with a few conditions.
Stipulations
Earlier than you proceed, be sure to have the next arrange:
Step 1: Get an API Key
In the event you haven’t already, the very first thing that you must do is enroll with Moralis. To take action, click on the ”Begin for Free” button on the high proper:

As soon as your account is about up, log in, and also you’ll discover your Moralis API key straight beneath the ”Residence” tab:

Copy and reserve it for now; you’ll want it in step three.
Step 2: Discover Your Pump Enjoyable Token Tackle
All tokens on pump.enjoyable have distinctive contract addresses, which you’ll must fetch knowledge. So, when you already know the tackle, you’re good to go. In any other case, yow will discover the tackle by visiting the token’s web page on pump.enjoyable or a DEX terminal like Moralis.com. Right here’s what it would seem like:

Step 3: Write Your Script
Subsequent, open your most popular IDE, arrange a brand new folder, launch a terminal, and initialize a mission with this terminal command:
npm init
Set up the required dependencies by working these instructions:
npm set up node-fetch –save
npm set up moralis @moralisweb3/common-evm-utils
Open your ”bundle.json” file and add ”kind”: ”module” to the record:

Create a brand new ”index.js” file and add the code beneath for fetching the worth of a token:
import fetch from “node-fetch”;
const choices = {
technique: “GET”,
headers: {
settle for: “software/json”,
“X-API-Key”:
“YOUR_API_KEY”,
},
};
fetch(“https://solana-gateway.moralis.io/token/mainnet/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump/worth”,
choices
)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));
Subsequent, that you must make some minor configurations to the code. First, add your Moralis API key by changing YOUR_API_KEY. Additionally, change the question parameters by changing the token tackle with the tackle you fetched throughout the earlier step:

Step 4: Run the Code
If you’re finished along with your script, all that continues to be is to run the code. To do it, merely navigate to the mission’s root folder and run this terminal command:
node index.js
Step 5: Perceive & Combine the Knowledge
In return for working the script, you’ll get a response that appears one thing like this:
{
tokenAddress: ‘9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump’,
pairAddress: ‘Bzc9NZfMqkXR6fz1DBph7BDf9BroyEf6pnzESP7v5iiw’,
exchangeName: ‘Raydium’,
exchangeAddress: ‘675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8’,
nativePrice: {
worth: ‘2760494’,
image: ‘WSOL’,
title: ‘Wrapped Solana’,
decimals: 9
},
usdPrice: 0.36908449,
usdPrice24h: 0.305156198,
usdPrice24hrUsdChange: 0.063928292,
usdPrice24hrPercentChange: 20.94936705168938,
brand: ‘https://d23exngyjlavgo.cloudfront.web/solana_9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump’,
title: ‘Fartcoin ‘,
image: ‘Fartcoin ‘
}
Let’s break it down:
tokenAddress: The contract tackle of the pump.enjoyable token.
pairAddress: The liquidity pool pair tackle for the token.
exchangeName: The title of the DEX from which the worth is fetched.
exchangeAddress: The tackle of the DEX.
nativePrice: Value of the token within the chain’s native forex.
usdPrice: Value of the token in USD.
… and extra!
That’s it – it’s that easy to get the worth of a token utilizing the Pump Enjoyable API!
If you wish to get different knowledge, you may comply with precisely the identical steps and easily exchange the endpoint in step three. To be taught extra about all out there endpoints, try the Moralis Solana API!
Why Use the Moralis Pump Enjoyable API?
There are lots of explanation why it is best to leverage the Pump Enjoyable API supplied by Moralis. Listed below are a number of key examples:
Extra Knowledge. Fewer Calls: Expertise the {industry}’s most complete APIs, designed with the result in thoughts. As an illustration, when fetching pump.enjoyable token swaps, you get a response enriched with class tags, transaction sorts, and extra. So, when utilizing Moralis, you get extra info with fewer calls, permitting you to streamline crypto knowledge integration on your purposes.
Ease-of-Use: Get any token’s real-time costs, bonding standing, swaps, OHLCV knowledge, and rather more with a number of strains of code. By no means has it been simpler to supercharge your crypto tasks with pump.enjoyable token knowledge.
Enterprise-Grade Safety & Reliability: Moralis holds a SOC 2 Kind 2 certificates, highlighting our dedication to sustaining the gold customary for safety and reliability throughout all instruments and options.

All in all, when utilizing the Moralis Pump Enjoyable API, you get entry to a safe, dependable, and intuitive interface providing enriched responses to attenuate the calls wanted to construct subtle cryptocurrency-based platforms!
Add pump.enjoyable Charts with Moralis’ Crypto Widgets
If you wish to add worth charts for a pump.enjoyable token and don’t need to construct it from scratch utilizing the OHLCV API, it is best to try Moralis’ crypto widgets. With the Value Chart Widget, you may combine TradingView charts into your platform with out breaking a sweat. Right here’s an instance of what it would seem like:

So, how do you add a chart like this to your platform?
Right here’s a fast breakdown of the method:

Step 2: Scroll right down to the configuration part, add the pump.enjoyable pair or token tackle, and customise the chart based mostly in your preferences:

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

That’s it; including a pump.enjoyable token worth chart to your mission when leveraging Moralis doesn’t need to be more difficult than this!
Past the Pump Enjoyable API – Exploring Different APIs & Options
Along with the Pump Enjoyable API, Moralis presents a large set of different industry-leading interfaces and instruments. Listed below are another examples you’ll possible discover useful in your Web3 improvement efforts:
Pockets API: The final word interface for querying wallet-related knowledge, streamlining the method of constructing every little thing from portfolio trackers to tax instruments. With the Pockets API, you solely want single strains of code to get any pockets’s web value, decoded historical past, PnL, and rather more.
NFT API: Get pockets balances, NFT metadata, token costs, and rather more with simply single API calls. It’s the proper interface for anybody trying to combine NFT-related knowledge right into a crypto platform.
DeFi API: Fetch any pockets’s DeFi positions, token liquidity knowledge, ERC-20 allowances, and extra with ease. With this premier API, you may combine dependable and exact knowledge into all of your DeFi dapps with out breaking a sweat.
Streams API: Utilizing the Streams API, you may configure customized knowledge pipelines that stream real-time pockets and contract occasions on to your purposes. Expertise 100% supply ensures, full cross-chain help, and enriched payloads – multi function easy real-time knowledge resolution.
Prolonged RPC Strategies: With Moralis’ Prolonged RPC Strategies, you get the identical options, performance, and responses discovered within the APIs by way of RPC-style strategies. Get absolutely decoded transactions, worth knowledge, NFT balances, token balances, and extra straight utilizing next-generation RPC nodes.
To be taught extra about all different interfaces and instruments, try the Moralis Web3 APIs web page!
Abstract: The best way to Get Costs, Metadata, & Extra with the Pump Enjoyable API
Pump.enjoyable is a memecoin generator and market, and the platform has shortly develop into one of the crucial outstanding web sites within the area. And tokens like Moo Deng (MOODENG), Peanut the Squirrel (PNUT), Fartcoin (FARTCOIN), and different heavy hitters have launched on the platform, making it a hotbed for memecoins.

So, what’s the greatest and best approach to fetch knowledge for these tokens?
The reply: Moralis Pump Enjoyable API!
With the Pump Enjoyable API, now you can effortlessly fetch knowledge about any pump.enjoyable token with out breaking a sweat. Right here’s a number of the info you may get with the API:
Costs: Get real-time and historic costs.
Metadata: Fetch a token’s title, decimals, image, and extra.
OHLCV Knowledge: Question the OHLCV knowledge of any pump.enjoyable token.
Bonding Standing: Get the bonding progress standing for all tokens on the platform.
…and extra!
As such, when you’re on the lookout for a simple approach to get pump.enjoyable token knowledge, try the Moralis Pump Enjoyable API right now!
In the event you favored this tutorial, contemplate trying out some extra content material right here on the weblog. As an illustration, learn to swap from SimpleHash or learn in regards to the NFT Rarity API.







