Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. google search engine api using c#

google search engine api using c#

Scheduled Pinned Locked Moved C#
csharpjson
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anil Veeraghattapu 4
    wrote on last edited by
    #1

    Hi i am developing a c#.net windows application where i need to passi key words to the google search engine api and i need to retrieve the search results form the api Please tell me which google api i have use in my application to make google search from my application Thanks Anil Veeraghattapu.

    L P 3 Replies Last reply
    0
    • A Anil Veeraghattapu 4

      Hi i am developing a c#.net windows application where i need to passi key words to the google search engine api and i need to retrieve the search results form the api Please tell me which google api i have use in my application to make google search from my application Thanks Anil Veeraghattapu.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Anil709 wrote:

      Please tell me which google api i have use in my application

      I would suggest using the Google toolkit[^] as a starting point.

      1 Reply Last reply
      0
      • A Anil Veeraghattapu 4

        Hi i am developing a c#.net windows application where i need to passi key words to the google search engine api and i need to retrieve the search results form the api Please tell me which google api i have use in my application to make google search from my application Thanks Anil Veeraghattapu.

        P Offline
        P Offline
        Patrik karlin
        wrote on last edited by
        #3

        Hej google has an ajax api att http://code.google.com/apis/ajax/playground/ There lots of example for searsh att this site. If you dont like javascript there's probelby a way to get this with the .net WebClient Class # Edit : ops from a windows application then add a reference to System.Net And write this function static string search(string what) { var x = new WebClient(); var q = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=" + what.Replace(" " , "%20"); var uri = new Uri(q); var downloaded = x.DownloadString(q); return downloaded; } and you whill get json formated like this {"responseData": {"results":[{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://sv.wikipedia.org/wiki/Patrik","url":"http://sv.wikipedia.org/wiki/Patrik","visibleUrl":"sv.wikipedia.org","cacheUrl":"http://www.google.com/search?q\u003dcache:55ZSvMNvIkIJ:sv.wikipedia.org","title":"\u003cb\u003ePatrik\u003c/b\u003e - Wikipedia","titleNoFormatting":"Patrik - Wikipedia","content":"Mansnamnet \u003cb\u003ePatrik\u003c/b\u003e, Patric eller Patrick är av skotskt ursprung och kom till Sverige på 1600-talet med invandrande skotska släkter. \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://griskindspatrik.wordpress.com/","url":"http://griskindspatrik.wordpress.com/","visibleUrl":"griskindspatrik.wordpress.com","cacheUrl":"http://www.google.com/search?q\u003dcache:pM9u03q_o30J:griskindspatrik.wordpress.com","title":"\u003cb\u003ePatrik\u003c/b\u003e","titleNoFormatting":"Patrik","content":"Absolut inte hemgjort, för det var den för ”vispad” (Veronica) och för finfördelad (\u003cb\u003ePatrik\u003c/b\u003e). Nu har jag ju inte tillverkat ankrillettes själv (ÄN, \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.imdb.com/title/tt1067733/","url":"http://www.imdb.com/title/tt1067733/","visibleUrl":"www.imdb.com","cacheUrl":"http://www.google.com/search?q\u003dcache:OQsxMHBWufkJ:www.imdb.com","title":"\u003cb\u003ePatrik\u003c/b\u003e 1,5 (2008)","titleNoFormatting":"Patrik 1,5 (2008)","content":"Directed by Ella Lemhagen. With Gustaf Skarsgård, Torkel Petersson, Thomas Ljungman. A Swedish gay couple adopt what they think is a 15-month-old orphan, \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.patrikschumacher.com/","

        1 Reply Last reply
        0
        • A Anil Veeraghattapu 4

          Hi i am developing a c#.net windows application where i need to passi key words to the google search engine api and i need to retrieve the search results form the api Please tell me which google api i have use in my application to make google search from my application Thanks Anil Veeraghattapu.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Check if this can help you http://www.fiftyfoureleven.com/weblog/web-development/programming-and-scripts/apis/google-search-api[^]

          Regards Aman Bhullar www.arlivesupport.com[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups