{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinMarketCap Scraper - Listings, Coin Details, OHLCV, Markets",
    "description": "CoinMarketCap scraper: ranked crypto listings with filters (market cap, volume, price, tags, coins vs tokens), full coin details, historical OHLCV candles and exchange rankings. No API key. From US$0.50 per 1,000 records.",
    "version": "0.1",
    "x-build-id": "nFRGRGNYNaw2ufmuX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~coinmarketcap-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-coinmarketcap-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/fabrikit~coinmarketcap-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-coinmarketcap-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/fabrikit~coinmarketcap-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-coinmarketcap-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": {
          "modes": {
            "title": "Data to collect (modes)",
            "type": "array",
            "description": "listings = ranked coin table with filters; details = full profile of specific coins (description, links, tags, contracts, statistics); history = OHLCV candles of specific coins; exchanges = exchange ranking with volumes.",
            "items": {
              "type": "string",
              "enum": [
                "listings",
                "details",
                "history",
                "exchanges"
              ],
              "enumTitles": [
                "Listings (ranked coins)",
                "Coin details",
                "Historical OHLCV",
                "Exchanges"
              ]
            },
            "default": [
              "listings"
            ]
          },
          "listingsLimit": {
            "title": "Listings: number of coins",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "How many coins to return in the listings mode (after filters and sorting).",
            "default": 50
          },
          "startRank": {
            "title": "Listings: start position",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Position in the sorted list to start from (1 = first). Use it to page through the market.",
            "default": 1
          },
          "sortBy": {
            "title": "Listings: sort by",
            "enum": [
              "market_cap",
              "name",
              "price",
              "circulating_supply",
              "percent_change_1h",
              "percent_change_24h",
              "percent_change_7d",
              "volume_24h"
            ],
            "type": "string",
            "description": "Sort field of the listing.",
            "default": "market_cap"
          },
          "sortType": {
            "title": "Listings: sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending (biggest first) or ascending.",
            "default": "desc"
          },
          "cryptoType": {
            "title": "Listings: coins or tokens",
            "enum": [
              "all",
              "coins",
              "tokens"
            ],
            "type": "string",
            "description": "Coins have their own blockchain; tokens live on another chain.",
            "default": "all"
          },
          "tagSlugs": {
            "title": "Listings: tags / categories",
            "type": "array",
            "description": "CoinMarketCap tag slugs, e.g. defi, memes, gaming, ai-big-data, layer-1, stablecoin, nft, solana-ecosystem. Coins matching the tag are returned.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketCapMin": {
            "title": "Listings: min market cap (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum market capitalization."
          },
          "marketCapMax": {
            "title": "Listings: max market cap (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum market capitalization."
          },
          "volume24hMin": {
            "title": "Listings: min 24h volume (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum 24h trading volume."
          },
          "volume24hMax": {
            "title": "Listings: max 24h volume (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum 24h trading volume."
          },
          "priceMin": {
            "title": "Listings: min price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum price."
          },
          "priceMax": {
            "title": "Listings: max price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum price."
          },
          "convert": {
            "title": "Quote currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "BTC",
              "ETH"
            ],
            "type": "string",
            "description": "Currency prices are expressed in (listings and history).",
            "default": "USD"
          },
          "coins": {
            "title": "Coins (details and history)",
            "type": "array",
            "description": "One per line: a CoinMarketCap slug (bitcoin, ethereum, solana), a numeric id (1, 1027) or an UPPERCASE symbol (BTC, ETH; resolved among the top 3000 coins).",
            "default": [
              "bitcoin",
              "ethereum"
            ],
            "items": {
              "type": "string"
            }
          },
          "interval": {
            "title": "History: candle interval",
            "enum": [
              "15m",
              "1h",
              "4h",
              "1d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Size of each OHLCV candle.",
            "default": "1d"
          },
          "startDate": {
            "title": "History: start date (YYYY-MM-DD)",
            "type": "string",
            "description": "Defaults to 30 days before the end date. Long ranges are fetched in several requests automatically."
          },
          "endDate": {
            "title": "History: end date (YYYY-MM-DD)",
            "type": "string",
            "description": "Defaults to now."
          },
          "exchangesLimit": {
            "title": "Exchanges: number of exchanges",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many exchanges to return in the exchanges mode.",
            "default": 25
          },
          "exchangeSortBy": {
            "title": "Exchanges: sort by",
            "enum": [
              "score",
              "volume_24h"
            ],
            "type": "string",
            "description": "Exchange ranking criterion.",
            "default": "score"
          },
          "maxItems": {
            "title": "Max records in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap for the whole run across all modes. Each record is billed once.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Datacenter proxy is tried first. If CoinMarketCap blocks it, the Actor automatically switches to a US residential proxy for the rest of the run.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}