It would seem that Google is finally cleaning house of deprecated services. Take the response at face value: the Image Search API is gone.
JG On Dec 2, 2015 7:48 AM, <dmitrycms...@gmail.com> wrote: > Hello, I try write your an example code for work with Google Image Search > API using Python and get an error: {'responseStatus': 403, 'responseData': > None, 'responseDetails': 'This API is no longer available.'} > > My code: > import urllib.request > import simplejson > > url = ('https://ajax.googleapis.com/ajax/services/search/images?' + > 'v=1.0&q=barack%20obama&userip=93.171.159.170') > > req = urllib.request.Request(url, None, {'Referer': 'easy-css.ru'}) > response = urllib.request.urlopen(req) > > # Process the JSON string. > result = simplejson.load(response) > > Please help me, where is my mistake? > > -- > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > google-ajax-search-api@googlegroups.com > To unsubscribe from this group, send email to > google-ajax-search-api+unsubscr...@googlegroups.com > To view this message on the web, visit > > https://groups.google.com/d/msgid/google-ajax-search-api/0ebe4d4f-44a2-4a24-9fa6-3bd2bccf8ce3%40googlegroups.com > <https://groups.google.com/d/msgid/google-ajax-search-api/0ebe4d4f-44a2-4a24-9fa6-3bd2bccf8ce3%40googlegroups.com?utm_medium=email&utm_source=footer> > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-ajax-search-api+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-api@googlegroups.com To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com To view this message on the web, visit https://groups.google.com/d/msgid/google-ajax-search-api/CAF4cwg_0sdQd1snOhHU-vJ6TjfpZCqdCuQ4JNaWXV0ZSY4OQbw%40mail.gmail.com For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.