Questions tagged [google-search-api]

The Google Custom Search API enables licensed API access, via REST calls, to the Google search engine.

The Google Custom Search API exposes the Google search via a REST API. Invoking the service requires an API Key, and allows a fixed number of free calls before charges begin. It is a replacement/re-branding of the previous Google Search APIs which are deprecated as of 2010.

The API can handle requests in JSON or XML format.

Information on the API is available from Google: https://developers.google.com/custom-search/json-api/v1/overview

644 questions
9
votes
1 answer

Google App Engine Search API custom scoring

For a new project I am comparing ElasticSearch and the GAE Search API. What I need is a custom scoring functionality that is able to handle some custom scoring functions, like: lowering the document's score on distance from a specific geopoint (the…
Peter
  • 1,658
  • 17
  • 23
9
votes
2 answers

How to search Google by specific URL?

I want to search for results from a specific site but only from a specific section of the site, I want to exclude results that have url segments, for example: What I want to search for: http://domain.com/productx What I want to…
condo1234
  • 3,285
  • 6
  • 25
  • 34
9
votes
2 answers

Google custom search engine for Google News

I'm trying to use the Google custom search engine API to query Google News. The API is working great otherwise - but I want to get News results instead of web results. I can't find a way to either restrict the CSE to use Google News, or to ensure…
zaump
  • 147
  • 2
  • 12
8
votes
6 answers

What is the correct way to get google search results?

I want to get all the search results for a particular keyword search on google. I've seen suggestions of scraping, but this seems like a bad idea. I've seen Gems (I plan on using ruby) that do scraping and use the API. I've also seen suggestions of…
Noah Clark
  • 8,101
  • 14
  • 74
  • 116
8
votes
3 answers

ModuleNotFoundError: No module named 'google'

Once I am trying to use google search api it's showing me an error: Traceback (most recent call last): File "C:\Users\Maor Ben Lulu\Desktop\Maor\Python\google\google_Bot.py", line 1, in from google import google ModuleNotFoundError:…
8
votes
2 answers

get links from a google search in C#

I'm trying to program a simple search in google via C# that would run a query of my choice and retrieve the first 50 links. After thoroughly searching for a similar tool\correct API I realized that most of them are obsolete. My first try was to…
gilibi
  • 343
  • 2
  • 9
  • 18
8
votes
0 answers

show multiple result for single page Google custom search

I have single page application in which I want to apply Google custom search. What my requirement is when I search something then it will show result from each section of the page. I have created anchor tag links whenever click on them it will…
Utkarsh Dubey
  • 703
  • 11
  • 31
8
votes
1 answer

Google Search API - Number of Results

Whenever you perform a Google search, it spits out this little snippet of info "About 8,110,000 results (0.10 seconds)" I'm using the number of results certain terms return to rank them against each other, so if I could get this integer - 8,110,000…
varunsrin
  • 860
  • 2
  • 15
  • 24
8
votes
1 answer

How to search for a URL occurrences in Google search results?

I am interested in finding out count of Google search results containing a full URL path. I know we do search for a fully qualified domain or sub-domain. However, have not been able to find a way to search for a path or document. For example: I want…
Ram Iyer
  • 1,404
  • 2
  • 20
  • 27
8
votes
2 answers

Google Custom Search Engine API Image Search not returning results

Just setup my CSE with Image Search enabled in the Basics tab, but still ain't getting results. If I don't use searchType=image in the query it works, if I put it back it stops working with no errors, just no results. Any inputs?
user3573043
  • 81
  • 1
  • 3
8
votes
3 answers

How to access Google Search "I'm Feeling Lucky" functionality using API?

I'm creating a sample app that will take a query from user and will return the URL result returned from Google's "I'm Feeling Lucky" search. Does Google expose this functionality through their API? How to access this?
muraliv
  • 169
  • 1
  • 7
7
votes
1 answer

how to correct spelling mistakes in Google custom API

I am using Google's custom search API, I make an HTTP request to a URL that looks like this: https://www.googleapis.com/customsearch/v1?key=&cref=&num=10&q=how+can+i+do+htis if you search for "how can i do htis" on Google you are told…
7
votes
1 answer

Is there a google API for "People also ask"?

Is there any API to access the people also ask questions in the google's search result list? take a look in this example, my search query: what is google search And google presents this other questions: google alternative questions image
xeno
  • 77
  • 1
  • 4
7
votes
1 answer

Google Appengine Cursors

I'm using both ndb and search-api queries in my python appengine project. The only official docs on cursors I can find:…
glmvrml
  • 1,612
  • 2
  • 14
  • 31
7
votes
2 answers

Any API to search Google Cache?

I am trying to search within Google Cache, so I need to fire this query: http://webcache.googleusercontent.com/search?q=cache:news.ycombinator.com/news+hacker+news And get some content like timestamp from the page. But when I do this using curl…
zengr
  • 38,346
  • 37
  • 130
  • 192
1 2
3
42 43