Google News Search API
The Google News Search API retrieves news search results from Google News, returning headlines, snippets, source names, and timestamps. Costs 5 API credits per request.
Endpoint:
https://api.scrapingdog.com/google_newsAPI Parameters
🔑
Authentication
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
🔗
Request Parameters
queryRequiredThis is a Google Search Query. Example:query=pizza
Type: StringresultsOptionalNumber of results you want to scrape. Its value could be anything between 1 and 100. Default:10
Type: StringcountryOptionalISO code of the country from which you are seeking Google search results. Default:us. For a full list, see the Google Country Parameter.
Type: StringpageOptionalPage number of Google searches. Its value can be0for the first page,1for the second page, and so on. Default:0
Type: StringdomainOptionalTo obtain local results from a specific country, for example, for India it will begoogle.co.in, and for the UK it will begoogle.co.uk. Default:google.com. For a full list, see the Google Domains Page.
Type: StringlanguageOptionalLanguage of the results. Possible Values:en,es,fr,de, etc. Default:en. For a full list, see the Google Language Page.
Type: String
⚙
️ Advanced Filters
lrOptionalLimit the search to one or multiple languages. Used aslang_{language_code}(e.g.,lang_en). For a full list, see the Google LR Language Page.
Type: StringuuleOptionalA parameter that specifies the geographic location or locale for which the search results should be tailored (e.g.,w+CAIQIFJlbGF5IFN0YXRlcw==). Cannot be used with thelocationparameter.
Type: StringtbsOptionalTime-Based Search parameter to filter results based on a specific time range (qdr:hpast hour,qdr:dpast 24h,qdr:wpast week,qdr:mpast month,qdr:ypast year, or custom range).
Type: StringsafeOptionalTo filter adult content set toactive, or to disable it set tooff. Default:off
Type: StringnfprOptionalExcludes results from auto-corrected queries that are spelled wrong. Set to1to exclude or0to include. Default:0
Type: BooleanhtmlOptionalThis will return the full HTML of the Google page. Default:false
Type: Boolean
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/google_news?api_key=APIKEY&query=football&country=us"
import requests url = "https://api.scrapingdog.com/google_news" params = { "api_key": "APIKEY", "query": "football", "results": 10, "country": "us" } response = requests.get(url, params=params) if response.status_code == 200: print(response.json())
const axios = require('axios'); axios.get('https://api.scrapingdog.com/google_news', { params: { api_key: 'APIKEY', query: 'football', results: 10, country: 'us' } }).then(response => console.log(response.data)) .catch(error => console.error(error.message));
<?php $url = 'https://api.scrapingdog.com/google_news/?' . http_build_query([ 'api_key' => 'APIKEY', 'query' => 'football', 'results' => 10, 'country' => 'us', ]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch); curl_close($ch);
require 'net/http' require 'uri' url = URI.parse("https://api.scrapingdog.com/google_news/") url.query = URI.encode_www_form( 'api_key' => 'APIKEY', 'query' => 'football', 'results' => 10, 'country' => 'us' ) http = Net::HTTP.new(url.host, url.port) http.use_ssl = true puts http.request(Net::HTTP::Get.new(url)).body
import java.io.*; import java.net.*; public class Main { public static void main(String[] args) throws Exception { String apiUrl = "https://api.scrapingdog.com/google_news/?api_key=APIKEY&query=football&results=10&country=us"; URL url = new URL(apiUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; while ((line = reader.readLine()) != null) System.out.println(line); conn.disconnect(); } }
API Response
{
"search_information": {
"query_displayed": "football",
"url": "https://www.google.com/search?q=football&gl=us&tbm=nws"
},
"news_results": [
{
"title": "NFL special football to honor U.S. 250th birthday",
"snippet": "The NFL will commemorate the United States' 250th birthday with specially embossed footballs and field markings.",
"source": "ESPN",
"lastUpdated": "19 hours ago",
"url": "https://www.espn.com/nfl/story/_/id/47107677/",
"favicon": "https://www.google.com/s2/favicons?domain=www.espn.com"
},
{
"title": "Are 30-plus-carry games too much of a good thing?",
"snippet": "The BYU back's career-best game against the Bearcats was remarkable and gritty.",
"source": "Deseret News",
"lastUpdated": "13 hours ago",
"url": "https://www.deseret.com/sports/2025/11/26/byu-cougars/",
"favicon": "https://www.google.com/s2/favicons?domain=www.deseret.com"
}
]
}