{
  "openapi": "3.0.1",
  "info": {
    "title": "DEX Scraper - On-Chain Pairs, Prices, New Tokens & Alerts",
    "description": "Scrape live DEX & on-chain token data across 190+ chains via DexScreener & GeckoTerminal: pairs, prices, liquidity, FDV/market cap, volume & buys/sells, trending & brand-new pools, OHLCV candles, token holders, gt_score & socials. New-launch monitoring. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "irQCE1uhlceae09cZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~dex-token-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-dex-token-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~dex-token-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-dex-token-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~dex-token-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-dex-token-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "trendingPools",
              "newPools",
              "topPools",
              "search",
              "pairDetail",
              "tokenPairs",
              "tokenInfo",
              "ohlcv",
              "tokenProfiles"
            ],
            "type": "string",
            "description": "<b>Trending pools</b> = hottest DEX pools right now (per chain or all chains). <b>New pools</b> = brand-new token launches — the early-detection / sniper feed. <b>Top pools</b> = highest-volume pools on a chain (optionally one DEX). <b>Search</b> = find pairs by token name/symbol/address across all chains (DexScreener). <b>Pair detail</b> = full data for specific pair/pool addresses. <b>Token pairs</b> = every pool for a token. <b>Token info</b> = full token profile incl. holders, gt_score & socials. <b>OHLCV</b> = candlestick history. <b>Token profiles</b> = newly listed projects with website + socials (lead/research feed).",
            "default": "trendingPools"
          },
          "network": {
            "title": "Network / chain",
            "type": "string",
            "description": "Blockchain for the GeckoTerminal modes (Trending / New / Top pools, Token info, OHLCV) and the chain for DexScreener address lookups. Common: <code>solana</code>, <code>eth</code>, <code>bsc</code>, <code>base</code>, <code>arbitrum</code>, <code>polygon_pos</code>, <code>avax</code>, <code>optimism</code>. Use <code>all</code> in Trending / New pools to scan every chain at once. Aliases like <code>ethereum</code>, <code>polygon</code>, <code>bnb</code> are normalized automatically.",
            "default": "solana"
          },
          "searchQueries": {
            "title": "Search queries (Search mode)",
            "type": "array",
            "description": "Token names, symbols or contract addresses to search across all chains, e.g. <code>PEPE</code>, <code>WIF</code>, <code>bonk</code> or a token address. Each returns the matching DEX pairs.",
            "items": {
              "type": "string"
            }
          },
          "tokenAddresses": {
            "title": "Token addresses (Token pairs / Token info modes)",
            "type": "array",
            "description": "Token contract addresses (mints). Used with <b>network</b> to fetch every pool of the token (Token pairs) or its full profile incl. holders & socials (Token info).",
            "items": {
              "type": "string"
            }
          },
          "pairAddresses": {
            "title": "Pair / pool addresses (Pair detail mode)",
            "type": "array",
            "description": "DEX pair (pool) addresses to fetch full data for, interpreted on <b>network</b>. You can also paste DexScreener URLs in Start URLs instead.",
            "items": {
              "type": "string"
            }
          },
          "poolAddresses": {
            "title": "Pool addresses (OHLCV mode)",
            "type": "array",
            "description": "Pool addresses to fetch candlestick (OHLCV) history for, on <b>network</b>. You can also paste GeckoTerminal pool URLs in Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste DexScreener pair URLs (<code>dexscreener.com/&lt;chain&gt;/&lt;pair&gt;</code>) or GeckoTerminal pool / token URLs (<code>geckoterminal.com/&lt;network&gt;/pools/&lt;addr&gt;</code> · <code>/tokens/&lt;addr&gt;</code>). Routed automatically to the matching mode.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "dex": {
            "title": "DEX filter (Top pools mode)",
            "type": "string",
            "description": "Optional GeckoTerminal DEX id to restrict Top pools to one exchange, e.g. <code>raydium</code>, <code>uniswap_v3</code>, <code>pancakeswap_v3</code>, <code>aerodrome</code>. Leave blank for all DEXes on the chain."
          },
          "trendingDuration": {
            "title": "Trending window (Trending pools mode)",
            "enum": [
              "5m",
              "1h",
              "6h",
              "24h"
            ],
            "type": "string",
            "description": "Time window used to rank trending pools.",
            "default": "24h"
          },
          "poolsSort": {
            "title": "Sort (Top pools mode)",
            "enum": [
              "h24_volume_usd_desc",
              "h24_tx_count_desc",
              "pool_created_at_desc"
            ],
            "type": "string",
            "description": "How to order pools in Top pools mode.",
            "default": "h24_volume_usd_desc"
          },
          "timeframe": {
            "title": "Candle timeframe (OHLCV mode)",
            "enum": [
              "minute",
              "hour",
              "day"
            ],
            "type": "string",
            "description": "Candle resolution for OHLCV history.",
            "default": "hour"
          },
          "aggregate": {
            "title": "Candle aggregation (OHLCV mode)",
            "minimum": 1,
            "type": "integer",
            "description": "Aggregate candles, e.g. timeframe=minute + aggregate=15 → 15-minute candles; timeframe=hour + aggregate=4 → 4-hour candles. Supported: minute 1/5/15, hour 1/4/12, day 1.",
            "default": 1
          },
          "ohlcvLimit": {
            "title": "Candles per pool (OHLCV mode)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many candles to return per pool (max 1000).",
            "default": 100
          },
          "includeTokenInfo": {
            "title": "Fetch full token info (holders, gt_score, socials)",
            "type": "boolean",
            "description": "In Token info mode, also fetch the token's metadata profile: description, website, Twitter/X, Telegram, Discord, GT trust score & breakdown, holder count and holder distribution. Adds one API call per token.",
            "default": true
          },
          "includeBoosts": {
            "title": "Include boosted tokens (Token profiles mode)",
            "type": "boolean",
            "description": "In Token profiles mode, also pull DexScreener's boosted (paid-promotion) tokens and attach boost amounts — a strong signal of active marketing spend.",
            "default": true
          },
          "minLiquidityUsd": {
            "title": "Min liquidity (USD)",
            "type": "integer",
            "description": "Only keep pools/pairs with at least this much liquidity (reserve) in USD. Great for filtering out dust/scam pools in New/Trending/Top/Search modes."
          },
          "minVolume24hUsd": {
            "title": "Min 24h volume (USD)",
            "type": "integer",
            "description": "Only keep pools/pairs with at least this much 24h trading volume in USD."
          },
          "minTxns24h": {
            "title": "Min 24h transactions",
            "type": "integer",
            "description": "Only keep pools/pairs with at least this many buys+sells in the last 24h."
          },
          "maxPoolAgeHours": {
            "title": "Max pool age (hours)",
            "type": "integer",
            "description": "Only keep pools/pairs created within this many hours — e.g. 24 for tokens launched in the last day."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to scrape in this run.",
            "default": 100
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Skip records already emitted in this run (recommended).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new records",
            "type": "boolean",
            "description": "Remember ids across runs in a named key-value store and emit ONLY records not seen before — e.g. brand-new pools/pairs, newly listed tokens or new token profiles. Perfect for new-launch alerts and sniper feeds. Works with Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved watch so different monitors don't share state.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Maximum parallel requests. The DEX APIs rate-limit per IP — the actor rotates a fresh proxy IP per request, so 4–8 is safe.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The default Apify Proxy rotates IPs so the free per-IP rate limits of the DEX APIs are spread across many addresses.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}