API Documentation

Integrate TrafficGuard directly into your ad tracking or CRM systems.

Introduction

The TrafficGuard API is a RESTful interface handling JSON requests and responses. Base URL:

https://api.trafficguard.io/v1

Authentication

Authenticate via Bearer Token header.

Authorization: Bearer YOUR_API_KEY

POST /links

{
  "targetUrl": "https://landing.com",
  "settings": {
    "blockBots": true,
    "blockVpn": true
  }
}

Response:

{
  "id": "lnk_abc123",
  "secureUrl": "https://trafficguard.io/r/lnk_abc123"
}

Get Link Statistics

GET /links/{id}/stats

{
  "total": 1250,
  "clean": 850,
  "blocked": 400,
  "qualityScore": 68
}