{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinGecko Real-Time Data: Crypto Market Scraper",
    "description": "Live CoinGecko crypto market intelligence: top coins by market cap, instant coin search, full coin details, trending coins, and exchange rankings. Checkbox features — enable only what you need. Structured JSON streamed to your dataset in real time.",
    "version": "0.0",
    "x-build-id": "ayS7OJcjTRLBbKlpz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~CoinGecko-Real-Time-Data-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-CoinGecko-Real-Time-Data-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/b2b_leads~CoinGecko-Real-Time-Data-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-CoinGecko-Real-Time-Data-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/b2b_leads~CoinGecko-Real-Time-Data-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-CoinGecko-Real-Time-Data-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": {
          "enableTopCoins": {
            "title": "Top Coins",
            "type": "boolean",
            "description": "Live market ranking — top coins by market cap with price, volume, 24h change, ATH/ATL, and supply. On by default so you can click Start and get results in seconds.",
            "default": true
          },
          "vsCurrency": {
            "title": "Currency",
            "enum": [
              "usd",
              "eur",
              "gbp",
              "jpy",
              "aud",
              "cad",
              "btc",
              "eth"
            ],
            "type": "string",
            "description": "Fiat currency for prices and market caps.",
            "default": "usd"
          },
          "topCoinsLimit": {
            "title": "Max coins",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum coins to return from the market ranking (1–250). Default 10 — perfect for instant demo runs.",
            "default": 10
          },
          "topCoinsOrder": {
            "title": "Sort order",
            "enum": [
              "market_cap_desc",
              "market_cap_asc",
              "volume_desc",
              "volume_asc",
              "id_asc",
              "id_desc"
            ],
            "type": "string",
            "description": "How to order the market ranking.",
            "default": "market_cap_desc"
          },
          "topCoinsCategory": {
            "title": "Category filter (optional)",
            "type": "string",
            "description": "Limit the ranking to a CoinGecko category id, e.g. layer-1, decentralized-finance-defi, meme-token. Leave empty for the full market.",
            "default": ""
          },
          "topCoinsFetchFullDetails": {
            "title": "Enrich with full coin details",
            "type": "boolean",
            "description": "When on, each top-coin row stays ONE row (featureType top_coins, detailsFetched=true) but is enriched with description, categories, homepage, genesis date, and sentiment. Adds a little extra time per coin. When off, you get fast market cards with price, market cap, volume, and 24h change. Every discovered coin is always saved — never filtered out.",
            "default": false
          },
          "enableCoinSearch": {
            "title": "Coin Search",
            "type": "boolean",
            "description": "Find coins by name or symbol — e.g. bitcoin, ethereum, solana.",
            "default": false
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "One or more coin names or symbols, e.g. \"bitcoin\", \"ethereum\", \"solana\". Required when Coin Search is on.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "coinSearchMaxResults": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum coins to return for each query (1–25).",
            "default": 10
          },
          "coinSearchFetchFullDetails": {
            "title": "Enrich search with full details",
            "type": "boolean",
            "description": "When on, each search row stays ONE row (featureType coin_search, detailsFetched=true) but is enriched with market price, market cap, description, and categories. Adds a little extra time per coin.",
            "default": false
          },
          "enableCoinDetails": {
            "title": "Coin Details",
            "type": "boolean",
            "description": "Full record for specific coins by id or CoinGecko URL — description, market data, links, supply, sentiment.",
            "default": false
          },
          "coinIds": {
            "title": "Coin IDs (optional)",
            "type": "array",
            "description": "CoinGecko coin ids, e.g. bitcoin, ethereum, solana.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "coinUrls": {
            "title": "Coin URLs (optional)",
            "type": "array",
            "description": "Full CoinGecko coin URLs (https://www.coingecko.com/en/coins/...).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableTrending": {
            "title": "Trending Coins",
            "type": "boolean",
            "description": "Currently trending coins on CoinGecko — what the market is watching right now.",
            "default": false
          },
          "enableExchanges": {
            "title": "Exchanges",
            "type": "boolean",
            "description": "Ranked crypto exchanges with trust score, country, year established, and 24h volume.",
            "default": false
          },
          "exchangesLimit": {
            "title": "Max exchanges",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum exchanges to return (1–100).",
            "default": 10
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Paste any CoinGecko coin or exchange URL.",
            "default": false
          },
          "scrapeUrls": {
            "title": "CoinGecko URLs",
            "type": "array",
            "description": "Any CoinGecko coin or exchange URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Every record is always saved to the run dataset — this webhook is an ADDITIONAL real-time push. Each new row is also POSTed to this URL (Slack, Discord, Zapier, Make, n8n, custom pricing bot).",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = full record object; slack = Slack-friendly message payload.",
            "default": "json"
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Optional connection settings. The public market feed usually works with the default connection.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}