Percentage Calculator
Calculate percentages, increases, and decreases
Overview
ID: percentage-calculator
Category: math
Call this tool over HTTP with POST /execute/percentage-calculator. Path, headers, body fields, sample responses, and errors are documented below.
Endpoint
/api/v1/execute/percentage-calculatorAuthenticate with X-API-Key or Authorization: Bearer. See Authentication.
API reference
Path, header, and body fields accepted by this execute call.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| tool | path | string | Yes | Tool identifier used in the execute path. Example: percentage-calculator |
| X-API-Key | header | string | Yes | Your IT-ToolBox API key. Authorization: Bearer is also accepted. Example: YOUR_API_KEY |
| Content-Type | header | string | Yes | Must be application/json for execute requests. Example: application/json |
| input.mode | body | string | Yes | Argument for Percentage Calculator. Example: of |
| input.total | body | number | Yes | Argument for Percentage Calculator. Example: 200 |
| input.value | body | number | Yes | Argument for Percentage Calculator. Example: 25 |
Code examples
curl -X POST /api/v1/execute/percentage-calculator \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"mode": "of",
"total": 200,
"value": 25
}
}'Tool UI
Open the interactive experience to try the tool without writing HTTP clients.
Open tool UI