WebImageSearch

WebImageSearch["string"]

gives a dataset of the top web image search results for the specified literal string.

WebImageSearch[form]

gives the top results obtained by doing the web image search specified by form.

WebImageSearch[form,elems]

gives the elements of the web image search specified by elems.

Details and Options

  • WebImageSearch requires internet connectivity and uses external services that require Service Credits.
  • WebImageSearch supports the following basic search forms:
  • "string"complete string must occur in the image metadata
    {s1,s2,}search for all si in the image metadata
    s1|s2|at least one of the si must occur in the image metadata
    SearchQueryString["query"]complete search enginestyle query
    "field"s1the si must occur in the given field
    FixedOrder[s1,s2,]the si must occur in the order given
    Except[q]q cannot occur in the image metadata
  • Possible fields include:
  • "Country"search only within a given country's web domain
    "Site"search only within specified website
    "FileFormat"search only for files with the specified format
  • File formats can be specified either by strings as used by Import or by entities of type "FileFormat".
  • Possible options include:
  • AllowAdultContentFalsewhether to include adult-type results
    LanguageNonegive only pages in the specified language
    MaxItems10number of results to return
    MethodAutomaticexternal search service to use
  • Possible settings for Method include "Google" and "Bing".
  • Possible elements that can be specified by elems include:
  • "Thumbnails"image thumbnails
    "Images"full images
    "ImageHyperlinks"full image hyperlinks
    "PageTitles"page titles
    "PageHyperlinks"hyperlinks to pages where images appear
    "FileFormats"formats of image files

Examples

open allclose all

Basic Examples  (3)

Search for images of tigers:

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

Take the two largest images from search results:

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

Search using a search enginestyle query:

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

Scope  (5)

Options  (3)

Neat Examples  (1)

See Also

WebSearch  WikipediaData  WikipediaSearch  Import  ResourceData  ServiceExecute  $ServiceCreditsAvailable

Introduced in 2017
(11.1)