"BingSearch" (Service Connection)
Connect to the Bing Search API with the Wolfram Language to search the web for sites, images, news, and videos.
Connecting & Authenticating
ServiceConnect["BingSearch"] creates a connection to the Bing Search API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.
Requests
ServiceExecute["BingSearch","request",params] sends a request to the Bing Search API, using parameters params. The following give possible requests.
Web Search
"Search" — return results of a Bing search
"Query" | (required) | query string | |
"SearchType" | Web | "Image", "News", "Video" | |
"StartIndex" | 1 | index of first search result to return | |
MaxItems | 20 | number of results to return per query (1-20) | |
"Country" | None | country or region constraints on search results | |
"Language" | None | language constraints on search results | |
"Site" | None | website constraints on search results | |
"Elements" | None | specific items to return for "Image" queries: "Images", "Thumbnails", "ImageLinks", "ImageThumbnailsLinks" |
Examples
Basic Examples (1)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0rcryefvocofxw6s9odfm-hculq6
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0rcryefvocofxw6s9odfm-b0jmxl
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0rcryefvocofxw6s9odfm-cvowd1
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0rcryefvocofxw6s9odfm-gzwufz
Out[4]=4
