Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.73 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.73 KB

RapidAPI link: https://rapidapi.com/arkasarkar2000/api/football-news-aggregator-live

Football News API

A Football News API that scrapes news data from various football websites using Cheerio and provides endpoints for users to fetch the latest football news. The API supports CORS and is built using Node.js, Cheerio, Axios, and Express.

Table of Contents

Endpoints

The API provides the following endpoints:

  • /news: Get the list of websites from where news is coming.
  • /news/onefootball: Get the latest football news from OneFootball.
  • /news/espn: Get the latest football news from ESPN. [Provides Images of the news]
  • /news/90mins: Get the latest football news from 90mins. [Provides Images of the news]
  • /news/goal: Get the latest football news from Goal. [Provides Images of the news]

Usage

Users can fetch the latest football news from multiple sources using the provided endpoints. The data is scraped in real-time from popular football news websites.

Here's an example of how to use the API using cURL:

# Get the list of websites
curl https://footballnewsapi.netlify.app/.netlify/functions/api/news

# Get the latest football news from OneFootball
curl https://footballnewsapi.netlify.app/.netlify/functions/api/news/onefootball

# Get the latest football news from ESPN
curl https://footballnewsapi.netlify.app/.netlify/functions/api/news/espn

# Get the latest football news from 90mins
curl https://footballnewsapi.netlify.app/.netlify/functions/api/news/90mins

# Get the latest football news from Goal
curl https://footballnewsapi.netlify.app/.netlify/functions/api/news/goal