<commit_before># API Status 

API status is a simple tool that checks if an API is online. 

### Installation

```sh
npm install apistatus
```

### Programmatic Usage

```js
var apistatus = require('apistatus')

apistatus('http://mockbin.org/get', function(status){
  console.log(status)
  // { code: 200, message: 'OK', type: 'Online' }
})

apistatus('http://notarealdomain35252.org/', function(status){
  console.log(status)
  // { code: false, message: false, type: 'Offline' }
})

apistatus('http://mockbin.org/404', function(status){
  console.log(status)
  // { code: 404, message: 'Not Found', type: 'Error' }
})
```

### Wish List

- a website with logs of changes
- interval support for periodic checkups
- an api and support for [shields.io](shields.io) 

[![API Status](https://img.shields.io/badge/API-online-brightgreen.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-301%20redirect-yellowgreen.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-404%20client%20error-orange.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-501%20server%20error-red.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-offline-lightgray.svg)](labs.mashape.com/apistatus)

### Contributing

Forks and pull requests are most welcomed. Please run `npm test` before sending a pull request. 

### MIT license

Copyright (c) 2014, Mashape (https://www.mashape.com/)<commit_msg>Add optional HAR usage idea to wish list<commit_after># API Status 

API status is a simple tool that checks if an API is online.

[![API Status](https://img.shields.io/badge/API-online-brightgreen.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-301%20redirect-yellowgreen.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-404%20client%20error-orange.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-501%20server%20error-red.svg)](labs.mashape.com/apistatus) [![API Status](https://img.shields.io/badge/API-offline-lightgray.svg)](labs.mashape.com/apistatus)

### Installation

```sh
npm install apistatus
```

### Programmatic Usage

```js
var apistatus = require('apistatus')

apistatus('http://mockbin.org/get', function(status){
  console.log(status)
  // { code: 200, message: 'OK', type: 'Online' }
})

apistatus('http://notarealdomain35252.org/', function(status){
  console.log(status)
  // { code: false, message: false, type: 'Offline' }
})

apistatus('http://mockbin.org/404', function(status){
  console.log(status)
  // { code: 404, message: 'Not Found', type: 'Error' }
})
```

### Wish List

- a website with logs of changes
- periodic checking of saved APIs
- Optional HAR object for the requests to use for full API coverage beyond simple GET requests
- Optional HAR object for the response to check against. Automated API testing essentially

### Contributing

Forks and pull requests are most welcomed. Please run `npm test` before sending a pull request. 

### MIT license

Copyright (c) 2014, Mashape (https://www.mashape.com/)
{'fraction_non_alphanumeric': 0.16687898089171974, 'fraction_numerical': 0.02356687898089172, 'mean_word_length': 4.816666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6376974', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1069, 'n_words': 245}