81trust / 100

Proxy Useragent Parse

by User Agent Parser in Search & web

x402 APIPassing, checked 4 h ago

Parse a User-Agent string into browser, engine, OS, device type/vendor/model and CPU, and flag bots and AI crawlers (GPTBot, ClaudeBot, PerplexityBot ...). Params: user_agent (required).

POST https://agentsvc.io/api/v1/proxy/useragent-parse

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
35 ms typical, 35 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/useragent-parse" \
  -H "content-type: application/json" \
  -d '{"user_agent":"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fuseragent-parse
const res = await pay("https://agentsvc.io/api/v1/proxy/useragent-parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"user_agent":"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"}),
});
console.log(await res.json());

Example input

{
  "user_agent": "Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"
}

Example output

{
  "data": {
    "browser": {
      "major": "17",
      "name": "Mobile Safari",
      "version": "17.5"
    },
    "cpu": null,
    "device": {
      "model": "iPhone",
      "type": "mobile",
      "vendor": "Apple"
    },
    "engine": {
      "name": "WebKit",
      "version": "605.1.15"
    },
    "is_ai_crawler": false,
    "is_bot": false,
    "is_mobile": true,
    "is_tablet": false,
    "os": {
      "name": "iOS",
      "version": "17.5"
    },
    "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1"
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40235 ms$0.002