API ReferenceToken APIGet Pump Fun TokensGet New Tokens by ExchangeGet New Tokens by Exchange Mainnet OnlyGEThttps://solana-gateway.moralis.io/token/:network/exchange/:exchange/newGet the list of new tokens by given exchange.PATH PARAMSnetworkstringrequiredThe network to queryexchangestringrequiredQUERY PARAMScursorstringThe cursor to the next pagelimitnumberThe limit per pageResponses200400Bad Request404Not Found429Too Many Requests500Internal Server ErrorAPI KEYTest Live APIcURLNode.jsPythonGoPHPcurl --request GET \ --url 'https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/new?limit=10' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' // Node.js v18+ has native fetch support// No additional dependencies requiredconst options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/new?limit=10', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/new?limit=10"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)package mainimport ( "fmt" "net/http" "io")func main() { url := "https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/new?limit=10" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/new?limit=10', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 { "cursor": "", "pageSize": "", "page": "", "result": { "tokenAddress": "", "name": "", "symbol": "", "logo": "", "decimals": "", "priceNative": "", "priceUsd": "", "liquidity": "", "fullyDilutedValuation": "", "createdAt": "2024-11-28T09:44:55.000Z" }}