{
  "openapi": "3.0.1",
  "info": {
    "title": "OSV Dependency Scanner – Vulnerabilities in Lockfiles & Repos",
    "description": "Check npm, PyPI, Go, Cargo, Composer and RubyGems dependencies for known vulnerabilities with OSV.dev. Paste packages or lockfiles, give file URLs or public GitHub repos. Returns advisory IDs, CVEs, CVSS severity, fixed versions and references.",
    "version": "0.1",
    "x-build-id": "qCXNaFld3Up948lKc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~osv-dependency-scanner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-osv-dependency-scanner",
        "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/adamplaenitz~osv-dependency-scanner/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-osv-dependency-scanner",
        "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/adamplaenitz~osv-dependency-scanner/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-osv-dependency-scanner",
        "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": {
          "packages": {
            "title": "Packages",
            "type": "array",
            "description": "One package version per line: ecosystem:name@version, e.g. npm:lodash@4.17.15, npm:@babel/traverse@7.22.0, PyPI:requests==2.19.0, Go:github.com/gin-gonic/gin@v1.6.0, crates.io:time@0.1.43, Packagist:guzzlehttp/guzzle@7.4.0, RubyGems:nokogiri@1.10.0, Maven:org.apache.logging.log4j:log4j-core@2.14.1, NuGet:Newtonsoft.Json@12.0.1. Package URLs (pkg:npm/lodash@4.17.15) also work. Via the API you can also pass objects { ecosystem, name, version }.",
            "items": {
              "type": "string"
            }
          },
          "githubRepos": {
            "title": "Public GitHub repositories",
            "type": "array",
            "description": "Repository URLs such as https://github.com/owner/repo or a sub-folder https://github.com/owner/repo/tree/main/backend. The Actor reads package-lock.json, yarn.lock, package.json (only without an npm lockfile), poetry.lock, uv.lock, Pipfile.lock, requirements.txt, go.mod, Cargo.lock, composer.lock and Gemfile.lock from that folder via raw.githubusercontent.com. Private repositories are not supported.",
            "items": {
              "type": "string"
            }
          },
          "manifestUrls": {
            "title": "Manifest / lockfile URLs",
            "type": "array",
            "description": "Direct links to public manifest or lockfiles. GitHub blob links are converted to raw links automatically. The format is detected from the file name or content.",
            "items": {
              "type": "string"
            }
          },
          "manifestText": {
            "title": "Manifest / lockfile content",
            "type": "string",
            "description": "Paste the content of one file: package-lock.json, yarn.lock, package.json, requirements.txt, poetry.lock, uv.lock, Pipfile.lock, go.mod, Cargo.lock, composer.lock or Gemfile.lock. The format is detected automatically."
          },
          "manifestFileName": {
            "title": "File name of the pasted content (optional)",
            "type": "string",
            "description": "Helps the format detection, e.g. requirements.txt or Cargo.lock. Usually not needed."
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "vulnerable",
              "all"
            ],
            "type": "string",
            "description": "Only vulnerable package versions (default), or one item for every checked package including clean ones. Billing is per checked package in both modes.",
            "default": "vulnerable"
          },
          "minSeverity": {
            "title": "Minimum severity",
            "enum": [
              "any",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "type": "string",
            "description": "Ignore advisories below this severity. Advisories without any severity information and malicious-package reports are always kept.",
            "default": "any"
          },
          "includeDev": {
            "title": "Include development dependencies",
            "type": "boolean",
            "description": "Also check devDependencies / dev groups where the file marks them (package.json, package-lock.json, Pipfile.lock, poetry.lock, composer.lock).",
            "default": true
          },
          "includeWithdrawn": {
            "title": "Include withdrawn advisories",
            "type": "boolean",
            "description": "OSV keeps advisories that were withdrawn by their source. They are hidden by default.",
            "default": false
          },
          "includeSkipped": {
            "title": "Output skipped entries",
            "type": "boolean",
            "description": "Adds free rows for dependencies that could not be checked because the file has no exact version (e.g. unpinned requirements, git dependencies, version ranges).",
            "default": false
          },
          "maxReferences": {
            "title": "References per advisory",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of reference links per advisory (advisories and fixes first).",
            "default": 5
          },
          "maxPackages": {
            "title": "Maximum packages per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Safety limit for the number of unique package versions checked in one run.",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}