### GET /download Source: https://pumpfundata.com/docs Download a parquet file for a specific exchange, date, and hour. Each file costs 1 credit. ```APIDOC ## GET /download ### Description Download a parquet file for a specific exchange, date, and hour. Each file costs 1 credit. ### Method GET ### Endpoint https://api.pumpfundata.com/download ### Parameters #### Query Parameters - **exchange** (string) - Required - Exchange name. Must be `pump_fun` or `pump_amm`. - **date** (string) - Required - Date in YYYY-MM-DD format. - **hour** (string) - Required - Hour in HH format (00-23). ### Request Example ``` GET https://api.pumpfundata.com/download?exchange=pump_fun&date=2026-08-16&hour=12 X-API-Key: pfd_your_key_here ``` ### Response #### Success Response (200) Returns the parquet file content as binary data. #### Response Example Binary parquet file content. ``` -------------------------------- ### Download pump_fun data with Python requests Source: https://pumpfundata.com/docs Python example using the requests library to check the available date range, download a single hour of pump_fun data, and batch download all 24 hours for a given date. Each download costs 1 credit. The script writes parquet files locally and prints a message for each successfully downloaded hour. ```python import requests API_KEY = "pfd_your_key_here" BASE = "https://api.pumpfundata.com" # Check available date range and file count range_resp = requests.get(f"{BASE}/range", params={"exchange": "pump_fun"}, headers={"X-API-Key": API_KEY}) print(range_resp.json()) # {"exchange": "pump_fun", "start": "...", "end": "...", "files": ...} # Download a single hour resp = requests.get(f"{BASE}/download", params={ "exchange": "pump_fun", "date": "2026-08-16", "hour": "12" }, headers={"X-API-Key": API_KEY}) with open("pump_fun_2026-08-16_12.parquet", "wb") as f: f.write(resp.content) # Batch download: loop over hours for hour in range(24): resp = requests.get(f"{BASE}/download", params={ "exchange": "pump_fun", "date": "2026-08-16", "hour": str(hour) }, headers={"X-API-Key": API_KEY}) if resp.status_code == 200: with open(f"pump_fun_2026-08-16_{hour:02d}.parquet", "wb") as f: f.write(resp.content) print(f"Downloaded hour {hour}") ``` -------------------------------- ### GET /range Source: https://pumpfundata.com/docs Check the available date range and file count for a given exchange. The exchange must be `pump_fun` or `pump_amm`. ```APIDOC ## GET /range ### Description Check the available date range and file count for a given exchange. The exchange must be `pump_fun` or `pump_amm`. ### Method GET ### Endpoint https://api.pumpfundata.com/range ### Parameters #### Query Parameters - **exchange** (string) - Required - Exchange name. Must be `pump_fun` or `pump_amm`. ### Request Example ``` GET https://api.pumpfundata.com/range?exchange=pump_fun X-API-Key: pfd_your_key_here ``` ### Response #### Success Response (200) - **exchange** (string) - Exchange name - **start** (string) - Start date (YYYY-MM-DD) - **end** (string) - End date (YYYY-MM-DD) - **files** (integer) - Number of available files #### Response Example ```json { "exchange": "pump_fun", "start": "2026-02-08", "end": "2026-05-09", "files": 2158 } ``` ``` -------------------------------- ### Check available dates with /range?exchange=pump_fun Source: https://pumpfundata.com/docs Query the /range endpoint with the pump_fun exchange to see the available date range and file count. The response shows the exchange, start and end dates, and the number of files. Requires an API key in the X-API-Key header. ```http GET https://api.pumpfundata.com/range?exchange=pump_fun X-API-Key: pfd_your_key_here { "exchange": "pump_fun", "start": "2026-02-08", "end": "2026-05-09", "files": 2158 } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.