Search code examples
google-search-apigoogle-news

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?


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.