gn

guardian-news

Guardian News API NodeJS Module

Showing:

Popularity

Downloads/wk

1

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Readme

Guardian News API NodeJS Module

This module can be used to query the Guardian's API. This module provides a thin wrapper around request.js to Guardian's API. All functions return promises. To learn more about the API, and which parameters can be passed to each function you can use the API explorer or the documentation.

Examples

Searching Content

var guardian = require('guardian-news');

guardian.config({
  apiKey : 'API-KEY'
});

guardian.content({
  q : 'clowns',
  fromDate : '2010-01-19'
}).then(function(response){
  console.log(response);
}, function(err){
  console.log(err);
});

Searching Sections

guardian.sections({
  q : 'sports'
}).then(function(response){
  
});

Searching Tags

guardian.sections({
  q : 'sports/tennis',
  page : 2
}).then(function(response){
  
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial