Skip to content

AlexCo888/climate-change-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An API showing all the latest Climate Change News around the world.

Made with Node.js, Express, Axios and Cheerio. Deployed in Heroku.

Endpoints

ENDPOINTS PATH NAME DESCRIPTION
GET /news Get All Climate Change News This endpoint will return back all news about Climate Change from all over the world.
GET /news/{newspaperId} Get Individual Source News You can choose between:
- The Times {thetimes},
- The Guardian {guardian},
- The Telegraph {telegraph},
- BBC {bbc},
- The Standard {es},
- The Sun {sun},
- Daily Mail {dm},
- New York Post {nyp},
- United Nations {un},
- Sydney Morning Herald {smh},
- Los Angeles Times {latimes},
- New York Times {nyt}

Response example:

{
  "title": "Xi set to snub UK climate summit as Queen’s irritation grows",

  "url": "https://www.thetimes.co.uk/article/xi-jinping-expected-to-snub-uk-summit-on-climate-crisis-7vkrst6hf",

  "source": "thetimes"
}

About

An API showing all the latest Climate Change News around the world.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published