Unfortunately, Google doesn't offer their search-by-image service through an API. You'll have to use something else.
Jg On Jan 30, 2015 6:34 AM, "Met Gen" <[email protected]> wrote: > Hello. > > I'm using Google Custom Search API with C#. > > I can search only images by string such as "cars". That's good. > > But i want to search similiar or same images on the internet by selected > image (which selected from my documents) > > How can i do that. > > codes below which i used to string search for images > > > 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) > > > > I need to modify searchterm i think. But how :) > > Thanks Inadvance. > > -- > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 > <https://groups.google.com/d/msgid/google-ajax-search-api/45d10fb1-6d58-4888-8aa2-14d174fa06e2%40googlegroups.com?utm_medium=email&utm_source=footer> > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] To view this message on the web, visit https://groups.google.com/d/msgid/google-ajax-search-api/CAF4cwg9wtOfXXroVvihvSF5zrWtXXZWtax3MGaBApqdqEM%3D97Q%40mail.gmail.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 [email protected]. For more options, visit https://groups.google.com/d/optout.
