Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 837
zaump Avatar asked Oct 22 '12 08:10

zaump


2 Answers

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.

like image 101
Shiv Avatar answered Oct 29 '22 04:10

Shiv


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.

like image 39
alestanis Avatar answered Oct 29 '22 05:10

alestanis