{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinGecko Crypto Markets Scraper — Prices, Market Cap & Toke",
    "description": "Scrape live cryptocurrency prices, market cap rankings, 24h trading volume, price fluctuations (1h, 24h, 7d), supply dynamics, and ATH/ATL statistics from CoinGecko.",
    "version": "0.1",
    "x-build-id": "7PoGsSJb8LXud7NFo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spotless_studios~coingecko-crypto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spotless_studios-coingecko-crypto-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/spotless_studios~coingecko-crypto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-spotless_studios-coingecko-crypto-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/spotless_studios~coingecko-crypto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-spotless_studios-coingecko-crypto-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": {
          "searchQuery": {
            "title": "Search query / keyword",
            "type": "string",
            "description": "Optional keyword search to discover matching coins/tokens via CoinGecko Search (e.g. 'ai', 'depin', 'solana', 'pepe'). Leave empty to browse top coins by market cap."
          },
          "searchQueries": {
            "title": "Multiple search queries",
            "type": "array",
            "description": "Optional list of multiple search keywords to resolve in a single run.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Target currency (vs_currency)",
            "enum": [
              "usd",
              "eur",
              "gbp",
              "jpy",
              "cad",
              "aud",
              "chf",
              "inr",
              "btc",
              "eth"
            ],
            "type": "string",
            "description": "Fiat or crypto currency for price & market cap calculation.",
            "default": "usd"
          },
          "category": {
            "title": "Category slug",
            "type": "string",
            "description": "Filter by CoinGecko category slug (e.g. 'artificial-intelligence', 'decentralized-finance-defi', 'layer-1', 'meme-token', 'real-world-assets-rwa')."
          },
          "order": {
            "title": "Sort order",
            "enum": [
              "market_cap_desc",
              "market_cap_asc",
              "volume_desc",
              "volume_asc",
              "id_asc",
              "id_desc"
            ],
            "type": "string",
            "description": "Sort cryptocurrencies by market cap or 24h volume.",
            "default": "market_cap_desc"
          },
          "minPrice": {
            "title": "Minimum price",
            "type": "number",
            "description": "Minimum token price in target currency."
          },
          "maxPrice": {
            "title": "Maximum price",
            "type": "number",
            "description": "Maximum token price in target currency."
          },
          "minMarketCap": {
            "title": "Minimum market cap",
            "minimum": 0,
            "type": "number",
            "description": "Minimum market capitalization in target currency (e.g. 10000000 for 10M+)."
          },
          "maxMarketCap": {
            "title": "Maximum market cap",
            "minimum": 0,
            "type": "number",
            "description": "Maximum market capitalization in target currency (useful for micro-cap screening)."
          },
          "minVolume24h": {
            "title": "Minimum 24h trading volume",
            "minimum": 0,
            "type": "number",
            "description": "Minimum 24-hour trading volume."
          },
          "minChange24hPct": {
            "title": "Minimum 24h price change (%)",
            "type": "number",
            "description": "Filter for 24h gainers (e.g. 10 for +10% or higher)."
          },
          "maxChange24hPct": {
            "title": "Maximum 24h price change (%)",
            "type": "number",
            "description": "Filter for 24h pullbacks (e.g. -10 for -10% or lower)."
          },
          "minChange7dPct": {
            "title": "Minimum 7d price change (%)",
            "type": "number",
            "description": "Minimum 7-day percentage price change."
          },
          "maxChange7dPct": {
            "title": "Maximum 7d price change (%)",
            "type": "number",
            "description": "Maximum 7-day percentage price change."
          },
          "coinIds": {
            "title": "Direct CoinGecko IDs or URLs",
            "type": "array",
            "description": "Scrape specific coins directly by CoinGecko ID or URL (e.g. 'bitcoin', 'ethereum', 'https://www.coingecko.com/en/coins/solana').",
            "items": {
              "type": "string"
            }
          },
          "includeCoinDetails": {
            "title": "Include project links & socials",
            "type": "boolean",
            "description": "Fetch each coin's metadata profile to enrich records with homepage, twitterHandle, telegramChannel, subredditUrl, githubRepos, categories, and genesisDate.",
            "default": false
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "Keep only coins matching these keywords or /regex/ in symbol, name, ID, or categories.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip coins matching any of these keywords or /regex/.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Include keyword logic",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Require any or all includeKeywords to match.",
            "default": "any"
          },
          "onlyNewItems": {
            "title": "Only new coins (monitoring mode)",
            "type": "boolean",
            "description": "Remember seen coin IDs across runs and emit only newly listed or newly matching tokens.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor state name",
            "type": "string",
            "description": "Separate state key per saved search or schedule.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of coins to extract.",
            "default": 100
          },
          "outputPreset": {
            "title": "Data preset",
            "enum": [
              "full",
              "lean",
              "contacts"
            ],
            "type": "string",
            "description": "Choose full record, lean summary, or contacts & links only.",
            "default": "full"
          },
          "outputFields": {
            "title": "Output fields",
            "type": "array",
            "description": "Keep only these specific fields in each saved record.",
            "items": {
              "type": "string"
            }
          },
          "excludeFields": {
            "title": "Exclude fields",
            "type": "array",
            "description": "Remove specific fields from each saved record.",
            "items": {
              "type": "string"
            }
          },
          "includeEmptyFields": {
            "title": "Keep empty / null fields",
            "type": "boolean",
            "description": "When disabled, strips null and empty values from each saved record.",
            "default": true
          },
          "requiredFields": {
            "title": "Required non-empty fields",
            "type": "array",
            "description": "Only save records where every listed field has a non-empty value.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Max market pages",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Maximum pages to scan (250 coins per page).",
            "default": 10
          },
          "maxRequestRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per failed or rate-limited HTTP request.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout per HTTP request.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings.",
            "default": {
              "useApifyProxy": false
            }
          },
          "proxyEscalation": {
            "title": "Auto-escalate proxies when rate-limited",
            "type": "boolean",
            "description": "Automatically step up from direct to Apify datacenter/residential proxies if rate-limited.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}