Here is an example of an API that collects all news articles to do with climate change I coded this from watching a youtube tutorial on creating APIS
You can run this project on your local machine. Just pull it down and do the following:
- Run the command above to install all the packages
- Now run the server:
npm run start
- Open http://localhost:8000/news with your browser to see the results of the scrape in your terminal. You can also used certain parameters to get news from individual sources.