Docs / User agent

Parse the calling User-Agent

Parses the User-Agent header of the request.

GET/v1/user-agent
curl "https://liveapi.io/v1/user-agent" \
  -H "Authorization: Bearer $LIVEAPI_TOKEN"

Request

Send Authorization: Bearer YOUR_TOKEN. Libraries do not wrap this call: from a server it would parse the library's own User-Agent. Use POST /v1/user-agent with the string your server received.

Response

A 200 response uses one call. Returns the browser, device, operating system, and whether the client looks like a bot.

Errors

A failed request returns { "error": { "code", "message" } } and does not use a call.

StatusCodeWhen
400invalid_requestThis request has no User-Agent header.
401unauthorizedThe bearer token is missing or not recognized.

We value your privacy

We use necessary cookies to run this website. With your consent, we would also like to use analytics and marketing cookies. Read our cookie policy.