URLExecute

URLExecute[url]
executes the specified URL, importing whatever result is generated.

URLExecute[url,{"param1"val1,"param2"val2,}]
executes the specified URL, adding elements with names and values .

URLExecute[url,params,format]
imports the result using the specified format.

URLExecute[obj,]
executes the cloud object obj.

Details and OptionsDetails and Options

  • URLExecute by default performs a GET request, with the specifying parameters in the query string.
  • The can be strings or numbers, or the following special forms:
  • None,Null,Missing""
    True"true"
    False"false"
    {e1,e2,}, ,
    imagean image in default format
    ExportForm[expr,form]any expression, exported in the specified form
  • The following options can be given:
  • Method"GET"method to use for request
    "ReadTimeout"0time to allow for uploading or downloading data
    "ConnectTimeout"0time to allow for connecting to the server
    "Username"""username to use for request
    "Password"""password to use for request
    "Cookies"Automaticcookies to pass to the server
    "StoreCookies"Truewhether to store received cookies
    "Headers"{}headers to be manually sent to the HTTP server
    "VerifyPeer"Trueverify authenticity using SSL certificates
    "UserAgent"Automaticuser agent string to send
  • Allowed times are by default given in seconds.
  • URLExecute[obj,] uses the standard authentication mechanism for the Wolfram Cloud.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Execute a URL and import the result from a JSON API:

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

Execute the Google Maps API and import the result:

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

Execute a text-to-speech API and import the result as sound:

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

Execute an APIFunction:

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