Google News API Python Client

Extract Google News data with our Google News API Python client. Get programmatic access to thumbnail images, direct URLs, article snippets, source names, publication dates, news headlines, and more using simple Python code. Start free, no credit card required.

Trusted by industry leaders all over the world

Integrate our Google News API

The Apify API client for Python is the official library that allows you to use Google News API in Python, providing convenience functions and automatic retries on errors. Get started with simple pip installation and robust error handling built-in.

Python

Python

JavaScript

JavaScript

HTTP

HTTP

MCP

MCP

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {}
9
10# Run the Actor and wait for it to finish
11run = client.actor("easyapi/google-news-scraper").call(run_input=run_input)
12
13# Fetch and print Actor results from the run's dataset (if there are any)
14print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
15for item in client.dataset(run["defaultDatasetId"]).iterate_items():
16 print(item)
17
18# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Get data with Google News API Python client

Use our Python API client to extract Google News data by providing search queries, country codes, and language preferences. The API returns structured data, including titles, URLs, sources, published dates, snippets, and thumbnails with support for up to 5000 news articles per run.

Input

{
"query": "Elon Musk",
"maxItems": 100
}

Output

[
{
"date": "prieš 34 minutes",
"link": "https://www.wsj.com/world/russia/musk-putin-secret-conversations-37e1c187",
"title": "Exclusive | Elon Musk's Secret Conversations With Vladimir Putin",
"domain": "www.wsj.com",
"source": "WSJ",
"snippet": "Regular contacts between world's richest man and America's chief antagonist raise security concerns; topics include geopolitics",
"date_utc": "2024-10-25T15:53:21.775Z",
"position": 1,
"thumbnail": null
}
]

How to use Google News API

Sign up for Apify account01

Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.

Get started for free
Install Apify Python client02

Install the Apify Python client using pip: pip install apify-client. This package provides a simple interface to interact with Google News API from your Python applications.

Get your Apify API token03

Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.

Integrate Google News API04

Navigate to the Google News API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more. Use the provided Python code examples to integrate Google News API into your Python application.

Open Google News Python API
Get your Google News data via API05

The Google News API returns structured JSON data that works perfectly with pandas, NumPy, and other Python data analysis libraries.

Why use Apify?

Never get blocked

Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.

Customers love us

We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.

Monitor your runs

With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.

Export to various formats

Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.

Integrate Apify to your workflow

You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.

Large developer community

Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!

Frequently asked questions

No, there is no official Google News Python API client provided by Google. However, this Google News scraper serves as a powerful Python API client alternative that extracts the same data you would get from an official Python API. It provides structured access to Google News content through web scraping, delivering results in JSON format with all the key data points you need for news monitoring and analysis in your Python applications.

Yes, you can try our Google News Python API client for free! Apify offers a free tier that allows you to test the Python API client and see the results before committing to a paid plan. You can access the API through the Python client and run small tests to evaluate the data quality and structure. The pricing is transparent at $5.00 per 1,000 results, making it cost-effective for both small projects and large-scale news monitoring operations.

The Python Google News API client can extract comprehensive data including article titles, direct URLs to source articles, publication sources, publication dates and times, article snippets and descriptions, thumbnail images, article positioning in search results, and domain information. The Python client supports multiple countries and languages, can filter results by time periods, and handles up to 5000 results per run, making it perfect for news aggregation, market research, and sentiment analysis projects in Python.

Getting started with our Google News Python API is easy — simply create a free Apify account, get your API token, and start using the Google News API in Python, JavaScript, CLI, cURL, OpenAPI, or MCP.

Get started with Google News API Python client today

Get your first Google News data in Python in less than 5 minutes. No credit card required. No commitment. Cancel anytime.