Google News Search API
API health status
Healthy Available Limited Mostly unavailable No data
Loading health status...
Get Google news Search data, including headlines and source metadata, for media monitoring and news aggregation.
Tags: Google News
Parameters
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
query | Yes | string | The search query for Google News (e.g., 'artificial intelligence', 'climate change'). | |
country | No | string | us | Set the target country code (e.g., 'us', 'uk') to localize results. See Google Countries. |
language | No | string | en | Set the language for the results using its two-letter code (e.g., 'en' for English, 'fr' for French). See Google Language. |
topic_token | No | string | The Google News topic token to retrieve results for a specific category (e.g., 'World', 'Technology'). Obtained from previous responses. | |
publication_token | No | string | The Google News publication token to fetch results from a specific source (e.g., 'CNN', 'BBC'). Obtained from previous responses. | |
section_token | No | string | The Google News section token to access a specific subsection within a topic or publication. | |
so | No | string | Sorting order for news results. Only works with 'story_token'. Available Values: - RELEVANCE: Relevance. Legacy value 0 is also accepted.- DATE: Date. Legacy value 1 is also accepted. |
Copy Request
bash
curl -X GET "https://api.justserpapi.com/api/v1/google/news/search?query=coffee" \
-H "X-API-Key: YOUR_API_KEY"js
const res = await fetch("https://api.justserpapi.com/api/v1/google/news/search?query=coffee", {
headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);python
import requests
url = "https://api.justserpapi.com/api/v1/google/news/search"
headers = { "X-API-Key": "YOUR_API_KEY" }
params = {
"query": "coffee"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())php
<?php
$url = "https://api.justserpapi.com/api/v1/google/news/search?query=coffee";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: YOUR_API_KEY"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.justserpapi.com/api/v1/google/news/search?query=coffee", nil)
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Response
Loading the latest response example...
