API wrapper for rapid-api/pumpfun-scraper-api
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypumpfun-1.1.0.tar.gz.
File metadata
- Download URL: pypumpfun-1.1.0.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd0025beb9952a18c50bb3dc1cd3e0f9c35020263979076bd01c68b8c34b36a8
|
|
| MD5 |
68aa6282a039fc2ba7960e9b8ada3b43
|
|
| BLAKE2b-256 |
c09b1364256da9232198056b943e6ffb408d29b3a924721c8fb4dfb699352438
|
File details
Details for the file pypumpfun-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pypumpfun-1.1.0-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74772a8421c37099568c398160d8f609897981fc151b993f37fe6536e4389184
|
|
| MD5 |
614ae8ce59957a9d13ef1fea0446b84b
|
|
| BLAKE2b-256 |
12ecc0dc4aec53a379b5a4e62f20cffc146e518069535993c086ab2cd9c738da
|