{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Data API — CoinGecko, DexScreener, DefiLlama | $0.99/1k",
    "description": "Crypto market data without an API key: coin prices, market caps, volume, 1h/24h/7d change, ATH/ATL and supply from CoinGecko; DEX pairs with liquidity, FDV, volume and transactions from DexScreener; DeFi protocol and chain TVL from DefiLlama. One row per coin, pair or protocol. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "2WnVczNZ9Ms4wma3d"
  },
  "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": [
              "coins",
              "dexPairs",
              "defiProtocols",
              "defiChains"
            ],
            "type": "string",
            "description": "`coins` = coin market data from CoinGecko (price, market cap, rank, volume, 1h/24h/7d change, ATH/ATL, supply). `dexPairs` = decentralised-exchange trading pairs from DexScreener (price, liquidity, FDV, volume, transactions, pair age). `defiProtocols` = DeFi protocols with their TVL from DefiLlama. `defiChains` = blockchains with their TVL from DefiLlama.",
            "default": "coins"
          },
          "coinIds": {
            "title": "Coin ids (coins dataset)",
            "uniqueItems": true,
            "type": "array",
            "description": "CoinGecko coin ids, one per line: `bitcoin`, `ethereum`, `solana`, `usd-coin`. The id is the last part of the coin's coingecko.com URL. An id CoinGecko does not know gives one free `not_found` row.",
            "items": {
              "type": "string"
            }
          },
          "coinSymbols": {
            "title": "Coin symbols (coins dataset)",
            "uniqueItems": true,
            "type": "array",
            "description": "Ticker symbols, one per line: `btc`, `eth`, `sol`. When a symbol is shared by several coins CoinGecko returns the best-known one. Use ids when you need an exact coin.",
            "items": {
              "type": "string"
            }
          },
          "vsCurrency": {
            "title": "Quote currency (coins dataset)",
            "type": "string",
            "description": "Currency for price, market cap and volume of the coins dataset: `usd`, `eur`, `gbp`, `jpy`, `btc`, `eth` and the other codes CoinGecko supports. DexScreener and DefiLlama figures are always in USD.",
            "default": "usd"
          },
          "coinOrder": {
            "title": "Sort order (coins dataset, top-coins list only)",
            "enum": [
              "market_cap_desc",
              "market_cap_asc",
              "volume_desc",
              "volume_asc",
              "id_asc",
              "id_desc"
            ],
            "type": "string",
            "description": "How the top-coins list is ordered before `Maximum results` cuts it.",
            "default": "market_cap_desc"
          },
          "dexQueries": {
            "title": "Tokens to look up (dexPairs dataset)",
            "uniqueItems": true,
            "type": "array",
            "description": "Token names, symbols or contract addresses, one per line: `PEPE`, `WETH USDC`, `0x6982508145454Ce325dDbE47a25d4ec3d2311933`, `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263`. A query with no pair gives one free `not_found` row.",
            "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`. 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`, ... 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."
          },
          "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. For the top-coins list this is also how many coins are fetched (250 per request). 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.coingecko.com (/api/v3/coins/markets), api.dexscreener.com (/latest/dex/search, /tokens, /pairs) or api.llama.fi (/protocols, /v2/chains) are fetched as they are; a coingecko.com coin page, 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.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=250&page=1&sparkline=false&price_change_percentage=1h%2C24h%2C7d"
            ],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional and off by default. The three APIs answer plain HTTP requests from Apify's datacenter IPs. CoinGecko's free tier limits requests per IP; if you see HTTP 429 in `error` rows, enable the Apify datacenter proxy group so each run gets its own address. 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}