p/news-api
Search worldwide news with code
Ben Tossell
News API — Get live headlines from a range of news sources
Featured
31

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!

Replies
Sriram Sivakumar
Awesome!
Binu Mathew
Pretty Cool !! :)
Joost Schuur
Would love to see filtering by keyword/category for this.
Akshay Jirage
I agree with @joostschuur. It would be great if we could retrieve news in particular domain, for instance 'Tech".
Jn
@akshayjirage @joostschuur Are you saying you want all the Tech stories merged together into a single feed, for example?
Joost Schuur
@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).
Shashank
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 !
Jn
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.
Chris Short
@highaced This is great! Anyone sites you know of that are using your API?
Vartika
@highaced possible to get location also of the news report ?
Jn
@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?
Vartika
@highaced Well if I can get the location that an article refers to that's my exact use case. But I can work around even if I get the country.
Devang Patel
@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...
Colin Winhall
Is this product still running @highaced ?
Zsolt Nemeth
Awesome work! Can I ask what stack do you use for the API and for the data aggregation/scraping?
Taha Maddam, CFA
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
Jn
@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.
Surendran B
Looks cool. Will definitely try it out.
Manish Shahi
Awesome! Really loved the product.
José Ignacio Stark
Been wondering about this a long time. Finally.
Rushabh Doshi
We have a news bot that we have built, can we plug in the API to the bot ?
Jn
Khushboo Anupam Bharti
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-..."
MedyaVeri
Sounds cool
Ghost Kitty
Comment Deleted
Jazastry Jazz
Very nice!!