{
  "openapi": "3.0.1",
  "info": {
    "title": "vcpkg C++ Package Scraper",
    "description": "Scrape the vcpkg.io catalog of 2,850+ C++ libraries. Full-text search, exact lookup by name, reverse-dependency (\"used by\") lookup, license/platform browsing, and popularity ranking. Pure public JSON, no auth, no proxy.",
    "version": "1.0",
    "x-build-id": "tTAC0zJwzWednfw9R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~vcpkg-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-vcpkg-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/crawlerbros~vcpkg-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-vcpkg-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/crawlerbros~vcpkg-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-vcpkg-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byNames",
              "usedBy",
              "browse",
              "byLicense",
              "byPlatform"
            ],
            "type": "string",
            "description": "What to fetch from the vcpkg catalog.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query matched against the package name and description (mode=search).",
            "default": "json"
          },
          "packageNames": {
            "title": "Package names",
            "type": "array",
            "description": "Exact vcpkg package names, e.g. `fmt`, `boost-asio`, `openssl` (mode=byNames returns their full records; mode=usedBy returns every package that depends on any of them). Case-insensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeVersionHistory": {
            "title": "Include version history (mode=byNames)",
            "type": "boolean",
            "description": "Fetch the full historical version list (e.g. every published Version#Port-Version) for each looked-up package. Only applies to mode=byNames and is capped at the first 20 package names to keep runs bounded.",
            "default": false
          },
          "license": {
            "title": "License",
            "enum": [
              "",
              "MIT",
              "Apache-2.0",
              "BSL-1.0",
              "BSD-3-Clause",
              "BSD-2-Clause",
              "Zlib",
              "GPL-2.0-or-later",
              "MPL-2.0",
              "LGPL-2.1-or-later",
              "LGPL-2.1-only",
              "LGPL-3.0-or-later",
              "LGPL-3.0-only",
              "GPL-3.0-or-later",
              "GPL-3.0-only",
              "ISC",
              "Unlicense",
              "CC0-1.0",
              "EPL-2.0",
              "0BSD",
              "AGPL-3.0-only",
              "custom"
            ],
            "type": "string",
            "description": "Filter to packages under this SPDX license (mode=byLicense requires this or `licenseContains`; also usable as an optional filter on mode=search). Matches as a substring, so `MIT` also matches compound expressions like `MIT OR Apache-2.0`. Choose \"Other\" to match free text via `licenseContains` instead.",
            "default": ""
          },
          "licenseContains": {
            "title": "License contains (free text)",
            "type": "string",
            "description": "Free-text substring to match against a package's license string. Overrides `license` when set. Use this for the ~160 long-tail SPDX identifiers not in the dropdown (e.g. `MPL-1.1`, `Python-2.0`, `NCSA`, `WTFPL`, `OFL-1.1`, `Ruby`)."
          },
          "platformToken": {
            "title": "Platform token",
            "enum": [
              "",
              "windows",
              "linux",
              "osx",
              "android",
              "uwp",
              "xbox",
              "freebsd",
              "openbsd",
              "mingw",
              "arm",
              "arm64",
              "x64",
              "x86",
              "static",
              "native"
            ],
            "type": "string",
            "description": "A vcpkg platform/triplet token parsed out of a package's `Supports` expression (mode=byPlatform requires this; also usable as an optional filter on mode=search).",
            "default": ""
          },
          "platformMode": {
            "title": "Platform match mode",
            "enum": [
              "supports",
              "excludes"
            ],
            "type": "string",
            "description": "Whether `platformToken` should include packages that support the platform, or ones that explicitly exclude it.",
            "default": "supports"
          },
          "hasHomepage": {
            "title": "Has homepage only",
            "type": "boolean",
            "description": "Only emit packages that publish a project homepage URL (mode=search).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "name",
              "lastModified",
              "mostDependents"
            ],
            "type": "string",
            "description": "Result ordering for mode=search and mode=browse. `relevance` only applies when a search query is present.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2857,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          },
          "offset": {
            "title": "Offset",
            "minimum": 0,
            "maximum": 2857,
            "type": "integer",
            "description": "Skip this many matching records before emitting (for pagination through large result sets).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}