Custom API.
Integrate with our API directly from your server or proxy layer. The most reliable method for tracking AI bot visits with full control and accuracy.
Overview
Our API integration is the most reliable way to track AI bot interactions with your website. Unlike client-side JavaScript solutions, server-side detection ensures accurate tracking because AI bots typically don't execute JavaScript - they only fetch HTML content. By implementing detection on your server or through a proxy layer (nginx, Apache, Cloudflare Workers, etc.), you can capture 100% of AI bot traffic. This approach works with any platform and gives you complete control over the tracking implementation.
What you get
Requirements
- API key from xseek
- Website ID from your xseek dashboard
- Server-side code access, middleware capability, or proxy layer (nginx, Apache, Cloudflare Workers, etc.)
Setup process
- 01
Choose your implementation approach: server-side code, middleware, or proxy layer (nginx, Cloudflare Workers, etc.)
- 02
Get your API key from the xseek dashboard
- 03
Implement bot detection in your server code or proxy
- 04
Call the /api/track-ai-bot endpoint when a bot is detected
- 05
Deploy your changes to start tracking AI visits
Integration setup
XSEEK_API_KEY=your_api_keyXSEEK_WEBSITE_ID=your_website_idYour API key can be found in your account settings. Make sure it has the ai_visits:push privilege.
Why Server-Side Detection?
AI bots typically don't execute JavaScript - they only fetch HTML content. Server-side or proxy-based detection ensures you capture 100% of AI bot traffic, not just the small percentage that might execute JavaScript.
βRecommended: Server-Side Detection
Implement detection in your server code (Node.js, PHP, Python, etc.):
Best for: Self-hosted applications, Next.js, custom backends, WordPress with server access
β»Alternative: Proxy/Edge Detection
Use any reverse proxy (nginx, Apache, Cloudflare Workers, etc.) for platforms without server access:
Best for: WordPress.com, Wix, Framer, static sites, or when you can't modify server code. Works with nginx, Apache mod_proxy, Cloudflare Workers, Vercel Edge, or any reverse proxy.
βNOT Recommended: Client-Side JavaScript
This approach misses 90%+ of AI bot traffic. Shown for educational purposes only:
Why it doesn't work: AI bots fetch your HTML but don't execute JavaScript, so client-side detection will never see them. Always use server-side or proxy detection for accurate tracking.
Complete API Endpoint Documentation
Endpoint URL
POST https://www.xseek.io/api/track-ai-botRequest Headers
Content-Type: application/json- Requiredx-api-key: YOUR_API_KEY- Required for authentication
Request Body (JSON)
Response Formats
Success (200):
Error (400/401/500):
Status Codes
200- Successfully tracked bot visit400- Invalid request body or missing required fields401- Invalid or missing API key500- Server error
Rate Limits
The API supports high-volume tracking with generous rate limits. Contact support if you need higher limits for enterprise deployments.
We can walk you through the setup or review your configuration.
