Newscatcherapi.Net
6.0.6
See the version list below for details.
dotnet add package Newscatcherapi.Net --version 6.0.6
NuGet\Install-Package Newscatcherapi.Net -Version 6.0.6
<PackageReference Include="Newscatcherapi.Net" Version="6.0.6" />
<PackageVersion Include="Newscatcherapi.Net" Version="6.0.6" />
<PackageReference Include="Newscatcherapi.Net" />
paket add Newscatcherapi.Net --version 6.0.6
#r "nuget: Newscatcherapi.Net, 6.0.6"
#:package Newscatcherapi.Net@6.0.6
#addin nuget:?package=Newscatcherapi.Net&version=6.0.6
#tool nuget:?package=Newscatcherapi.Net&version=6.0.6
Newscatcherapi.Net - C#
<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:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "Newscatcherapi.Net".
- 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 isOpinion = 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, isOpinion, 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
- AdditionalSourceInfo
- AllDomainLinksProperty
- AllLinksProperty
- AuthorSearchRequest
- AuthorsGetResponse
- AuthorsPostResponse
- AuthorsProperty
- Cluster
- ClusteringSearchResponse
- DtoResponsesAuthorSearchResponseArticleResult
- DtoResponsesAuthorSearchResponseFailedSearchResponse
- DtoResponsesAuthorSearchResponseSearchResponse
- DtoResponsesMoreLikeThisResponseArticleResult
- DtoResponsesMoreLikeThisResponseFailedSearchResponse
- DtoResponsesMoreLikeThisResponseSearchResponse
- DtoResponsesSearchResponseSearchResponse
- From
- HTTPValidationError
- JournalistsProperty
- LatestHeadlinesGetResponse
- LatestHeadlinesPostResponse
- LatestHeadlinesRequest
- LatestHeadlinesResponse
- LocationPropertyInner
- MoreLikeThisRequest
- SearchGetResponse
- SearchPostResponse
- SearchRequest
- SearchSimilarGetResponse
- SearchSimilarPostResponse
- SearchURLRequest
- SimilarDocument
- SourceInfo
- SourceResponse
- SourcesPropertyInner
- SourcesRequest
- SubscriptionResponse
- To
- ValidationError
Dependencies
- RestSharp - 106.13.0 or later
- Json.NET - 13.0.1 or later
- JsonSubTypes - 1.8.0 or later
- System.ComponentModel.Annotations - 5.0.0 or later
Author
This C# package is automatically generated by Konfig
| Product | Versions 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. |
-
.NETStandard 2.0
- JsonSubTypes (>= 1.9.0)
- Newtonsoft.Json (>= 13.0.1)
- Polly (>= 7.2.3)
- RestSharp (>= 111.2.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net5.0
- JsonSubTypes (>= 1.9.0)
- Newtonsoft.Json (>= 13.0.1)
- Polly (>= 7.2.3)
- RestSharp (>= 111.2.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net7.0
- JsonSubTypes (>= 1.9.0)
- Newtonsoft.Json (>= 13.0.1)
- Polly (>= 7.2.3)
- RestSharp (>= 111.2.0)
- System.ComponentModel.Annotations (>= 5.0.0)
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 | 153 | 4/19/2024 |
| 6.0.2 | 181 | 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