Core APIs
...
Google
Core Requests

News Top Stories

4min
google news top stories parameters desktop desktop get get /search?search type=news top stories the google news top stories parameters are applicable when making a request with search type=news top stories to retrieve news results without a query use this request to get a real time snapshot of news thats currently trending in a specific locale (visiting news google com) this request extracts 'top stories' for desktop and mobile for example, to request top stories news results in the location united states , the request would be http https //api serpwow\ com/search?api key=demo\&search type=news top stories\&location=united+statescurl l get https //api valueserp com/search \\ d api key="demo" \\ d q="pizza" \\ d search type="news" \\ d location="united+states"const axios = require('axios'); // set up the request parameters const params = { api key "demo", q "pizza", search type "news", location "united+states" } // make the http get request axios get('https //api valueserp com"/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'q' 'pizza', 'search type' 'news', 'location' 'united+states' } \# make the http get request api result = requests get('https //api valueserp com/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'q' => 'pizza', 'search type' => 'news', 'location' => 'united+states' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api valueserp com/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> google news parameters the following parameters are available for all requests made when search type=news top stories parameter required description search type required should be set to search type=news top stories location optional determines the geographic location in which the query is executed you can enter any location as free text, but if you choose one of the serpwow built in locations https //docs trajectdata com/serpwow/locations api/overview then the google domain , gl and hl parameters are automatically updated to the domain, country and language that match the built in location (note that this behaviour can be disabled via the location auto parameter) location auto optional if the location field is set to a serpwow built in location https //docs trajectdata com/serpwow/locations api/overview from the locations api https //docs trajectdata com/serpwow/locations api/overview , and location auto is set to true (default) then the google domain , gl and hl parameters are automatically updated to the domain, country and language that match the built in location valid values are true (default) to enable this behaviour or false to disable uule optional the google uule parameter use to pass through a custom uule parameter to google serpwow automatically generates the uule when you use the location parameter but we allow you to overwrite it directly by specifying a uule directly google domain optional the google domain to use to run the search query view the full list of supported google domain values here https //docs trajectdata com/serpwow/search api/reference/google domains defaults to google com gl optional the gl parameter determines the google country to use for the query view the full list of supported gl values here https //docs trajectdata com/serpwow/search api/reference/google countries defaults to us hl optional the hl parameter determines the google ui language to return results view the full list of supported hl values here https //docs trajectdata com/serpwow/search api/reference/google languages defaults to en next steps google news top stories results https //docs trajectdata com/serpwow/search api/results/google/news top stories