Developers

Built to be integrated

A dependency-free TypeScript SDK, a plain REST endpoint, edge and CDN log paths that add zero client JS and no latency, and an API to identify agents in your own code. Wire Lume in however you ship: the SDK is optional, not required.

SDK quickstart

Install lumetraffic from npm and send your first request. Zero dependencies, batched and retrying by default.

npm install lumetraffic import { Lume } from 'lumetraffic' // Create once at startup and reuse it for every request. // trustProxy tells the SDK where to read the real visitor IP, which crawler verification needs. const lume = new Lume(process.env.LUME_INGEST_TOKEN!, { trustProxy: 'cloudflare' }) // In your request handler: lume.markStart(req) res.on('finish', () => lume.trackPageviewOrRESTCall(req, res))

Set trustProxy to match your setup: 'cloudflare' only if your origin is reachable solely through Cloudflare, 'x-real-ip', or { xForwardedForHops: n }. Without it, no visitor IP is sent: agents are still identified by user agent, but crawlers show as not verifiable.

REST ingest

No SDK? Post request metadata straight to the ingest endpoint. The body is a JSON array, so you can batch requests.

curl -X POST https://in.lumetraffic.com/visits \ -H "Authorization: Bearer $LUME_INGEST_TOKEN" \ -H "Content-Type: application/json" \ -d '[{ "request_method": "GET", "request_host": "example.com", "request_path": "/", "user_agent": "GPTBot/1.2", "visitor_ip": "203.0.113.7" }]'

Include visitor_ip (the real visitor’s IP) so Lume can verify crawlers. It is used during processing and never stored in full. Without it, agents are identified by user agent only.

Identification API Starter and up

Send a request’s headers and get back the agent it claims to be, matched against the Lume catalog: its operator, its type and its token, so you can route or log agent traffic in your own code. The API identifies by user agent; it does not verify. Recognized agents come back as not_verifiable, everything else as unknown_agent. Verified verdicts (reverse DNS and published IP ranges) are in your dashboard, for installs that forward the visitor IP. Authenticate with an API token from Settings → Tokens.

POST /agent-identifications [{ "id": "req-1", "request_headers": { "user-agent": "GPTBot/1.2" } }] → [{ "id": "req-1", "result": "not_verifiable", "agent_token": "gptbot", "agent_type_name": "AI Data Scrapers", "operator_name": "OpenAI", "agent_id": "…", "agent_url": "…" }]

Install paths

TypeScript SDK REST Cloudflare (no code) Cloudflare Worker Vercel middleware Fastly Akamai AWS CloudFront GCP Cloudflare Logpush

We dogfood the agentic web

Lume tells your humans, bots, and AI agents apart, so it practices what it measures: this site ships a real, machine-readable /llms.txt, generated from the same catalog that powers the dashboard.

Send your first request in a minute.

Free plan, one ingest token, dependency-free SDK. Start building.

Start for free →