
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
newscatcherapi-typescript-sdk
Advanced tools
Visit our website https://newscatcherapi.com
newscatcher.authors.getnewscatcher.authors.postnewscatcher.latestHeadlines.getnewscatcher.latestHeadlines.postnewscatcher.search.getnewscatcher.search.postnewscatcher.searchLink.getnewscatcher.searchLink.postnewscatcher.searchSimilar.getnewscatcher.searchSimilar.postnewscatcher.sources.getnewscatcher.sources.postnewscatcher.subscription.getnewscatcher.subscription.postnpm | pnpm | yarn |
|---|---|---|
|
|
|
import { Newscatcher } from "newscatcherapi-typescript-sdk";
const newscatcher = new Newscatcher({
// Defining the base path is optional and defaults to https://v3-api.newscatcherapi.com
// basePath: "https://v3-api.newscatcherapi.com",
apiKey: "API_KEY",
});
const getResponse = await newscatcher.authors.get({
authorName: "authorName_example",
byParseDate: false,
sortBy: "relevancy",
page: 1,
pageSize: 100,
});
console.log(getResponse);
newscatcher.authors.getThis endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more.
const getResponse = await newscatcher.authors.get({
authorName: "authorName_example",
byParseDate: false,
sortBy: "relevancy",
page: 1,
pageSize: 100,
});
stringstringanyanyanyanyanyanyanyFromTostringbooleanstringRankedOnlynumbernumberbooleanbooleanbooleananyanyanynumbernumbernumbernumberbooleanbooleanstringstringnumbernumbernumbernumberanyanyanyany/api/authors GET
π Back to Table of Contents
newscatcher.authors.postThis endpoint allows you to search for articles by author. You need to specify the author name. You can also filter by language, country, source, and more.
const postResponse = await newscatcher.authors.post({
author_name: "author_name_example",
by_parse_date: false,
sort_by: "relevancy",
page: 1,
page_size: 100,
});
stringstringanyanyanyanyanyanyanyFromTostringbooleanstringRankedOnlynumbernumberbooleanbooleanbooleananyanyanynumbernumbernumbernumberbooleanbooleanstringstringnumbernumbernumbernumberanyanyanyany/api/authors POST
π Back to Table of Contents
newscatcher.latestHeadlines.getThis endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more.
const getResponse = await newscatcher.latestHeadlines.get({
when: "7d",
byParseDate: false,
sortBy: "relevancy",
page: 1,
pageSize: 100,
});
stringbooleanstringanyanyanyanyanyanyanyanyRankedOnlybooleanbooleanbooleananyanyanynumbernumbernumbernumberstringbooleannumberbooleanbooleanstringstringstringstringstringstringnumbernumbernumbernumberanyanyanyany/api/latest_headlines GET
π Back to Table of Contents
newscatcher.latestHeadlines.postThis endpoint allows you to get latest headlines. You need to specify since when you want to get the latest headlines. You can also filter by language, country, source, and more.
const postResponse = await newscatcher.latestHeadlines.post({
when: "7d",
by_parse_date: false,
sort_by: "relevancy",
page: 1,
page_size: 100,
});
stringbooleanstringanyanyanyanyanyanyanyanyRankedOnlybooleanbooleanbooleananyanyanynumbernumbernumbernumberstringbooleannumberbooleanbooleanstringstringstringstringstringstringnumbernumbernumbernumberanyanyanyany/api/latest_headlines POST
π Back to Table of Contents
newscatcher.search.getThis endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more.
const getResponse = await newscatcher.search.get({
q: "q_example",
searchIn: "title_content",
byParseDate: false,
sortBy: "relevancy",
page: 1,
pageSize: 100,
});
stringstringanyanyanyanyanyanyanyanyFromTostringbooleanstringRankedOnlynumbernumberbooleanbooleanbooleananyanyanynumbernumbernumbernumberstringbooleannumberbooleanbooleanstringstringstringstringstringstringnumbernumbernumbernumberanyanyanyanyanybooleanbooleanbooleananyany/api/search GET
π Back to Table of Contents
newscatcher.search.postThis endpoint allows you to search for articles. You can search for articles by keyword, language, country, source, and more.
const postResponse = await newscatcher.search.post({
q: "q_example",
search_in: "title_content",
by_parse_date: false,
sort_by: "relevancy",
page: 1,
page_size: 100,
});
stringstringanyanyanyanyanyanyanyanyFromTostringbooleanstringRankedOnlynumbernumberbooleanbooleanbooleananyanyanynumbernumbernumbernumberstringbooleannumberbooleanbooleanstringstringstringstringstringstringnumbernumbernumbernumberanyanyanyanyanybooleanbooleanbooleananyany/api/search POST
π Back to Table of Contents
newscatcher.searchLink.getThis endpoint allows you to search for articles. You can search for articles by id(s) or link(s).
const getResponse = await newscatcher.searchLink.get({
page: 1,
pageSize: 100,
});
anyanyFrom1To1numbernumberDtoResponsesSearchResponseSearchResponse
/api/search_by_link GET
π Back to Table of Contents
newscatcher.searchLink.postThis endpoint allows you to search for articles. You can search for articles by id(s) or link(s).
const postResponse = await newscatcher.searchLink.post({
page: 1,
page_size: 100,
});
anyanyFrom1To1numbernumberDtoResponsesSearchResponseSearchResponse
/api/search_by_link POST
π Back to Table of Contents
newscatcher.searchSimilar.getThis endpoint returns a list of articles that are similar to the query provided. You also have the option to get similar articles for the results of a search.
const getResponse = await newscatcher.searchSimilar.get({
q: "q_example",
searchIn: "title_content",
includeSimilarDocuments: false,
similarDocumentsNumber: 5,
similarDocumentsFields: "title,content",
byParseDate: false,
sortBy: "relevancy",
page: 1,
pageSize: 100,
});
stringstringbooleannumberstringanyanyanyanyanyanyanyFromTobooleanstringstringRankedOnlynumbernumberbooleanbooleanbooleananyanyanynumbernumbernumbernumberbooleanbooleanstringstringnumbernumbernumbernumberanyany/api/search_similar GET
π Back to Table of Contents
newscatcher.searchSimilar.postThis endpoint returns a list of articles that are similar to the query provided. You also have the option to get similar articles for the results of a search.
const postResponse = await newscatcher.searchSimilar.post({
q: "q_example",
search_in: "title_content",
include_similar_documents: false,
similar_documents_number: 5,
similar_documents_fields: "title,content",
by_parse_date: false,
sort_by: "relevancy",
page: 1,
page_size: 100,
});
stringstringbooleannumberstringanyanyanyanyanyanyanyFromTobooleanstringstringRankedOnlynumbernumberbooleanbooleanbooleananyanyanynumbernumbernumbernumberbooleanbooleanstringstringnumbernumbernumbernumberanyany/api/search_similar POST
π Back to Table of Contents
newscatcher.sources.getThis endpoint allows you to get the list of sources that are available in the database. You can filter the sources by language and country. The maximum number of sources displayed is set according to your plan. You can find the list of plans and their features here: https://newscatcherapi.com/news-api#news-api-pricing
const getResponse = await newscatcher.sources.get({});
anyanyanybooleannumbernumberanyanybooleananyany/api/sources GET
π Back to Table of Contents
newscatcher.sources.postThis endpoint allows you to get the list of sources that are available in the database. You can filter the sources by language and country. The maximum number of sources displayed is set according to your plan. You can find the list of plans and their features here: https://newscatcherapi.com/news-api#news-api-pricing
const postResponse = await newscatcher.sources.post({});
anyanyanybooleannumbernumberanyanybooleananyany/api/sources POST
π Back to Table of Contents
newscatcher.subscription.getThis endpoint allows you to get info about your subscription plan.
const getResponse = await newscatcher.subscription.get();
/api/subscription GET
π Back to Table of Contents
newscatcher.subscription.postThis endpoint allows you to get info about your subscription plan.
const postResponse = await newscatcher.subscription.post();
/api/subscription POST
π Back to Table of Contents
This TypeScript package is automatically generated by Konfig
FAQs
Client for NewsCatcher-V3 Production API
The npm package newscatcherapi-typescript-sdk receives a total of 2 weekly downloads. As such, newscatcherapi-typescript-sdk popularity was classified as not popular.
We found that newscatcherapi-typescript-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: whatβs affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.