Curate Custom Content with mediastack

By (Sponsor)  on  

I used to have a personal aggregator of sites I enjoyed but maintaining it was a nightmare. I needed to grab each site's RSS feed, categorize their contents, deal with errors and individual rate limits, etc. I had to tear the whole project down because it was a nightmare to manage. Fast forward a few years later and there's an amazing API service that aggregates major news sources for me: mediastack!

Quick Hits

  • Sign up for free!
  • Provides access to 7,500 worldwide news sources
  • Offers realtime news as well as historical data
  • Allows querying news articles by keyword, location, date, and more
  • Excellent documentation with code samples

After signing up and getting your free API key, you can start querying this awesome news API. Since it's transfer season in the English Premier League, I could look for news on Arsenal transfers:

I could also check on cryptocurrency governance news in the United States:

I can always limit the source to credible news organizations:

mediastack allows for loads of customizations in request, down to location, paging, topics, languages, dates, and more:

If I wanted to create an "On this day in history" feature, I could use the historical news feature:

I love the idea of using mediastack to create a personal news site. I also enjoy the idea of creating a "Related News" block based on the keywords of a given article. In theory, you could create an amazing, full featured news site with mediastack. Go out and make it happen!


  1. Eric Whitney

    -foxnews, lol

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!