Wood Between StudioAPIs & Actors

Home / APIs / AgentLens

AgentLens User-Agent Parser & Bot Detector

Parse User-Agents and Client Hints into browser, OS and device. Detect 55+ bots, including GPTBot and ClaudeBot.

Open on RapidAPI

Endpoints

PathWhat it does
/parseParse a User-Agent (plus optional Client Hints)
/botFast bot / AI-crawler check
/batchParse up to 50 User-Agents

Examples

Replace YOUR_KEY with your RapidAPI key. Host: agentlens-user-agent-parser-bot-detector.p.rapidapi.com

curl

curl --request GET \
  --url 'https://agentlens-user-agent-parser-bot-detector.p.rapidapi.com/parse?ua=Mozilla/5.0%20(compatible;%20Googlebot/2.1)' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: agentlens-user-agent-parser-bot-detector.p.rapidapi.com'

JavaScript

const res = await fetch('https://agentlens-user-agent-parser-bot-detector.p.rapidapi.com/parse?ua=Mozilla/5.0%20(compatible;%20Googlebot/2.1)', {
  headers: {
    'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
    'X-RapidAPI-Host': 'agentlens-user-agent-parser-bot-detector.p.rapidapi.com'
  }
});
const data = await res.json();

Python

import os, requests
r = requests.get(
    'https://agentlens-user-agent-parser-bot-detector.p.rapidapi.com/parse?ua=Mozilla/5.0%20(compatible;%20Googlebot/2.1)',
    headers={
        'X-RapidAPI-Key': os.environ['RAPIDAPI_KEY'],
        'X-RapidAPI-Host': 'agentlens-user-agent-parser-bot-detector.p.rapidapi.com',
    },
)
print(r.json())

Notes

Nothing you send is stored by our code. Calls go through RapidAPI, which bills according to the plan you pick. The origin runs on Cloudflare Workers.