Skip to content

Vulnerability Agent

Step 1: Get the JSON of your query

Use the API button at the top of the page of a saved or adhoc Vulnerability Agent search.

The query will be a JSON body with the following fields:

ObjectsTypeDescription
continuationString(optional) A continuation ID is used to page through results. If there are more results available than the requested count, the server will return a continuation ID that you can use to fetch additional data. You can find a sample script of how to use continuation here.
layersArray of Strings(optional) a list of parameters for your API call
filtersArray of Strings(optional) a list of filters applied to the Vulnerability Agent
fieldStringtype of filter
valueArray of Stringsa JSON dictionary that may contain the following:
periodStringfrom Last7Days / Last30Days / Last3Months / Last6Months / `Custom
startDate(only for Custom) the date of the start of the period YYYY-MM-DD
endDate(only for Custom) the date of the start of the period YYYY-MM-DD
labelStringthe label of the filter in the Vulnerability Agent (IE: "Last 7 Days")

Example

json
{
  "layers": [
    {
      "filters": [
        {
          "field": "period",
          "value": {
            "type": "Last7Days",
            "label": "Last 7 Days"
          }
        }
      ]
    },
    {
      "filters": [
        {
          "field": "trending",
          "value": true
        }
      ]
    },
    {
      "filters": [
        {
          "field": "cvssScore",
          "value": {
            "gte": 9
          }
        },
        {
          "field": "cvssEstimate",
          "value": "HIGH"
        }
      ]
    }
  ],
  "sort": {
    "field": "cveId",
    "order": "desc"
  }
}

Step 2: Access the Vulnerability Agent

POST https://api.feedly.com/v3/trends/vulnerability-dashboard

body of the request: the JSON query you obtained in step 2

OpenAPI definition

json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Trends API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.feedly.com/v3/trends/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/vulnerability-dashboard": {
      "post": {
        "summary": "Vulnerability Agent",
        "description": "",
        "operationId": "vulnerability-agent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "string",
                    "description": "Body of the request: the JSON query you obtained in step 2",
                    "format": "json"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65492729c04b66000c5d3d70:66c3593b86366b00543c836a"
}