Programmatically get Google search results

nonpolynomial237 picture nonpolynomial237 · Sep 9, 2009 · Viewed 9.6k times · Source

How can I get Google search results from inside a program? I need to get an array of search results for a specified string.

Answer

Brandon Bodnar picture Brandon Bodnar · Sep 9, 2009

C++ requires a little more work then other languages. You will need to connect to Google's REST Search API and then use a JSON parser to parse out the search results. Json.org has a collection of JSON parsers in various languages.