{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinGecko Crypto Scraper — Prices, Market Cap & Coin Data",
    "description": "CoinGecko crypto scraper — pull live coin prices, market cap, rank, 24h volume, ATH/ATL, supply and full coin profiles into clean JSON/CSV. Two modes: bulk market overview or per-coin detail. No API key or account needed. Independent tool — not affiliated with CoinGecko.",
    "version": "1.0",
    "x-build-id": "muuNZlnvjUnMkOzcG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~coingecko-crypto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-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/sian.agency~coingecko-crypto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-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/sian.agency~coingecko-crypto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-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": {
          "mode": {
            "title": "🧭 Mode",
            "enum": [
              "overview",
              "profile"
            ],
            "type": "string",
            "description": "🧭 **Choose what to extract:**\n\n📊 **Overview (recommended, cheapest):** the full live market list — hundreds of coins per run, each already carrying price, market cap, rank, 24h volume, 24h high/low, ATH/ATL and supply. Best for bulk market data, screeners and dashboards.\n\n🔎 **Profile (full detail):** one rich record per coin — adds description, categories, homepage, genesis date, hashing algorithm, sentiment, watchlist users and the hi-res logo. Best for enriching specific coins.",
            "default": "overview"
          },
          "order": {
            "title": "↕️ Sort Order (Overview)",
            "enum": [
              "market_cap_desc",
              "market_cap_asc",
              "volume_desc",
              "volume_asc",
              "id_asc",
              "id_desc"
            ],
            "type": "string",
            "description": "↕️ **OVERVIEW SORT:** the order coins are returned in — matches CoinGecko's own sort options.\n\n- **Market cap (high → low)** is the default ranked list.\n- **Volume** surfaces the most actively traded coins.\n- **ID** sorts alphabetically by coin slug.",
            "default": "market_cap_desc"
          },
          "category": {
            "title": "🏷️ Category Filter (Overview)",
            "type": "string",
            "description": "🏷️ **OPTIONAL:** restrict the overview list to a single coin category slug (e.g. `layer-1`, `meme-token`, `decentralized-finance-defi`, `stablecoins`). Leave empty for all coins."
          },
          "vsCurrency": {
            "title": "💵 Quote Currency",
            "type": "string",
            "description": "💵 **Currency to quote prices in** (ISO code, e.g. `usd`, `eur`, `gbp`, `jpy`, `btc`). Default `usd`.",
            "default": "usd"
          },
          "perPage": {
            "title": "🔢 Coins Per Page (Overview)",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "🔢 **How many coins to fetch per page** (1–250). Default 100.",
            "default": 100
          },
          "maxPages": {
            "title": "📄 Max Pages (Overview)",
            "minimum": 1,
            "type": "integer",
            "description": "📄 **How many overview pages to fetch.**\n\n🎁 **TIER-BASED LIMITS:**\n- **FREE users:** up to 2 pages (capped at 25 coins per run)\n- **PAID users:** unlimited pages\n\nEach page ≈ `Coins Per Page` coins.",
            "default": 1
          },
          "coinIds": {
            "title": "🪙 Coin IDs (Profile / restrict Overview)",
            "uniqueItems": true,
            "type": "array",
            "description": "🪙 **Coin IDs or CoinGecko coin URLs** — one per line.\n\n- In **Profile** mode these are the coins whose full detail is fetched (required).\n- In **Overview** mode they optionally restrict the market list to just these coins.\n\n🎁 **TIER-BASED LIMITS (Profile):**\n- **FREE users:** up to 5 coin profiles per run\n- **PAID users:** unlimited\n\n💡 Use the coin slug (e.g. `bitcoin`, `ethereum`, `solana`) or paste `https://www.coingecko.com/en/coins/bitcoin`.",
            "items": {
              "type": "string"
            }
          },
          "startUrl": {
            "title": "🔗 CoinGecko Coin URL",
            "type": "string",
            "description": "🔗 **OPTIONAL:** paste a single `https://www.coingecko.com/en/coins/<id>` URL. In Profile mode it adds that coin; in Overview mode it restricts the list to that coin."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}