Search code examples
asp.netc#-4.0google-searchgoogle-custom-search

Adding Google's standard search (not custom) to my website


My intention is to embed Google results in my website. I don't want to customise the domain/s on which the search is performed or anything, just a 'bog standard' Google search based on search parameters I pass it.

2 questions:

  • How do I display google results on my website as a response to search criteria entered into a textbox I have?
  • Is there any legislation I need to take into account?

I know my second question sounds rather strange but I'm aware that what I'm appearing to do here is present content driven by Google as though it's my own so want to avoid breaching any copyright or 'same-origin policy' type thing.

What I've Tried/Ways I Know I Could Achieve This

  • Screen scraping Google's response to a simple web request with the necessary query parameters (but seems a bit excessive)
  • Google's custom search (but I don't want to customise anything)

I've tagged this question for some more context.


Solution

  • As it is mentioned here

    you can use your own XML parser to customize the display for your search users.

    with an http request like this:

    GET /search?q=bill+material&output=xml&client=test&site=operations 
    

    But it has a limitation on number of requests per day, 500 or 1000 I guess.