Newscatcherapi.Net 6.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Newscatcherapi.Net --version 6.0.3
                    
NuGet\Install-Package Newscatcherapi.Net -Version 6.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Newscatcherapi.Net" Version="6.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Newscatcherapi.Net" Version="6.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Newscatcherapi.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Newscatcherapi.Net --version 6.0.3
                    
#r "nuget: Newscatcherapi.Net, 6.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Newscatcherapi.Net@6.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Newscatcherapi.Net&version=6.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Newscatcherapi.Net&version=6.0.3
                    
Install as a Cake Tool

Newscatcherapi.Net - C#

NuGet

<img src='https://uploads-ssl.webflow.com/6429857b17973b636c2195c5/646c6f1eb774ff2f2997bec5_newscatcher_.svg' width='286' height='35' /> <br> <br>Visit our website <a href='https://newscatcherapi.com'>https://newscatcherapi.com</a>

Frameworks supported

  • .NET Core >=1.0
  • .NET Framework >=4.6
  • Mono/Xamarin >=vNext

Installation

Using the .NET Core command-line interface (CLI) tools:

dotnet add package Newscatcherapi.Net

Using the NuGet Command Line Interface (CLI):

nuget install Newscatcherapi.Net

Using the Package Manager Console:

Install-Package Newscatcherapi.Net

From within Visual Studio:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages...
  4. Click on the Browse tab and search for "Newscatcherapi.Net".
  5. Click on the "Newscatcherapi.Net" package, select the appropriate version in the right-tab and click Install.

Getting Started

using System;
using System.Collections.Generic;
using System.Diagnostics;
using Newscatcherapi.Net.Client;
using Newscatcherapi.Net.Model;

namespace Example
{
    public class GetExample
    {
        public static void Main()
        {
            NewscatcherClient client = new NewscatcherClient();
            // Configure API key authorization: apiKey
            client.SetApiKey("YOUR_API_KEY");

            var authorName = "authorName_example";
            var notAuthorName = "notAuthorName_example";
            var sources = new Object(
            );
            var predefinedSources = new Object(
            );
            var notSources = new Object(
            );
            var lang = new Object(
            );
            var notLang = new Object(
            );
            var countries = new Object(
            );
            var notCountries = new Object(
            );
            var from = new From(DateTime.Now);
            var to = new To(DateTime.Now);
            var publishedDatePrecision = "publishedDatePrecision_example";
            var byParseDate = false;
            var sortBy = "relevancy";
            var rankedOnly = "rankedOnly_example";
            var fromRank = 56;
            var toRank = 56;
            var isHeadline = true;
            var isPaidContent = true;
            var parentUrl = new Object(
            );
            var allLinks = new Object(
            );
            var allDomainLinks = new Object(
            );
            var wordCountMin = 56;
            var wordCountMax = 56;
            var page = 1;
            var pageSize = 100;
            var includeNlpData = true;
            var hasNlp = true;
            var theme = "theme_example";
            var notTheme = "notTheme_example";
            var nerName = "nerName_example";
            var titleSentimentMin = 8.14D;
            var titleSentimentMax = 8.14D;
            var contentSentimentMin = 8.14D;
            var contentSentimentMax = 8.14D;
            var iptcTags = new Object(
            );
            var notIptcTags = new Object(
            );
            var iabTags = new Object(
            );
            var notIabTags = new Object(
            );
            
            try
            {
                // [Get] Search By Author Request
                AuthorsGetResponse result = client.Authors.Get(authorName, notAuthorName, sources, predefinedSources, notSources, lang, notLang, countries, notCountries, from, to, publishedDatePrecision, byParseDate, sortBy, rankedOnly, fromRank, toRank, isHeadline, isPaidContent, parentUrl, allLinks, allDomainLinks, wordCountMin, wordCountMax, page, pageSize, includeNlpData, hasNlp, theme, notTheme, nerName, titleSentimentMin, titleSentimentMax, contentSentimentMin, contentSentimentMax, iptcTags, notIptcTags, iabTags, notIabTags);
                Console.WriteLine(result);
            }
            catch (ApiException e)
            {
                Console.WriteLine("Exception when calling AuthorsApi.Get: " + e.Message);
                Console.WriteLine("Status Code: "+ e.ErrorCode);
                Console.WriteLine(e.StackTrace);
            }
            catch (ClientException e)
            {
                Console.WriteLine(e.Response.StatusCode);
                Console.WriteLine(e.Response.RawContent);
                Console.WriteLine(e.InnerException);
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://v3-api.newscatcherapi.com

Class Method HTTP request Description
AuthorsApi Get GET /api/authors [Get] Search By Author Request
AuthorsApi Post POST /api/authors [Post] Search By Author Request
LatestHeadlinesApi Get GET /api/latest_headlines [Get] Search For Latest Headlines Request
LatestHeadlinesApi Post POST /api/latest_headlines [Post] Search For Latest Headlines Request
SearchApi Get GET /api/search [Get] Search For Articles Request
SearchApi Post POST /api/search [Post] Search For Articles Request
SearchLinkApi Get GET /api/search_by_link [Get] Search For Articles By Id Or Link
SearchLinkApi Post POST /api/search_by_link [Post] Search For Articles Request
SearchSimilarApi Get GET /api/search_similar [Get] Search For Similar Articles Request
SearchSimilarApi Post POST /api/search_similar [Post] Search For Similar Articles Request
SourcesApi Get GET /api/sources [Get] Search For Sources Request
SourcesApi Post POST /api/sources [Post] Search For Sources Request
SubscriptionApi Get GET /api/subscription [Get] Get My Plan Info
SubscriptionApi Post POST /api/subscription [Post] Get My Plan Info

Documentation for Models

Dependencies

Author

This C# package is automatically generated by Konfig

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
6.0.13 490 10/14/2024
6.0.12 155 10/8/2024
6.0.11 158 9/3/2024
6.0.10 289 7/12/2024
6.0.9 142 7/10/2024
6.0.8 163 7/2/2024
6.0.7 160 6/18/2024
6.0.6 155 6/5/2024
6.0.5 214 4/30/2024
6.0.4 177 4/25/2024
6.0.3 154 4/19/2024
6.0.2 182 4/15/2024
6.0.1 150 4/4/2024
6.0.0 281 12/3/2023
2.1.0 350 2/21/2023
2.0.0 370 1/30/2023
1.1.0 358 1/30/2023
1.0.0 390 1/30/2023

Minor update