Skip to main content
POST
Percentage Calculator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioType
enum<string>

Calculation

Available options:
type-1,
type-2,
type-3,
type-4,
type-5,
type-6,
type-7,
type-8
ioType1A
number

Value

ioType1B
number

Is what percent of

ioType2A
number

Percent (%)

ioType2B
number

Of value

ioType3A
number

From value

ioType3B
number

To value

ioType4A
number

Value 1

ioType4B
number

Value 2

ioType5A
number

Percent (%)

ioType6A
number

Decimal value

ioType7A
number

Percent (%)

ioType8A
string

Fraction

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.