This is a RESTful API for retrieving news articles from various publishers based on different criteria such as date, publisher name, and stock ticker. The API is built on top of the EOD Stock API and requires an API key for authentication.
https://api.news-api.site
Sure! Here are the documentation and explanations for each API endpoint in the provided code:
- Description: Fetches a specific news article.
- Endpoint URL:
https://api.news-api.site/api/v1/news/article/
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- Description: Fetches a list of news articles within a specified range.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-bounded/{upperBound}
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- URL Parameters:
upperBound
(required): An integer between 1 and 99 representing the upper bound for the articles.
- Description: Fetches a list of news articles by a specific date.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-by-date/{date}
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- URL Parameters:
date
(required): The date in the formatYYYY-MM-DD
.
- Description: Fetches a list of news articles by a specific publisher.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-by-publisher/{publisher}
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- URL Parameters:
publisher
(required): The name of the publisher.
- Description: Fetches a list of news articles by a specific stock ticker.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-by-ticker/{ticker}
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- URL Parameters:
ticker
(required): The stock ticker code (alphanumeric field with up to 96 characters).
- Description: Fetches a list of news articles by page number.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-by-page/{pageNumber}
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- URL Parameters:
pageNumber
(required): An integer between 1 and 99 representing the page number.
- Description: Fetches a list of news articles by a specific company.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-by-company/
- Method: GET
- Query Parameters:
api_key
(required): Your API key.
- Description: Fetches a list of news articles by a specific exchange and page number.
- Endpoint URL:
https://api.news-api.site/api/v1/news/articles-by-exchange/{exchange}/{page}
- Method: GET
- Query Parameters:
api_key
(required): Your API key.page
(reuired): Page Number
- URL Parameters:
exchange
(required): The exchange code (a letter between 1 and 8 characters).