News API
In this section, we present how to connect News API to MindsDB.
News API is a simple HTTP REST API for searching and retrieving live articles from all over the web.
Data from News API can be utilized within MindsDB for model training and predictions.
Prerequisites
Before proceeding, ensure the following prerequisites are met:
- Install MindsDB locally via Docker or Docker Desktop.
- To connect News API to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to News API.
Connection
This handler is implemented using the newsapi-python library.
The required arguments to establish a connection are as follows:
api_key
News API key to use for authentication.
Check out this guide on how to create the API key.
It is recommended to use the API key to avoid the API rate limit exceeded
error.
Here is how to connect News API to MindsDB:
Usage
Simple Search for recent articles:
Advanced search for recent articles per specific sources between dates:
For more information about available actions and development plans, visit this page.
Was this page helpful?