How to monitor usage of Google Custom Search Engine - google-custom-search

I'm migrating from Google's Google Site Search (GSS) to Google Custom Search Engine (CSE). I'm using the Atom/JSON API via a PHP library, exactly as I was for my current GSS service. I've created a new CSE search engine in my account and updated the secret key and search engine ID in my PHP configuration.
But I'm not sure how I can monitor the usage of my new CSE search engine? How can I tell whether I've run out of requests? How will I know when I need to pay? In fact, how do I even know that my search requests are going to my new CSE and not to my old GSS?
Is there any sort of logging of searches made using my CSE that I can check?
As a side question, I don't understand how CSE is ad-supported. The Atom/JSON API doesn't seem to include any ads in the results. And even if it did, how can Google force me to display them?

You can get basic usage stats on the Statistics tab (https://cse.google.ca/cse/statistics/stats?cx=) or much more detailed statistics by creating a free Google Analytics account here and then associating it with your CSE by adding your Analytics ID at (https://cse.google.ca/cse/statistics/ga?cx=). The Analytics mobile app (Android or iOS)is pretty slick and can be customized countless ways.

Related

Is google custom search api gets results as similar to google assistant?

I have question regarding Google Custom Search API, is that works similar such as providing results as results provided from Google Assistant ?
our requirement is get result for user query and result should be content rather than web URL's/ links which Google Custom Search API is resulting.
Can you please suggest whether Google Custom Search API will work in getting results such as getting results from Google assistant ?
we have seen "This API brings to you the same Machine Learning technology that both powers Google’s ability to find specific answers to user questions in Google search and is the language understanding system behind the Google Assistant."
Do we get any code samples / API to utilize above system build which is used by the Google Assistant ?

Google Search Engine custom api implementation to enterprise?

I have started a small IT service company recently in India. I was approached by an Big Enterprise asking to design a custom search engine (for internal/web usage) using the Google's custom search engine api.
it has to fetch info from a specific set of websites (internal websites / common web search)
if a particular website is selected before search, it should display the info from that website only.
Enterprise has a webpages that can be accessed with authentication. when user logged-in, the search has to fetch info from those authenticated webpages as well.
the contents should be segregated into images, books, movies, music, etc.
auto complete and search while typing
once we finish this design, may have to run it as a android application using phone gap(cordova lib).
My Questions:
Is Google allow me to do implementation for the Enterprise (they ready to use and pay Usage Charge for using Google search api), and Can I charge the enterprise for implementation and support (agreement will be made between my company and enterprise)?
Is Google provide ad free search results for custom search? If not can we do restriction on the result?
Is Google search engine can be extended to android app?
If your answer is "No" for above questions, if I develop search engine solution on my own, how can I do that?
Google Custom Search is searching only publicly available documents. For internal websites, you can check out Google Search Appliance: http://www.google.com/enterprise/search/products/gsa.html

Can I “reuse” Google search results in my application?

I would like to understand if and how it is possible to achieve the following:
Create an app that sends search requests to Google (search requests
inputted by a user!)
Fetch the search results present in a different
format/graphics/layout the search results to the user.
Is that possible or Google would prevent me from doing such a thing? (via a
CAPTCHA for example)
If it is possible what kind of instrument would I need to use to capture (parse?) the search results???
My application would be developed for Android.
Screen-scraping the search results from the Google search site is a violation of their terms of service. I don't think they would use CAPTCHA to prevent you from doing so, but you might get a letter from their lawyers.
However, you could use the Google Custom Search API which allows you to search Google and customize layout of the results. However, you need to acquire a developer key and also follow their terms of service.
Also, Android has a search component built into it that you can probably use. See http://developer.android.com/guide/topics/search/index.html.

Alternative to the deprecated google REST web search API

I have been using the Google Websearch API for over 1 year now. The service was deprecated in Nov 2010 but continues to provide results to date. More recently, google has started to enforce the 1,000 queries (?) per day limit on this deprecated service. I swear, last month I made over 10,000 API calls in one day without any errors from the service (same IP, same API key).
So I guess my question is has anyone found an alternative yet? I know yahoo boss is pretty good but I am working exclusively on Google for my projects. I do not mind spending money for for this service either as long as i can get 64 results from Google.
On that thought, how are services like Zoomrank able to bypass all Google limits? I have a subscription with Zoomrank and I can get daily rankings for all my keywords. Do they have a tie-up with Google or are they just accessing some secret service I don't know about.
Some people have suggested the new Google custom search, but i dont know how does that help me search the web? Google CS is limited to the CSE you create and searches within those engines. If I am looking for web results for Pizza, Google CS doesnt help me.
Thanks for your input. Much appreciated
UPDATE: #ggez44 points to some official Google documentation of the solution described below here: http://support.google.com/customsearch/bin/answer.py?hl=en&answer=1210656
You can use the Google Custom Search Engine to search the entire web.
In brief:
Create a CSE that searches a single site (e.g. google.com)
In the CSE control panel's Basics section, set to "Search the entire web but emphasize certain sites"
In the Sites section, delete the single site that you added when you created the CSE
Full details here:
http://www.google.com/support/forum/p/customsearch/thread?tid=56c0bd92dda351b7&hl=en&fid=56c0bd92dda351b7000495e3f500d83f
Once that's implemented, you can enable billing in the Google API Console at a CPM of $5, to a total of 10,000 queries.
Google API Console: https://code.google.com/apis/console/
Pricing: https://code.google.com/apis/customsearch/v1/overview.html#Pricing

Build a search-based-app using an API from a major search engine: google, bing, yahoo - who offers search API?

I need to provide search functionality as the cornerstone of my app (basically I think I can make a better interface than whats is offered by Google, bing, yahoo - bold claim I know). Therefore I will not build an entire search engine from scratch, I will rather use an API provider by a major search engine and simply modify the interface that present the results to my visitors. I am a Google fanboi and I initially tried to use Google Search AJAX API. However, I was very disappointed since I can barely change anything at all.
Specifically;
I need an API that will let me pull programmatically the results from a major search engine and let me output them with the style and goodies that I want.
I am not looking to alter the order in which the search results are presented to the user by inserting crap in between the good results (this is against my philosophy). But I would like to wrap massive php/javascript around each search results so that I can completely control how each result is graphically rendered.
I heard of the BING API 2.0, would that be more flexible than Google AJAX API? Could anyone provide output if any of the current search providers are offering API for this purpose right now?
After careful investigation it appears to me that the Bing 2.0 API is the most flexible and robust search API currently on the market.
The Bing API does require you to put their ads next to the results. You can place your own ads with the Yahoo API. The Yahoo API uses the same search technology (same results) and can be used starting from $0,40 per 1000 queries. The lowest, bulk price of the Google API is $4,00 per 1000 queries. Google's relevance is easily ten times higher for the somewhat more advanced queries.
And also Bing version 2 search API is free!
Whereas, Yahoo BOSS V2 has pricing and so Google does custom search API.