Back to integrations
Integration docs·fastly.com

Fastly.

Deploy AI bot tracking at the edge using Fastly Compute. Lightning-fast detection with global distribution for any website.

Not available yet

There is no ready-made Fastly snippet yet, so this page does not give you working tracking code. To track AI crawlers today, use Cloudflare or Amazon CloudFront, or call the xSeek API from your server.

01

Overview (planned)

Fastly Compute provides edge computing capabilities that let you detect and track AI bots before they reach your origin server. Using JavaScript/WASM at the edge, you can implement AI bot detection with minimal latency across Fastly's global network. This approach works with any website behind Fastly and provides comprehensive tracking without modifying your origin infrastructure.

02

What it will do

Edge-based AI bot detection using Fastly Compute
Deploy with JavaScript or WASM
Global edge network distribution
Zero impact on origin server performance
Automatic updates via Fastly CLI
Works with any website behind Fastly
Sub-millisecond detection latency
Identifies all major AI crawlers
03

Requirements

  • Fastly account with Compute enabled
  • Fastly CLI installed
  • API key from xseek
  • Website ID from your xseek dashboard
04

Planned setup

  1. 01

    Ensure AI bots are allowed through Fastly's security and bot protection settings

  2. 02

    Create a Fastly Compute service for your domain

  3. 03

    Deploy our JavaScript detection code using Fastly CLI

  4. 04

    Configure environment variables with your API key and website ID

  5. 05

    Activate the service to start tracking AI bot visits

  6. 06

    Monitor traffic through your xseek dashboard

05

What works today

Environment variables requiredrequired
Add these environment variables to your project:
XSEEK_API_KEY=your_api_keyXSEEK_WEBSITE_ID=your_website_id

Your API key can be found in your account settings. Make sure it has the ai_visits:push privilege.

No Fastly snippet yet: build it with the API

There is no ready-made Fastly Compute code to copy. If you run Fastly Compute, you can detect AI crawlers in your own service and send each visit to the xSeek tracking API.

What that takes:

  1. Make sure Fastly's security and bot protection let AI crawlers through
  2. Match AI crawler user agents in your Fastly Compute service
  3. Send a POST to the xSeek tracking endpoint when one matches
  4. Pass the request through to your origin

The API Integration page documents the tracking endpoint, the request format and the responses.

Need more help?

We can walk you through the setup or review your configuration.

Contact support