$UserAgentString

$UserAgentString
gives the user agent string from an HTTP request that initiated the current evaluation.

DetailsDetails

  • If the current evaluation was not initiated by an HTTP request, $UserAgentString is None.
  • $UserAgentString is set not only for direct web calls such as those through an API, but also for interactive sessions that occur in the Wolfram Cloud Platform.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Deploy an API function that returns the user agent string:

In[1]:=
Click for copyable input
Out[1]=

Get the user agent string of the originator of this request:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)