<commit_before>[![Build Status](https://secure.travis-ci.org/mdb/node-nyt.png)](http://travis-ci.org/mdb/node-nyt)

# node-nyt 

A simple Node.js module for working with the [New York Times Developer API](http://developer.nytimes.com).

## Getting Started

Secure a [NY Times Developer API Key](http://developer.nytimes.com/apps/register)

Require node-nyt:
  
    var nyt = require('nyt');

Set your API key via nyt:

    nyt.settings.apiKey('YOUR KEY');

Or set your API key via an environment variable:

    NYTIMES_API_KEY="YOUR KEY"

## Example Usage

Note that node-nyt currently only supports the NY Times' articles search and campaign finance APIs.

Stay posted for more features.

### Articles

Browse the NY Times' articles API for the term "obama":
<commit_msg>Updated README with quality disclaimer<commit_after>[![Build Status](https://secure.travis-ci.org/mdb/node-nyt.png)](http://travis-ci.org/mdb/node-nyt)

# node-nyt 

A simple Node.js module for working with the [New York Times Developer API](http://developer.nytimes.com).

...still a work in progress. A bit rough around the edges.

## Getting Started

Secure a [NY Times Developer API Key](http://developer.nytimes.com/apps/register)

Require node-nyt:
  
    var nyt = require('nyt');

Set your API key via nyt:

    nyt.settings.apiKey('YOUR KEY');

Or set your API key via an environment variable:

    NYTIMES_API_KEY="YOUR KEY"

## Example Usage

Note that node-nyt currently only supports the NY Times' articles search and campaign finance APIs.

Stay posted for more features.

### Articles

Browse the NY Times' articles API for the term "obama":

{'fraction_non_alphanumeric': 0.11233885819521179, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2416581', 'n_tokens_mistral': 543, 'n_tokens_neox': 519, 'n_words': 179}