{
  "openapi": "3.0.1",
  "info": {
    "title": "CoinMarketCap Coins Scraper",
    "description": "Scrapes CoinMarketCap listings and discovery lists into structured coin records with names, symbols, ranks, market figures, supply, tags, and percentage changes. Choose category-filtered or sorted listings, recently added coins, trending, gainers, losers, or most-visited lists.",
    "version": "0.1",
    "x-build-id": "xTDcvgdN9wZ3XCCeK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axiomworks~coinmarketcap-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axiomworks-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/axiomworks~coinmarketcap-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axiomworks-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/axiomworks~coinmarketcap-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axiomworks-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": {
          "mode": {
            "title": "Coin list mode, e.g. listings",
            "enum": [
              "listings",
              "newest",
              "trending",
              "gainers",
              "losers",
              "mostVisited"
            ],
            "type": "string",
            "description": "Choose listings (default market-cap ranking), newest (date added), trending, gainers, losers, or mostVisited. Example: \"listings\". Spotlight modes return at most 30 coins; category, sortBy and convert only affect listings/newest as described below.",
            "default": "listings"
          },
          "maxItems": {
            "title": "Result limit, e.g. 50",
            "minimum": 1,
            "maximum": 8000,
            "type": "integer",
            "description": "Return at most 1-8000 matching coins total, default 100; example: 50. This is one shared output budget after all filters, not a page size. Spotlight modes have at most 30 available coins. Fewer matches return fewer rows; unmatched or blocked requests return zero rows with guidance.",
            "default": 100
          },
          "sortBy": {
            "title": "Listings sort key, e.g. market_cap",
            "enum": [
              "market_cap",
              "volume_24h",
              "percent_change_24h",
              "percent_change_7d"
            ],
            "type": "string",
            "description": "Sort listings descending by market_cap (default), volume_24h, percent_change_24h, or percent_change_7d; example: \"volume_24h\". Ignored by newest (date-added order) and spotlight modes.",
            "default": "market_cap"
          },
          "category": {
            "title": "Category tag slug, e.g. layer-1",
            "type": "string",
            "description": "Filter listings or newest by a lowercase CoinMarketCap tag slug, e.g. \"layer-1\", \"defi\", or \"memes\"; empty (default) means all categories. Not a coin name or URL. Ignored in spotlight modes. An unknown slug can return zero rows; remove it or use a known tag.",
            "default": ""
          },
          "symbols": {
            "title": "Ticker list, e.g. BTC and ETH",
            "type": "array",
            "description": "Keep only matching ticker strings, e.g. [\"BTC\", \"ETH\"], case-insensitive; [] (default) keeps all coins. Listings/newest scan pages until all requested tickers are found or up to 8000 valid coins are scanned. Spotlight modes filter only their available list. Combined with category and minMarketCap.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minMarketCap": {
            "title": "Market cap floor, e.g. 1000000000",
            "minimum": 0,
            "type": "integer",
            "description": "Keep coins with marketCap at least this non-negative integer, e.g. 1000000000; 0 (default) disables the filter. Uses convert units in listings/newest and USD in spotlight modes. Applied together with symbols and category; missing marketCap cannot meet a positive floor.",
            "default": 0
          },
          "convert": {
            "title": "Quote currency symbol, e.g. USD",
            "type": "string",
            "description": "Set an uppercase 2-12 character fiat/crypto quote symbol, e.g. \"USD\" (default) or \"EUR\", for listings/newest prices, marketCap, volume24h and minMarketCap comparisons. Spotlight modes always use USD and ignore this setting. Unsupported symbols can return zero rows; retry with USD.",
            "default": "USD"
          },
          "proxyConfiguration": {
            "title": "Proxy routing, e.g. direct requests",
            "type": "object",
            "description": "Configure Apify Proxy, e.g. {\"useApifyProxy\": false} (default direct access) or {\"useApifyProxy\": true}. Blocked requests retry on fresh sessions; persistent blocks return zero rows with guidance. Enable a suitable proxy or retry later if direct requests are blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}