{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Data API — DexScreener & DefiLlama, No Key | $0.99/1k",
    "description": "Crypto DEX and DeFi data without an API key: trading pairs with price, liquidity, FDV, volume, buys and sells and pair age from DexScreener; DeFi protocol and chain TVL with 1h/1d/7d change from DefiLlama. One row per pair, protocol or chain. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "sVcInHkraoPqMsQoI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/glasswing~coingecko-dexscreener-crypto-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-glasswing-coingecko-dexscreener-crypto-api",
        "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/glasswing~coingecko-dexscreener-crypto-api/runs": {
      "post": {
        "operationId": "runs-sync-glasswing-coingecko-dexscreener-crypto-api",
        "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/glasswing~coingecko-dexscreener-crypto-api/run-sync": {
      "post": {
        "operationId": "run-sync-glasswing-coingecko-dexscreener-crypto-api",
        "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": {
          "dataset": {
            "title": "Dataset",
            "enum": [
              "dexPairs",
              "defiProtocols",
              "defiChains"
            ],
            "type": "string",
            "description": "`dexPairs` = decentralised-exchange trading pairs from DexScreener (price, liquidity, FDV, volume, buys and sells, pair age); name the tokens in `dexQueries`. `defiProtocols` = DeFi protocols ranked by total value locked (TVL) from DefiLlama; narrow with the DeFi filters. `defiChains` = blockchains ranked by TVL from DefiLlama. Example: `defiProtocols` with category `Lending` lists the biggest lending protocols.",
            "default": "dexPairs"
          },
          "dexQueries": {
            "title": "Tokens to look up (dexPairs dataset)",
            "uniqueItems": true,
            "type": "array",
            "description": "Token contract addresses, names or symbols, one per line: `So11111111111111111111111111111111111111112` (SOL on Solana), `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2` (WETH on Ethereum), `PEPE`, `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263` (BONK). An address is exact; a symbol such as `SOL` also matches fake look-alike tokens, so prefer the address. A query with no pair gives one free `not_found` row.",
            "default": [
              "So11111111111111111111111111111111111111112"
            ],
            "items": {
              "type": "string"
            }
          },
          "dexChain": {
            "title": "Chain filter (dexPairs dataset)",
            "type": "string",
            "description": "Keep only pairs on this chain, as DexScreener names it: `ethereum`, `solana`, `bsc`, `base`, `arbitrum`, `polygon`. Example: `base` with the address `0x4200000000000000000000000000000000000006` (WETH on Base) lists its Base pools only; a name search returns at most 30 matches across all chains, so a filter on a name can leave nothing. Leave empty for all chains."
          },
          "dexMinLiquidityUsd": {
            "title": "Minimum liquidity in USD (dexPairs dataset)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop pairs whose pooled liquidity is below this many US dollars, e.g. `10000` to skip dust pools. Leave empty for no minimum."
          },
          "dexPairsPerQuery": {
            "title": "Pairs per token (dexPairs dataset)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many pairs to keep for each query, largest liquidity first, e.g. `10`. DexScreener answers at most 30.",
            "default": 10
          },
          "defiCategory": {
            "title": "Category filter (defiProtocols dataset)",
            "type": "string",
            "description": "Keep only protocols of this DefiLlama category: `Dexes`, `Lending`, `Liquid Staking`, `Bridge`, `CEX`, `Yield`, `Derivatives`, `RWA`, ... Example: `Lending`. Leave empty for all."
          },
          "defiChain": {
            "title": "Chain filter (defiProtocols and defiChains datasets)",
            "type": "string",
            "description": "Protocols: keep only those deployed on this chain (`Ethereum`, `Solana`, `Base`, `Arbitrum`, `BSC`). Chains: return just this chain. Example: `Ethereum`."
          },
          "defiSearch": {
            "title": "Name contains (defiProtocols and defiChains datasets)",
            "type": "string",
            "description": "Keep only protocols or chains whose name, symbol or slug contains this text, e.g. `aave`, `uniswap`, `lido`."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows have been saved. Each saved row with status `ok` is one billable result. DEX pairs are also capped per token by `Pairs per token`. The default of 20 keeps a first run cheap.",
            "default": 20
          },
          "startUrls": {
            "title": "Start URLs (advanced)",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional. API URLs of api.dexscreener.com (/latest/dex/search, /tokens, /pairs) or api.llama.fi (/protocols, /v2/chains) are fetched as they are; a dexscreener.com pair page or a defillama.com protocol page is turned into the matching API call. When this list holds anything but its built-in example, it replaces the dataset inputs above.",
            "default": [
              "https://api.dexscreener.com/latest/dex/tokens/So11111111111111111111111111111111111111112"
            ],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional and off by default. Both APIs answer plain HTTP requests from Apify's datacenter IPs. If you see HTTP 429 in `error` rows, the source is throttling the shared address: enable the Apify datacenter proxy group so each run gets its own. Residential proxies are not needed.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}