C# Google Custom Search API by Image (Reverse Image Search)

1,353 views
Skip to first unread message

Met Gen

unread,
Jan 30, 2015, 7:32:02 AM1/30/15
to google-ajax...@googlegroups.com
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.

Jeremy Geerdes

unread,
Jan 30, 2015, 7:36:24 AM1/30/15
to google-ajax...@googlegroups.com

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.
Reply all
Reply to author
Forward
0 new messages