Google News Search API

Using this API, you can scrape Google News Search results without worrying about proxy rotation and data parsing. Our API is fast and reliable. Each successful request will cost you 5 API credits

You have to send a GET request to http://api.scrapingdog.com/google_news with the following parameters.

Google News API pricing is available herearrow-up-right.

Parameters

Parameter
Description

api_key

required

Your personal API key. Available on your dashboard Type: String

query

required

This is a Google Search Query. Example1 - query=pizza

results

Number of results you want to scrape. Its value could be anything between 1 and 100. Default Value - 10 Type - String

country

This is the ISO codearrow-up-right of the country from which you are seeking Google search results. Default Value - us Type - String

page

This is the page number of Google searches. Its value can be 0 for the first page, 1 for the second page, and so on.

Default Value - 0 Type - String

domain

To obtain local results from a specific country, for example, for India, it will be "google.co.in," and for the UK, it will be "google.co.uk". Type: String

Default: "google.com"

language

Language of the results. Possible Values - en, es, fr, de, etc. Default Value - en Type - String

lr

Type: String Limit the search to one or multiple languages. It is used as lang_{language code}. For example - "lang_us"

uule

It is a parameter that specifies the geographic location or locale for which the search results should be tailored. Possible Value could be w+CAIQIFJlbGF5IFN0YXRlcw==

Type - String

tbs

In Google Search, the tbs parameter stands for Time-Based Search. It allows you to filter results based on a specific time range.

🔧 Common tbs values for date filtering:

  • Past hour will be tbs=qdr:h

  • Past 24 hours will be tbs=qdr:d

  • Past week will be tbs=qdr:w

  • Past month will be tbs=qdr:m

  • Past year will be tbs=qdr:y

  • Custom range will be tbs=cdr:1,cd_min:MM/DD/YYYY,cd_max:MM/DD/YYYY

📌 Example: To search for results from Jan 1, 2024, to Jan 10, 2024, your tbs parameter would be: tbs=cdr:1,cd_min:1/1/2023,cd_max:1/10/2023

safe

To filter the adult content set safe to active or to disable it set off. Type: String [active/off]

Default: off

nfpr

Type: Boolean

Default: 0 It excludes the result from an auto-corrected query that is spelled wrong. It can be set to 1 to exclude these results or 0 to include them.

html

To render the response as raw HTML.

Type: Boolean Default: false

API Example

curl "https://api.scrapingdog.com/google_news/?api_key=5eaa61a6e562fc52fe763tr516e4653&query=football&results=10&country=us"

Response

Last updated