News API is a JSON API for searching all the articles on the web right now. Search by keyword and get metadata for all relevant articles, just like the old Google News API. Also: it's free for developers!
@highaced Hadn't actually thought about that. Initially I was just thinking: All stories matching this keyword from this source, with the keyword being a bit more granular like 'Mars' as opposed to something high level like 'Science'. I could filter by keyword after I get all the stories, but if you could match that against the full body of the article description, that might be more effective, since you're not sharing the whole article body (for understandable reasons).
Love this API. I wanted to use this to train a model to categorize articles at Hopdata.com. I have a request to add "category" to the response along with title/content .Also If we could get articles by category, it would be so helpful !
Oh wow, I totally missed this! I'm the developer, this is my side project. I'm happy to see its received so much positive attention, thanks everyone.
I built this because I needed a way to show my users the latest headlines and images from a range of sources, and nothing existed that brought this data together in one place with a consistent and uniform API. I had to access the data from each source in different ways, sometimes via their own API, sometimes via RSS, and sometimes with plain old scraping. It got very tedious. So I thought it would be beneficial to extract this functionality from my main project and spin it off so everyone could use it.
@vartikamanasvi Hey Vartika, can you be more specific? Do you mean the country that the news source is based in, or the location that an article refers to?
@highaced Thank you for such a cool API. I made an App using your API. Its working really well for me. Can you please check it out and give me some feedback? https://www.producthunt.com/post...
Nice Product, any plan to return the individual news article in JSON ?( rather than link to news article) + It will also be great to return the news source logo image file in the /sources endpoint response. Thanks
@tahatayyab Returning the whole article is something I've thought about but I'm not sure the publishers would be very happy with that because it totally circumvents them. The terms of their APIs usually forbid republishing whole articles too.
Including the logos in the /sources response is a great idea - I'll start working on it now.
I've also had suggestions to include RSS and Atom outputs which I'll make time for further down the line.
I am using this api and it is amazing, but today i found a news from wall street journal which url is not available currently and some time description is also not coming from meta tags. Can you please look into this. "https://www.wsj.com/articles/at-..."