This is the documentation for the Google News API, which provides access to the latest news and articles from various news sources worldwide.
The base URL for accessing the API is: hhttps://google-news13.p.rapidapi.com
Endpoint used to retrieve the latest news from around the world.
lr
(optional): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States). If not provided, the default value will be used.Endpoint used to retrieve the latest news from various categories.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to retrieve news related to business.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to retrieve news related to entertainment.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to retrieve news related to health.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to retrieve news related to science.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to retrieve news related to sports.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to retrieve news related to technology.
lr
(required): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States).Endpoint used to search for news based on a keyword.
keyword
(required): The search keyword.lr
(optional): Language region parameter to specify the desired language and region of the news. Example: en-US
(English, United States). If not provided, the default value will be used.Endpoint used to get keyword search suggestions based on user input.
keyword
(required): The user input for keyword search suggestions.lr
(optional): Language region parameter to specify the desired language and region of the search suggestions. Example: en-US
(English, United States). If not provided, the default value will be used.Here are some examples of how to make requests to the Google News API endpoints:
Retrieve the latest news from around the world:
GET /google-news/world?lr=en-US
Retrieve the latest business news:
GET /google-news/business?lr=en-US
Retrieve the latest entertainment news:
GET /google-news/entertainment?lr=en-US
Retrieve the latest health news:
GET /google-news/health?lr=en-US
Retrieve the latest science news:
GET /google-news/science?lr=en-US
Retrieve the latest sports news:
GET /google-news/sport?lr=en-US
Retrieve the latest technology news:
GET /google-news/technology?lr=en-US
Search for news articles using the keyword “COVID-19”:
GET /google-news/search?keyword=COVID-19&lr=en-US
Get keyword search suggestions based on user input “economy”:
GET /google-news/search/suggest?keyword=economy&lr=en-US
Feel free to customize the requests by changing the values of parameters such as lr
(language region) and keyword
according to your desired language and search criteria.
To access the Google News API, you will need to authenticate your requests by including an API key in the request header. Please refer to the authentication section in the API documentation for instructions on how to generate and include the API key in your requests.
In case of errors or invalid requests, the API will return appropriate HTTP status codes and error messages indicating the issue. Please refer to the API documentation for more details on the possible error responses and their meanings.
The Google News API provides a convenient way to access the latest news and articles from various categories and search for specific news using keywords. By making HTTP requests to the respective endpoints with the required parameters, you can retrieve the desired news information. Refer to the documentation for more detailed usage instructions and examples.
If you have any further questions or need assistance, please don’t hesitate to contact our support team at thedevisty@gmail.com.