Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am making an application that will get any Disney links in Google for the father of my cousin. The Google Search API is no longer available. It is, but it's another version, and I don't know how to work with it.

Dim search As New GwebSearchClient("")
Dim results As IList(Of IWebResult) = search.Search("Disney Kids", 64, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
ListBox1.Items.Clear()
For Each result As IWebResult In results
    ListBox1.Items.Add(result.Url)
Next


The old API:
Google Code Archive - Long-term storage for Google Code Project Hosting.

The new API which I get an error on Visual Studio saying:

[response status:403] The Google Web Search API is no longer available. Please
migrate to the Google Custom Search API
(Custom Search Google Developers)


How can I do this?

What I have tried:

I've tried the following code but it tells me that the Google Web Search API is no longer available.

Dim search As New GwebSearchClient("")
Dim results As IList(Of IWebResult) = search.Search("Disney Kids", 64, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
ListBox1.Items.Clear()
For Each result As IWebResult In results
    ListBox1.Items.Add(result.Url)
Next
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jun-16 14:42pm    
What part of Google documentation is a problem? I mean, it's hard to figure out what kind of help you may possibly need. I hope writing the whole bunch of documentation on your request is not an option.
What have you tried so far?
(Apparently, what you wrote in your "What I have tried" section is no longer applicable. What else?)
—SA
Dawn1el 23-Jun-16 15:17pm    
I've tried to use the old API but no success.
The problem now is that I can't understand the new API and need help with that.
Sergey Alexandrovich Kryukov 23-Jun-16 15:29pm    
Again, it's hard to see what help would you may need. It's hard to teach understanding.
—SA
Dawn1el 23-Jun-16 17:19pm    
I don't know how to implement the new API on my application like I did with the old one.
I need a code that works with the new Google Search API.
I would be much appreciated.
Sergey Alexandrovich Kryukov 23-Jun-16 18:26pm    
You, see, you hardly can expect that someone write a code sample of such request. I suggest you read the documentation and write some code. At least you could show what is the problem, if you face any.
—SA

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