Skip to content

A Fast and lightweight Python API that search for articles on Google News and returns a JSON response.

Notifications You must be signed in to change notification settings

sakshamssr/GNews-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNews-API

A Fast and lightweight Python API that searches for articles on Google News and returns a JSON response.

Search

Details regarding the usage of the search function.

https://gnewssapi.vercel.app/news/{query}
import requests

# Using the example query "python".
url = "https://gnewssapi.vercel.app/news/python"
response = requests.get(url)
data = response.json()

print(data)

Json Output Format:

{
    {
    "id": {
        "title": "string",
        "updated_on": {
            "time": "HH:MM:SS",
            "date": "YYYY:MM:DD"
        },
        "link": "string"
    },