NewsAPI
FREE
By raygorodskij
Updated a year ago
NewsAPI Overview
News API is a simple and easy-to-use API that returns JSON metadata for the headlines currently published on a range of news sources and blogs.
provider
rating
add first rating
Followers on API
Follow this API
resourcesProvider WebsiteTerms of Service
More Details

NewsAPI

NewsAPI Package

News API is a simple and easy-to-use API that returns JSON metadata for the headlines currently published on a range of news sources and blogs.

Custom datatypes:

Datatype Description Example
Datepicker String which includes date and time 2016-05-28 00:00:00
Map String which includes latitude and longitude coma separated 50.37, 26.56
List Simple array ["123", "sample"]
Select String with predefined values sample
Array Array of objects [{"Second name":"123","Age":"12","Photo":"sdf","Draft":"sdfsdf"},{"name":"adi","Second name":"bla","Age":"4","Photo":"asfserwe","Draft":"sdfsdf"}]

How to get credentials:

  1. Register on newsapi.org.
  2. After creation your account you will see api Key.

NewsAPI.getArticles

Provides a list of live article metadata from a news source or blog.

Field Type Description
apiKey credentials API key.
newsSource String The identifer for the news source or blog you want headlines from. Use the getArticles endpoint to locate this.
typeOfList Select Specify which type of list you want.Note: not all options are available for all sources.

NewsAPI.getSources

Provides a list of the news sources and blogs available on News API.

Field Type Description
category Select The category you would like to get sources for.Default: empty (all sources returned).
languageCode Select Code of the language you would like to get sources for.Default: empty (all sources returned).
countryCode Select Code of the country you would like to get sources for.Default: empty (all sources returned).
Have a question about this API?Ask the API Provider.
More by raygorodskij
Developers who viewed NewsAPI also viewed

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication