Examples of Retrieving Data with the API#
For preparation before running the samples (preparing a token, using jq, and so on) and the token type and API permission required for each sample, see "API Usage Examples".
Get Vulnerability List#
$ curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/cves' | jq
{
"paging": {
"totalPage": 8,
"offset": 0,
"page": 1,
"limit": 20,
"totalCount": 158
},
"cves": [
{
"cveID": "CVE-2016-3191",
"scoreV2s": {
"jvn": 7.5,
"nvd": 7.5
},
"scoreV3s": {
"nvd": 9.8
},
"vectorV2s":
...
...
Get Server List#
lastSyncedAt is the time when the server's configuration information was last synchronized, and lastDetectedAt is the time when detection processing was last performed.
$ curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/servers' | jq
{
"paging": {
"totalPage": 1,
"offset": 0,
"page": 1,
"limit": 20,
"totalCount": 2
},
"servers": [
{
"id": 21384,
"serverUuid": "",
"hostUuid": "",
"serverName": "ip-192-168-0-188",
"serverIpv4": "192.168.0.188",
"platformName": "aws",
"platformInstanceId": "",
"serverroleId": 1522,
"serverroleName": "default",
"osFamily": "amazon",
"osVersion": "2017.03",
"needKernelRestart": false,
"lastSyncedAt": "2018-12-17T00:05:22.376924Z",
"lastDetectedAt": "2018-12-17T00:05:28.254655Z",
"tags": [
{
"id": 363,
"name": "tag1"
}
],
"successScanCount": 12,
"newTaskCount": 5,
"createdAt": "2018-11-22T07:16:35.665921Z",
"updatedAt": "2018-12-17T00:05:28.289345Z"
},
...
]
}
Get Task List#
$ curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/tasks?filterStatus=new&filterStatus=investigating&filterStatus=ongoing&filterStatus=workaround&filterStatus=patch_applied' | jq
{
"paging": {
"totalPage": 8,
"offset": 0,
"page": 1,
"limit": 20,
"totalCount": 157
},
"tasks": [
{
"id": 1331193,
"cveID": "CVE-2014-9402",
"serverID": 21384,
"serverUuid": "",
"serverName": "ip-192-168-0-188",
"serverTags": [
"tag1"
],
"osFamily": "amazon",
"osVersion": "2017.03",
"server": {
"id": 21384,
"serverName": "ip-192-168-0-188",
"serverroleId": 1522,
"serverroleName": "default",
"osFamily": "amazon",
"osVersion": "2017.03"
},
"hasExploit": false,
"hasMitigation": false,
"pkgCpeNames": [
"glibc",
"glibc-common",
"glibc-devel",
"glibc-headers"
],
"pkgFixedStatus": "entire",
"applyingPatchOn": "1970-01-01T00:00:00Z",
"status": "new",
"priority": "none",
"ignore": false,
"detectionTools": [
{
"name": "vuls"
}
],
"advisoryIDs": [
"ALAS-2018-1017"
],
"createdAt": "2018-11-22T07:16:39.677041Z",
"updatedAt": "2018-12-17T00:05:28.289345Z"
},
...
]
}
Statuses Retrievable via the Get Task List API
By default, the Get Task List API only retrieves tasks with status=["new", "investigating", "ongoing"].
To retrieve tasks of all statuses, specify all nine statuses with filterStatus.
You can check the server role with server.serverroleId and server.serverroleName, and the patch availability with pkgFixedStatus (none: not available, some: partially available, entire: all available, unknown: includes items whose patch availability is unknown). pkgFixedStatus is not returned for tasks whose status is patch_applied.
Available values : new, investigating, ongoing, defer, not_affected, risk_accepted, workaround, alt_resolved, patch_applied
Get Task Comments in Batch#
You can retrieve comments for multiple tasks at once. This is more efficient than retrieving task details individually, helping to avoid rate limits.
| Parameter | Description | Notes |
|---|---|---|
| taskIDs | List of task IDs to retrieve | Min 1, max 100 |
| commentTypes | Types of comments to retrieve | Select from user, api, system (default: ["user", "api"]) |
$ curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/taskComments?taskIDs=1331193&taskIDs=1331194&commentTypes=user&commentTypes=api' | jq
[
{
"taskID": 1331193,
"comments": [
{
"id": 12345,
"comment": "調査中です",
"type": "user",
"userID": 1,
"userName": "user-name",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
{
"id": 12346,
"comment": "対応完了しました",
"type": "api",
"userID": 2,
"userName": "api-user",
"createdAt": "2024-01-16T14:20:00Z",
"updatedAt": "2024-01-16T14:20:00Z"
}
]
},
{
"taskID": 1331194,
"comments": [
{
"id": 12347,
"comment": "パッチ適用予定",
"type": "user",
"userID": 1,
"userName": "user-name",
"createdAt": "2024-01-17T09:00:00Z",
"updatedAt": "2024-01-17T09:00:00Z"
}
]
}
]
Get Groupset Vulnerability Information#
You can retrieve vulnerability information (title, CVSS, CWE, whether exploit code exists, and so on) associated with multiple CVEs at once. Only CVEs detected in the groups that belong to the groupset are returned.
| Parameter | Description | Notes |
|---|---|---|
| cveIDs | List of CVE IDs to retrieve | Min 1, max 100 |
$ curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/groupSet/cveVulnInfos?cveIDs=CVE-2023-1234&cveIDs=CVE-2023-5678' | jq
[
{
"cveID": "CVE-2023-1234",
"title": "...",
"cvss": {
"cveID": "CVE-2023-1234",
"maxCvssV2": { ... },
"maxCvssV3": { ... },
"maxCvssV4": { ... },
"vulnInfo": { ... }
},
"cwes": [
{
"cweID": "CWE-79",
"english": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
"japanese": "..."
}
],
"exploitLevel": "high",
"hasExploit": true,
"hasMitigation": true
},
{
"cveID": "CVE-2023-5678",
...
}
]
Get Deleted Software List#
You can retrieve a list of software that has been removed from servers due to version upgrades or other changes.
For details, see the "Behavior When a Scan Detects a Software Version Upgrade" note in "Software List and Details".
$ curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/groupSet/deletedPkgCpes' | jq
{
"paging": {
"totalPage": 1,
"offset": 0,
"page": 1,
"limit": 20,
"totalCount": 3
},
"pkgCpes": [
{
"serverSoftwareID": 10,
"pkgID": 10,
"name": "openssl",
"version": "1.1.1",
"serverID": 501,
"serverUuid": "hoge-fuga",
"serverName": "app-server-1",
"group": {
"ID": 1,
"groupName": "group01"
}
}
]
}
Download Server SBOM#
You can download server information registered in FutureVuls as an SBOM. A JSON response with an embedded download URL will be returned, so you need to send another request to download the file.
| Parameter | Description | Notes |
|---|---|---|
| serverID | ID of the server to generate the SBOM for | How to get serverID |
| format | Generation format for the SBOM | Select from cyclonedx_json, cyclonedx_xml, or spdx_json (required) |
# Request a temporarily authenticated download URL
$ curl -s -H 'Accept:application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/server/XXXX/sbom?format=cyclonedx_json' | jq
{
"url": "https://XXXX.s3.ap-northeast-1.amazonaws.com/XXXX/XXXX/XXXXX-XXXXXXX.cyclonedx.json?X-Amz-Algorithm=...&X-Amz-Credential=...&X-Amz-Date=...&X-Amz-Expires=...&X-Amz-Security-Token=..."
}
# To download the file, send another request
$ curl -s -O $(curl -s -H 'Accept:application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/server/XXXX/sbom?format=cyclonedx_json' | jq -r '.url')
Filtering with Parameters#
Date and Time Filter Parameters#
The date and time filter parameters used in the examples on this page are as follows. Specify the date and time in UTC.
| Parameter | Reference date and time | API used in the example | Notes | Example |
|---|---|---|---|---|
filterNewedAtAfter / filterNewedAtBefore |
When the task was registered as NEW (also updated when a PATCH_APPLIED task is detected again and returns to NEW) |
GET /v1/tasks |
The specified date and time are included in the range. To retrieve by day, specify the end time down to fractional seconds (.999999) |
After a date, Within a period |
filterStatusUpdatedAtAfter |
When the task status was updated (also updated when a bulk update specifies the same status as the current one) | GET /v1/groupSet/tasks |
Combine with filterStatus to filter by the current status |
Changed to PATCH_APPLIED |
filterSupplyChainRiskUpdatedAtAfter |
When the supply chain risk was updated | GET /v1/groupSet/pkgCpes |
Includes not only new EOL detections but also changes to fields such as the status, assignee, and EOL date | Supply chain risk updates |
filterCreatedAtAfter |
When the software was registered (including upgraded software) | GET /v1/groupSet/pkgCpes |
ー | Software registration |
filterDeletedAtAfter |
When the software was deleted | GET /v1/groupSet/deletedPkgCpes |
The example combines it with filterServerID to narrow down to a specific server |
Software deletion |
No Date Filter#
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/tasks?limit=1000'
Get Tasks Registered as NEW After May 17, 2024 (JST)#
Use filterNewedAtAfter to extract them. Specify the time in UTC (00:00 on May 17, 2024 JST is 2024-05-16T15:00:00Z).
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/tasks?limit=1000&filterNewedAtAfter=2024-05-16T15:00:00Z'
# Example: retrieve the total number of tasks that match the conditions
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/tasks?limit=1&filterNewedAtAfter=2024-05-16T15:00:00Z' | jq .paging.totalCount
Check the total number with paging.totalCount. Counting the elements of the retrieved tasks counts only one page (up to 1,000 items).
Get Tasks Registered as NEW Between May 17 and May 23, 2024 (JST)#
Combine filterNewedAtAfter and filterNewedAtBefore to filter by a date range.
The following example specifies from 00:00 on May 17, 2024 to 23:59:59.999999 on May 23, 2024 (JST).
If you specify the end time only to the second, such as 14:59:59Z, tasks registered after 23:59:59 (within the last second) are not included in the range.
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/tasks?limit=1000&filterNewedAtAfter=2024-05-16T15:00:00Z&filterNewedAtBefore=2024-05-23T14:59:59.999999Z'
Get Tasks Whose Status Changed to PATCH_APPLIED After a Certain Date#
Combine filterStatusUpdatedAtAfter and filterStatus to filter by status change date.
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/groupSet/tasks?filterStatusUpdatedAtAfter=2025-07-14T00:00:00Z&filterStatus=patch_applied'
Get Software with Supply Chain Risk Updated within the Last 24 Hours#
By using filterSupplyChainRiskUpdatedAtAfter, you can extract software whose supply chain risk (EOL, malicious packages, etc.) has been updated since the specified time.
# Specify the date and time 24 hours ago (e.g., 2026-01-28T00:00:00Z)
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/groupSet/pkgCpes?filterSupplyChainRiskUpdatedAtAfter=2026-01-28T00:00:00Z' | jq
Note on filterSupplyChainRiskUpdatedAtAfter
Because this parameter filters by the supply chain risk update time, it includes not only new EOL detections but also changes in status, assignee, EOL date, and detection method or reason, as well as new detections of malicious packages. You cannot extract only software with newly detected EOL.
Get Software Created After a Specific Date and Time#
By using filterCreatedAtAfter, you can extract software that was registered in FutureVuls or had its version upgraded since the specified time.
For details, see the "Behavior When a Scan Detects a Software Version Upgrade" note in "Software List and Details".
# Get software created after January 1, 2026
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/groupSet/pkgCpes?filterCreatedAtAfter=2026-01-01T00:00:00Z' | jq
Get Software Deleted After a Specific Date and Time#
By using filterServerID and filterDeletedAtAfter, you can extract software that was deleted from a specific server after a specified time.
# Get software deleted after January 1, 2026
curl -s -H 'accept: application/json' -H 'Authorization:xxxxxxxxxxxxx' 'https://rest.vuls.biz/v1/groupSet/deletedPkgCpes?filterDeletedAtAfter=2026-01-01T00:00:00Z&filterServerID=501' | jq