Company
Date Published
Author
Josh Emerson
Word count
1230
Language
English
Hacker News points
None

Summary

The Snyk API allows developers to retrieve project issues and vulnerabilities associated with their projects, providing visibility into vulnerability status within existing portals and workflows. To access the API, customers must be on a paid plan, log in or sign up for an account, and obtain an API key. The API endpoints include `orgs`, `projects`, and `issues`, which can be used to fetch lists of organizations, projects, and issues, respectively. By using the `aggregated-issues` endpoint, developers can retrieve a JSON payload containing vulnerabilities, licenses, and other information about each issue. This data can be filtered by severity, type, and other criteria, and can be displayed in various formats using tools like jq. The Snyk API also provides a reporting API for more advanced use cases, such as charting issues over time or having more powerful filtering capabilities.