{
  "openapi": "3.0.1",
  "info": {
    "title": "Open Source Vulnerability Feed: OSV Advisories & Malware",
    "description": "New open-source security advisories (CVE, GHSA) and malicious-package reports from OSV.dev for npm, PyPI, Go, Maven, Rust and more. Severity, CVSS score, fixed versions, delta mode. No API key.",
    "version": "1.0",
    "x-build-id": "a8ik0YsLhFMpKDTD0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacrate~osv-vulnerability-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacrate-osv-vulnerability-feed",
        "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/datacrate~osv-vulnerability-feed/runs": {
      "post": {
        "operationId": "runs-sync-datacrate-osv-vulnerability-feed",
        "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/datacrate~osv-vulnerability-feed/run-sync": {
      "post": {
        "operationId": "run-sync-datacrate-osv-vulnerability-feed",
        "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": "Mode",
            "enum": [
              "recent",
              "packages"
            ],
            "type": "string",
            "description": "recent = newest advisories per ecosystem (a feed you can schedule). packages = every known advisory for specific packages or exact versions (a dependency check).",
            "default": "recent"
          },
          "ecosystems": {
            "title": "Ecosystems (recent mode)",
            "type": "array",
            "description": "Package ecosystems to follow. Accepted: npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, Packagist, Hex, Pub, Hackage, GitHub Actions, CRAN, SwiftURL (aliases such as python, rust, php also work).",
            "default": [
              "npm",
              "PyPI"
            ],
            "items": {
              "type": "string"
            }
          },
          "sinceDays": {
            "title": "Changed in the last N days (recent mode)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Advisories published or updated in this window (1 to 90). Use 1 for a daily feed.",
            "default": 2
          },
          "dateField": {
            "title": "Date to filter on (recent mode)",
            "enum": [
              "modified",
              "published"
            ],
            "type": "string",
            "description": "modified = new or updated advisories. published = only advisories first published inside the window.",
            "default": "modified"
          },
          "minSeverity": {
            "title": "Minimum severity",
            "enum": [
              "any",
              "low",
              "moderate",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Drop vulnerabilities below this level. Malicious-package reports are not rated and are controlled by the next switch.",
            "default": "any"
          },
          "includeMalware": {
            "title": "Include malicious-package reports",
            "type": "boolean",
            "description": "Include OpenSSF malicious-package (MAL-) records, e.g. typosquats and hijacked releases.",
            "default": true
          },
          "onlyWithFix": {
            "title": "Only advisories with a fixed version",
            "type": "boolean",
            "description": "Keep only records that list a patched version.",
            "default": false
          },
          "requireCve": {
            "title": "Only advisories with a CVE id",
            "type": "boolean",
            "description": "Keep only records that carry a CVE alias.",
            "default": false
          },
          "includeWithdrawn": {
            "title": "Include withdrawn advisories",
            "type": "boolean",
            "description": "Withdrawn records are normally dropped.",
            "default": false
          },
          "packageNames": {
            "title": "Package name filter (recent mode)",
            "type": "array",
            "description": "Optional. Keep only advisories whose affected package name equals or contains one of these (case-insensitive), e.g. react, django.",
            "items": {
              "type": "string"
            }
          },
          "packages": {
            "title": "Packages (packages mode)",
            "type": "array",
            "description": "One per line as ecosystem:name or ecosystem:name@version, e.g. npm:lodash@4.17.15, PyPI:django, Maven:org.apache.logging.log4j:log4j-core@2.14.0, Go:github.com/gin-gonic/gin. With a version only advisories affecting that version are returned.",
            "default": [
              "npm:lodash@4.17.15",
              "PyPI:django@3.2",
              "Maven:org.apache.logging.log4j:log4j-core@2.14.0"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyNewSinceLastRun": {
            "title": "Only new or updated since last run",
            "type": "boolean",
            "description": "Remembers what each run returned (per State key) and skips it next time. Rows also carry an isNew flag once a baseline exists. Recent mode only.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved delta state. Use different keys for different schedules.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max advisories",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many advisories (billed per advisory).",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}