Skip to main content

Pumpfun API Wrapper

Python wrapper for pumpfun-scraper-api

PyPI Downloads

Installation

pip install pypumpfun

API Key Required

⚠️ Important: This module requires an API key to perform requests. Get your API key from RapidAPI - Pumpfun Scraper API

Quick Start

from pypumpfun import Pumpfun

# Initialize with your API key
api = Pumpfun("YOUR_API_KEY")

# Search for tokens
results = api.search_tokens(term="your_search_term")
print(results)

# Get recommended tokens
tokens = api.tokens_for_you(limit=50, offset=0, include_nsfw=False)
print(tokens)

Available Methods

  • ping(): Check API health
  • search_tokens(term): Search tokens by term
  • tokens_for_you(limit=50, offset=0, include_nsfw=False): Get recommended tokens
  • similar_projects_by_mint(address, limit=50): Find similar projects
  • get_featured_coins(): Get featured coins
  • get_about_graduates(): Get graduates information
  • get_runner_tokens(): Get runner tokens
  • get_tokens_by_meta(meta, include_nsfw=False): Search by metadata
  • get_token_metadata_trades(address): Get token metadata and trades (legacy)
  • get_pumpfun_replies(address, limit=1000, offset=0): Get replies
  • get_candlesticks(address, created_ts=None, limit=60, interval="1m"): Get candlestick data
  • get_king_hell(include_nsfw=False): Get King Hell information
  • global_params(): Get global parameters
  • get_latest_token(): Get latest token information
  • get_user_created_coins(address, offset=0, limit=10, include_nsfw=False): Get coins created by a user
  • get_user_followings(address): Get addresses followed by a user
  • get_user_followers(address): Get followers of a user
  • get_user_holdings(address, limit=50, offset=0): Get holdings of a user
  • get_token_basic_metadata(address): Get basic metadata and trades for a token
  • get_current_token_livestreams(sort_order="DESC", offset=0, limit=48, include_nsfw=False): Get current token livestreams
  • get_latest_trade(): Get the latest trade
  • get_graduated_tokens(sort_by="marketCap"): Get graduated tokens
  • get_token_trades(address, limit=100, cursor=0, min_sol_amount=0.0, program="pump", created_ts=None): Get trades for a token
  • get_sol_price(): Get current SOL price
  • get_current_metas(): Get current metas

Example: New Endpoints

# Get user created coins
user_coins = api.get_user_created_coins(address="SOME_ADDRESS", limit=5)
print(user_coins)

# Get user followings
followings = api.get_user_followings(address="SOME_ADDRESS")
print(followings)

# Get token basic metadata
meta = api.get_token_basic_metadata(address="SOME_TOKEN_ADDRESS")
print(meta)

# Get token trades
trades = api.get_token_trades(address="SOME_TOKEN_ADDRESS", limit=10)
print(trades)

Error Handling

The module includes built-in error handling and will return appropriate error messages if:

  • API key is invalid
  • API request fails
  • Response parsing fails

Rate Limits

Please be aware of the rate limits associated with your API key tier on RapidAPI.

Support

For API access and pricing, visit RapidAPI - Pumpfun Scraper API

For package issues, contact: contact@tomris.dev

Release files for pypumpfun 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypumpfun 1.1.0
File Size Uploaded
pypumpfun-1.1.0.tar.gz 40.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypumpfun 1.1.0
File Interpreter ABI Platform
pypumpfun-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 68.4 kB

Release files / pypumpfun-1.1.0.tar.gz

Download URL pypumpfun-1.1.0.tar.gz
Size 40.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dd0025beb9952a18c50bb3dc1cd3e0f9c35020263979076bd01c68b8c34b36a8
BLAKE2b-256 checksum
How to use checksums
c09b1364256da9232198056b943e6ffb408d29b3a924721c8fb4dfb699352438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Release files / pypumpfun-1.1.0-py3-none-any.whl

Download URL pypumpfun-1.1.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74772a8421c37099568c398160d8f609897981fc151b993f37fe6536e4389184
BLAKE2b-256 checksum
How to use checksums
12ecc0dc4aec53a379b5a4e62f20cffc146e518069535993c086ab2cd9c738da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.1.1

1 release file

0.1.0

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page