Reporting API (v1)

circle-info

이 문서는 v1 API를 사용하며, Snyk은 향후 개발을 REST API에 집중할 예정이므로 결국 지원이 중단될 예정입니다. 자세한 내용은 v1 API를 참조하십시오.

circle-exclamation

Reporting API를 사용하여 조직에 얼마나 많은 문제가 있는지, 또는 특정 기간 동안 얼마나 많은 테스트가 수행되었는지와 같은 질문에 대한 답변을 찾을 수 있습니다.

속도 제한은 사용자당 분당 최대 70건의 요청입니다. 제한을 초과하는 모든 요청은 속도 제한 간격(1분) 동안 요청이 중단될 때까지 상태 코드 429 - Too many requests가 포함된 응답을 받게 됩니다.

Get list of issues

post

Returns any issues that are present during the specified timeframe. For example, if an issue from 2018 is still considered a vulnerable today, it will show up in all reports from its inception to the current day. This data can take up to 9 hours to refresh.Note: A vulnerability that was introduced and then resolved on the same day will not show up in the response.

Required permissions

  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Query parameters
fromstringRequired

The date you wish to fetch results from, in the format YYYY-MM-DD

Example: 2017-07-01
tostringRequired

The date you wish to fetch results until, in the format YYYY-MM-DD

Example: 2017-07-07
pagenumber · doubleOptional

The page of results to request

Example: 1
perPagenumber · doubleOptional

The number of results to return per page (Maximum: 1000)

Example: 100
sortByall ofOptional

The key to sort results by

string · enumOptionalPossible values:
and
anyOptional

The key to sort results by

Example: issueTitle
orderstringOptional

The direction to sort results.

Example: asc
groupByall ofOptional

Set to issue to group the same issue in multiple projects

string · enumOptionalPossible values:
and
anyOptional

Set to issue to group the same issue in multiple projects

Example: issue
Body
and
anyOptionalExample: {"filters":{"orgs":[],"severity":["critical","high","medium","low"],"exploitMaturity":["mature","proof-of-concept","no-known-exploit","no-data"],"types":["vuln","license","configuration"],"languages":["node","javascript","ruby","java","scala","python","golang","php","dotnet","swift-objective-c","elixir","docker","linux","dockerfile"],"projects":[],"issues":[],"identifier":"","ignored":false,"patched":false,"fixable":false,"isFixed":false,"isUpgradable":false,"isPatchable":false,"isPinnable":false,"priorityScore":{"min":0,"max":1000}}}
Responses
chevron-right
200Success
application/json
post
/reporting/issues

Get list of latest issues

post

Returns issues currently in existence. This data can take up to 9 hours to refresh

Required permissions

  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Query parameters
pagenumber · doubleOptional

The page of results to request

Example: 1
perPagenumber · doubleOptional

The number of results to return per page (Maximum: 1000)

Example: 100
sortByall ofOptional

The key to sort results by

string · enumOptionalPossible values:
and
anyOptional

The key to sort results by

Example: issueTitle
orderstringOptional

The direction to sort results.

Example: asc
groupByall ofOptional

Set to issue to group the same issue in multiple projects

string · enumOptionalPossible values:
and
anyOptional

Set to issue to group the same issue in multiple projects

Example: issue
Body
and
anyOptionalExample: {"filters":{"orgs":[],"severity":["critical","high","medium","low"],"exploitMaturity":["mature","proof-of-concept","no-known-exploit","no-data"],"types":["vuln","license","configuration"],"languages":["node","javascript","ruby","java","scala","python","golang","php","dotnet","swift-objective-c","elixir","docker","linux","dockerfile"],"projects":[],"issues":[],"identifier":"","ignored":false,"patched":false,"fixable":false,"isFixed":false,"isUpgradable":false,"isPatchable":false,"isPinnable":false,"priorityScore":{"min":0,"max":1000}}}
Responses
chevron-right
200Success
application/json
post
/reporting/issues/latest

Get test counts

post

Returns the number of tests conducted within a time frame. This data is updated in real time

Required permissions

  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Query parameters
fromstringRequired

The date you wish to count tests from, in the format YYYY-MM-DD

Example: 2017-07-01
tostringRequired

The date you wish to count tests until, in the format YYYY-MM-DD

Example: 2017-07-03
groupByall ofOptional

The field to group results by

string · enumOptionalPossible values:
and
anyOptional

The field to group results by

Example: isPrivate
Body
and
anyOptionalExample: {"filters":{"orgs":[],"isPrivate":false,"issuesPrevented":false,"projects":[]}}
Responses
chevron-right
200Success
application/json
post
/reporting/counts/tests

Get project counts

post

Returns project counts within a time frame. This data can take up to 9 hours to refresh

Required permissions

  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Query parameters
fromstringRequired

The date you wish to fetch results from, in the format YYYY-MM-DD

Example: 2017-07-01
tostringRequired

The date you wish to fetch results until, in the format YYYY-MM-DD

Example: 2017-07-03
Body
and
anyOptionalExample: {"filters":{"orgs":[],"languages":["node","javascript","ruby","java","scala","python","golang","php","dotnet","swift-objective-c","elixir","docker","linux","dockerfile"],"projects":[]}}
Responses
chevron-right
200Success
application/json
post
/reporting/counts/projects

Get latest project counts

post

Returns the number of projects currently in existence. This data can take up to 9 hours to refresh.

  • Params#### Required permissions
  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Body
and
anyOptionalExample: {"filters":{"orgs":[],"languages":["node","javascript","ruby","java","scala","python","golang","php","dotnet","swift-objective-c","elixir","docker","linux","dockerfile"],"projects":[]}}
Responses
chevron-right
200Success
application/json
post
/reporting/counts/projects/latest

Get issue counts

post

Returns issue counts within a time frame. This data can take up to 9 hours to refresh

Required permissions

  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Query parameters
fromstringRequired

The date you wish to fetch results from, in the format YYYY-MM-DD

Example: 2017-07-01
tostringRequired

The date you wish to fetch results until, in the format YYYY-MM-DD

Example: 2017-07-03
groupByall ofOptional

The field to group results by

string · enumOptionalPossible values:
and
anyOptional

The field to group results by

Example: severity
Body
and
anyOptionalExample: {"filters":{"orgs":[],"severity":["critical","high","medium","low"],"types":["vuln","license","configuration"],"languages":["node","javascript","ruby","java","scala","python","golang","php","dotnet","swift-objective-c","elixir","docker","linux","dockerfile"],"projects":[],"ignored":false,"patched":false,"fixable":false,"isUpgradable":false,"isPatchable":false,"isPinnable":false,"priorityScore":{"min":0,"max":1000}}}
Responses
chevron-right
200Success
application/json
post
/reporting/counts/issues

Get latest issue counts

post

Returns the number of issues currently in existence. This data can take up to 9 hours to refresh

Required permissions

  • View Project for every Organization in filters.orgs

  • View Organization Reports for every Organization in filters.orgs

Query parameters
groupByall ofOptional

The field to group results by

string · enumOptionalPossible values:
and
anyOptional

The field to group results by

Example: severity
Body
and
anyOptionalExample: {"filters":{"orgs":[],"severity":["critical","high","medium","low"],"types":["vuln","license","configuration"],"languages":["node","javascript","ruby","java","scala","python","golang","php","dotnet","swift-objective-c","elixir","docker","linux","dockerfile"],"projects":[],"ignored":false,"patched":false,"fixable":false,"isUpgradable":false,"isPatchable":false,"isPinnable":false,"priorityScore":{"min":0,"max":1000}}}
Responses
chevron-right
200Success
application/json
post
/reporting/counts/issues/latest

Last updated