Get started with Pump.fun API
This guide will help you make your first API call to Pump.fun. You’ll learn how to authenticate and retrieve data from the platform.Prerequisites
Before you begin, ensure you have:- A JWT token for authentication (see Authentication for details)
- A tool to make HTTP requests (cURL, Postman, or a programming language)
Authentication setup
Most Pump.fun API endpoints require JWT authentication. Include your token in theAuthorization header with every request.
It’s recommended to include authentication with all requests to ensure complete data retrieval and avoid potential access issues.
Required headers
Include these headers with your API requests:| Header | Value | Required |
|---|---|---|
Authorization | Bearer <JWT> | Yes |
Accept | application/json or */* | Yes |
Origin | https://pump.fun | Yes |
Content-Type | application/json | For POST/PUT requests |
Your first API call
Let’s retrieve the latest coin created on Pump.fun using the Frontend API v3.Choose your endpoint
We’ll use the
GET /coins/latest endpoint to retrieve the most recently created token.Endpoint: https://frontend-api-v3.pump.fun/coins/latestMore examples
Here are additional common API calls to get you started:Get SOL price
Retrieve the current Solana price:Get coin details
Retrieve information about a specific token by its mint address:Get trade history
Retrieve all trades for a specific token:Get graduated coins (Advanced Analytics API)
Retrieve coins that have graduated to Raydium:Error handling
Handle common HTTP status codes in your application:200 OK- Request successful201 Created- Resource created successfully304 Not Modified- Content unchanged (when using ETag caching)400 Bad Request- Invalid request parameters401 Unauthorized- Authentication required or token invalid403 Forbidden- Access denied to resource404 Not Found- Resource not found429 Too Many Requests- Rate limit exceeded
Optimize with caching
Many endpoints support ETag caching to reduce bandwidth and improve performance:- Make your first request and save the
ETagvalue from the response headers - Include
If-None-Match: W/"etag-value"in subsequent requests - If content hasn’t changed, you’ll receive a
304 Not Modifiedresponse
Next steps
Coins API
Create and manage tokens on Pump.fun
API versions
Learn about different API versions and their differences
Authentication
Deep dive into authentication methods
Rate limits
Understand rate limiting and best practices