{
  "openapi": "3.0.1",
  "info": {
    "title": "DEX Screener Scraper & New Token Pair Monitor",
    "description": "Scrape DEX Screener pairs by keyword, token or pair address, latest token profiles and boosted tokens: price, liquidity, FDV, market cap, volume, txns, age, socials. Monitor new listings and price moves across Solana, Ethereum, BSC, Base and more.",
    "version": "1.0",
    "x-build-id": "U6TFAUcNMdbl4ewGi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mersetti~dexscreener-token-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mersetti-dexscreener-token-monitor",
        "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/mersetti~dexscreener-token-monitor/runs": {
      "post": {
        "operationId": "runs-sync-mersetti-dexscreener-token-monitor",
        "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/mersetti~dexscreener-token-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-mersetti-dexscreener-token-monitor",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "tokens",
              "latestProfiles",
              "boosted",
              "pairs"
            ],
            "type": "string",
            "description": "What to fetch. \"search\": pairs matching search queries (symbol, name, address, \"PEPE/WETH\"). \"tokens\": pairs of the given token addresses. \"latestProfiles\": newest token profiles on DEX Screener with their pairs. \"boosted\": latest or top boosted tokens with their pairs. \"pairs\": specific pair (pool) addresses.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Mode \"search\": token symbols, names, addresses or pairs like \"SOL/USDC\". DEX Screener returns up to 30 pairs per query.",
            "items": {
              "type": "string"
            }
          },
          "chainId": {
            "title": "Default chain ID",
            "type": "string",
            "description": "Modes \"tokens\" and \"pairs\": chain of the addresses, e.g. solana, ethereum, bsc, base, arbitrum, polygon, sui, ton. Individual addresses can override it with \"chainId/address\" or a dexscreener.com URL.",
            "default": "solana"
          },
          "tokenAddresses": {
            "title": "Token addresses",
            "type": "array",
            "description": "Mode \"tokens\": token contract / mint addresses. Use \"address\" (default chain) or \"chainId/address\", e.g. \"ethereum/0x6982508145454Ce325dDbE47a25d4ec3d2311933\".",
            "items": {
              "type": "string"
            }
          },
          "pairAddresses": {
            "title": "Pair addresses or URLs",
            "type": "array",
            "description": "Mode \"pairs\": pair (pool) addresses, \"chainId/pairAddress\" or dexscreener.com pair URLs like https://dexscreener.com/solana/C1MgLojNLWBKADvu9BHdtgzz1oZX4dZ5zGdGcgvvW8Wz.",
            "items": {
              "type": "string"
            }
          },
          "boostType": {
            "title": "Boosted list",
            "enum": [
              "top",
              "latest"
            ],
            "type": "string",
            "description": "Mode \"boosted\": \"top\" = tokens with the most active boosts, \"latest\" = most recently boosted tokens.",
            "default": "top"
          },
          "maxPairsPerToken": {
            "title": "Max pairs per token",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Modes \"tokens\", \"latestProfiles\" and \"boosted\": how many pairs to output per token, most liquid first. 1 = main pair only (fastest). Up to 30.",
            "default": 1
          },
          "chains": {
            "title": "Only these chains",
            "type": "array",
            "description": "Keep only pairs on these chains, e.g. solana, ethereum, bsc, base. Empty = all chains.",
            "items": {
              "type": "string"
            }
          },
          "minLiquidityUsd": {
            "title": "Min liquidity (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only pairs with at least this pool liquidity in USD. Pairs without liquidity data are dropped when set."
          },
          "minVolume24h": {
            "title": "Min 24h volume (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only pairs with at least this 24-hour trading volume in USD."
          },
          "maxAgeHours": {
            "title": "Max pair age (hours)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only pairs created within this many hours (new listings)."
          },
          "minPriceChange24h": {
            "title": "Min 24h price change (%)",
            "type": "integer",
            "description": "Keep only pairs whose 24h price change is at least this percentage (e.g. 50 for pumps, -100 for any)."
          },
          "maxPriceChange24h": {
            "title": "Max 24h price change (%)",
            "type": "integer",
            "description": "Keep only pairs whose 24h price change is at most this percentage (e.g. -30 for dumps)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of pairs output (and charged) in one run.",
            "default": 1000
          },
          "monitorMode": {
            "title": "Monitor mode",
            "enum": [
              "off",
              "newPairs",
              "priceAlerts",
              "newAndPriceAlerts"
            ],
            "type": "string",
            "description": "\"off\": output every matching pair. \"newPairs\": output only pairs not seen in previous runs (new listings). \"priceAlerts\": output only pairs whose USD price moved by at least the threshold since the previous run. \"newAndPriceAlerts\": both. Schedule the Actor to get an alert feed; you pay only for alerts.",
            "default": "off"
          },
          "priceChangeThreshold": {
            "title": "Price alert threshold (%)",
            "minimum": 1,
            "type": "integer",
            "description": "Price alerts: minimum absolute USD price change since the previous run, in percent.",
            "default": 10
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the saved state. Use different IDs for different watchlists.",
            "default": "default"
          },
          "baselineOnFirstRun": {
            "title": "Silent first run",
            "type": "boolean",
            "description": "The first run of a monitor only saves the current pairs (no output, no cost), so later runs report real new listings and price moves.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}