Cloud Execution Metadata

Within the Wolfram Cloud, the Wolfram Language provides rich access to available information about the user or process that has initiated the execution of code, making it convenient to set up location- and user-aware services.

Information about Requests

$EvaluationEnvironment the origin of the request ("Session", "WebAPI", etc.)

Information about HTTP Web Requests

HTTPRequestData detailed information about an HTTP request

$UserAgentString the user agent string from the browser etc. initiating the request

Internet Location Information

$RequesterAddress IP address making an evaluation request

IPAddress IP address data

Geographic Location Information »

$GeoLocation inferred lat-long originating a request

$GeoLocationSource source of inferred geo location (e.g. "GeoIP", "Mobile", "User")

$GeoLocationCountry  ▪  $GeoLocationCity

GeoIdentify  ▪  GeoNearest  ▪  FindGeoLocation  ▪  GeoDistance  ▪  GeoGraphics  ▪  ...

Country City AdministrativeDivision ...

Date & Time Information »

$TimeZone deduced time zone originating the request

DateList  ▪  DateString  ▪  DayName  ▪  $DateStringFormat  ▪  AbsoluteTime  ▪  LocalTime  ▪  ...

Language Information

$CharacterEncoding  ▪  $SystemCharacterEncoding  ▪  $Language

LanguageIdentify identify the language of an input

Language modern and historical languages of the world

Display Information

$ImageFormattingWidth deduced width of the requester's display

Information about Authenticated Users

$RequesterWolframID Wolfram ID (typically, email address) requesting an evaluation

$WolframID Wolfram ID of the owner of the cloud object being executed

$RequesterWolframUUID  ▪  $WolframUUID

$CloudUserID, $CloudUserUUID IDs for the user in the current cloud

$CloudAccountName personal or other name associated with a cloud account

$Username login name of the user, e.g. on a local machine

$HomeDirectory  ▪  $UserDocumentsDirectory  ▪  $UserBaseDirectory

$UserURLBase user identification to insert in newly created cloud object URLs

Cloud & Evaluation Information

$CloudEvaluation whether the evaluation is being done in the cloud

$EvaluationCloudObject the cloud object containing the code used in this evaluation

$EvaluationCloudBase base URL of the cloud server doing the evaluation

$CloudBase base URL of the default server for cloud operations

$CloudVersion version of the cloud server

Cookie Information »

$Cookies  ▪  FindCookies  ▪  SetCookies  ▪  ...

Providing Metadata & Extended Parameters

AllowedCloudExtraParameters extra parameters allowed for API calls (e.g. _timeout=...)

AllowedCloudParameterExtensions extensions to allow for parameters (e.g. x__json=...)

Managing Cloud Content »

Permissions  ▪  CloudLoggingData  ▪  CloudDirectory  ▪  ...

Local Machine Information »

SystemInformation complete information on a local machine

$MachineName  ▪  $MachineDomains  ▪  $MachineAddresses  ▪  $ProcessorType  ▪  ...