Google custom search engine for Google News - google-search-api

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 that my API query hits Google News rather than the web search. Does anyone know a way to achieve this?

You can use schemas from Schema.org to specify if you're only looking for articles/ blog posts.
To specify the Schema, go to Advanced settings on the Control Panel and select the required schema from here.

There was a News Search API but it's deprecated:
Important: The Google News Search API has been officially deprecated
as of May 26, 2011. It will continue to work as per our deprecation
policy, but the number of requests you may make per day may be
limited.
https://developers.google.com/news-search/
You can see some alternatives SO users recommended on this question.

Related

Is there any way to post updates in a business location using google's business api?

As the title says, I'm trying to find a way to post these updates (see picture below) using google's API, I can't find anything about it. I have checked google's business API documentation and most of it's endpoints are deprecated.
At the top of the page there is a deprecation schedule: https://developers.google.com/my-business/content/sunset-dates
There you can find the new API-Endpoint. I'm also looking for a solution to update opening hours, but it's not that easy to find any information. Even bing is better documented.

Do ads display by default when using Custom Search JSON/Atom API?

This is probably a very easy answer, but Google's documentation is not helpful in detailing what to expect with ads.
I am updating a site from the old paid GSS (since it will soon be phased out), and transitioning them to Google CSE. If we use the JSON/Atom API, will ads be displayed? Google is insistent on telling you that CSE is free because they display ads, but it's not clear if ads show up when using/paying for search queries through the JSON API.
Thanks!
In case anyone is trying to find the answer to this in the future, the answer is no; ads do not display by default when results are pulled using the JSON API.
This is pretty much what I expected since the ads themselves would have to be pulled from JSON, and we're not pulling in any ads. This means that sites that need the CSE but don't want Ads can get around it by implementing their search with the API. You just have to keep the query limit in mind and pay if you expect more than 100/day.
Alternatively, if you qualify as a non-profit, you can follow the prompts in the CSE control panel to register as such and implement the CSE with the provided script as usual without any ads or branding.

Replacement for Google AJAX search for Local

Since Google has deprecated their old web search API as of recently, what are people using to do customized local search? (i.e. search for "donut shop" near this latitude and longitude) Sticking with the deprecated API? Using another Google API? Another provider entirely?
Their suggestion to use their new Custom Search API doesn't seem useful for local. Maybe i'm missing something under my nose?
Google Places API is in developer preview.
I personally used Yahoo! Local Search
The Yelp API is pretty slick as well -- it'll give you local search capabilities and you can also get ratings information.
I've found this Quora link quite useful:
http://www.quora.com/What-is-the-best-alternative-to-Googles-local-search-API

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.

Google search results API usage?

My question is regarding the google AJAX search api. I have been trying to figure this out by exploring their site with no luck. How can I use this API on my site but have the results only be the google results from within my site (i.e. only shows the site:mydomain.com results and NOT the results from a standard google.com search)? Is this even allowed per their terms of usage? Thanks.
You can make a Google custom search and tie it to that.