How To Build A Powerful App For Live News And More
Would you like to enhance your application with news data from thousands of international news publishers and blogs, updated as often as every single minute? Wouldn’t it be nice to have a FREE, Simple REST API for Live News & Blog Articles? In this article we will see how fast and easy it is to use RAD Studio and Delphi to create a FireMonkey multidevice application using the LowCode Wizard in addition to a REST client library to take advantage of MediaStack API and retrieve a JSON format response for worldwide news, headlines and blog articles in real-time. What can the MediaStack API do for our apps? MediaStack API offers instant access to live news data feeds, discover trends & headlines, monitor brands and access breaking news events around the world. This is possible to be done for free (up to first 500 calls/month; no credit card required) and much more is available at very affordable prices and scalable to the use you make with no upfront commitments. Every minute, the MediaStack API interface is automatically collecting news articles from 7,500+ global news sources and blogs worldwide, parsing it and converting it into a standardized programmatic format for the purpose of ease of use. In order to ensure the highest possible level of accuracy and data consistency, each of the sources used is monitored closely and around the clock for technical or content anomalies. Additional news sources are added continuously as they become available. Our RAD Studio and Delphi applications will be able to call the API and request information based on the name of parameters you provide. How do I set up the MediaStack API? Make sure you refer to MediaStack API website (https://mediaStack.com/) and and sign up for the free plan providing only your email and some basic information (no credit card required). Once you are in the website will redirect you to a Quickstart guide dashboard and your API Access Key will be provided. The Access Key unique, personal and is required to authenticate with the API. Keep it safe! How do I call MediaStack API endpoints? Now all we need to do is to call the API base URL (http://api.mediaStack.com/) via a HTTP POST method with no JSON request body needed and some few requested parameters added to the URL address depending on the ednpoint we choose to call. One can do that using REST Client libraries available on several programming languages. MediaStack offers two API endpoints to choose from: News Data: Get live & historical news data News Sources: Get a list of news sources Our demo will focus on the Live News Endpoint but all the others follow similar logic but with different parameters passed. For a complete and detailed list of endpoints and its parameters make sure you refer to MediaStack Quickstart guide (https://mediaStack.com/quickstart) // Live News Data http://api.mediastack.com/v1/news ? access_key = YOUR_ACCESS_KEY // optional parameters: & sources = cnn,bbc & categories = business,sports & countries = us,au & languages = en,-de & keywords = virus,-corona & sort = published_desc & offset = 0 & limit = 100 // Live News Data http://api.mediastack.com/v1/news ? access_key = YOUR_ACCESS_KEY // optional parameters: & sources = cnn,bbc & categories = business,sports & countries = us,au & languages = en,–de & keywords = virus,–corona & sort […]
