google-search-api

How can I remake the return from Google search API?


How can I use Google search API to get like on the Google engine, title of web site, a short description and URL. Is it possible?

I tried the API but it gives me only some information that doesn`t have a URL or title to a web site.


Solution

  • Using the Google shopping api, you can retrieve the title, short description and url. I've achieved this in a c# application where it returns a json file from the url below and parse over it.

    You need a apiId to start with.

    Using this url you can add search parameters after the q, in this example just searching for digital camera.

    https://www.googleapis.com/shopping/search/v1/public/products?key=key&country=US&q=digital+camera
    

    See http://code.google.com/apis/shopping/search/v1/getting_started.html for more details