Express · First-party SDK

Express API monitoring that sees every request.
Including the half that isn’t human.

One line in your middleware stack, in the one position that matters. No agent, no sidecar, nothing to deploy.

Source: Imperva 2026 Bad Bot Report

npm i @apitraffic/node

const express = require('express');
const apitraffic = require('@apitraffic/node');

const app = express();

app.use(express.json());          // parse first - verdicts read parsed bodies
app.use(apitraffic.express({
  token: process.env.API_TRAFFIC_TOKEN,
  bucket: process.env.API_TRAFFIC_BUCKET,
}));

app.get('/users/:id', (req, res) => {
  res.json({ id: req.params.id });
});

app.listen(3000);
Order is the whole integration. After express.json(), before your routes.

Express 4.17+ and Express 5 · Node 20+ · types included · Express setup guide · read the middleware source

Express

What this looks like in Express

Middleware order decides what you can see

Mount us after your body parser and before your routes. Earlier and the body is still a stream; later and the requests that never reach a handler - the 404s, the failed auth, the route someone shipped last quarter - are exactly the ones you lose.

Your error handler is not your record

A four-argument error middleware sees what threw. It does not see the request that 401d, or the key that walked forty endpoints without tripping anything. Those are requests, not errors, and they are where the interesting traffic is.

app.use() is not a route table

We read the router, so /users/8f21a/orders/912 groups as /users/{id}/orders/{id}. Percentiles line up per endpoint instead of per URL, without you annotating anything.

API traffic monitoring

Every Express request, with its queries and its verdict attached

One pass through one middleware: the payload, every query and outbound call it caused, and the firewall's decision - on one record, watched for incidents, drift and regressions.

Pricing

Simple, published pricing

Every plan and what it includes, read live from our billing system - with a free trial and no credit card to start.

Solo

$79per month
Start free trial

Retention: 30 days of request history

Replaces a request logger, an APM, an alerting tool and a WAF

Usage & limits

  • 1M requests · Captured requests (then $0.08 per 1,000 requests)
  • 5 buckets · Buckets
  • 2 environments · Environments
  • 1 seat · Team members

Logging & search

  • 30 days · Retention window

Firewall

  • 2 policies · WAF policies per account

Alerts & drift

  • 1 channel · Alert channels

Integrations

  • 1 repository · Linked repositories
Most Popular

Team

$249per month
Start free trial

Retention: 180 days of request history

Replaces a request logger, an APM, an alerting tool and a WAF

Usage & limits

  • 5M requests · Captured requests (then $0.05 per 1,000 requests)
  • 20 buckets · Buckets
  • 5 environments · Environments
  • 20 seats · Team members

Logging & search

  • 180 days · Retention window

Firewall

  • 10 policies · WAF policies per account

Alerts & drift

  • Unlimited · Alert channels

Integrations

  • 5 repositories · Linked repositories

Business

$799per month
Start free trial

Retention: 365 days of request history

Replaces a request logger, an APM, an alerting tool and a WAF

Usage & limits

  • 25M requests · Captured requests (then $0.03 per 1,000 requests)
  • 100 buckets · Buckets
  • 20 environments · Environments
  • Unlimited · Team members

Logging & search

  • 365 days · Retention window

Firewall

  • Unlimited · WAF policies per account

Compliance

  • Compliance

Alerts & drift

  • Unlimited · Alert channels

Integrations

  • Unlimited · Linked repositories

Compare all plan features

Every plan starts with a 7-day free trial - no credit card to begin, and nothing is charged unless you choose a plan.

One bill instead of four: logging, APM, alerting and a firewall on every plan. On Team, that is less than $0.05 per 1,000 captured requests, with all four included.

Prices in the currency shown, excluding tax. Overage is billed per unit and rounded to the cent on the invoice.

FAQ

Express API monitoring questions

Know what your API did - before your customers tell you.

One npm install and one line of code. Your first requests arrive in minutes, with their queries, their firewall verdict and a baseline for every endpoint already building.

Free trial · No credit card · Set up in minutes