({{, (RefLink[ServiceExecute, paclet:ref/ServiceExecute])[service,"req"] 
executes "req" on an external service.}, {, (RefLink[ServiceExecute, paclet:ref/ServiceExecute])[service,"req",{(Subscript[par, 1])->(Subscript[val, 1]),…}]
executes "req" with the specified settings for parameters.}, {, (RefLink[ServiceExecute, paclet:ref/ServiceExecute])[req]
executes (RefLink[ServiceRequest, paclet:ref/ServiceRequest]) req on an external service.}})

OpenersNotesSection(Spacer1)Details

The service for (RefLink[ServiceExecute, paclet:ref/ServiceExecute]) can be specified by a (RefLink[ServiceObject, paclet:ref/ServiceObject]) returned from (RefLink[ServiceConnect, paclet:ref/ServiceConnect]), or directly by the name of the service.

If a connection to service is not found, (RefLink[ServiceExecute, paclet:ref/ServiceExecute]) will try to establish a new connection. If multiple connections to service exist, it will use the most recent one.

(RefLink[ServiceExecute, paclet:ref/ServiceExecute]) works with a growing number of external services, given in the guide "Listing of Supported External Services".

(RefLink[$Services, paclet:ref/$Services]) gives the list of available external services.

(RefLink[ServiceExecute, paclet:ref/ServiceExecute]) returns the value obtained from the external service when "req" is executed.

(RefLink[ServiceObject, paclet:ref/ServiceObject])[…]["req",params] is equivalent to (RefLink[ServiceExecute, paclet:ref/ServiceExecute])[(RefLink[ServiceObject, paclet:ref/ServiceObject])[…],"req",params].

The following requests are available for all services:

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Get the last tweet from a Twitter screen name:

ServiceExecute["Twitter","LastTweet",{"ScreenName"->"stephen_wolfram"}]

OpenersExampleSection1(Spacer1)Scope  (4)

List the available Twitter requests:

ServiceExecute["Twitter","Requests"]

Get user information for a list of Twitter accounts:

ServiceExecute["Twitter","UserData","ScreenName"->{"WolframResearch","WolframConnect"}]

Search for images with Bing:

bs=ServiceConnect["BingSearch"]

result = ServiceExecute["BingSearch","Search",{"Query"->"duck","SearchType"->"Image", MaxItems->5}]

Identify the image:

ImageIdentify[Normal@result[All,"Thumbnail"]]

Authenticate your Flickr account:

flickr=ServiceConnect["Flickr"]

Process images from Flickr:

ServiceExecute["Flickr","AlbumImages",{"AlbumID"->"72157651354982875",MaxItems->10, "Elements"->"Images"}]

{DominantColors[],ImageHistogram[]}

Create a word cloud of The Scarlet Letter:

ol=ServiceConnect["OpenLibrary"]["BookText",{"BibKeys"->{{"OLID","OL24929973M"}}}][1];

WordCloud[ServiceExecute["OpenLibrary","BookText",{"BibKeys"->{{"OLID","OL24929973M"}}}][1]]

OpenersExampleSection2(Spacer1)Generalizations & Extensions  (2)

Create a connection to arXiv:

arXiv=ServiceConnect["ArXiv"]

Search articles on a particular topic using the (RefLink[ServiceObject, paclet:ref/ServiceObject]) directly:

articles=arXiv["Search",{"Query"->"Gravitational Waves",MaxItems->4}]

articles[[{2,3},{"ID","URL","Published","Title"}]]

Create a connection to the FRED API using your registered API key:

fred=ServiceConnect["FederalReserveEconomicData"]

Plot the time series for mortgages:

fred["SeriesSearch","Query"->"mortgages","SortBy"->{"SeriesID","Descending"},MaxItems->5]

DateListPlot@fred["SeriesData","ID"->{"WRMORTG"}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ServiceConnect, paclet:ref/ServiceConnect])  ▪  (RefLink[ServiceSubmit, paclet:ref/ServiceSubmit])  ▪  (RefLink[ServiceObject, paclet:ref/ServiceObject])  ▪  (RefLink[$Services, paclet:ref/$Services])  ▪  (RefLink[SendMessage, paclet:ref/SendMessage])  ▪  (RefLink[URLExecute, paclet:ref/URLExecute])  ▪  (RefLink[DeviceExecute, paclet:ref/DeviceExecute])  ▪  (RefLink[CloudEvaluate, paclet:ref/CloudEvaluate])  ▪  (RefLink[RemoteRun, paclet:ref/RemoteRun])  ▪  (RefLink[RemoteRunProcess, paclet:ref/RemoteRunProcess])  ▪  (RefLink[ChannelListen, paclet:ref/ChannelListen])  ▪  (RefLink[WebSearch, paclet:ref/WebSearch])  ▪  (RefLink[TextTranslation, paclet:ref/TextTranslation])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Web Operations, paclet:guide/WebOperations])}, {▪(RefLinkPlain[Accessing External Services & APIs, paclet:guide/AccessingExternalServicesAndAPIs])}, {▪(RefLinkPlain[Financial & Economic Data, paclet:guide/FinancialAndEconomicData])}, {▪(RefLinkPlain[Calling External Programs, paclet:guide/CallingExternalPrograms])}, {▪(RefLinkPlain[Scientific Data Analysis, paclet:guide/ScientificDataAnalysis])}, {▪(RefLinkPlain[Knowledge Representation & Access, paclet:guide/KnowledgeRepresentationAndAccess])}, {▪(RefLinkPlain[Creating & Importing Images, paclet:guide/CreatingAndImportingImages])}, {▪(RefLinkPlain[Sharing & Embedding Content, paclet:guide/SharingAndEmbeddingContent])}, {▪(RefLinkPlain[Background & Scheduled Tasks, paclet:guide/BackgroundAndScheduledTasks])}, {▪(RefLinkPlain[Using Connected Devices, paclet:guide/UsingConnectedDevices])}, {▪(RefLinkPlain[Mail, Messages, Etc., paclet:guide/MailMessagesEtc])}})}})