Skip to main content

Query Issues By Package URL

Query issues for a specific package version identified by Package URL (purl). Snyk returns only direct vulnerabilities. Transitive vulnerabilities (from dependencies) are not returned because they can vary depending on context.

Basic Parameters

ParameterDescription
Organization IDUnique identifier for an organization.
PURLA URI-encoded Package URL (purl). Supported purl types are apk, cargo, cocoapods, composer, deb, gem, generic, hex, maven, npm, nuget, pypi, rpm, and swift. A version for the package is also required.

Advanced Parameters

ParameterDescription
LimitSpecify the number of results to return. Must be greater than 0 and less than 1000. Default is 1000.
OffsetSpecify the number of results to skip before returning results. Must be greater than or equal to 0. Default is 0.

Example Output

{
"total": 18,
"rows": [
{
"id": 1,
"name": "Macbook Pro 13"",
"manufacturer": null,
"image": "https://develop.snipeitapp.com/uploads/models/mbp.jpg",
"model_number": "2433661381679820",
"depreciation": {
"id": 1,
"name": "Computer Depreciation"
},
"assets_count": 0,
"category": {
"id": 1,
"name": "Laptops"
},
"fieldset": null,
"default_fieldset_values": [],
"eol": "36 months",
"requestable": false,
"notes": "Created by demo seeder",
"created_at": {
"datetime": "2023-02-23 03:42:04",
"formatted": "Thu Feb 23, 2023 3:42AM"
},
"updated_at": {
"datetime": "2023-02-23 03:42:04",
"formatted": "Thu Feb 23, 2023 3:42AM"
},
"deleted_at": null,
"available_actions": {
"update": true,
"delete": true,
"clone": true,
"restore": false
}
},
{
"id": 2,
"name": "Macbook Air",
"manufacturer": {
"id": 1,
"name": "Apple"
},
"image": "https://develop.snipeitapp.com/uploads/models/macbookair.jpg",
"model_number": "4556440633089683",
"depreciation": {
"id": 1,
"name": "Computer Depreciation"
},
"assets_count": 0,
"category": {
"id": 1,
"name": "Laptops"
},
"fieldset": null,
"default_fieldset_values": [],
"eol": "36 months",
"requestable": false,
"notes": "Created by demo seeder",
"created_at": {
"datetime": "2023-02-23 03:42:04",
"formatted": "Thu Feb 23, 2023 3:42AM"
},
"updated_at": {
"datetime": "2023-02-23 03:42:04",
"formatted": "Thu Feb 23, 2023 3:42AM"
},
"deleted_at": null,
"available_actions": {
"update": true,
"delete": true,
"clone": true,
"restore": false
}
}
]
}

Workflow Library Example

Query Issues by Package Url with Snyk and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop