2.1.0 • Published 11 months ago

downdetector-api v2.1.0

Weekly downloads
51
License
MIT
Repository
github
Last release
11 months ago

Downdetector.com Unofficial APIs

npm.io Coverage Status Maintainability npm Donate

NPM

Unofficial APIs for Downdetector.com website.

Install

npm i downdetector-api

Example

const { downdetector } = require('downdetector-api');

async function main () {
  try {
    // Without specifying the downdetector domain
    const response = await downdetector('steam');
    // Specifying the downdetector domain (some companies are not in the .com domain)
    const response = await downdetector('windtre', 'it');
  } catch (err) {
    console.error(err);
  }
}

Response

{
  reports: [
    { date: '2021-02-21T20:16:06+00:00', value: 17 },
    { date: '2021-02-21T20:31:06+00:00', value: 16 },
    { date: '2021-02-21T20:46:06+00:00', value: 16 },
    { date: '2021-02-21T21:01:06+00:00', value: 14 }
    ...
  ],
  baseline: [
    { date: '2021-02-21T20:16:06+00:00', value: 1 },
    { date: '2021-02-21T20:31:06+00:00', value: 2 },
    { date: '2021-02-21T20:46:06+00:00', value: 2 },
    { date: '2021-02-21T21:01:06+00:00', value: 3 }
  ]
}

Available inputs

  • All the companies for which Downdetector has a page.

Author

2.1.0

11 months ago

2.0.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.0.0

3 years ago