Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am trying to create a program in C# which will return Data (Definitions shown by google) for example
https://drive.google.com/file/d/0ByKNXX5k0y0vcXVUYjZ3RGhST28/view?usp=sharing
you Can see this link to better understand my requirement.
I am presently using a Google web search api which gives me list of data
C#
WebQuery query = new WebQuery(search);
             query.StartIndex.Value = 0;
             query.HostLangauge.Value = Languages.English;
           
             IGoogleResultSet<GoogleWebResult> resultSet = GoogleService.Instance.Search<GoogleWebResult>(query);
           
             return resultSet.Results[0].Content.ToString();

this returns a list of search result. What I need is to get the exact definition by google which appears first while searching any Word Meaning or some Definition or even Time.

Is there a Way to do that?
Thanks for the help
Posted
Updated 11-Jan-16 2:13am
v6

1 solution

You can filter and sort as required. Check the documentation - https://developers.google.com/custom-search/docs/structured_search?hl=en[^].
 
Share this answer
 
Comments
BillWoodruff 11-Jan-16 10:15am    
+5
Abhinav S 11-Jan-16 10:49am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900