API Usage

This tool can be queried directly via a URL to get a raw JSON output, suitable for use in scripts or other automated processes.

Endpoint

The API endpoint is the main page of the tool, with a query parameter.

/index.html?employees=

Parameters

Output

The request will return a JSON object containing the account size and guideline price. In case of an invalid input, it will return a plain text error message.

Success Response Format

{
  "size": "AccountSize",
  "price": PriceAsNumber
}

Error Response Format

Error: Please enter a valid, non-negative number.

Examples

Request for a Micro organisation (5 employees)

Note: Your command line tool may download the HTML file. For programmatic use, fetch the URL and parse the body of the response.

curl "https://ce-calc.sethmb.xyz/index.html?employees=5"

Response

{
  "size": "Micro",
  "price": 320
}

Request for a Large organisation (300 employees)

curl "https://ce-calc.sethmb.xyz/index.html?employees=300"

Response

{
  "size": "Large",
  "price": 600
}