I have a c# webservice that uses WebClient.Downloadstring(MYURL) to get a Google page.
MYURL is equal to:
http://www.google.co.uk/search?q=mystringtosearch&as_qdr=all&num=100&start=0
It was working fine until i got 503 errors from Google for being a bot. I then got sent here:
and got a key. Now it says all I need to do is add the &key parameter. However, when I have this as MYURL i still get a 503
http://www.google.co.uk/search?q=mystringtosearch&key=1234567890&as_qdr=all&num=100&start=0
The Google API console says that I haven’t done any searches, so I know I haven’t gone over my quota.
What’s going on?
You need to include your custom search engine id in the URL.. as the documentation states, thats what the
cxparameter is for.