API Introduction

The API provides you with multiple data points about content and IP addresses. This is an overview of the API. For more details, visit content & IP check pages.

API Authentication

  • Get your Project ID and the API key from the FortGuard Console.
  • In the HTTP request, set the X-API-KEY custom header to the API key.

Endpoints

FortGuard has three endpoints.

  1. Content Check
  2. IP Check
  3. All Check

1. Content Check /check/content

Use this endpoint to get data about a piece of content. By default, it returns a spam score. You can configure it to return more data points including language and sentiment. This endpoint can be used in many use cases including comment and email spam detection, content moderation, and content filtering.

View Docs →

2. IP Check /check/content

This endpoint gives you data about an IP address. It is useful to detect spammy IP addresses.

View Docs →

3. All Check /check

In most cases, you need to check both content and IP address to detect spam. This endpoint allows you to do that in a single API request.

// request
{
    "content": {}, // content endpoint input
    "ip": {} // ip endpoint input
}

// response
{
    "content": {}, // content endpoint output
    "ip": {} // ip endpoint output
}