Overview

ApicAgent parses User-Agent strings into structured device and browser information, returning details like browser name, version, OS, device type, and whether the client is a bot. The service is free with no API key required and supports CORS, making it suitable for client-side JavaScript calls. It is useful for lightweight analytics and conditional content rendering without a server-side library.

Beginner Tip

No signup or API key is needed — just call https://api.apicagent.com/?ua=YOUR_ENCODED_UA with any URL-encoded User-Agent string. In a browser you can capture the current UA from navigator.userAgent and encode it with encodeURIComponent before passing it.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

ApicAgent data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "status": "success",
  "data": {
    "result": "Data from ApicAgent",
    "description": "Extract device details from user-agent string",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

browser_name Detected browser name, e.g., Chrome, Firefox, Safari.
browser_version Full version number of the detected browser.
os_name Operating system name, e.g., Windows, macOS, Linux, Android.
device_type Device category: desktop, mobile, tablet, or bot.
is_bot True if the User-Agent belongs to a crawler or automated bot.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.apicagent.com/?ua=Mozilla%2F5.0+(Macintosh%3B+Intel+Mac+OS+X+10_15_7)+AppleWebKit%2F537.36";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Missing or incomplete parsed fields Non-standard or custom User-Agent strings may not match known browser patterns.
Check if the browser_name and os_name fields are non-null before rendering; use a generic fallback label for unrecognized UAs.
URL encoding errors causing 400 Bad Request Passing a raw unencoded User-Agent string with spaces or special characters breaks the query string.
Always URL-encode the ua parameter value before appending it to the request URL.
CORS error in browser when using http:// Mixed content policy blocks HTTP requests from HTTPS pages.
Use the HTTPS endpoint https://api.apicagent.com/ instead of the HTTP version.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Development
Difficulty Beginner
Listing details not endpoint-verified

Related Tags

Alternatives to ApicAgent

Technical alternatives for different use cases.

User-agent parsing with device and OS detection

Better For

Detailed device and browser detection from user-agent strings

Trade-off

Free usage (Userstack requires paid plan)

Similar APIs

View All →