← API.MAO.MS Home中文 · 繁體

User-Agent Lookup

Returns your own User-Agent string, taken verbatim from the request header. Nothing is stored.

Endpoint

Method & pathDescription
GET /v1/uaReturns your UA. Plain text by default — the response body is the UA itself
ParameterValuesDescription
formatjsonReturn in the standard JSON envelope as {ua}
parse1Parse the UA into browser, version, OS, device type and model (JSON)

Examples

Plain text (default):

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

JSON (?format=json):

{"code":0,"message":"ok","data":{"ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/131.0.0.0 Safari/537.36"}}

Parsed (?parse=1):

{"code":0,"message":"ok","data":{"ua":"...","parsed":{"browser":"Chrome","browser_version":"131.0.0.0","os":"Windows","os_version":"10/11","device":"Desktop","device_model":null,"mobile":false}}}

Handy for scripts that need their own UA, header debugging, or compatibility checks. Parsing is rule-based; obscure browsers may be misidentified.

Usage stats

This API family has been called 27 times in total · 0 today · Stats for all endpoints

EndpointPathTodayTotal
User-Agent lookup/v1/ua027

Live test

The results below are for the browser you are using right now:

Try the buttons above