Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
currentsapi
Advanced tools
Readme
A node interface for CurrentsAPI.
Latest news headlines and metadata in JSON from 13,000 popular news sites. Powered by Currents Api
In order to use this package you need to register at https://currentsapi.services/en/register
Please refer to our documentation to see details about how to use the API. The convenience functions provided by this module is simply passing your options along as querystring parameters to the REST API, so the documentation is totally valid.
There are some usage examples below to see how these options should be passed in.
If you use this in a project, kindly add an attribution : 'powered by Currents API' with links back to Currents Api.
$ npm i -s currentsapi
$ API_KEY=<your api key> npm test
All methods support promises and node-style callbacks.
const CurrentsAPI = require('currentsapi');
const currentsapi = new CurrentsAPI('YOUR_API_KEY');
// To query latest news
// All options passed to search are optional
currentsapi.search({
keywords: 'Trump',
language: 'en',
country: 'US'
}).then(response => {
console.log(response);
/*
{
status: "ok",
news: [...]
}
*/
});
If you like this package you can follow us at [Twitter](https://twitter.com/currentsapi)
FAQs
A node interface for News API from currentsapi.services
The npm package currentsapi receives a total of 2 weekly downloads. As such, currentsapi popularity was classified as not popular.
We found that currentsapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.