3 ms·
Hi HN! This is my side project. I needed to integrate the latest headlines and images from a range of popular news sources and blogs into my app, and found that
by highace 10y ago
Hi HN! This is my side project. I needed to integrate the latest headlines and images from a range of popular news sources and blogs into my app, and found that there wasn't a single API available that brought all the metadata together in a simple and consistent way. So I made one. It sources data from individual APIs, RSS feeds, and plain old scraping, and outputs in JSON.
Here's some example responses:
TechCrunch: https://newsapi.org/v1/articles?source=techcrunch&sortBy=latest&apikey=3e22f2fcc1344975ae2b2e69379e2a6e https://newsapi.org/v1/articles?source=techcrunch&sortBy=lat...
Reuters: https://newsapi.org/v1/articles?source=reuters&sortBy=latest&apikey=3e22f2fcc1344975ae2b2e69379e2a6e https://newsapi.org/v1/articles?source=reuters&sortBy=latest...
BBC News: https://newsapi.org/v1/articles?source=bbcnews&sortBy=top&apikey=3e22f2fcc1344975ae2b2e69379e2a6e https://newsapi.org/v1/articles?source=bbcnews&sortBy=top&ap...
- erlehmann_ 10y agoWhy is the output format not RSS or Atom feeds? It could be trivially collected and re-used then without coding to your API.
- highace 10y agoGreat suggestion. I'll put this on the road map.
- erlehmann_ 10y agoNice. I would suggest to always use Atom instead of RSS, as it can do everything RSS can and more (e.g. multiple enclosures).
- LaurenceW1 10y agois this open source?