Dim searchterm As String = "cars"
Dim svc = New CustomsearchService(New BaseClientService.Initializer() With { _
.ApiKey = "*********" _
})
Dim listRequest = svc.Cse.List(searchTerm)
listRequest.SearchType = CseResource.ListRequest.SearchTypeEnum.Image
listRequest.Cx = "*********"
listRequest.ImgSize = CseResource.ListRequest.ImgSizeEnum.Medium
listRequest.Num = 10
Dim resultItems = New List(Of Google.Apis.Customsearch.v1.Data.Result)()
listRequest.Start = 1
Dim search = listRequest.Execute()
resultItems.AddRange(search.Items)
Unfortunately, Google doesn't offer their search-by-image service through an API. You'll have to use something else.
Jg
--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/45d10fb1-6d58-4888-8aa2-14d174fa06e2%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.