({{, (RefLink[WebImageSearch, paclet:ref/WebImageSearch])["string"] 
gives a dataset of the top web image search results for the specified literal string.}, {, (RefLink[WebImageSearch, paclet:ref/WebImageSearch])[form]
gives the top results obtained by doing the web image search specified by form.}, {, (RefLink[WebImageSearch, paclet:ref/WebImageSearch])[form,elems]
gives the elements of the web image search specified by elems.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[WebImageSearch, paclet:ref/WebImageSearch]) requires internet connectivity and uses external services that require (WebLink[Service Credits, http://www.wolfram.com/service-credits/]).

(RefLink[WebImageSearch, paclet:ref/WebImageSearch]) supports the following basic search forms:

Possible fields include:

Possible options include:

Possible settings for (RefLink[Method, paclet:ref/Method]) include "Google" and "Bing".

Possible elements that can be specified by elems include:

OpenersPrimaryExamplesSection(Spacer1)Examples  (12)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Search for images of tigers:

WebImageSearch["tiger"]

Take the two largest images from search results:

images=WebImageSearch["tuatara","Images"];

TakeLargestBy[images,Times@@ImageDimensions[#]&,2]

Search using a search engine–style query:

WebImageSearch[SearchQueryString["tigers in asia -africa"]]

OpenersExampleSection1(Spacer1)Scope  (5)

OpenersExampleSubsection0(Spacer1)Search Forms  (4)

Search for images that match a simple string:

WebImageSearch["field of flowers"]

Search for images whose metadata contains all specified strings:

WebImageSearch[{"flowers","cats"}]

Filter results by country:

WebImageSearch["ceviche","Country"->(Entity["Peru", Entity["Country","Peru"], "Entity[\"Country\", \"Peru\"]", "country"])]

Filter results by site:

WebImageSearch["white shark","Thumbnails","Site"->"reddit.com/r/thalassophobia"]

OpenersExampleSubsection1(Spacer1)Elements  (1)

Retrieve only a list of thumbnails:

WebImageSearch["ocean waves","Thumbnails"]

OpenersExampleSection2(Spacer1)Options  (3)

OpenersExampleSubsection2(Spacer1)Language  (1)

Search for images only on pages in a specified language:

WebImageSearch["sakura",Language-> (Entity["Japanese", Entity["Language","Japanese"], "Entity[\"Language\", \"Japanese\"]", "language"])]

OpenersExampleSubsection3(Spacer1)MaxItems  (1)

Specify the maximum number of images to retrieve:

WebImageSearch["desert plains","Thumbnails",MaxItems-> 5]

OpenersExampleSubsection4(Spacer1)Method  (1)

Specify a search engine:

WebImageSearch["white beaches","Thumbnails",Method-> "Google"]

OpenersExampleSection3(Spacer1)Neat Examples  (1)

Compare search results from different countries:

resultsJapan=WebImageSearch["tiger","Thumbnails","Country"->(Entity["Japan", Entity["Country","Japan"], "Entity[\"Country\", \"Japan\"]", "country"]),Method-> "Google"];
resultsRussia=WebImageSearch["tiger","Thumbnails","Country"->(Entity["Russia", Entity["Country","Russia"], "Entity[\"Country\", \"Russia\"]", "country"]),Method-> "Google"];

ImageCollage[resultsJapan]

ImageCollage[resultsRussia]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[WebSearch, paclet:ref/WebSearch])  ▪  (RefLink[WikipediaData, paclet:ref/WikipediaData])  ▪  (RefLink[WikipediaSearch, paclet:ref/WikipediaSearch])  ▪  (RefLink[Import, paclet:ref/Import])  ▪  (RefLink[ResourceData, paclet:ref/ResourceData])  ▪  (RefLink[ServiceExecute, paclet:ref/ServiceExecute])  ▪  (RefLink[$ServiceCreditsAvailable, paclet:ref/$ServiceCreditsAvailable])  ▪  (RefLink[GeoImage, paclet:ref/GeoImage])  ▪  (RefLink[WebImage, paclet:ref/WebImage])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Creating & Importing Images, paclet:guide/CreatingAndImportingImages])}, {▪(RefLinkPlain[Knowledge Representation & Access, paclet:guide/KnowledgeRepresentationAndAccess])}, {▪(RefLinkPlain[Listing of Supported External Services, paclet:guide/ListingOfSupportedExternalServices])}, {▪(RefLinkPlain[Accessing External Services & APIs, paclet:guide/AccessingExternalServicesAndAPIs])}, {▪(RefLinkPlain[People & History, paclet:guide/PeopleAndHistory])}, {▪(RefLinkPlain[Web Operations, paclet:guide/WebOperations])}, {▪(RefLinkPlain[Cultural Data, paclet:guide/CulturalData])}, {▪(RefLinkPlain[Computation with Structured Datasets, paclet:guide/ComputationWithStructuredDatasets])}})}})