Visitor intelligence API Bulk Log and Visitor Analysis API
Upload up to 1,000 access log lines or IP and user agent pairs and get a summary of real crawlers, fake crawlers and AI referrals, with a result for every row.
POSThttps://api.pathclue.com/v1/visitor/batchBetaCall it from your code
Set your key in the TAPCUB_API_KEY environment variable. Base URL: https://api.pathclue.com/v1.
curl -X POST https://api.pathclue.com/v1/visitor/batch \
-H "Authorization: Bearer $TAPCUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"lines":"20.171.207.5\tMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)\n203.0.113.9\tMozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\n198.51.100.7\tMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36"}'const res = await fetch('https://api.pathclue.com/v1/visitor/batch', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TAPCUB_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"lines": "20.171.207.5\tMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)\n203.0.113.9\tMozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\n198.51.100.7\tMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36"
}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());import os
import requests
res = requests.post(
"https://api.pathclue.com/v1/visitor/batch",
headers={"Authorization": f"Bearer {os.environ['TAPCUB_API_KEY']}"},
json={
"lines": "20.171.207.5\tMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)\n203.0.113.9\tMozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\n198.51.100.7\tMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36",
},
timeout=120,
)
res.raise_for_status()
print(res.json())<?php
$ch = curl_init('https://api.pathclue.com/v1/visitor/batch');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('TAPCUB_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'lines' => '20.171.207.5 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)
203.0.113.9 Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)
198.51.100.7 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36',
]),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status >= 300) {
throw new RuntimeException("HTTP $status: $body");
}
print_r(json_decode($body, true));package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{"lines":"20.171.207.5\tMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)\n203.0.113.9\tMozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\n198.51.100.7\tMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Safari/537.36"}`)
req, err := http.NewRequest("POST", "https://api.pathclue.com/v1/visitor/batch", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("TAPCUB_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
if res.StatusCode >= 300 {
panic(fmt.Sprintf("HTTP %d: %s", res.StatusCode, out))
}
fmt.Println(string(out))
}Request parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
lines | string | Yes | — | Up to 1,000 rows, one per line: access-log lines (Nginx / Apache combined or common, Cloudflare Logpush JSON, IIS W3C with its #Fields line) or IP<TAB>User-Agent pairs (IP User-Agent and IP,User-Agent work too). Charged per 100 rows. |
rows | boolean | No | true | Return one result per row. With false only the summary (and rows that could not be read) come back. |
Example response
Successful responses carry the X-Credits-Charged and X-Credits-Balance headers. Errors return {"error":{"code","message"}} and are never charged.
{
"format": "pairs",
"rows": 3,
"parsed": 3,
"skipped": 0,
"summary": {
"classes": {
"human": 1,
"search": 0,
"ai_training": 2,
"ai_search": 0,
"ai_agent": 0,
"other": 0,
"unknown": 0
},
"ai": 2,
"verification": {
"verified": 1,
"spoofed": 1,
"unverifiable": 0
},
"bots": [
{
"id": "gptbot",
"name": "GPTBot",
"operator": "OpenAI",
"purpose": "ai_training",
"ai": true,
"requests": 2,
"verified": 1,
"spoofed": 1,
"unverifiable": 0,
"topNetworks": [
{
"network": "20.171.207.0/24",
"requests": 1
},
{
"network": "203.0.113.0/24",
"requests": 1
}
]
}
]
},
"results": [
{
"line": 1,
"ip": "20.171.207.5",
"class": "ai_training",
"bot": {
"id": "gptbot",
"name": "GPTBot",
"operator": "OpenAI",
"purpose": "ai_training",
"ai": true
},
"verification": "verified",
"range": "20.171.207.0/24"
},
{
"line": 2,
"ip": "203.0.113.9",
"class": "ai_training",
"bot": {
"id": "gptbot",
"name": "GPTBot",
"operator": "OpenAI",
"purpose": "ai_training",
"ai": true
},
"verification": "spoofed"
},
{
"line": 3,
"ip": "198.51.100.7",
"class": "human",
"bot": null,
"verification": null
}
],
"rangesFetched": "2026-11-17"
}What it costs
| Price | 10 credits per 100 rows |
|---|---|
| In US dollars | about $0.01 · $10 / 1,000 |
| Credits | Free or paid credits |
| Rate limit | Free 10 / min · Plus 60 / min · Pro 300 / min |
| Free daily cap | 1,000 calls a day per key on free accounts |
| Charged | Only on success — errors and timeouts are free |
What people build with it
Access log audits
See how much of your traffic is crawlers, and which ones are fake.
Weekly AI reports
Track GPTBot, ClaudeBot and AI referrals from your own logs.
Data enrichment
Add country, network and bot labels to exported visitor lists.
Frequently asked questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
Which log formats work?
Common web server access log lines, such as the Nginx and Apache combined format, and plain IP and user agent pairs. Lines that can’t be parsed are reported back.
How is it priced?
10 credits per 100 rows, so a full batch of 1,000 rows costs 100 credits, about $0.10.
How much does the Bulk Log and Visitor Analysis API cost?
Each successful call costs 10 credits per 100 rows (about $0.01). 1 credit is about $0.001. Failed calls — invalid input, unreachable sites, timeouts or errors on our side — are not charged.
Can I try it for free?
Yes. New accounts get 300 credits and every account gets 30 free credits a day, and they work on this endpoint. You can also try the matching free tool on tapcub.com without a key.
What are the rate limits?
Free accounts can make 10 calls a minute and 1,000 a day per key; Plus allows 60 a minute and Pro 300. Over the limit you get HTTP 429 with a Retry-After header, and nothing is charged.
How do I get an API key?
Sign in to the TapCub console, verify your email and create a key on the Tools → API page. Keys start with tck_ and are shown once; send them in the Authorization: Bearer header.
Get your API key
Create a key in the console and make your first call in a minute. Light endpoints run on free daily credits.