Pumpfun API Wrapper
Python wrapper for pumpfun-scraper-api
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 healthsearch_tokens(term): Search tokens by termtokens_for_you(limit=50, offset=0, include_nsfw=False): Get recommended tokenssimilar_projects_by_mint(address, limit=50): Find similar projectsget_featured_coins(): Get featured coinsget_about_graduates(): Get graduates informationget_runner_tokens(): Get runner tokensget_tokens_by_meta(meta, include_nsfw=False): Search by metadataget_token_metadata_trades(address): Get token metadata and trades (legacy)get_pumpfun_replies(address, limit=1000, offset=0): Get repliesget_candlesticks(address, created_ts=None, limit=60, interval="1m"): Get candlestick dataget_king_hell(include_nsfw=False): Get King Hell informationglobal_params(): Get global parametersget_latest_token(): Get latest token informationget_user_created_coins(address, offset=0, limit=10, include_nsfw=False): Get coins created by a userget_user_followings(address): Get addresses followed by a userget_user_followers(address): Get followers of a userget_user_holdings(address, limit=50, offset=0): Get holdings of a userget_token_basic_metadata(address): Get basic metadata and trades for a tokenget_current_token_livestreams(sort_order="DESC", offset=0, limit=48, include_nsfw=False): Get current token livestreamsget_latest_trade(): Get the latest tradeget_graduated_tokens(sort_by="marketCap"): Get graduated tokensget_token_trades(address, limit=100, cursor=0, min_sol_amount=0.0, program="pump", created_ts=None): Get trades for a tokenget_sol_price(): Get current SOL priceget_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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypumpfun-1.1.0.tar.gz | 40.9 kB | Without provenance | Details for pypumpfun-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypumpfun-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pypumpfun-1.1.0-py3-none-any.whl |
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
|
Security for pypumpfun 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.