Supported Frameworks

ApiTraffic provides native integrations for popular Node.js frameworks. Each integration is designed to work seamlessly with your existing application architecture.

CMS Integrations

Strapi

Open-source headless CMS integration

Installation

All integrations are available via npm:
npm install @apitraffic/express

Common Configuration

All integrations share the same configuration options:
{
  token: 'your-api-token',           // Required: Your ApiTraffic API token
  bucket: 'your-bucket-id',          // Required: Your bucket identifier
  ingestHost: 'ingest.apitraffic.io', // Optional: Custom ingest endpoint
  apiHost: 'api.apitraffic.io',       // Optional: Custom API endpoint
  interceptOutbound: true,            // Optional: Monitor outbound requests
  debug: false                        // Optional: Enable debug logging
}

Environment Variables

You can also configure using environment variables:
API_TRAFFIC_TOKEN=your-api-token
API_TRAFFIC_BUCKET=your-bucket-id
API_TRAFFIC_INGEST_HOST=ingest.apitraffic.io
API_TRAFFIC_API_HOST=api.apitraffic.io
API_TRAFFIC_INTERCEPT_OUTBOUND=true
API_TRAFFIC_DEBUG=false

Features

All integrations provide:
  • Request/Response Monitoring - Automatic capture of HTTP requests and responses
  • Outbound Request Tracking - Monitor external API calls your application makes
  • Error Tracking - Capture and analyze application errors
  • Performance Metrics - Response times, throughput, and performance insights
  • Custom Tagging - Add custom metadata to requests for better organization
  • Data Redaction - Automatically redact sensitive information

Getting Started

  1. Choose your framework integration
  2. Install the package
  3. Add the middleware/plugin to your application
  4. Configure with your API credentials
  5. Start monitoring your API traffic
Need help choosing? Express.js is the most widely used and has the most comprehensive documentation and examples.