Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


sends query to Wolfram|Alpha and imports the output.

imports the output according to the specified format.

Details and OptionsDetails and Options

  • Using WolframAlpha requires internet connectivity.
  • The following formats are supported:
  • "FullOutput"a fully formatted version of Wolfram|Alpha output
    "WolframParse"a Wolfram Language expression corresponding to the query
    "WolframResult"pure standard Wolfram Language result (if any)
    "Result"result in the form generated by =
    "URL"Wolfram|Alpha API URL for the query
    "XML"raw XML data
    "WolframForms"list of Wolfram Language expressions in the output, in held form
    "PodInformation"a list of all known information about each pod
    "PodCells"a list of pod contents, rendered as Wolfram Language cells
    "PodImages"a list of pod contents, rendered as bitmaps
    "PodPlaintext"a list of pod contents, as plain text
    "PodTitles"a list of available pod titles
    "PodIDs"a list of available pod IDs
    "PodStates"a list of available pod states
    "SessionInfo"a list of session values that may be sent to the Wolfram|Alpha server to compute the result
    "DataRules"a list of available exposed data
    "Validate"whether the query can be interpreted by Wolfram|Alpha
    {"podid"}a list of available properties for a given pod
    {{"podid",subpodid}}a list of available properties for the given pod and subpod
    {"podid","property"}the values of a given property for the given pod
    {{"podid",subpodid},"property"}the value of a given property for the given pod and subpod
  • The pod ID in WolframAlpha[query,{podid,elems}] can be any string returned by WolframAlpha[query,"PodIDs"].
  • When the second argument is a list, any element of that list can itself be a list, or All, indicating that all matching properties should be returned.
  • WolframAlpha[query] is equivalent to WolframAlpha[query,"FullOutput"] in a notebook front end, and WolframAlpha[query,{ All,{"Plaintext","Input"}}] otherwise.
  • The following options can be given:
  • AppearanceElementsAutomaticelements to include in the displayed results
    AsynchronousFalsewhether to use asynchronous features of the API
    ExcludePodsNonespecific pod IDs to exclude from the results
    IncludePodsAllspecific pod IDs to include in the results
    InputAssumptions{}assumptions to include in the API call
    PodStates{}information about the state of pods
    PodWidthAutomaticthe width parameters of content returned by the API
    TimeConstraint30how many seconds to allow for the API call
  • AppearanceElements only affects results that are returned with structured formatting, such as WolframAlpha[string,"FullOutput"].
  • Possible AppearanceElements include , , , and .
  • Asynchronous->True sets the flag in the API, but then automatically resolves asynchronous content with subsequent calls to Import.
  • Asynchronous->All will set the flag, and leave any asynchronous content unresolved.
  • When the second argument is a list, any settings for IncludePods and ExcludePods are ignored.
  • If IncludePods and ExcludePods are both set to non-empty lists of pod IDs, ExcludePods will be ignored.
  • PodWidth->w sets the API's parameter to w.
  • PodWidth can be set to a list of up to four numbers, corresponding to the API parameters , , , and .
  • WolframAlpha[args,TimeConstraint->t] is effectively equivalent to TimeConstrained[WolframAlpha[args],t].
  • TimeConstraint->t does not constrain the time spent for asynchronous downloads.
  • If TimeConstraint is set to a list of values, the second element is used for the API's setting, the third for , and the fourth for .

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Get the results from a simple Wolfram|Alpha query:

Click for copyable input

Get just the content of the results, formatted as Wolfram System cells:

Click for copyable input

Get a particular piece of information from a particular pod and subpod:

Click for copyable input
Introduced in 2010
| Updated in 2014