Hassie.NET.API.NewsAPI 2.2.1

Install-Package Hassie.NET.API.NewsAPI -Version 2.2.1
dotnet add package Hassie.NET.API.NewsAPI --version 2.2.1
<PackageReference Include="Hassie.NET.API.NewsAPI" Version="2.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hassie.NET.API.NewsAPI --version 2.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hassie.NET.API.NewsAPI, 2.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Hassie.NET.API.NewsAPI as a Cake Addin
#addin nuget:?package=Hassie.NET.API.NewsAPI&version=2.2.1

// Install Hassie.NET.API.NewsAPI as a Cake Tool
#tool nuget:?package=Hassie.NET.API.NewsAPI&version=2.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Build Status

NewsAPI.NET is a asynchronous API wrapper around News API. It is based on their new v2 API and is written in .NET Standard 1.1.


This library is available on NuGet, under the package name Hassie.NET.API.NewsAPI. The current version is 2.2.1.

Example usage

INewsClient newsClient = new ClientBuilder()
        ApiKey = "Your API Key";

INewsArticles newsArticles = await newsClient.GetTopHeadlines(new TopHeadlinesBuilder()
	.WithSourcesQuery(Source.BBC_NEWS, Source.BBC_SPORT)

foreach (INewsArticle article in newsArticles)


Copyright ©2018 Hassie.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.1 720 4/2/2018
2.2.0 642 2/11/2018
2.1.0 593 2/4/2018
2.0.1 561 2/3/2018
2.0.0 589 2/1/2018
1.0.2 616 1/27/2018
1.0.1 614 1/16/2018
1.0.0 677 1/16/2018

Version 2.2.1
* Fixed bug when adding a search query with a query builder.

Version 2.2.0
* Implemented Everything endpoint. Note that for the query parameter, you must provide the query in URL encoded format.

Version 2.1.0
* INewsArticles and INewsSources now return a read only list of INewsArticle and INewsSource respectively, you no longer have to use the Articles/Sources property within the interface to retrieve the list.

Version 2.0.1
* Bug fixes.

Version 2.0.0
* Rewrote API wraper to use builder pattern.
* Implemented Sources endpoint.
* Please refer to documentation to see the updated example usages.