{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinGecko Crypto — Live Prices & Market Data API",
    "description": "Real-time cryptocurrency prices and market data from CoinGecko's public API for 15,000+ coins. Get live prices in 60+ currencies, top market listings, detailed coin profiles, and full coin catalogs. Pure HTTP, no API key needed. Flat typed output schema — ready for LLMs, MCP, and data pipelines.",
    "version": "0.1",
    "x-build-id": "1xhjV0rOD0ZdenB3o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leorochasantos~coingecko-crypto/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leorochasantos-coingecko-crypto",
        "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/leorochasantos~coingecko-crypto/runs": {
      "post": {
        "operationId": "runs-sync-leorochasantos-coingecko-crypto",
        "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/leorochasantos~coingecko-crypto/run-sync": {
      "post": {
        "operationId": "run-sync-leorochasantos-coingecko-crypto",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "price",
              "markets",
              "coin-detail",
              "coin-list"
            ],
            "type": "string",
            "description": "Which endpoint to query. Price returns live prices for specific coins. Markets returns a paginated list of top coins. Coin Detail returns full profile data for one coin. Coin List returns the full catalog of all known coins.",
            "default": "price"
          },
          "coinIds": {
            "title": "Coin IDs (price mode)",
            "type": "array",
            "description": "CoinGecko coin IDs to fetch prices for. Required for price mode. Max 50 IDs per request.",
            "items": {
              "type": "string"
            }
          },
          "vsCurrencies": {
            "title": "Currencies (price mode)",
            "type": "array",
            "description": "Target fiat currencies for price conversion. Defaults to usd. Supports 60+ currencies.",
            "items": {
              "type": "string"
            }
          },
          "includeMarketCap": {
            "title": "Include market cap (price mode)",
            "type": "boolean",
            "description": "Include market cap data in price results.",
            "default": false
          },
          "include24hVol": {
            "title": "Include 24h volume (price mode)",
            "type": "boolean",
            "description": "Include 24-hour trading volume in price results.",
            "default": false
          },
          "include24hChange": {
            "title": "Include 24h change (price mode)",
            "type": "boolean",
            "description": "Include 24-hour price change percentage in price results.",
            "default": false
          },
          "includeLastUpdatedAt": {
            "title": "Include last updated timestamp (price mode)",
            "type": "boolean",
            "description": "Include the last_updated_at field in price results.",
            "default": false
          },
          "precision": {
            "title": "Decimal precision (price mode)",
            "minimum": 0,
            "maximum": 18,
            "type": "integer",
            "description": "Number of decimal places for price values. Omit for full precision."
          },
          "vsCurrency": {
            "title": "Currency (markets mode)",
            "type": "string",
            "description": "Target fiat currency for market data. Defaults to usd.",
            "default": "usd"
          },
          "page": {
            "title": "Page (markets mode)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Page number for paginated market results. Starts at 1.",
            "default": 1
          },
          "perPage": {
            "title": "Results per page (markets mode)",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Number of results per page. Max 250.",
            "default": 100
          },
          "category": {
            "title": "Category filter (markets mode)",
            "type": "string",
            "description": "CoinGecko category ID to filter market results (e.g. decentralized-finance-defi)."
          },
          "order": {
            "title": "Sort order (markets mode)",
            "enum": [
              "market_cap_desc",
              "market_cap_asc",
              "volume_desc",
              "volume_asc",
              "id_desc",
              "id_asc"
            ],
            "type": "string",
            "description": "Sort order for market results.",
            "default": "market_cap_desc"
          },
          "coinId": {
            "title": "Coin ID (coin-detail mode)",
            "type": "string",
            "description": "CoinGecko coin ID for detail lookup. Required for coin-detail mode."
          },
          "includeTickers": {
            "title": "Include tickers (coin-detail mode)",
            "type": "boolean",
            "description": "Include exchange ticker data (up to 100 pairs).",
            "default": false
          },
          "includeDescription": {
            "title": "Include description (coin-detail mode)",
            "type": "boolean",
            "description": "Include the coin description and community data.",
            "default": false
          },
          "limit": {
            "title": "Max results (coin-list mode)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of coin list results to return. Defaults to 250. Max 5000.",
            "default": 250
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy to use for outgoing requests. CoinGecko is datacenter-open.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}