osv_vulns: Query OSV API for vulnerability information based on ID
Description
Use vulnerability IDs to extract more detailed information, usually paired with osv_querybatch()
.
Usage
osv_vulns(vuln_ids, parse = TRUE, cache = TRUE).osv_vulns(vuln_ids, parse = TRUE)
.osv_vulns_cache(vuln_ids, parse = TRUE)
Value
An R6 object containing API query contents.
Arguments
- vuln_ids
Vector of vulnerability IDs.
- parse
Boolean value to set if the content field should be parsed from JSON list format.
- cache
Boolean value to determine if should use a cached version of the function and API results.
Examples
Run this codeif (FALSE) { # interactive()
vulns <- osv_vulns("RSEC-2023-8")
get_content(vulns)
}
Run the code above in your browser using DataLab