Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top