{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinGecko Scraper — Markets, Trending & Exchanges",
    "description": "Scrape CoinGecko by market cap, coin ID, or category. Extract price, volume, market cap, ATH, supply, and more for thousands of coins. No API key, no login.",
    "version": "1.0",
    "x-build-id": "MGAoksJgK6IJTQkZR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~coingecko-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-coingecko-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/logiover~coingecko-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-coingecko-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/logiover~coingecko-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-coingecko-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": "Mode",
            "enum": [
              "markets",
              "coinDetail",
              "trending",
              "exchanges",
              "categories"
            ],
            "type": "string",
            "description": "What to scrape. Leave as default (Markets) to instantly get the top coins by market cap — no other input needed. coinDetail = full info for specific coin IDs; trending = trending coins & NFTs; exchanges = all exchanges; categories = all coin categories.",
            "default": "markets"
          },
          "vsCurrency": {
            "title": "vs Currency",
            "enum": [
              "usd",
              "eur",
              "gbp",
              "jpy",
              "cny",
              "krw",
              "inr",
              "rub",
              "brl",
              "cad",
              "aud",
              "chf",
              "hkd",
              "sgd",
              "try",
              "mxn",
              "zar",
              "sek",
              "nok",
              "dkk",
              "pln",
              "thb",
              "idr",
              "myr",
              "php",
              "vnd",
              "twd",
              "czk",
              "huf",
              "ils",
              "aed",
              "sar",
              "ngn",
              "uah",
              "clp",
              "nzd",
              "pkr",
              "bdt",
              "bhd",
              "kwd",
              "lkr",
              "mmk",
              "gel",
              "vef",
              "xdr",
              "btc",
              "eth",
              "bnb",
              "sol",
              "xrp",
              "ltc",
              "bch",
              "dot",
              "link",
              "yfi",
              "eos",
              "xlm",
              "sats",
              "bits",
              "xau",
              "xag"
            ],
            "type": "string",
            "description": "Quote currency for prices in Markets mode. Pick from the list of currencies CoinGecko supports.",
            "default": "usd"
          },
          "coinIds": {
            "title": "Coin IDs",
            "type": "array",
            "description": "For Coin Detail mode only: list of CoinGecko coin IDs to fetch (e.g. bitcoin, ethereum, solana). Leave empty for every other mode — Coin Detail with no IDs falls back to the top coins by market cap.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "category": {
            "title": "Category Filter",
            "enum": [
              "",
              "smart-contract-platform",
              "layer-1",
              "layer-2",
              "proof-of-work-pow",
              "proof-of-stake-pos",
              "stablecoins",
              "usd-stablecoin",
              "fiat-backed-stablecoin",
              "crypto-backed-stablecoin",
              "decentralized-finance-defi",
              "decentralized-exchange",
              "decentralized-derivatives",
              "decentralized-perpetuals",
              "decentralized-options",
              "real-world-assets-rwa",
              "tokenized-treasuries",
              "tokenized-products",
              "governance",
              "privacy",
              "privacy-coins",
              "meme-token",
              "dog-themed-coins",
              "artificial-intelligence",
              "infrastructure",
              "zero-knowledge-zk",
              "gaming",
              "metaverse",
              "non-fungible-tokens-nft",
              "gambling",
              "exchange-based-tokens",
              "centralized-exchange-token-cex",
              "oracle",
              "wrapped-tokens",
              "liquid-staking-tokens",
              "yield-farming",
              "lending-borrowing",
              "prediction-markets",
              "storage",
              "bridge-governance-tokens",
              "depin",
              "eth-2-0-staking",
              "bitcoin-ecosystem",
              "solana-ecosystem",
              "base-native"
            ],
            "type": "string",
            "description": "Optionally narrow Markets mode to one CoinGecko category. Leave blank for all coins.",
            "default": ""
          },
          "maxResults": {
            "title": "Max Results",
            "type": "integer",
            "description": "Maximum number of results to return (Markets / Exchanges / Coin Detail fallback). Use 0 for unlimited. Default is 500.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. Defaults to automatic proxy selection. The CoinGecko public API also works without a proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}