GitHunt
ST

StatusCakeDev/statuscake-js

StatusCake JavaScript SDK (Alpha)

statuscake-js test

NOTE: This library is in alpha and not production ready. Whilst it can be
used we will not offer support until it is generally available.

The JavaScript implementation of the StatusCake
API
client. Documentation for this library
can be found on the StatusCake Developer
Portal
.

Prerequisites

You will need the following things properly installed on your computer:

Installation

With NPM, run the following command

npm install --save "@statuscake/statuscake-js"

to add the package to your package.json file.

Usage

Import the package from any JavaScript/TypeScript file, instantiate an API
client and execute a request:

import 'isomorphic-fetch';
import {
  Configuration,
  UptimeApi,
} from '@statuscake/statuscake-js';

const config = new Configuration({
  headers: {
    'Authorization': `Bearer ${apiToken}`,
  },
});

const service = new UptimeApi(config);
service.listUptimeTests()
  .then((tests) => console.log(JSON.stringify(tests)))
  .catch(console.log);

License

This project is licensed under the MIT License.

Languages

TypeScript100.0%

Contributors

MIT License
Created January 26, 2022
Updated November 24, 2025
StatusCakeDev/statuscake-js | GitHunt