How to Fetch the Latest Tokens Created on Solana Using Solscan Pro API

Solscan Pro API service allows you to retrieve a list of the most recently created tokens on the Solana blockchain. By using the Token Latest endpoint, you can fetch token details sorted by creation time, optionally filter by the platform where the token was created (e.g., Raydium or Pump.fun), and paginate results for better control. This guide outlines the step-by-step process and includes a practical example to help you get started.

The Process

To fetch the latest tokens created on Solana using the Solscan Pro API, follow these steps:

  1. Access the Token Latest Endpoint

    Use the endpoint: GET <https://pro-api.solscan.io/v2.0/token/latest>. This retrieves a list of recently created tokens, sorted by creation time in descending order.

  2. Optional: Filter by Platform

    Include the platform_id parameter to filter tokens created on a specific platform. This is a string value from the following enum: jupiter, lifinity, meteora, orca, raydium, phoenix, sanctum, kamino, pumpfun, openbook, apepro, stabble, jupiterdca, jupiter_limit_order, solfi, zerofi, letsbonkfun_launchpad, raydium_launchlab, believe_launchpad, moonshot_launchpad, jup_studio_launchpad, bags_launchpad. For example, use platform_id=raydium to get tokens created on Raydium.

  3. Handle Pagination

    Use the page parameter (a number, starting from 1) to specify the page number and page_size (enum values: 10, 20, 30, 40, 60, or 100) to set the number of items per page. This helps manage large result sets efficiently.

  4. Authenticate the Request

    Include your Solscan Pro API key in the header: -H 'token: <YOUR_API_KEY>'. Authentication is required for all requests.

  5. Review the Response Data

    The API returns a paginated list of tokens, including details such as:

    • Token address: The mint address of the token.
    • Name and symbol: Token metadata.
    • Creation timestamp: When the token was minted.
    • Platform: The platform where the token was created (if filtered).
    • Other metadata: Such as decimals, total supply, and any associated liquidity pools.
      Check for pagination info (e.g., next_page) to fetch additional results if needed.

Example

Suppose you want to fetch the 10 most recently created tokens on the Pump.fun platform.

Sample Request (using cURL):

curl -X GET "<https://pro-api.solscan.io/v2.0/token/latest?platform_id=pumpfun&page=1&page_size=10>" \\
-H "accept: application/json" \\
-H "token: <YOUR_API_KEY>"
  • Parameters Explained:
    • platform_id=pumpfun: Filters for tokens created on Pump.fun.
    • page=1: Starts from the first page.
    • page_size=10: Returns 10 tokens per page.
    • <YOUR_API_KEY>: Your Solscan Pro API key.

Sample Response (simplified JSON):

{
  "data": [
    {
      "token_address": "PumpToken123456789AbCdEfGhIjKlMnOpQrStUvWxYz",
      "name": "Example Token",
      "symbol": "EXT",
      "decimals": 9,
      "total_supply": 1000000000,
      "creation_time": 1724947200,
      "platform": "pumpfun",
      "liquidity_pool": "PoolAddressExample"
    },
    {
      "token_address": "AnotherPumpTokenAbCdEfGhIjKlMnOpQrStUvWxYz123",
      "name": "Test Memecoin",
      "symbol": "TMC",
      "decimals": 6,
      "total_supply": 500000000,
      "creation_time": 1724947100,
      "platform": "pumpfun",
      "liquidity_pool": "AnotherPoolAddress"
    }
    // Additional tokens...
  ],
  "next_page": 2,
  "total_items": 50
}

This response shows the latest 10 tokens on Pump.fun, including key metadata for each.

Ending

For more details, including full response schemas and additional endpoints, visit https://pro-api.solscan.io/pro-api-docs/v2.0 to explore the Solscan Pro API documentation and choose the API plan that suits your needs.

Start analyzing Solana's token ecosystem today!

Sinh Nguyen
Sinh Nguyen
Last updated: