To fetch newly minted pump.fun tokens, send a Get request to:

https://pumpapi.fun/api/get_newer_mints?limit=5

Description: Retrieve information about the most recently minted pump.fun tokens.

Request Type: GET

Accepted Parameters:

  • limit (optional, integer): Specifies the maximum number of newly minted tokens to return (default: 1, maximum: 20).

Basic Usage Examples

# Python (using requests)
import requests

url = "https://pumpapi.fun/api/get_newer_mints"
params = {"limit": 10}  # Optional parameter to limit results

response = requests.get(url, params=params)

if response.status_code == 200:
    data = response.json()
    print(data)  # Process the JSON response
else:
    print(f"Error retrieving data: {response.status_code}")

Response Code Format

The API returns a JSON object with the following structure:


{
  mint: [
    '5p89sYKkrKaJegrVzKJ52WE48ydpMx16emNw9vLYqrVS',
    'AxrTSda9pix4vmfoVh4BP8nU5PN9WTeHh7Q61mAV3MVc',
    'HqoBrHHBPW1MR4ewbR8VidbwckjRmA64vrMXonhTw7Pd',
    '8QTRsGnPXJAmy7NUWifQFvErzicW6rSLSUj6CmuU7EuC',
    'BFDFPLTWWZc7szJeAGyq2VhmKaX71b7Spk4wn6pbbiNR'
  ]
}

Error Codes

  • 400 Bad Request: Invalid request parameters or missing required fields.
  • 401 Unauthorized: Authentication failed.
  • 404 Not Found: The requested resource (endpoint) is not found.
  • 429 Too Many Requests: Rate limit exceeded.
  • 500 Internal Server Error: Unexpected server-side error.

API Codes

  • 200 OK: The request was successful.