{
  "openapi": "3.0.1",
  "info": {
    "title": "DEX Screener Scraper - Trending Tokens, New Pairs & Holders",
    "description": "Scrape DEX Screener: trending, gainers and new pairs with every site filter, search, token and pair lookups, boosted, profile, takeover and ad feeds, narratives. Price, volume, liquidity, makers, buyers; holders, audit and candles add-ons. Monitor mode. $0.27 per 1,000 pairs.",
    "version": "0.1",
    "x-build-id": "hcJitK3zqfzzNWzcx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~dexscreener-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-dexscreener-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/topapi~dexscreener-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-dexscreener-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/topapi~dexscreener-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-dexscreener-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": {
          "chains": {
            "title": "Chains",
            "type": "array",
            "description": "Chain ids, e.g. solana, ethereum, bsc, base, arbitrum, polygon, sui, ton, hyperliquid. For the ranking: the chains it covers (empty = every chain). For search, tokens and feeds: rows from other chains are dropped before any charge. One chain also completes addresses given without a chain.",
            "items": {
              "type": "string"
            }
          },
          "sortRank": {
            "title": "Rank by",
            "enum": [
              "trendingScoreM5",
              "trendingScoreH1",
              "trendingScoreH6",
              "trendingScoreH24",
              "txns",
              "buys",
              "sells",
              "volume",
              "priceChangeH24",
              "priceChangeH6",
              "priceChangeH1",
              "priceChangeM5",
              "liquidity",
              "marketCap",
              "fdv",
              "pairAge",
              "activeBoosts"
            ],
            "type": "string",
            "description": "The sort of the ranking."
          },
          "sortOrder": {
            "title": "Order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "desc = highest first. With 'Pair age', asc = newest pairs first (DEX Screener's New Pairs page)."
          },
          "timeFrame": {
            "title": "Time frame",
            "enum": [
              "m5",
              "h1",
              "h6",
              "h24"
            ],
            "type": "string",
            "description": "The window of the ranking page (as the 5M / 1H / 6H / 24H switch on dexscreener.com)."
          },
          "dexIds": {
            "title": "DEXes",
            "type": "array",
            "description": "Only pairs on these DEXes (DEX Screener ids, e.g. raydium, pumpswap, meteora, orca, uniswap, pancakeswap, aerodrome). Applied by DEX Screener in the ranking query.",
            "items": {
              "type": "string"
            }
          },
          "minLiq": {
            "title": "Min liquidity ($)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query; also a filter on search / token / feed rows."
          },
          "maxLiq": {
            "title": "Max liquidity ($)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query."
          },
          "minMarketCap": {
            "title": "Min market cap ($)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query."
          },
          "maxMarketCap": {
            "title": "Max market cap ($)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query."
          },
          "minFdv": {
            "title": "Min FDV ($)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query."
          },
          "maxFdv": {
            "title": "Max FDV ($)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query."
          },
          "minAge": {
            "title": "Min pair age (hours)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query."
          },
          "maxAge": {
            "title": "Max pair age (hours)",
            "type": "integer",
            "description": "Applied by DEX Screener in the ranking query, e.g. 24 = pairs created in the last day."
          },
          "min24HTxns": {
            "title": "Min 24 h transactions",
            "type": "integer",
            "description": "Applied by DEX Screener. The same filters exist for 6H, 1H and 5M and for Buys / Sells / Vol / Chg (e.g. min6HBuys, max1HVol, min5MChg): set them in JSON input."
          },
          "min24HBuys": {
            "title": "Min 24 h buys",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "min24HSells": {
            "title": "Min 24 h sells",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "min24HVol": {
            "title": "Min 24 h volume ($)",
            "type": "integer",
            "description": "Applied by DEX Screener (also a filter on search / token / feed rows)."
          },
          "max24HVol": {
            "title": "Max 24 h volume ($)",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "min24HChg": {
            "title": "Min 24 h price change (%)",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "max24HChg": {
            "title": "Max 24 h price change (%)",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "min1HVol": {
            "title": "Min 1 h volume ($)",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "min5MChg": {
            "title": "Min 5 min price change (%)",
            "type": "integer",
            "description": "Applied by DEX Screener."
          },
          "profile": {
            "title": "Only pairs with a token profile",
            "type": "boolean",
            "description": "Pairs whose token has a DEX Screener profile (image, description, links)."
          },
          "boosted": {
            "title": "Only boosted pairs",
            "type": "boolean",
            "description": "Pairs whose token has active boosts."
          },
          "ads": {
            "title": "Only tokens with a recent DEX Screener ad",
            "type": "boolean",
            "description": "Tokens in DEX Screener's latest ads list."
          },
          "pageCount": {
            "title": "Pages",
            "minimum": 1,
            "type": "integer",
            "description": "Ranking pages to read (100 pairs a page). Empty = as many as 'Max pairs' needs."
          },
          "fromPage": {
            "title": "Start from page",
            "minimum": 1,
            "type": "integer",
            "description": "First ranking page (1 = the top 100)."
          },
          "startUrls": {
            "title": "DEX Screener links",
            "type": "array",
            "description": "Ranking links copied from dexscreener.com with their filters (e.g. https://dexscreener.com/solana?rankBy=trendingScoreH6&order=desc&minLiq=10000 or https://dexscreener.com/new-pairs/base), each read as its own ranking; or pair / token links (https://dexscreener.com/solana/<pair address>).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search",
            "type": "array",
            "description": "Token names, symbols, pairs or addresses (PEPE, SOL/USDC, 0x...). DEX Screener's search returns up to 30 pairs each.",
            "items": {
              "type": "string"
            }
          },
          "tokenAddresses": {
            "title": "Token addresses",
            "type": "array",
            "description": "Token contract addresses as chain:address (solana:So111...) or a bare address (any chain). One row per token (its most liquid pair), or every pool with 'All pools'.",
            "items": {
              "type": "string"
            }
          },
          "pairAddresses": {
            "title": "Pair addresses",
            "type": "array",
            "description": "Pair (pool) addresses as chain:address, or DEX Screener pair links. 30 pairs a request.",
            "items": {
              "type": "string"
            }
          },
          "allPools": {
            "title": "All pools",
            "type": "boolean",
            "description": "For tokens and for every pair a ranking / search / feed delivers: also every other pool of the same token (one row each)."
          },
          "bestPairPerToken": {
            "title": "One pair per token (search)",
            "type": "boolean",
            "description": "Search results: keep only the most liquid pair of each token."
          },
          "feeds": {
            "title": "Feeds",
            "type": "array",
            "description": "DEX Screener's discovery lists, each token delivered as its most liquid pair with the list's own fields (boost amount, description, links, takeover date, ad date and impressions).",
            "items": {
              "type": "string",
              "enum": [
                "topBoosts",
                "latestBoosts",
                "latestProfiles",
                "profileUpdates",
                "communityTakeovers",
                "latestAds",
                "trendingMetas"
              ],
              "enumTitles": [
                "Top boosted tokens",
                "Latest boosted tokens",
                "Latest token profiles",
                "Recently updated profiles",
                "Community takeovers",
                "Latest ads",
                "Trending narratives (metas)"
              ]
            }
          },
          "metaSlugs": {
            "title": "Narratives",
            "type": "array",
            "description": "DEX Screener narrative (meta) slugs, e.g. dog, cat, ai, frog: every pair of that narrative.",
            "items": {
              "type": "string"
            }
          },
          "maxMetas": {
            "title": "Trending narratives to read",
            "minimum": 1,
            "type": "integer",
            "description": "With the 'Trending narratives' feed: how many narratives (default 10)."
          },
          "includeScreener": {
            "title": "Also run the ranking",
            "type": "boolean",
            "description": "Run the ranking above together with search / addresses / feeds."
          },
          "includeDetails": {
            "title": "Pair details (add-on)",
            "type": "boolean",
            "description": "Holders (count, top 40 with %), LP holders, liquidity locks, mintable / freezable audit, supply, CoinGecko and CoinMarketCap data, token profile. Charged per row that carries them."
          },
          "includeCandles": {
            "title": "Candles (add-on)",
            "type": "boolean",
            "description": "OHLC candles (native and USD) with USD volume for each pair. Charged per candle delivered."
          },
          "candleResolution": {
            "title": "Candle size",
            "enum": [
              "1",
              "5",
              "15",
              "60",
              "240",
              "720",
              "1D"
            ],
            "type": "string",
            "description": "Minutes per candle."
          },
          "candleCount": {
            "title": "Candles per pair",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest candles per pair (1-1000, default 24)."
          },
          "maxItems": {
            "title": "Max pairs",
            "minimum": 0,
            "type": "integer",
            "description": "Most pairs this run delivers (0 = no limit).",
            "default": 100
          },
          "maxItemsPerSource": {
            "title": "Max pairs per source",
            "minimum": 1,
            "type": "integer",
            "description": "Most pairs from each ranking, search, feed or narrative."
          },
          "minLiquidityUsd": {
            "title": "Min liquidity ($), all sources",
            "type": "integer",
            "description": "Rows under it are dropped before any charge."
          },
          "minVolume24hUsd": {
            "title": "Min 24 h volume ($), all sources",
            "type": "integer",
            "description": "Rows under it are dropped before any charge."
          },
          "quoteSymbols": {
            "title": "Quote tokens",
            "type": "array",
            "description": "Keep only pairs quoted in these (e.g. SOL, USDC, WETH).",
            "items": {
              "type": "string"
            }
          },
          "withSocialsOnly": {
            "title": "Only tokens with a website or social link",
            "type": "boolean",
            "description": "Drop pairs whose token lists no website or social link."
          },
          "monitorMode": {
            "title": "Monitor: only new pairs",
            "type": "boolean",
            "description": "Deliver only pairs this input has not delivered before (new entries in a ranking or feed, new pools of a token). Run it on a schedule; an empty poll charges nothing."
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate memories for separate watch lists that use the same input."
          },
          "resetMonitor": {
            "title": "Reset monitor",
            "type": "boolean",
            "description": "Forget what earlier runs delivered."
          },
          "notifyWebhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "One POST (JSON with a text line and the first 25 rows) when a run delivers pairs - Slack, Discord or your own endpoint."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: DEX Screener answers Apify's direct egress. A proxy is only a fallback rung when a request is refused."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}