Example API Requests & Responses

Using the API

Accessing the API is very straightforward and requires no "official" libraries - all you need to do is send a POST request to:

https://api.whatismybrowser.com/api/v1/user_agent_parse

containing two parameters:

user_key user_agent

The user_key parameter is your API key/token which you obtain by logging in and creating an Application.

The user_agent parameter is the particular User Agent you want the API to parse.

The API will return a response in JSON containing everything we are able to tell you based on that user agent.

Sample Code

We have sample code available for a number of programming languages.

Please head over to our Github page: https://github.com/whatismybrowser

Example API Requests and Responses

Have a look at the examples below.

Choose an API Request/Response to view:

The results are:

  • Internet Explorer 8 on Windows 7

    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; FunWebProducts; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; AskTbFWV5/5.14.1.20007; Media Center PC 6.0; MDDR; MS-RTC LM 8; BRI/2)
    { "result":"success", "parse":{ "simple_browser_string":"Internet Explorer 8 on Windows 7", "simple_sub_description_string":"Internet Explorer 7 Compatibility View", "simple_operating_platform_string":"Dell", "browser":"Internet Explorer 8", "browser_name":"Internet Explorer", "browser_name_code":"internet-explorer", "browser_version":"8", "browser_version_full":"8.0", "operating_system":"Windows 7", "operating_system_name":"Windows", "operating_system_name_code":"windows", "operating_system_flavour":"", "operating_system_flavour_code":"", "operating_system_version":"7", "operating_system_version_full":"Windows NT 6.1", "operating_system_frameworks":[ { "name":"Microsoft .Net", "code":"microsoft-dotnet", "versions":[ { "simple":"2.0", "full":"2.0.50727" }, { "simple":"3.0", "full":"3.0.30729" }, { "simple":"3.5", "full":"3.5.30729" }, { "simple":"4.0", "full":"4.0C" } ] } ], "operating_platform":"", "operating_platform_code":"", "operating_platform_vendor_name":"Dell", "hardware_architecture":"", "extra_info":{ "10":[ "Internet Explorer 7 Compatibility View" ], "20":[ "Media Center PC v6.0" ] }, "detected_addons":[ "Google Toolbar v7.4", "Fun Web Products", "Bing Toolbar v2", "InfoPath XML MIME Filter v2", "Live Meeting 2007", "Microsoft Office Live Connector v1.4", "Microsoft Office Live Patch v1.3", "Microsoft Windows Security Licensing v2.0", "Ask Toolbar 5 v5.1" ], "browser_capabilities":[ ], "extra_info_table":{ }, "layout_engine_name":"Trident", "layout_engine_version":"4.0", "is_abusive":false, "user_agent":"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; FunWebProducts; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; AskTbFWV5/5.14.1.20007; Media Center PC 6.0; MDDR; MS-RTC LM 8; BRI/2)" }, "version_check":{ "is_checkable":true, "is_up_to_date":false } }
  • Chrome 36 on Mac OS X (Snow Leopard)

    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
    { "result":"success", "parse":{ "simple_browser_string":"Chrome 36 on Mac OS X (Snow Leopard)", "simple_sub_description_string":"", "simple_operating_platform_string":"", "browser":"Chrome 36", "browser_name":"Chrome", "browser_name_code":"chrome", "browser_version":"36", "browser_version_full":"36.0.1985.125", "operating_system":"Mac OS X (Snow Leopard)", "operating_system_name":"Mac OS X", "operating_system_name_code":"mac-os-x", "operating_system_flavour":"", "operating_system_flavour_code":"", "operating_system_version":"Snow Leopard", "operating_system_version_full":"10.6.8", "operating_system_frameworks":[ ], "operating_platform":"", "operating_platform_code":"", "operating_platform_vendor_name":"", "hardware_architecture":"", "extra_info":[ ], "detected_addons":[ ], "browser_capabilities":[ ], "extra_info_table":{ }, "layout_engine_name":"WebKit", "layout_engine_version":"537.36", "is_abusive":false, "user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" }, "version_check":{ "is_checkable":true, "is_up_to_date":true } }
  • Android Browser 4 on Android (Gingerbread)

    Mozilla/5.0 (Linux; U; Android 2.3.6; en-gb; GT-N7000 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
    { "result":"success", "parse":{ "simple_browser_string":"Android Browser 4 on Android (Gingerbread)", "simple_sub_description_string":"", "simple_operating_platform_string":"Samsung Galaxy Note (GT-N7000)", "browser":"Android Browser 4", "browser_name":"Android Browser", "browser_name_code":"android-browser", "browser_version":"4", "browser_version_full":"4.0", "operating_system":"Android (Gingerbread)", "operating_system_name":"Android", "operating_system_name_code":"android", "operating_system_flavour":"", "operating_system_flavour_code":"", "operating_system_version":"Gingerbread", "operating_system_version_full":"2.3.6", "operating_system_frameworks":[ ], "operating_platform":"Galaxy Note", "operating_platform_code":"GT-N7000", "operating_platform_vendor_name":"Samsung", "hardware_architecture":"", "extra_info":[ ], "detected_addons":[ ], "browser_capabilities":[ ], "extra_info_table":{ }, "layout_engine_name":"WebKit", "layout_engine_version":"533.1", "is_abusive":false, "user_agent":"Mozilla/5.0 (Linux; U; Android 2.3.6; en-gb; GT-N7000 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" }, "version_check":{ "is_checkable":false } }
  • Mobile Safari 6 on iOS 6.1

    Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25
    { "result":"success", "parse":{ "simple_browser_string":"Mobile Safari 6 on iOS 6.1", "simple_sub_description_string":"", "simple_operating_platform_string":"Apple iPhone", "browser":"Mobile Safari 6", "browser_name":"Mobile Safari", "browser_name_code":"mobile-safari", "browser_version":"6", "browser_version_full":"6.0", "operating_system":"iOS 6.1", "operating_system_name":"iOS", "operating_system_name_code":"ios", "operating_system_flavour":"", "operating_system_flavour_code":"", "operating_system_version":"6.1", "operating_system_version_full":"6.1.3", "operating_system_frameworks":[ ], "operating_platform":"iPhone", "operating_platform_code":"", "operating_platform_vendor_name":"Apple", "hardware_architecture":"", "extra_info":[ ], "detected_addons":[ ], "browser_capabilities":[ ], "extra_info_table":{ "Mobile Build":"10B329" }, "layout_engine_name":"WebKit", "layout_engine_version":"536.26", "is_abusive":false, "user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25" }, "version_check":{ "is_checkable":false } }
  • Silk 2.1 on Fire OS

    Mozilla/5.0 (Linux; U; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/2.1 Safari/535.19 Silk-Accelerated=true
    { "result":"success", "parse":{ "simple_browser_string":"Silk 2.1 on Fire OS", "simple_sub_description_string":"", "simple_operating_platform_string":"Amazon Kindle Fire HD 7\"", "browser":"Silk 2.1", "browser_name":"Silk", "browser_name_code":"silk", "browser_version":"2.1", "browser_version_full":"2.1", "operating_system":"Fire OS", "operating_system_name":"Fire OS", "operating_system_name_code":"fire-os", "operating_system_flavour":"", "operating_system_flavour_code":"", "operating_system_version":"", "operating_system_version_full":"", "operating_system_frameworks":[ ], "operating_platform":"Kindle Fire HD 7\"", "operating_platform_code":"", "operating_platform_vendor_name":"Amazon", "hardware_architecture":"", "extra_info":[ ], "detected_addons":[ ], "browser_capabilities":[ "Silk Accelerated" ], "extra_info_table":{ "System Build":"IML74K" }, "layout_engine_name":"WebKit", "layout_engine_version":"535.19", "is_abusive":false, "user_agent":"Mozilla/5.0 (Linux; U; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/2.1 Safari/535.19 Silk-Accelerated=true" }, "version_check":{ "is_checkable":false } }