Insight API

The Edgewatch CVE Lookup API allows you to retrieve detailed information about IP addresses related to known vulnerabilities and exposures. This includes threat classifications, organizational data, geolocation, and more. The API is divided into two main endpoints:

  • Community Endpoint: Provides basic information suitable for general users.
  • Enterprise Endpoint: Offers comprehensive data intended for enterprise-level applications.

API Access

The API is accessible at the following base URL:

https://insight.edgewatch.net/v3/

Authentication

  • Community Endpoint: No authentication required.
  • Enterprise Endpoint: Requires an API token.

To obtain an API token for the Enterprise endpoint, please contact us.

Endpoints

Community Endpoint

  • URL: /community
  • Method: GET
  • Description: Retrieve basic CVE information related to a specific IP address.

Enterprise Endpoint

  • URL: /enterprise
  • Method: GET
  • Description: Access comprehensive CVE data, including organizational and geolocation information.

Field Descriptions

Common Fields

These fields are available in both Community and Enterprise endpoints.

FieldTypeDescriptionRequiredRead-Only
ipstringThe IP address to query.YesNo
noisestringIndicates background noise level associated with the IP.NoYes
sightstringVisibility status of the IP.NoYes
classificationstringThreat classification of the IP.YesNo
namestringHostname associated with the IP.NoYes
linkstringURL linking to detailed information about the IP.NoYes
last_seenstring (date-time)Timestamp of the last activity involving the IP.NoNo
messagestringAdditional notes or messages regarding the IP.NoYes

Enterprise Fields

Additional fields available only in the Enterprise endpoint.

FieldTypeDescriptionRequiredRead-Only
asnintegerAutonomous System Number associated with the IP.NoNo
organizationstringOrganization owning the IP address.NoNo
countryobjectGeolocation information of the IP.YesNo

country Object Fields

FieldTypeDescriptionRequiredRead-Only
namestringFull country name.YesNo
iso_codestringISO 3166-1 alpha-2 country code.YesNo

Usage Examples

Community Endpoint Example

Request

/v3/community/192.0.0.1/

Response

{
  "ip": "192.0.0.1",
  "noise": true,
  "slight": false,
  "classification": "Malicious",
  "name": "CHINA UNICOM China169 Backbone",
  "link": "https://insight.edgewatch.net/ip/192.0.0.1",
  "last_seen": "2024-11-19T16:18:30.113635Z",
  "message": "Success"
}

Enterprise Endpoint Example

GET /v3/enterprise/192.0.0.1 HTTP/1.1

Response

{
  "ip": "192.0.0.1",
  "noise": "High",
  "sight": "Visible",
  "classification": "Malicious",
  "name": "malicious.example.com",
  "link": "https://insight.edgewatch.net/ip/192.0.0.1",
  "last_seen": "2023-10-20T08:22:10Z",
  "message": "Involved in phishing attacks.",
  "asn": 64512,
  "organization": "Malicious Actors Inc.",
  "country": {
    "name": "Exampleland",
    "iso_code": "EL"
  }
}

Error Handling

The API uses standard HTTP status codes to indicate the success or failure of an API request.

  • 200 OK: The request was successful.
  • 400 Bad Request: The request could not be understood or was missing required parameters.
  • 401 Unauthorized: Authentication failed or user does not have permissions for the requested operation.
  • 403 Forbidden: Authentication succeeded but authenticated user does not have access to the resource.
  • 404 Not Found: The requested resource could not be found.
  • 500 Internal Server Error: An error occurred on the server.

Error Response Format

{
  "error": {
    "code": 400,
    "message": "Invalid IP address format."
  }
}

Best Practices

  • Input Validation: Always validate the IP addresses before making a request.
  • Rate Limiting: Implement request throttling to comply with any rate limits.
  • Error Handling: Incorporate comprehensive error handling in your application.
  • Secure Storage: Keep your API tokens secure and do not expose them in client-side code.
  • Data Refresh: Cache data when appropriate but ensure that you refresh it to maintain accuracy.
Was this article helpful?

Related Articles