# MiniWebtool API full documentation > Complete public documentation snapshot for agents. - Source index: https://api.miniwebtool.com/llms.txt - Generated from live API registry: https://api.miniwebtool.com/v1/openapi.json > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) 001 hosted utility endpoints · since 2010 # Every boring endpoint, already built. Calculators, converters, hashes, date math, and finance formulas as stable JSON APIs. One bearer token, one credit pool, schemas that don't drift. You ship the feature; we maintain the formula. ✓ OpenAPI 3.1 ✓ RFC 7807 errors ✓ MCP built in ✓ failed calls cost 0 [Get a free key →](/billing/checkout/?plan=free) [View reference](/v1/docs) ✓ the same engines behind [miniwebtool.com](https://miniwebtool.com) — tools people have searched for and used since 2010 curl python node LIVE ```text $ curl https://api.miniwebtool.com/v1/tools/percentage-calculator/run \ -H "Authorization: Bearer $MWT_KEY" \ -d '{"mode":"percent_of","a":15,"b":200}' { "request_id": "01KPW8…", "tool": "percentage-calculator", "credits_used": 1, "result": { "mode": "percent_of", "a": 15, "b": 200, "result": 30 } } ``` ```text import requests, os r = requests.post( "https://api.miniwebtool.com/v1/tools/percentage-calculator/run", headers={"Authorization": f"Bearer {os.environ['MWT_KEY']}"}, json={"mode": "percent_of", "a": 15, "b": 200}, timeout=10, ) print(r.json()["result"]["result"]) # 30 ``` ```text const res = await fetch( "https://api.miniwebtool.com/v1/tools/percentage-calculator/run", { method: "POST", headers: { "Authorization": `Bearer ${process.env.MWT_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ mode: "percent_of", a: 15, b: 200 }), }, ); const { result } = await res.json(); console.log(result.result); // 30 ``` 200 OK · 1 credit · application/json Start free · no card Paid plans from $29/mo for production volume POST /depreciation-calculator 1cr POST /car-depreciation-calculator 2cr POST /car-lease-calculator 2cr POST /tip-calculator 1cr POST /bond-convexity-calculator 2cr POST /character-counter 1cr POST /compare-two-strings 1cr POST /email-extractor 1cr POST /find-longest-line 1cr POST /line-counter 1cr POST /adler32-checksum-calculator 1cr POST /crc32-checksum-calculator 1cr POST /crc64-checksum-calculator 1cr POST /fnv1a-hash-generator 1cr POST /murmurhash3-generator 1cr POST /complementary-error-function-calculator 1cr POST /exponential-decay-calculator 1cr POST /exponential-growth-calculator 1cr POST /antilog-calculator 1cr POST /error-function-calculator 1cr POST /random-playing-card-generator 1cr POST /random-color-generator 1cr POST /random-date-generator 1cr POST /list-randomizer 1cr POST /random-group-generator 1cr POST /cpc-calculator 1cr POST /cpm-calculator 1cr POST /value-of-a-visitor-calculator 2cr POST /css-box-shadow-generator 1cr POST /css-compressor 1cr POST /employee-cost-calculator 1cr POST /eoq-calculator 1cr POST /print-cost-calculator 1cr POST /csat-score-calculator 1cr POST /bradford-factor-calculator 1cr POST /color-contrast-checker 1cr POST /color-code-converter-all-formats 1cr POST /color-scheme-generator 1cr POST /lumber-calculator 1cr POST /miter-angle-calculator 1cr POST /squareness-checker 1cr POST /stair-calculator 1cr POST /board-foot-calculator 1cr POST /square-feet-to-square-meters 1cr POST /quarts-to-cups-converter 1cr POST /fuel-efficiency-converter-mpg-l-100km-km-l 1cr POST /cm-to-feet-and-inches-converter 1cr POST /fps-converter 1cr POST /torque-converter-nm-ft-lb-kgf-cm 1cr POST /baking-pan-size-converter 1cr POST /dough-hydration-calculator 1cr POST /sourdough-calculator 1cr POST /coffee-brew-ratio-calculator 1cr POST /cooking-unit-converter 1cr POST /knitting-needle-size-converter 1cr POST /origami-paper-size-calculator 1cr POST /pottery-clay-shrinkage-calculator 1cr POST /quilt-binding-calculator 1cr POST /cross-stitch-size-calculator 1cr POST /youtube-earnings-estimator 1cr POST /autumnal-equinox-day 1cr POST /decimal-to-time-converter 1cr POST /cmyk-to-hex-converter 1cr POST /hex-to-cmyk-converter 1cr POST /hex-to-rgb-converter 1cr POST /rgb-to-hex-converter 1cr POST /csv-to-json-converter 1cr POST /css-grid-generator 1cr POST /color-inverter 1cr POST /curl-to-json-converter 1cr POST /json-to-yaml-converter 1cr POST /xml-to-json-converter 1cr POST /attendance-percentage-calculator 1cr POST /cgpa-to-percentage-converter 1cr POST /gpa-calculator 1cr POST /grade-calculator 1cr POST /learning-curve-calculator 1cr POST /3-phase-power-calculator 1cr POST /amps-to-watts-calculator 1cr POST /inductive-reactance-calculator 1cr POST /transformer-calculator 1cr POST /voltage-divider-calculator 1cr POST /wire-gauge-calculator 1cr POST /impedance-calculator 1cr POST /hydraulic-cylinder-force-calculator 1cr POST /water-usage-calculator 1cr POST /wedding-alcohol-calculator 1cr POST /running-pace-calculator 1cr POST /swimming-pace-calculator 1cr POST /vertical-jump-calculator 1cr POST /coffee-ratio-by-cups-calculator 1cr POST /pizza-party-planner 1cr POST /taco-bar-calculator 1cr POST /game-sensitivity-converter 1cr POST /surface-area-calculator 1cr POST /surface-area-of-sphere-calculator 1cr POST /volume-calculator 1cr POST /volume-of-sphere-calculator 1cr POST /bmi-calculator 1cr POST /body-fat-percentage-calculator 1cr POST /body-surface-area-calculator 1cr POST /child-height-predictor 1cr POST /ideal-weight-calculator 1cr POST /appliance-energy-cost-calculator 1cr POST /light-bulb-savings-calculator 1cr POST /mulch-soil-gravel-calculator 1cr POST /plant-spacing-calculator 1cr POST /gas-vs-electric-cost-comparison 1cr POST /what-is-my-zodiac-sign 1cr POST /beading-pattern-calculator 1cr POST /yarn-calculator 1cr POST /bench-press-calculator 1cr POST /bmr-calculator 1cr POST /ctr-calculator 1cr POST /email-open-rate-calculator 1cr POST /unsubscribe-rate-calculator 1cr POST /conversion-rate-calculator 1cr POST /social-media-roi-calculator 2cr POST /engine-displacement-calculator 1cr POST /bend-allowance-calculator 1cr POST /battery-series-parallel-calculator 1cr POST /kva-calculator 1cr POST /rc-low-pass-filter-calculator 1cr POST /ip-address-to-hex-converter 1cr POST /ip-subnet-calculator 1cr POST /mac-address-analyzer 1cr POST /friction-calculator 1cr POST /boiling-point-calculator 1cr POST /keyboard-mileage-calculator 1cr POST /astronomical-unit-converter 1cr POST /dilution-calculator 1cr POST /empirical-formula-calculator 1cr POST /limiting-reactant-calculator 1cr POST /molality-calculator 1cr POST /at-bats-per-home-run-calculator 1cr POST /batting-average-calculator 1cr POST /era-calculator 1cr POST /fip-calculator 1cr POST /on-base-percentage-calculator 1cr POST /is-it-leap-year 1cr POST /countdown-timer 1cr POST /date-to-roman-numerals-converter 1cr POST /halfway-date-calculator 1cr POST /hours-calculator 1cr POST /hebrew-calendar-converter 1cr POST /hijri-calendar-converter 1cr POST /when-is-leap-year 1cr POST /leap-years-list 1cr POST /add-business-days-to-date 1cr POST /depreciation-calculator 1cr POST /car-depreciation-calculator 2cr POST /car-lease-calculator 2cr POST /tip-calculator 1cr POST /bond-convexity-calculator 2cr POST /character-counter 1cr POST /compare-two-strings 1cr POST /email-extractor 1cr POST /find-longest-line 1cr POST /line-counter 1cr POST /adler32-checksum-calculator 1cr POST /crc32-checksum-calculator 1cr POST /crc64-checksum-calculator 1cr POST /fnv1a-hash-generator 1cr POST /murmurhash3-generator 1cr POST /complementary-error-function-calculator 1cr POST /exponential-decay-calculator 1cr POST /exponential-growth-calculator 1cr POST /antilog-calculator 1cr POST /error-function-calculator 1cr POST /random-playing-card-generator 1cr POST /random-color-generator 1cr POST /random-date-generator 1cr POST /list-randomizer 1cr POST /random-group-generator 1cr POST /cpc-calculator 1cr POST /cpm-calculator 1cr POST /value-of-a-visitor-calculator 2cr POST /css-box-shadow-generator 1cr POST /css-compressor 1cr POST /employee-cost-calculator 1cr POST /eoq-calculator 1cr POST /print-cost-calculator 1cr POST /csat-score-calculator 1cr POST /bradford-factor-calculator 1cr POST /color-contrast-checker 1cr POST /color-code-converter-all-formats 1cr POST /color-scheme-generator 1cr POST /lumber-calculator 1cr POST /miter-angle-calculator 1cr POST /squareness-checker 1cr POST /stair-calculator 1cr POST /board-foot-calculator 1cr POST /square-feet-to-square-meters 1cr POST /quarts-to-cups-converter 1cr POST /fuel-efficiency-converter-mpg-l-100km-km-l 1cr POST /cm-to-feet-and-inches-converter 1cr POST /fps-converter 1cr POST /torque-converter-nm-ft-lb-kgf-cm 1cr POST /baking-pan-size-converter 1cr POST /dough-hydration-calculator 1cr POST /sourdough-calculator 1cr POST /coffee-brew-ratio-calculator 1cr POST /cooking-unit-converter 1cr POST /knitting-needle-size-converter 1cr POST /origami-paper-size-calculator 1cr POST /pottery-clay-shrinkage-calculator 1cr POST /quilt-binding-calculator 1cr POST /cross-stitch-size-calculator 1cr POST /youtube-earnings-estimator 1cr POST /autumnal-equinox-day 1cr POST /decimal-to-time-converter 1cr POST /cmyk-to-hex-converter 1cr POST /hex-to-cmyk-converter 1cr POST /hex-to-rgb-converter 1cr POST /rgb-to-hex-converter 1cr POST /csv-to-json-converter 1cr POST /css-grid-generator 1cr POST /color-inverter 1cr POST /curl-to-json-converter 1cr POST /json-to-yaml-converter 1cr POST /xml-to-json-converter 1cr POST /attendance-percentage-calculator 1cr POST /cgpa-to-percentage-converter 1cr POST /gpa-calculator 1cr POST /grade-calculator 1cr POST /learning-curve-calculator 1cr POST /3-phase-power-calculator 1cr POST /amps-to-watts-calculator 1cr POST /inductive-reactance-calculator 1cr POST /transformer-calculator 1cr POST /voltage-divider-calculator 1cr POST /wire-gauge-calculator 1cr POST /impedance-calculator 1cr POST /hydraulic-cylinder-force-calculator 1cr POST /water-usage-calculator 1cr POST /wedding-alcohol-calculator 1cr POST /running-pace-calculator 1cr POST /swimming-pace-calculator 1cr POST /vertical-jump-calculator 1cr POST /coffee-ratio-by-cups-calculator 1cr POST /pizza-party-planner 1cr POST /taco-bar-calculator 1cr POST /game-sensitivity-converter 1cr POST /surface-area-calculator 1cr POST /surface-area-of-sphere-calculator 1cr POST /volume-calculator 1cr POST /volume-of-sphere-calculator 1cr POST /bmi-calculator 1cr POST /body-fat-percentage-calculator 1cr POST /body-surface-area-calculator 1cr POST /child-height-predictor 1cr POST /ideal-weight-calculator 1cr POST /appliance-energy-cost-calculator 1cr POST /light-bulb-savings-calculator 1cr POST /mulch-soil-gravel-calculator 1cr POST /plant-spacing-calculator 1cr POST /gas-vs-electric-cost-comparison 1cr POST /what-is-my-zodiac-sign 1cr POST /beading-pattern-calculator 1cr POST /yarn-calculator 1cr POST /bench-press-calculator 1cr POST /bmr-calculator 1cr POST /ctr-calculator 1cr POST /email-open-rate-calculator 1cr POST /unsubscribe-rate-calculator 1cr POST /conversion-rate-calculator 1cr POST /social-media-roi-calculator 2cr POST /engine-displacement-calculator 1cr POST /bend-allowance-calculator 1cr POST /battery-series-parallel-calculator 1cr POST /kva-calculator 1cr POST /rc-low-pass-filter-calculator 1cr POST /ip-address-to-hex-converter 1cr POST /ip-subnet-calculator 1cr POST /mac-address-analyzer 1cr POST /friction-calculator 1cr POST /boiling-point-calculator 1cr POST /keyboard-mileage-calculator 1cr POST /astronomical-unit-converter 1cr POST /dilution-calculator 1cr POST /empirical-formula-calculator 1cr POST /limiting-reactant-calculator 1cr POST /molality-calculator 1cr POST /at-bats-per-home-run-calculator 1cr POST /batting-average-calculator 1cr POST /era-calculator 1cr POST /fip-calculator 1cr POST /on-base-percentage-calculator 1cr POST /is-it-leap-year 1cr POST /countdown-timer 1cr POST /date-to-roman-numerals-converter 1cr POST /halfway-date-calculator 1cr POST /hours-calculator 1cr POST /hebrew-calendar-converter 1cr POST /hijri-calendar-converter 1cr POST /when-is-leap-year 1cr POST /leap-years-list 1cr POST /add-business-days-to-date 1cr Endpoints 1080 curated, growing catalog Auth 1 key same bearer token everywhere Cost per call fixed published credit weight per tool Failed calls 0 credits 4xx/5xx auto-refund agents start from a sentence, not a slug ## Hand the whole catalog to your coding agent You don't need to know which endpoint you want. Paste this into Claude Code, Cursor, Codex, Aider or Cline, then describe the problem in plain language — the agent searches the catalog, picks the tool, and wires it up without burning your key. Discovery is free and needs no key:`GET /v1/tools?q=mortgage+payment`searches the whole catalog and returns slugs, summaries and credit costs. Only the final call is billed — and`/dry-run`costs 0. Stable URL for this prompt: [`/prompt.md`](/prompt.md) (`?variant=mcp`/`?variant=cursor`) — point an agent straight at it. Claude Code / Codex MCP (no code) Cursor Paste into any coding agent, or keep it in CLAUDE.md / AGENTS.md. copy prompt ```text MiniWebtool is a growing catalog of deterministic calculation, conversion and text APIs behind one key — new tools land daily, so always search rather than assume. When I ask for something with an exact computed answer — a financial figure, a unit conversion, a hash, a statistic, a date — find the tool that does it instead of writing the formula yourself. Search first, guess never: 1. `GET https://api.miniwebtool.com/v1/tools?q=&limit=5` — public, no key. Search nouns (`mortgage`, `sha256`, `celsius`), not sentences. Results carry the slug, summary, and credit cost. 2. `GET https://api.miniwebtool.com/tools/.md` — that tool's fields and an example. 3. `POST https://api.miniwebtool.com/v1/tools//dry-run` — validates your payload and returns a sample response for **0 credits**. Shape the request here. 4. `POST https://api.miniwebtool.com/v1/tools//run` — the real call. Header: `Authorization: Bearer $MINIWEBTOOL_API_KEY`. Returns `{request_id, tool, credits_used, result}`. Budget (1,000 free credits/month, most tools cost 1): - Steps 1-3 are free. Iterate there. - One live `/run` per tool while integrating. Never call it from tests or a retry loop — assert against the dry-run sample. - 4xx: fix the payload, don't retry. 429: honour `Retry-After`. - Stop and tell me if `X-MWT-Credits-Remaining` drops below 50. - Tools are deterministic, so cache by input. If `MINIWEBTOOL_API_KEY` isn't set, ask me — don't sign up or invent one. ``` One-time setup — the agent then sees every tool natively. copy prompt ```text Connect the MiniWebtool MCP server, then use its tools for any exact computation — a growing catalog behind one key. ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or in an MCP config file: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` The server exposes three tools: `search_tools` (find the slug for a plain-language need — search concrete nouns like `mortgage` or `sha256`), `get_tool` (that tool's JSON Schema and an example), and `run_tool` (the billed call). Search and get are free. Calls are metered (1,000 free credits/month). Don't call tools from a retry loop, and cache by input — results are deterministic. ``` Save as.cursor/rules/miniwebtool.mdc copy prompt ```text --- description: MiniWebtool — growing catalog of calculation/conversion APIs globs: alwaysApply: false --- MiniWebtool is a growing catalog of deterministic calculation, conversion and text APIs behind one key — new tools land daily, so always search rather than assume. When I ask for something with an exact computed answer — a financial figure, a unit conversion, a hash, a statistic, a date — find the tool that does it instead of writing the formula yourself. Search first, guess never: 1. `GET https://api.miniwebtool.com/v1/tools?q=&limit=5` — public, no key. Search nouns (`mortgage`, `sha256`, `celsius`), not sentences. Results carry the slug, summary, and credit cost. 2. `GET https://api.miniwebtool.com/tools/.md` — that tool's fields and an example. 3. `POST https://api.miniwebtool.com/v1/tools//dry-run` — validates your payload and returns a sample response for **0 credits**. Shape the request here. 4. `POST https://api.miniwebtool.com/v1/tools//run` — the real call. Header: `Authorization: Bearer $MINIWEBTOOL_API_KEY`. Returns `{request_id, tool, credits_used, result}`. Budget (1,000 free credits/month, most tools cost 1): - Steps 1-3 are free. Iterate there. - One live `/run` per tool while integrating. Never call it from tests or a retry loop — assert against the dry-run sample. - 4xx: fix the payload, don't retry. 429: honour `Retry-After`. - Stop and tell me if `X-MWT-Credits-Remaining` drops below 50. - Tools are deterministic, so cache by input. If `MINIWEBTOOL_API_KEY` isn't set, ask me — don't sign up or invent one. ``` 002 the contract ## One envelope. Stable errors. Honest headers. Everything you'd check before trusting a third-party API, in one glance. The same shape on every endpoint — integrate once, reuse for all 1080 tools. response envelope ```text { "request_id": "01KPW8…", "tool": "", "tool_version": "1.0.0", "credits_used": 1, "result": { …typed output… } } ``` errors · RFC 7807 ```text { "status": 402, "code": "insufficient_credits", "title": "Insufficient credits", "request_id": "01KPW…" } // branch on `code` — it never changes ``` every response ```text X-RateLimit-Limit: 10 X-MWT-Credits-Used: 1 X-MWT-Credits-Remaining: 49998 X-Request-Id: 01KPW… ``` 003 who builds on this [ [saas] Product teams Calculators in dashboards, forms, and onboarding flows ](/tools/) [ [fin] Financial sites Interest, mortgage, APY, ROI — audited formulas ](/tools/category/finance/) [ [edu] Education apps Practice, quizzes, step-by-step explanations ](/tools/) [ [mcp] Agents & automation Exact tool calls over MCP after the LLM plans ](/docs/#mcp) 004 why pay for "simple" ## The formula is the easy part. Anyone can write`a / b * 100`. What eats your sprint is everything around it: input validation, edge cases, rounding rules, examples, docs that stay current, rate limits, and a billing story. We package that operational work behind one HTTP call — and we've been maintaining these exact tools in production since 2010. Ship the feature this afternoon POST a JSON body, render`result`. No formula review, no test matrix for edge cases you haven't thought of yet. Integrate once, reuse 1080 times Same auth, same envelope, same error codes on every endpoint. Your client wrapper is ~20 lines, total. Predictable bill, no surprises Each tool's credit weight is published in the OpenAPI spec. Failed calls refund automatically. Hard caps by default. ## Best-fit use cases - Calculator features inside dashboards, forms, or onboarding flows. - Finance, education, and content sites that need utility endpoints that just work. - Agencies and automation builders running many small tools under one account. - AI agents that plan in natural language but need exact, deterministic execution. [Browse all endpoints →](/tools/) [Read docs](/docs/) 005 pricing ## Free to evaluate. Cheap to ship. Start free, no card. Upgrade when an endpoint becomes part of your product. Cancel anytime from the Stripe portal — no sales call required. Monthly Yearly −16% ### Free Free 1,000 credits/mo 1 req/sec Hard cap Testing and prototypes Every tool in the catalog [Start free](/billing/checkout/?plan=free) ### Starter $ 29 /mo 75,000 credits/mo 5 req/sec Hard cap + manual packs Indie apps and automations Every tool in the catalog [Start Starter](/billing/checkout/?plan=starter&cycle=monthly) POPULAR ### Pro $ 79 /mo 400,000 credits/mo 15 req/sec Hard cap default; optional $0.25 / 1K credits Production SaaS and content workflows Every tool in the catalog [Start Pro](/billing/checkout/?plan=pro&cycle=monthly) ### Business $ 199 /mo 1,500,000 credits/mo 50 req/sec Hard cap default; optional $0.15 / 1K credits Teams and production apps Every tool, plus logs, invoices, team controls [Start Business](/billing/checkout/?plan=business&cycle=monthly) ### Scale $ 499 /mo 5,000,000 credits/mo 100 req/sec Hard cap default; optional $0.10 / 1K credits High throughput and batch usage Every tool, higher limits, priority queue [Start Scale](/billing/checkout/?plan=scale&cycle=monthly) Yearly billing: pay 10 months, get 12. Need >5M/mo, SOC 2, or a DPA? [sales@miniwebtool.com](mailto:sales@miniwebtool.com) ## First`curl`in 30 seconds. Verify your email → get a key → stable JSON. No card, no SDK, no tool build-out. [Get a free key →](/billing/checkout/?plan=free) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) docs read in ~5 minutes # Docs Everything below applies to all 1080 endpoints — learn the envelope once and every tool works the same way. New here? Read top to bottom. Know what you're calling? Jump to the [endpoint reference](/v1/docs). when-to-use quickstart auth errors rate-limits credits versioning mcp privacy support concepts ### How the API works Auth, errors, rate limits, credits, versioning, and MCP — one envelope shared by every endpoint. [ reference ### Every endpoint, searchable Interactive UI on the live OpenAPI 3.1 spec, grouped by category. Hotkey K to search. ](/v1/docs) [Tool catalog (1080)](/tools/) [openapi.json](/v1/openapi.json) [Contact](mailto:support@miniwebtool.com) ## 01 When to use MiniWebtool API Use it when your product needs calculators, hashes, counters, date math, finance formulas, converters, or other repeatable utility results. You get stable JSON, a fixed credit cost per call, and no helper code to write, test, and maintain for each tool. If the utility is core IP for your business, build it yourself; if it's plumbing, call ours. ## 02 Quickstart [Get a free key](/billing/checkout/?plan=free) (1,000 credits/mo, no card), then: ```text $ curl https://api.miniwebtool.com/v1/tools/percentage-calculator/run \ -H "Authorization: Bearer $MWT_KEY" \ -H "Content-Type: application/json" \ -d '{"mode":"percent_of","a":15,"b":200}' {"request_id":"01KPW…","tool":"percentage-calculator","credits_used":1,"result":{"mode":"percent_of","a":15,"b":200,"result":30}} ``` Every tool lives under`/v1/tools//run`. Slugs are lowercase-hyphenated and never change within a major version. ## 03 Authentication Pass your key as a bearer token.`X-API-Key`works too if your HTTP client can't set`Authorization`. ```text Authorization: Bearer mwt_live_<20-hex>_<40-hex> # or X-API-Key: mwt_live_... ``` - Keys are scoped to a Project under an Organization. Revoke from the dashboard at any time — invalidation is instant. - We store only`sha512(key)`and a lookup prefix. A lost key cannot be recovered — rotate instead. - `env=test`keys skip billing but still count against rate limits — use for staging. ## 04 Errors (RFC 7807) Every non-2xx response is`application/problem+json`: ```text { "type": "https://api.miniwebtool.com/errors/insufficient_credits", "title": "Insufficient credits", "status": 402, "detail": "Plan 'starter' has 0 credits remaining this period.", "instance": "/v1/tools/word-counter/run", "request_id": "01KPW…", "code": "insufficient_credits" } ``` Branch on`code`, not`title`. Titles may change for copy reasons; codes are a stable contract. Known codes:`invalid_request`,`invalid_api_key`,`insufficient_credits`,`rate_limited`,`tool_not_allowed`,`payload_too_large`,`internal_error`. ## 05 Rate limits & headers Every response — 2xx, 4xx, 5xx — carries these headers: ```text X-RateLimit-Limit: 10 # plan per-sec cap X-MWT-Credits-Used: 2 # cost of this call X-MWT-Credits-Remaining: 49998 # after this call, -1 if unlimited X-Request-Id: 01KPW… # opaque ULID, include in support tickets Retry-After: 1 # only on 429 X-RateLimit-Reset: 1780… # only on 429, unix seconds ``` Rate limiting is a sliding 1-second window per organization. Monthly credits reset on the 1st UTC. ## 06 Credits - Every tool has a fixed`credit_weight`. Text/hash/math tools usually cost 1 credit, simple finance costs 2, and table-heavy finance costs more. - Weights are declared in the [OpenAPI spec](/v1/openapi.json) under`x-mwt-credit-weight`— your build can budget before you ever ship. - Validation failures (4xx) and tool 5xx don't charge. Credits are reserved on entry and refunded on failure automatically. - Free and Starter are hard-capped. Pro, Business, and Scale are hard-capped by default; optional overage is metered per 1K credits only after you enable it. No silent overage bills. ## 07 Versioning Every response carries`tool_version`. A version bump means either a bug fix (backward-compatible) or a breaking output-shape change — we never change a version in place. The`/v1/`path prefix guarantees the request envelope is stable. New major versions (`/v2/`) ship alongside v1 for 12+ months before v1 deprecation. ## 08 MCP / agent usage Every tool in the registry is exposed at`/v1/mcp`as a [Model Context Protocol](https://modelcontextprotocol.io) server (JSON-RPC 2.0 over HTTP, spec version`2025-06-18`). Claude, Cursor, and any MCP-capable agent can discover and call tools with your bearer token in one round trip — no SDK, no client codegen, no separate function definitions. ### Endpoint ```text POST https://api.miniwebtool.com/v1/mcp Authorization: Bearer mwt_live_... Content-Type: application/json ``` ### Supported methods - `initialize`— public handshake; returns server info + protocol version. - `tools/list`— public; returns three tools:`search_tools`and`get_tool`(free, no key) and`run_tool`(billed). Append`?tools=all`to the server URL to list every tool directly, or`?category=finance`to add one category. - `tools/call`— authenticated; same quota + credit billing path as REST. Response carries both`content[]`(for the LLM) and`structuredContent`(for code). - `ping`,`notifications/*`— handled per spec. ### Claude Desktop config ```text // ~/.config/Claude/claude_desktop_config.json (Linux) // %APPDATA%\Claude\claude_desktop_config.json (Windows) // ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) { "mcpServers": { "miniwebtool": { "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer mwt_live_..." } } } } ``` ### Try it by hand ```text # list tools (no key needed) $ curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \ | jq '.result.tools[].name' # call one (needs key) $ curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $MWT_KEY" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call", "params":{"name":"percentage-calculator", "arguments":{"mode":"percent_of","a":15,"b":200}}}' \ | jq.result.structuredContent ``` Deterministic tools are a particularly good fit for agents: let the agent plan, then call hosted tools for calculations, conversions, formatting, and hashing. Every MCP`tools/call`also shows up in the REST`UsageEvent`log — same dashboard, same billing. ## 09 Privacy - Pure-math tools (interest, hash, percentage) log only`sha256(body)`, never raw input. - PII-bearing tools (text analysis, parsing) run in`no_body_logs`mode — we record only the byte count. - Request-id is always logged for debugging — include it when you file a ticket. - Signed DPA available for Business and Scale plans. [legal@miniwebtool.com](mailto:legal@miniwebtool.com) ## 10 Support - Email [support@miniwebtool.com](mailto:support@miniwebtool.com) with the failing`X-Request-Id`— it links directly to our logs. - Missing a tool you need? [Request it](mailto:support@miniwebtool.com) — the catalog grows from customer asks first. API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) 1080 endpoints · 38 categories # Catalog 1080 JSON endpoints, each with a typed schema, a published credit cost, a hosted playground, and copy-paste snippets. Press / to search. › / Finance 191 Text 56 Hash & Checksum 15 Math 439 Random 14 Webmaster 19 Business 15 Color 3 Construction 19 Conversion 17 Converters 1 Cooking 12 Craft 5 Creator 1 Datetime 2 Dev 14 Developer 19 Education 6 Electronics 7 Engineering 3 Environment 1 Event 1 Fitness 3 Food 3 Gaming 1 Geometry 4 Health 26 Home 6 Lifestyle 18 Marketing 12 Miscellaneous 13 Network 3 Physics 2 Productivity 1 Science 87 Sports 15 Time 5 Time-Date 21 agents start from a sentence, not a slug ## Hand the whole catalog to your coding agent You don't need to know which endpoint you want. Paste this into Claude Code, Cursor, Codex, Aider or Cline, then describe the problem in plain language — the agent searches the catalog, picks the tool, and wires it up without burning your key. Discovery is free and needs no key:`GET /v1/tools?q=mortgage+payment`searches the whole catalog and returns slugs, summaries and credit costs. Only the final call is billed — and`/dry-run`costs 0. Stable URL for this prompt: [`/prompt.md`](/prompt.md) (`?variant=mcp`/`?variant=cursor`) — point an agent straight at it. Claude Code / Codex MCP (no code) Cursor Paste into any coding agent, or keep it in CLAUDE.md / AGENTS.md. copy prompt ```text MiniWebtool is a growing catalog of deterministic calculation, conversion and text APIs behind one key — new tools land daily, so always search rather than assume. When I ask for something with an exact computed answer — a financial figure, a unit conversion, a hash, a statistic, a date — find the tool that does it instead of writing the formula yourself. Search first, guess never: 1. `GET https://api.miniwebtool.com/v1/tools?q=&limit=5` — public, no key. Search nouns (`mortgage`, `sha256`, `celsius`), not sentences. Results carry the slug, summary, and credit cost. 2. `GET https://api.miniwebtool.com/tools/.md` — that tool's fields and an example. 3. `POST https://api.miniwebtool.com/v1/tools//dry-run` — validates your payload and returns a sample response for **0 credits**. Shape the request here. 4. `POST https://api.miniwebtool.com/v1/tools//run` — the real call. Header: `Authorization: Bearer $MINIWEBTOOL_API_KEY`. Returns `{request_id, tool, credits_used, result}`. Budget (1,000 free credits/month, most tools cost 1): - Steps 1-3 are free. Iterate there. - One live `/run` per tool while integrating. Never call it from tests or a retry loop — assert against the dry-run sample. - 4xx: fix the payload, don't retry. 429: honour `Retry-After`. - Stop and tell me if `X-MWT-Credits-Remaining` drops below 50. - Tools are deterministic, so cache by input. If `MINIWEBTOOL_API_KEY` isn't set, ask me — don't sign up or invent one. ``` One-time setup — the agent then sees every tool natively. copy prompt ```text Connect the MiniWebtool MCP server, then use its tools for any exact computation — a growing catalog behind one key. ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or in an MCP config file: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` The server exposes three tools: `search_tools` (find the slug for a plain-language need — search concrete nouns like `mortgage` or `sha256`), `get_tool` (that tool's JSON Schema and an example), and `run_tool` (the billed call). Search and get are free. Calls are metered (1,000 free credits/month). Don't call tools from a retry loop, and cache by input — results are deterministic. ``` Save as.cursor/rules/miniwebtool.mdc copy prompt ```text --- description: MiniWebtool — growing catalog of calculation/conversion APIs globs: alwaysApply: false --- MiniWebtool is a growing catalog of deterministic calculation, conversion and text APIs behind one key — new tools land daily, so always search rather than assume. When I ask for something with an exact computed answer — a financial figure, a unit conversion, a hash, a statistic, a date — find the tool that does it instead of writing the formula yourself. Search first, guess never: 1. `GET https://api.miniwebtool.com/v1/tools?q=&limit=5` — public, no key. Search nouns (`mortgage`, `sha256`, `celsius`), not sentences. Results carry the slug, summary, and credit cost. 2. `GET https://api.miniwebtool.com/tools/.md` — that tool's fields and an example. 3. `POST https://api.miniwebtool.com/v1/tools//dry-run` — validates your payload and returns a sample response for **0 credits**. Shape the request here. 4. `POST https://api.miniwebtool.com/v1/tools//run` — the real call. Header: `Authorization: Bearer $MINIWEBTOOL_API_KEY`. Returns `{request_id, tool, credits_used, result}`. Budget (1,000 free credits/month, most tools cost 1): - Steps 1-3 are free. Iterate there. - One live `/run` per tool while integrating. Never call it from tests or a retry loop — assert against the dry-run sample. - 4xx: fix the payload, don't retry. 429: honour `Retry-After`. - Stop and tell me if `X-MWT-Credits-Remaining` drops below 50. - Tools are deterministic, so cache by input. If `MINIWEBTOOL_API_KEY` isn't set, ask me — don't sign up or invent one. ``` No tools match that search. [Clear filter](/tools/) or [request one →](mailto:support@miniwebtool.com) ## [Finance](/tools/category/finance/) 191 endpoints [full page →](/tools/category/finance/) Exact interest, mortgage, APY, and other money math. Accounting [ Depreciation Calculator depreciation-calculator Generate straight-line or declining-balance depreciation schedules with chart-ready book values. 1cr ](/tools/depreciation-calculator/) Auto [ Car Depreciation Calculator car-depreciation-calculator Estimate vehicle depreciation using a declining-balance annual rate. 2cr ](/tools/car-depreciation-calculator/) [ Car Lease Calculator car-lease-calculator Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. 2cr ](/tools/car-lease-calculator/) Bills [ Tip Calculator tip-calculator Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. 1cr ](/tools/tip-calculator/) Bonds [ Bond Convexity Calculator bond-convexity-calculator Calculate bond price, duration, convexity, and a second-order yield-shock estimate. 2cr ](/tools/bond-convexity-calculator/) [ Bond Duration Calculator bond-duration-calculator-macaulay-modified Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. 2cr ](/tools/bond-duration-calculator-macaulay-modified/) [ Bond Equivalent Yield Calculator bond-equivalent-yield-calculator Calculate bond equivalent yield for a discount security. 2cr ](/tools/bond-equivalent-yield-calculator/) [ Bond Yield to Maturity Calculator bond-yield-to-maturity-calculator Calculate bond yield to maturity with current yield and return metrics. 2cr ](/tools/bond-yield-to-maturity-calculator/) [ Treasury Inflation-Protected Securities (TIPS) Calculator treasury-inflation-protected-securities-tips-calculator Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. 2cr ](/tools/treasury-inflation-protected-securities-tips-calculator/) [ Zero Coupon Bond Calculator zero-coupon-bond-calculator Calculate zero coupon bond price or yield to maturity. 2cr ](/tools/zero-coupon-bond-calculator/) Cash Flow [ Cash Flow Calculator cash-flow-calculator Calculate net cash flow, ending cash, and optional month-by-month cash balance. 1cr ](/tools/cash-flow-calculator/) Coverage [ Debt Service Coverage Ratio Calculator debt-service-coverage-ratio-calculator Calculate DSCR and cash flow after annual debt service. 1cr ](/tools/debt-service-coverage-ratio-calculator/) Credit [ Credit Card Interest Calculator credit-card-interest-calculator Estimate credit card payoff time, interest cost, and payment strategy savings. 2cr ](/tools/credit-card-interest-calculator/) Credit Card Calculators [ Credit Card Payment Calculator credit-card-payment-calculator Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. 1cr ](/tools/credit-card-payment-calculator/) [ Credit Card Payoff Calculator credit-card-payoff-calculator Estimate how long a credit card payoff plan will take and how much interest it costs. 1cr ](/tools/credit-card-payoff-calculator/) [ Credit Utilization Calculator credit-utilization-calculator Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. 2cr ](/tools/credit-utilization-calculator/) Crypto [ Bitcoin Investment Calculator bitcoin-investment-calculator Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. 2cr ](/tools/bitcoin-investment-calculator/) [ Crypto Arbitrage Calculator crypto-arbitrage-calculator Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. 2cr ](/tools/crypto-arbitrage-calculator/) [ Crypto Leverage Calculator crypto-leverage-calculator Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. 2cr ](/tools/crypto-leverage-calculator/) [ Crypto Profit/Loss Calculator crypto-profit-loss-calculator Calculate crypto trade profit, ROI, transaction fees, and break-even price. 2cr ](/tools/crypto-profit-loss-calculator/) Debt [ Debt Consolidation Calculator debt-consolidation-calculator Estimate a consolidated debt payment and interest cost. 2cr ](/tools/debt-consolidation-calculator/) [ Debt Coverage Ratio Calculator debt-coverage-ratio-calculator Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. 2cr ](/tools/debt-coverage-ratio-calculator/) [ Debt to Income Ratio Calculator debt-to-income-ratio-calculator Calculate debt-to-income ratio from monthly income and debt payments. 2cr ](/tools/debt-to-income-ratio-calculator/) [ Fixed Charge Coverage Ratio Calculator fixed-charge-coverage-ratio-calculator Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. 2cr ](/tools/fixed-charge-coverage-ratio-calculator/) [ Interest Coverage Ratio Calculator interest-coverage-ratio-calculator Calculate EBIT or EBITDA based interest coverage ratio. 2cr ](/tools/interest-coverage-ratio-calculator/) [ Times Interest Earned Ratio Calculator times-interest-earned-ratio-calculator Calculate times interest earned ratio and interest coverage safety margin. 2cr ](/tools/times-interest-earned-ratio-calculator/) Debt Calculators [ Debt Payoff Calculator debt-payoff-calculator Compare debt snowball and avalanche payoff strategies for a small list of debts. 1cr ](/tools/debt-payoff-calculator/) Depreciation [ Actual Cash Value Calculator actual-cash-value-calculator Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. 1cr ](/tools/actual-cash-value-calculator/) Discounts [ Discount Calculator discount-calculator Calculate final price, savings, tax, stacked discounts, or BOGO deals. 1cr ](/tools/discount-calculator/) [ Percent Off Calculator percent-off-calculator Calculate discount amount and sale price from original price and percent off. 1cr ](/tools/percent-off-calculator/) [ Sale Price Calculator sale-price-calculator Calculate discounted sale price, tax, final price, and chart-ready price breakdown. 1cr ](/tools/sale-price-calculator/) Ecommerce [ Amazon FBA Calculator amazon-fba-calculator Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. 2cr ](/tools/amazon-fba-calculator/) [ eBay Fee Calculator ebay-fee-calculator Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. 2cr ](/tools/ebay-fee-calculator/) Efficiency [ Average Collection Period Calculator average-collection-period-calculator Calculate average collection period, receivables turnover, and industry benchmark spread. 2cr ](/tools/average-collection-period-calculator/) [ Debtor Days Calculator debtor-days-calculator Calculate debtor days, receivables ratio, and working capital above a 30-day target. 2cr ](/tools/debtor-days-calculator/) [ Fixed Asset Turnover Calculator fixed-asset-turnover-calculator Measure revenue generated per dollar of net fixed assets. 2cr ](/tools/fixed-asset-turnover-calculator/) [ Inventory Turnover Calculator inventory-turnover-calculator Calculate inventory turnover, days sales in inventory, and annualized turnover. 2cr ](/tools/inventory-turnover-calculator/) [ Inventory Turnover Ratio Calculator inventory-turnover-ratio-calculator Calculate inventory turnover ratio and days inventory outstanding. 1cr ](/tools/inventory-turnover-ratio-calculator/) [ Receivables Turnover Ratio Calculator receivables-turnover-ratio-calculator Calculate receivables turnover and days sales outstanding. 2cr ](/tools/receivables-turnover-ratio-calculator/) [ Total Asset Turnover Calculator total-asset-turnover-calculator Measure revenue generated per dollar of average total assets. 2cr ](/tools/total-asset-turnover-calculator/) Everyday Calculators [ Pizza Value Calculator pizza-value-calculator Compare two pizzas by area, price per area, slice value, and savings percentage. 1cr ](/tools/pizza-value-calculator/) Financial Ratio [ Goodwill to Assets Ratio Calculator goodwill-to-assets-ratio-calculator Calculate goodwill-to-assets ratio and tangible asset share. 2cr ](/tools/goodwill-to-assets-ratio-calculator/) [ Retention Ratio Calculator retention-ratio-calculator Calculate retention ratio, payout ratio, and retained earnings. 2cr ](/tools/retention-ratio-calculator/) Housing [ Home Affordability Calculator home-affordability-calculator Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. 2cr ](/tools/home-affordability-calculator/) [ Rent Affordability Calculator rent-affordability-calculator Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. 1cr ](/tools/rent-affordability-calculator/) [ Rent vs Buy Calculator rent-vs-buy-calculator Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. 2cr ](/tools/rent-vs-buy-calculator/) Interest [ APR Calculator apr-calculator Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. 2cr ](/tools/apr-calculator/) [ APR to APY Calculator apr-to-apy-calculator Convert APR to APY for a selected compounding frequency. 2cr ](/tools/apr-to-apy-calculator/) [ APY Calculator apy-calculator Calculate annual percentage yield and compound growth. 2cr ](/tools/apy-calculator/) [ APY to APR Calculator apy-to-apr-calculator Convert APY back to nominal APR for a compounding frequency. 2cr ](/tools/apy-to-apr-calculator/) [ Compound Daily Interest Calculator compound-daily-interest-calculator Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. 2cr ](/tools/compound-daily-interest-calculator/) [ Compound Interest Calculator compound-interest-calculator Compound-interest formula with selectable compounding frequency. 2cr ](/tools/compound-interest-calculator/) [ Continuous Compounding Calculator continuous-compounding-calculator Calculate future value and interest with continuous compounding. 1cr ](/tools/continuous-compounding-calculator/) [ Doubling Time Calculator doubling-time-calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. 1cr ](/tools/doubling-time-calculator/) [ Effective Interest Rate Calculator effective-interest-rate-calculator Convert a nominal interest rate to its effective annual rate. 2cr ](/tools/effective-interest-rate-calculator/) [ Effective Yield Calculator effective-yield-calculator Calculate effective annual yield from nominal APR and compounding frequency. 2cr ](/tools/effective-yield-calculator/) [ Forward Rate Calculator forward-rate-calculator Implied forward rates from a spot curve, as a full matrix plus the consecutive forward curve and shape diagnosis. 2cr ](/tools/forward-rate-calculator/) [ Interest Rate Calculator interest-rate-calculator Solve the implied annual interest rate from principal, term, and monthly payment. 2cr ](/tools/interest-rate-calculator/) [ Nominal Interest Rate Calculator nominal-interest-rate-calculator Convert an effective annual rate to a nominal annual rate. 2cr ](/tools/nominal-interest-rate-calculator/) [ Rule of 72 Calculator rule-of-72-calculator Estimate investment doubling time with the Rule of 72 and exact compound formula. 1cr ](/tools/rule-of-72-calculator/) [ Simple Interest Calculator simple-interest-calculator Simple-interest formula: I = P * r * t. 2cr ](/tools/simple-interest-calculator/) Investing [ CAPM Calculator capm-calculator Solve the Capital Asset Pricing Model for expected return, risk-free rate, market return, or beta. 2cr ](/tools/capm-calculator/) [ Dollar Cost Averaging Calculator dollar-cost-averaging-calculator Simulate portfolio growth from regular periodic investments with compounding returns. 2cr ](/tools/dollar-cost-averaging-calculator/) [ ESPP Calculator espp-calculator Estimate ESPP shares, lookback discount, sale proceeds, taxes, and after-tax return. 2cr ](/tools/espp-calculator/) [ Holding Period Return Calculator holding-period-return-calculator Holding period return with income and capital-gains yield split, return multiple, and optional annualized return. 2cr ](/tools/holding-period-return-calculator/) [ IRR Calculator irr-calculator Internal rate of return solved by bisection for uniform or variable cash flows, with rating and profit summary. 2cr ](/tools/irr-calculator/) [ NPV Calculator npv-calculator Net present value with IRR, profitability index, payback periods, decision guidance, and rate sensitivity. 2cr ](/tools/npv-calculator/) [ Real Rate of Return Calculator real-rate-of-return-calculator Inflation-adjusted real return via the Fisher equation, vs the simple approximation, with optional projection. 2cr ](/tools/real-rate-of-return-calculator/) [ Sharpe Ratio Calculator sharpe-ratio-calculator Sharpe ratio from summary statistics or a series of periodic returns (annualized), with performance rating. 2cr ](/tools/sharpe-ratio-calculator/) [ SIP Calculator sip-calculator Systematic investment plan projection with optional annual step-up and initial lump sum, month-by-month compounding. 2cr ](/tools/sip-calculator/) [ Stock Average Calculator stock-average-calculator Average cost per share after buying more shares, with breakeven price and optional profit/loss at the current price. 2cr ](/tools/stock-average-calculator/) [ Stock Profit Loss Calculator stock-profit-loss-calculator Calculate stock trade profit, loss, ROI, and breakeven price. 2cr ](/tools/stock-profit-loss-calculator/) [ Stock Split Calculator stock-split-calculator Post-split shares, price, cost basis, and fractional-share handling for forward and reverse stock splits. 2cr ](/tools/stock-split-calculator/) Investment [ Capital Employed Calculator capital-employed-calculator Calculate capital employed by common balance-sheet methods and optional ROCE. 2cr ](/tools/capital-employed-calculator/) [ WACC Calculator wacc-calculator Calculate weighted average cost of capital and component contributions. 1cr ](/tools/wacc-calculator/) Leverage [ Debt to Asset Ratio Calculator debt-to-asset-ratio-calculator Calculate debt-to-asset ratio, equity ratio, and optional industry benchmark spread. 2cr ](/tools/debt-to-asset-ratio-calculator/) [ Debt to Equity Ratio Calculator debt-to-equity-ratio-calculator Calculate debt-to-equity ratio, equity multiplier, and capital structure shares. 2cr ](/tools/debt-to-equity-ratio-calculator/) [ Equity Ratio Calculator equity-ratio-calculator Calculate equity ratio, debt ratio, equity multiplier, and industry benchmark spread. 2cr ](/tools/equity-ratio-calculator/) Liquidity [ Cash Ratio Calculator cash-ratio-calculator Calculate cash ratio from cash, marketable securities, and current liabilities. 2cr ](/tools/cash-ratio-calculator/) [ Current Ratio Calculator current-ratio-calculator Calculate current ratio and working capital from current assets and liabilities. 2cr ](/tools/current-ratio-calculator/) [ Loan to Deposit Ratio Calculator loan-to-deposit-ratio-calculator Calculate bank loan-to-deposit ratio, deposit coverage, and liquidity status. 2cr ](/tools/loan-to-deposit-ratio-calculator/) [ Quick Ratio Calculator quick-ratio-calculator Calculate quick ratio, quick assets, current ratio, and liquidity rating. 2cr ](/tools/quick-ratio-calculator/) Loan Calculators [ Amortization Calculator amortization-calculator Calculate loan payment, interest, payoff timing, and savings from extra monthly principal. 1cr ](/tools/amortization-calculator/) [ HELOC Calculator heloc-calculator Estimate HELOC draw-period and repayment-period payments, interest cost, and combined loan-to-value. 1cr ](/tools/heloc-calculator/) Loans [ ARM Mortgage Calculator arm-mortgage-calculator Worst-case payment path of an adjustable-rate mortgage under its initial, periodic, and lifetime caps. 2cr ](/tools/arm-mortgage-calculator/) [ Auto Loan Calculator auto-loan-calculator Calculate auto loan amount, monthly payment, tax, and total interest. 2cr ](/tools/auto-loan-calculator/) [ Balloon Loan Calculator balloon-loan-calculator Monthly payment and final balloon payment for amortized or interest-only balloon loans. 2cr ](/tools/balloon-loan-calculator/) [ Biweekly Mortgage Payment Calculator biweekly-mortgage-payment-calculator Biweekly versus monthly mortgage payments with interest saved and time cut from the term. 2cr ](/tools/biweekly-mortgage-payment-calculator/) [ Business Loan Calculator business-loan-calculator Estimate business loan payments, fees, payoff time, and interest. 2cr ](/tools/business-loan-calculator/) [ Car Affordability Calculator car-affordability-calculator Maximum affordable car price under the 20/4/10 rule with the binding constraint identified. 2cr ](/tools/car-affordability-calculator/) [ Car Loan Payoff Calculator car-loan-payoff-calculator Compare standard and accelerated payoff for a car loan. 2cr ](/tools/car-loan-payoff-calculator/) [ Down Payment Calculator down-payment-calculator Estimate mortgage down payment, loan amount, monthly payment, PMI, and comparison scenarios. 2cr ](/tools/down-payment-calculator/) [ EMI Calculator emi-calculator Calculate equated monthly installment and total interest for a loan. 2cr ](/tools/emi-calculator/) [ FHA Loan Calculator fha-loan-calculator FHA payment with upfront and annual mortgage insurance premiums from the HUD MIP schedule. 2cr ](/tools/fha-loan-calculator/) [ Interest-Only Mortgage Calculator interest-only-mortgage-calculator Interest-only payment, the payment jump when the IO period ends, and the extra interest versus a standard loan. 2cr ](/tools/interest-only-mortgage-calculator/) [ Loan Payoff Calculator loan-payoff-calculator Calculate loan payoff months and savings from extra monthly payments. 2cr ](/tools/loan-payoff-calculator/) [ Mortgage Calculator mortgage-calculator Monthly payment, total interest, LTV, and optional amortization schedule. 5cr ](/tools/mortgage-calculator/) [ Mortgage Payoff Calculator mortgage-payoff-calculator Early mortgage payoff simulation with extra monthly, yearly, and one-time payments; time and interest saved. 2cr ](/tools/mortgage-payoff-calculator/) [ Mortgage Recast Calculator mortgage-recast-calculator New payment after a lump-sum recast, versus prepaying without recasting. 2cr ](/tools/mortgage-recast-calculator/) [ Personal Loan Calculator personal-loan-calculator Calculate personal loan payment, payoff time, interest, and extra-payment savings. 2cr ](/tools/personal-loan-calculator/) [ VA Loan Calculator va-loan-calculator VA loan payment with the funding fee by use type and down payment, financed or paid at closing. 2cr ](/tools/va-loan-calculator/) Marketing [ ROAS Calculator roas-calculator Calculate return on ad spend, profit, ROI, or target revenue. 2cr ](/tools/roas-calculator/) Mortgage [ Mortgage Comparison Calculator mortgage-comparison-calculator Compare two to four fixed-rate mortgages by payment, total interest, total cost, and annual amortization. 2cr ](/tools/mortgage-comparison-calculator/) Options [ Black-Scholes Calculator black-scholes-calculator Price European call and put options with dividend-adjusted Black-Scholes and full Greeks. 2cr ](/tools/black-scholes-calculator/) [ Options Profit Calculator options-profit-calculator Calculate long call or put break-even, maximum risk, expiration P/L, and payoff curve. 2cr ](/tools/options-profit-calculator/) Payroll [ Time Card Calculator time-card-calculator Calculate regular hours, overtime hours, gross pay, and daily hour chart data. 1cr ](/tools/time-card-calculator/) Planning [ Budget Calculator budget-calculator Allocate income into needs, wants, and savings using the 50/30/20 budgeting rule. 2cr ](/tools/budget-calculator/) [ Cost of Raising a Child Calculator cost-of-raising-a-child-calculator Project the cost of raising a child to 18 by spending category with income tier, siblings, inflation, and optional college. 2cr ](/tools/cost-of-raising-a-child-calculator/) [ Emergency Fund Calculator emergency-fund-calculator Emergency fund target by employment profile and dependents, with 3/6/9/12-month tiers and time to reach each. 2cr ](/tools/emergency-fund-calculator/) [ Net Worth Calculator net-worth-calculator Net worth from itemized assets and liabilities with debt-to-asset ratio, health rating, and milestone tracking. 2cr ](/tools/net-worth-calculator/) Profit [ Break-Even Calculator break-even-calculator Calculate break-even units, revenue, contribution margin, and target-profit units. 1cr ](/tools/break-even-calculator/) [ EBIT Calculator ebit-calculator Calculate EBIT and EBIT margin from revenue, expenses, and non-operating income. 2cr ](/tools/ebit-calculator/) [ EBITDA Calculator ebitda-calculator Calculate EBITDA using net income or operating income inputs. 2cr ](/tools/ebitda-calculator/) Profitability [ Break Even Point Calculator break-even-point-calculator Calculate break-even units, revenue, costs, and rounded-unit profit. 1cr ](/tools/break-even-point-calculator/) [ Cash Flow Margin Calculator cash-flow-margin-calculator Calculate operating cash flow margin as a percentage of net sales. 2cr ](/tools/cash-flow-margin-calculator/) [ Earnings per Share Calculator earnings-per-share-calculator Calculate basic, diluted, or weighted earnings per share. 2cr ](/tools/earnings-per-share-calculator/) [ EBIT Margin Calculator ebit-margin-calculator Calculate EBIT margin and EBIT-to-revenue ratio. 2cr ](/tools/ebit-margin-calculator/) [ EBITDA Margin Calculator ebitda-margin-calculator Calculate EBITDA margin from direct EBITDA or component inputs. 2cr ](/tools/ebitda-margin-calculator/) [ Gross Profit Margin Calculator gross-profit-margin-calculator Calculate gross profit, gross margin, markup, and cost ratio. 2cr ](/tools/gross-profit-margin-calculator/) [ Margin Calculator margin-calculator Calculate gross profit, margin percent, markup percent, and chart-ready revenue breakdown. 1cr ](/tools/margin-calculator/) [ Net Profit Margin Calculator net-profit-margin-calculator Calculate net profit margin and profit per revenue dollar. 2cr ](/tools/net-profit-margin-calculator/) [ Operating Margin Calculator operating-margin-calculator Calculate operating margin from operating income or detailed operating components. 2cr ](/tools/operating-margin-calculator/) [ Operating Profit Percentage Calculator operating-profit-percentage-calculator Calculate operating profit percentage from operating income or a revenue cost breakdown. 2cr ](/tools/operating-profit-percentage-calculator/) [ Profit Calculator profit-calculator Solve profit, margin, markup, revenue, or cost from the known values. 2cr ](/tools/profit-calculator/) [ Profit to Sales Ratio Calculator profit-to-sales-ratio-calculator Calculate profit-to-sales ratio and compare it with an industry benchmark. 2cr ](/tools/profit-to-sales-ratio-calculator/) [ Return on Assets Ratio Calculator return-on-assets-ratio-calculator Calculate ROA with optional DuPont margin and asset-turnover breakdown. 2cr ](/tools/return-on-assets-ratio-calculator/) [ Return On Equity Calculator return-on-equity-calculator Calculate ROE with optional 3- or 5-component DuPont analysis. 2cr ](/tools/return-on-equity-calculator/) [ Return On Sales Calculator return-on-sales-calculator Calculate return on sales, operating cost ratio, and ROS decimal. 2cr ](/tools/return-on-sales-calculator/) Real Estate [ Cap Rate Calculator cap-rate-calculator Calculate net operating income, cap rate, expense ratio, and monthly NOI. 1cr ](/tools/cap-rate-calculator/) [ Capitalization Rate Calculator capitalization-rate-calculator Solve cap rate, property value, or required NOI for real estate income analysis. 2cr ](/tools/capitalization-rate-calculator/) [ Closing Costs Calculator closing-costs-calculator Generic national-average estimate of home purchase or refinance closing costs by fee category. 2cr ](/tools/closing-costs-calculator/) [ Gross Rent Multiplier Calculator gross-rent-multiplier-calculator Calculate gross rent multiplier and rental yield for a property. 2cr ](/tools/gross-rent-multiplier-calculator/) [ Home Equity Calculator home-equity-calculator Calculate home equity, LTV, CLTV, and optional five-year equity projection. 2cr ](/tools/home-equity-calculator/) [ Loan to Cost Calculator loan-to-cost-calculator Calculate loan-to-cost percent and equity required for a project. 1cr ](/tools/loan-to-cost-calculator/) [ Loan to Value Calculator loan-to-value-calculator Calculate loan-to-value percent, equity, and equity percent for a property. 1cr ](/tools/loan-to-value-calculator/) [ Moving Cost Estimator moving-cost-estimator Estimate moving costs from home size, distance, service level, and access factors. 2cr ](/tools/moving-cost-estimator/) [ Prorated Rent Calculator prorated-rent-calculator Prorate rent for a partial month from a move date, comparing actual-days, banker's 30-day, and annual-basis methods. 2cr ](/tools/prorated-rent-calculator/) [ Real Estate Commission Calculator real-estate-commission-calculator Calculate total real-estate commission, agent split, rate comparisons, and seller net proceeds. 2cr ](/tools/real-estate-commission-calculator/) Real Estate Calculators [ BRRRR Method Calculator brrrr-method-calculator Analyze a BRRRR real estate deal, including all-in cost, refinance proceeds, capital recycled, equity, and cash flow. 1cr ](/tools/brrrr-method-calculator/) [ Cash-on-Cash Return Calculator cash-on-cash-return-calculator Estimate rental property cash-on-cash return, cap rate, NOI, cash flow, and DSCR. 1cr ](/tools/cash-on-cash-return-calculator/) [ House Flipping Profit Calculator house-flipping-profit-calculator Estimate house flip net profit, ROI, financing effects, and the 70 percent rule threshold. 1cr ](/tools/house-flipping-profit-calculator/) [ Housing Appreciation Calculator housing-appreciation-calculator Calculate total home value change, annualized appreciation, and a future value projection. 1cr ](/tools/housing-appreciation-calculator/) Retail [ Markup Calculator markup-calculator Calculate markup percentage, selling price, cost, profit, and margin. 1cr ](/tools/markup-calculator/) Retirement [ 401(k) Calculator 401-k-calculator Project 401(k) growth to retirement with employer matching, IRS contribution limits, salary raises, and year-by-year balances. 2cr ](/tools/401-k-calculator/) [ EPF Calculator epf-calculator India Employees Provident Fund maturity corpus, splitting the employer's 12% into EPF and the EPS pension slice, with year-end interest compounding. 2cr ](/tools/epf-calculator/) [ Retirement Calculator retirement-calculator Estimate retirement savings growth, inflation-adjusted value, and contribution breakdown. 1cr ](/tools/retirement-calculator/) [ Roth IRA Calculator roth-ira-calculator Project Roth IRA growth with contributions, earnings, and chart-ready year-by-year data. 1cr ](/tools/roth-ira-calculator/) Return [ CAGR Calculator cagr-calculator Calculate the compound annual growth rate between a beginning and ending value. 2cr ](/tools/cagr-calculator/) [ Dividend Payout Ratio Calculator dividend-payout-ratio-calculator Calculate dividend payout ratio and retention ratio from total or per-share inputs. 2cr ](/tools/dividend-payout-ratio-calculator/) [ Dividend Yield Calculator dividend-yield-calculator Calculate dividend yield, per-payment dividend, and optional annual income. 2cr ](/tools/dividend-yield-calculator/) [ ROI Calculator roi-calculator Calculate ROI, annualized ROI, CAGR, and investment term from fixed dates. 2cr ](/tools/roi-calculator/) [ Tax-Equivalent Yield Calculator tax-equivalent-yield-calculator Tax-equivalent yield of a municipal bond from federal and state marginal rates, with a bracket table. 2cr ](/tools/tax-equivalent-yield-calculator/) Salary [ Hourly to Salary Calculator hourly-to-salary-calculator Convert an hourly wage to weekly, monthly, and annual salary. 2cr ](/tools/hourly-to-salary-calculator/) [ Hourly Wage Calculator hourly-wage-calculator Convert annual salary to equivalent hourly wage. 2cr ](/tools/hourly-wage-calculator/) [ Salary Conversion Calculator salary-conversion-calculator Convert wage amounts across hourly, daily, weekly, monthly, and annual pay periods. 2cr ](/tools/salary-conversion-calculator/) [ Salary Raise Calculator salary-raise-calculator New salary after a raise by percent, target salary, or flat amount, with per-period breakdown and inflation-adjusted real raise. 2cr ](/tools/salary-raise-calculator/) [ Weekly Wage Calculator weekly-wage-calculator Convert annual salary to weekly wage. 2cr ](/tools/weekly-wage-calculator/) Sales [ Commission Calculator commission-calculator Calculate flat, tiered, or bonus-based sales commission. 2cr ](/tools/commission-calculator/) [ PayPal Fee Calculator paypal-fee-calculator PayPal fee and net for a received payment, or the gross-up invoice amount needed to net a target after fees. 2cr ](/tools/paypal-fee-calculator/) Savings [ Compound Savings Calculator compound-savings-calculator Project savings growth with compound interest and regular contributions. 1cr ](/tools/compound-savings-calculator/) [ Fixed Deposit Calculator fixed-deposit-calculator Fixed deposit maturity value and interest for simple, periodic, or continuous compounding with effective annual rate. 2cr ](/tools/fixed-deposit-calculator/) [ Recurring Deposit Calculator recurring-deposit-calculator Project recurring monthly deposits with compound interest and chart-ready balance data. 1cr ](/tools/recurring-deposit-calculator/) [ Savings Calculator savings-calculator Project savings growth with recurring contributions and chart-ready balance data. 1cr ](/tools/savings-calculator/) Startup [ Burn Rate Calculator burn-rate-calculator Calculate gross burn, net burn, and estimated runway from cash flow. 1cr ](/tools/burn-rate-calculator/) [ Runway Calculator runway-calculator Calculate cash runway in months and chart the cash balance decline. 1cr ](/tools/runway-calculator/) TVM [ Future Value Calculator future-value-calculator Calculate future value from a lump sum plus optional recurring contributions. 2cr ](/tools/future-value-calculator/) [ Future Value Factor Calculator future-value-factor-calculator Calculate the future value factor for a rate and number of periods. 2cr ](/tools/future-value-factor-calculator/) [ Future Value of Annuity Calculator future-value-of-annuity-calculator Calculate future value for ordinary annuities and annuities due. 2cr ](/tools/future-value-of-annuity-calculator/) [ Future Value of Annuity Due Calculator future-value-of-annuity-due-calculator Calculate future value of an annuity due and compare it with an ordinary annuity. 2cr ](/tools/future-value-of-annuity-due-calculator/) [ Future Value of Growing Annuity Calculator future-value-of-growing-annuity-calculator Calculate future value for payments that grow each period. 2cr ](/tools/future-value-of-growing-annuity-calculator/) [ Future Value of Lump Sum Calculator future-value-of-lump-sum-calculator Calculate compound future value for a single lump-sum investment. 2cr ](/tools/future-value-of-lump-sum-calculator/) [ FVIFA Calculator fvifa-calculator Calculate the future value interest factor of an annuity. 2cr ](/tools/fvifa-calculator/) [ Present Value Annuity Due Calculator present-value-annuity-due-calculator Calculate the present value of an annuity due and compare it with an ordinary annuity. 2cr ](/tools/present-value-annuity-due-calculator/) [ Present Value of Annuity Calculator present-value-of-annuity-calculator Calculate present value for ordinary annuities and annuities due. 2cr ](/tools/present-value-of-annuity-calculator/) [ Present Value of Lump Sum Calculator present-value-of-lump-sum-calculator Discount a future lump sum back to present value. 2cr ](/tools/present-value-of-lump-sum-calculator/) [ PVIF Calculator pvif-calculator Calculate the present value interest factor and discounted future value. 2cr ](/tools/pvif-calculator/) [ PVIFA Calculator pvifa-calculator Calculate the present value interest factor of an annuity and optional present value. 2cr ](/tools/pvifa-calculator/) Tax [ Estate Tax Calculator estate-tax-calculator Estimate federal estate tax from gross estate, deductions, gifts, exemption, and graduated brackets. 2cr ](/tools/estate-tax-calculator/) [ Sales Tax Calculator sales-tax-calculator Calculate sales tax, tax-inclusive totals, pre-tax prices or an implied tax rate. 1cr ](/tools/sales-tax-calculator/) [ VAT Calculator vat-calculator Add, remove, or extract VAT from an amount using a preset or custom rate. 2cr ](/tools/vat-calculator/) Taxes [ Property Tax Calculator property-tax-calculator Annual and monthly property tax from home value, assessment ratio, tax rate (percent or mills), exemptions, and a 10-year projection. 2cr ](/tools/property-tax-calculator/) [ Tax Calculator tax-calculator Estimate taxable income, tax, take-home income, and effective rate from user-supplied flat rates. 1cr ](/tools/tax-calculator/) Time Value [ Discount Factor Calculator discount-factor-calculator Discount factor and present value for discrete or continuous compounding with a period-by-period table. 2cr ](/tools/discount-factor-calculator/) [ Present Value Calculator present-value-calculator Discount a future value to present value with configurable compounding and chart-ready series. 1cr ](/tools/present-value-calculator/) Trading [ Short Selling Profit Calculator short-selling-profit-calculator Calculate short-sale net profit after borrow fees, margin interest, and commissions. 2cr ](/tools/short-selling-profit-calculator/) [ Stop Loss Take Profit Calculator stop-loss-take-profit-calculator Calculate stop-loss and take-profit levels, risk/reward, and risk-based position size. 2cr ](/tools/stop-loss-take-profit-calculator/) Travel [ Fuel Cost Calculator fuel-cost-calculator Estimate trip fuel usage, total fuel cost, and per-person cost. 1cr ](/tools/fuel-cost-calculator/) Valuation [ Book Value per Share Calculator book-value-per-share-calculator Calculate book value per share, common equity, and optional price-to-book ratio. 2cr ](/tools/book-value-per-share-calculator/) [ P/E Ratio Calculator p-e-ratio-calculator Calculate price-to-earnings ratio, earnings yield, and sector benchmark premium. 2cr ](/tools/p-e-ratio-calculator/) [ Price to Book Ratio Calculator price-to-book-ratio-calculator Calculate price-to-book ratio and compare it to industry benchmark ranges. 2cr ](/tools/price-to-book-ratio-calculator/) Vehicle Costs [ Cost Per Mile Calculator cost-per-mile-calculator Estimate total annual driving cost and the true cost per mile from fuel and ownership costs. 1cr ](/tools/cost-per-mile-calculator/) ## [Text](/tools/category/text/) 56 endpoints [full page →](/tools/category/text/) Word / character / line counters, whitespace, case, encoding. Analysis [ Character Counter character-counter Count characters, letters, digits, whitespace, and punctuation. 1cr ](/tools/character-counter/) [ Compare Two Strings compare-two-strings Compare two strings with equality, similarity, edit distance, and diff statistics. 1cr ](/tools/compare-two-strings/) [ Email Extractor email-extractor Extract email addresses from text with de-duplication, sorting, and a domain breakdown. 1cr ](/tools/email-extractor/) [ Find Longest Line find-longest-line Rank text lines by character, word, or byte length and return the longest lines. 1cr ](/tools/find-longest-line/) [ Line Counter line-counter Count total / non-empty / empty lines and longest-line length. 1cr ](/tools/line-counter/) [ Lipogram Checker lipogram-checker Check whether text avoids one or more forbidden letters. 1cr ](/tools/lipogram-checker/) [ Pangram Checker pangram-checker Check whether text contains every letter A through Z. 1cr ](/tools/pangram-checker/) [ Sentence Counter sentence-counter Count sentences and classify sentence type and basic complexity. 1cr ](/tools/sentence-counter/) [ Word Counter word-counter Count words, characters, sentences, paragraphs, reading/speaking time, top words. 1cr ](/tools/word-counter/) CSS [ CSS Beautifier css-beautifier Format compact CSS with indentation and line breaks. 1cr ](/tools/css-beautifier/) Case [ Text Case Converter lowercase-uppercase-letters Convert text to uppercase, lowercase, title, sentence, camel, snake, kebab, and related cases. 1cr ](/tools/lowercase-uppercase-letters/) [ Title Case Converter title-case-converter Convert text to title case using smart, APA, Chicago, MLA, AP, or simple capitalization rules. 1cr ](/tools/title-case-converter/) Cipher [ Caesar Cipher Tool caesar-cipher-tool Encrypt or decrypt text with a Caesar shift cipher, with optional brute-force candidates. 1cr ](/tools/caesar-cipher-tool/) Cleanup [ Invisible Character Remover invisible-character-remover Detect, remove, or reveal zero-width and Unicode formatting characters hidden in text. 1cr ](/tools/invisible-character-remover/) [ List Cleaner list-cleaner Trim, deduplicate, remove blanks, and optionally sort list lines. 1cr ](/tools/list-cleaner/) [ Smart Quotes Remover smart-quotes-remover Replace curly smart quotes and primes with straight quotes, with JSON-safe escaping. 1cr ](/tools/smart-quotes-remover/) Comparison [ Diff Checker diff-checker Compare two texts line by line and return change statistics with a unified diff. 1cr ](/tools/diff-checker/) Conversion [ Number to Word Converter number-to-word-converter Convert a decimal number to English cardinal, ordinal, or currency words. 1cr ](/tools/number-to-word-converter/) Deduplication [ Remove Duplicate Lines remove-duplicate-lines Remove duplicate text lines while keeping first, last, or only unique occurrences. 1cr ](/tools/remove-duplicate-lines/) Encoding [ Morse Code Decoder morse-code-decoder Decode International Morse Code to text (single space between letters, three spaces between words). 1cr ](/tools/morse-code-decoder/) [ Morse Code Generator morse-code-generator Convert text to International Morse code with character breakdown. 1cr ](/tools/morse-code-generator/) Extraction [ Number Extractor number-extractor Extract decimal or integer values from text and return the values with simple statistics. 1cr ](/tools/number-extractor/) Formatting [ ASCII Art Generator ascii-art-generator Generate deterministic ASCII banner art from short text. 1cr ](/tools/ascii-art-generator/) [ Markdown Table Generator markdown-table-generator Turn delimited rows into a padded Markdown table with auto-detected delimiter, optional header row, and left, center, or right column alignment. 1cr ](/tools/markdown-table-generator/) [ Text Formatter text-formatter Apply case and whitespace transforms to a block of text. 1cr ](/tools/text-formatter/) Generators [ Buzzword Bingo Generator buzzword-bingo-generator Generate a deterministic buzzword bingo board from a term list and seed. 1cr ](/tools/buzzword-bingo-generator/) Lines [ Reverse Line reverse-line Reverse the characters in each line of text. 1cr ](/tools/reverse-line/) Lists [ List Difference Calculator list-difference-calculator Compare two line-based lists and return differences, intersection, and union. 1cr ](/tools/list-difference-calculator/) Modification [ Add Line Numbers add-line-numbers Add configurable line numbers to the start or end of each text line. 1cr ](/tools/add-line-numbers/) [ Add Prefix and Suffix add-prefix-and-suffix Add prefix, suffix, and optional numbering to each text line, word, or delimited item. 1cr ](/tools/add-prefix-and-suffix/) [ Break Line by Characters break-line-by-characters Insert line breaks at a maximum character count, with smart word-wrap or hard-break modes. 1cr ](/tools/break-line-by-characters/) [ Find and Replace Text find-replace-text Find and replace text with literal or regex patterns, case and whole-word options. 1cr ](/tools/find-replace-text/) [ Remove Accent remove-accent Remove accents and combining marks from Unicode text. 1cr ](/tools/remove-accent/) [ Remove Line Numbers remove-line-numbers Strip numeric prefixes such as line numbers from each line of text. 1cr ](/tools/remove-line-numbers/) [ Remove Lines Containing remove-lines-containing Keep or remove lines matching a text, word, prefix, suffix, or regex pattern. 1cr ](/tools/remove-lines-containing/) [ Remove Punctuation remove-punctuation Remove or replace selected punctuation categories from text. 1cr ](/tools/remove-punctuation/) [ Reverse Lines reverse-lines Reverse the order of lines in a text block. 1cr ](/tools/reverse-lines/) [ Reverse Text reverse-text Reverse whole text, word order, each word, or line order. 1cr ](/tools/reverse-text/) [ String Repeat string-repeat Repeat a string with separators, optional prefixes, suffixes, and numbering. 1cr ](/tools/string-repeat/) Number Lists [ Sort Numbers sort-numbers Sort up to 1000 numbers and optionally remove duplicates while returning basic statistics. 1cr ](/tools/sort-numbers/) Sorting [ Sort Lines Alphabetically sort-lines-alphabetically Sort text lines alphabetically, naturally, numerically, or by length. 1cr ](/tools/sort-lines-alphabetically/) [ Sort Text By Length sort-text-by-length Sort text lines by character length with basic line statistics. 1cr ](/tools/sort-text-by-length/) Subtitles [ CSV to SRT Converter csv-to-srt Convert CSV subtitle rows with start, end, and text columns to SRT. 1cr ](/tools/csv-to-srt/) [ SRT to CSV Converter srt-to-csv Convert SRT subtitle content to CSV rows. 1cr ](/tools/srt-to-csv/) [ SRT to TXT Converter srt-to-txt Extract plain, timestamped, JSON, or sentence text from SRT subtitles. 1cr ](/tools/srt-to-txt/) Text Conversion [ Word to Phone Number Converter word-to-phone-number-converter Convert words and phrases into T9 keypad phone numbers. 1cr ](/tools/word-to-phone-number-converter/) Text Modification [ Text Repeat text-repeat Repeat text multiple times with separators, numbering, and case options. 1cr ](/tools/text-repeat/) [ Upside Down Text Generator upside-down-text-generator Flip text upside down using Unicode character mappings. 1cr ](/tools/upside-down-text-generator/) Text Statistics [ Syllable Counter syllable-counter Count syllables per word, line, and text with haiku detection and Flesch reading ease. 1cr ](/tools/syllable-counter/) [ Word Frequency Analyzer word-frequency-analyzer Analyze word frequency, unique words, lexical diversity, and CSV output. 1cr ](/tools/word-frequency-analyzer/) Unicode [ Invisible Text Generator invisible-text-generator Generate a run of zero-width or blank Unicode characters. 1cr ](/tools/invisible-text-generator/) Whitespace [ Remove Empty Lines remove-empty-lines Remove blank or whitespace-only lines from text and report line reduction statistics. 1cr ](/tools/remove-empty-lines/) [ Remove Leading Trailing Spaces remove-leading-trailing-spaces Trim leading and trailing spaces or tabs from each line. 1cr ](/tools/remove-leading-trailing-spaces/) [ Remove Spaces remove-spaces Strip whitespace: all, extra, leading, trailing, or per-line. 1cr ](/tools/remove-spaces/) Word Games [ Anagram Generator anagram-generator Generate letter-permutation anagrams of a word and check whether two words are anagrams. 1cr ](/tools/anagram-generator/) [ Pig Latin Translator pig-latin-translator Translate English to Pig Latin and back in four dialects with qu-handling, case preservation, and Y rules. 1cr ](/tools/pig-latin-translator/) ## [Hash & Checksum](/tools/category/hash/) 15 endpoints [full page →](/tools/category/hash/) SHA, MD5, HMAC, and digest utilities with stable JSON output. Checksum [ Adler-32 Checksum Calculator adler32-checksum-calculator Calculate the Adler-32 checksum of UTF-8 text with A and B component breakdown. 1cr ](/tools/adler32-checksum-calculator/) [ CRC32 Checksum Calculator crc32-checksum-calculator Calculate the IEEE CRC32 checksum of text in hex, decimal, and binary form. 1cr ](/tools/crc32-checksum-calculator/) [ CRC64 Checksum Calculator crc64-checksum-calculator Calculate the CRC64 checksum of text using ECMA-182, WE, or Jones polynomial variants. 1cr ](/tools/crc64-checksum-calculator/) [ FNV-1a Hash Generator fnv1a-hash-generator Generate a fast non-cryptographic FNV-1a hash in 32, 64, 128, or 256-bit variants. 1cr ](/tools/fnv1a-hash-generator/) [ MurmurHash3 Generator murmurhash3-generator 32-bit MurmurHash3 (x86) of the input text, in decimal, hex, and binary, with a configurable seed. 1cr ](/tools/murmurhash3-generator/) Digest [ BLAKE2b Hash Generator blake2b-hash-generator Generate a BLAKE2b digest with 256, 384, or 512-bit output. 1cr ](/tools/blake2b-hash-generator/) [ MD5 Hash Generator md5-hash-generator Generate an MD5 hex digest for checksum and legacy compatibility. 1cr ](/tools/md5-hash-generator/) [ SHA1 Hash Generator sha1-hash-generator Generate the SHA-1 hash (160-bit) of text. 1cr ](/tools/sha1-hash-generator/) [ SHA-224 Hash Generator sha224-hash-generator Generate the SHA-224 hash (224-bit) of text. 1cr ](/tools/sha224-hash-generator/) [ SHA-256 Hash Generator sha256-hash-generator Generate a SHA-256 hex digest of a UTF-8 string. 1cr ](/tools/sha256-hash-generator/) [ SHA3-256 Hash Generator sha3-256-hash-generator Generate the SHA3-256 hash (256-bit Keccak) of text. 1cr ](/tools/sha3-256-hash-generator/) [ SHA3-384 Hash Generator sha3-384-hash-generator Generate the SHA3-384 hash (384-bit Keccak) of text. 1cr ](/tools/sha3-384-hash-generator/) [ SHA3-512 Hash Generator sha3-512-hash-generator Generate a SHA3-512 hex digest of a UTF-8 string. 1cr ](/tools/sha3-512-hash-generator/) [ SHA-384 Hash Generator sha384-hash-generator Generate a SHA-384 hex digest of a UTF-8 string. 1cr ](/tools/sha384-hash-generator/) [ SHA-512 Hash Generator sha512-hash-generator Generate a SHA-512 hex digest of a UTF-8 string. 1cr ](/tools/sha512-hash-generator/) ## [Math](/tools/category/math/) 439 endpoints [full page →](/tools/category/math/) Percentage, unit conversion, geometry, and sequences. Advanced [ Complementary Error Function Calculator complementary-error-function-calculator Calculate erf(x), erfc(x), and related error-function values. 1cr ](/tools/complementary-error-function-calculator/) [ Exponential Decay Calculator exponential-decay-calculator Solve continuous exponential decay equations for final amount, initial amount, rate, or time. 1cr ](/tools/exponential-decay-calculator/) [ Exponential Growth Calculator exponential-growth-calculator Solve continuous exponential growth equations for final amount, initial amount, rate, or time. 1cr ](/tools/exponential-growth-calculator/) Advanced Math [ Antilog Calculator antilog-calculator Calculate an antilogarithm as base raised to an exponent. 1cr ](/tools/antilog-calculator/) [ Error Function Calculator error-function-calculator Evaluate erf, erfc, inverse erf, and inverse erfc for bounded inputs. 1cr ](/tools/error-function-calculator/) [ Gamma Function Calculator gamma-function-calculator Evaluate the gamma function for bounded real inputs. 1cr ](/tools/gamma-function-calculator/) Algebra [ Absolute Value Equation Solver absolute-value-equation-solver Solve equations of the form |a*x + b| = c. 1cr ](/tools/absolute-value-equation-solver/) [ Absolute Value Inequality Solver absolute-value-inequality-solver Solve inequalities of the form |a*x + b| compared with c. 1cr ](/tools/absolute-value-inequality-solver/) [ Binomial Theorem Expansion Calculator binomial-theorem-expansion-calculator Expand (a + b)^n for n up to 50 with every coefficient and term listed. 1cr ](/tools/binomial-theorem-expansion-calculator/) [ Completing the Square Calculator completing-the-square-calculator Convert a quadratic to vertex form and solve by completing the square. 1cr ](/tools/completing-the-square-calculator/) [ Cubic Equation Solver cubic-equation-solver Solve ax^3 + bx^2 + cx + d = 0 and return all real or complex roots. 1cr ](/tools/cubic-equation-solver/) [ Descartes' Rule of Signs Calculator descartes-rule-of-signs-calculator Possible counts of positive and negative real roots of a polynomial via sign changes in f(x) and f(-x), with the full root-count table. 1cr ](/tools/descartes-rule-of-signs-calculator/) [ Distance-Speed-Time Triangle Calculator distance-speed-time-triangle-calculator Solve distance, speed, or time from the other two, plus multi-leg average speed and round-trip harmonic mean. 1cr ](/tools/distance-speed-time-triangle-calculator/) [ Expand Polynomials Calculator expand-polynomials-calculator Expand a product of polynomial factors (optionally raised to a power) into standard form with exact rational coefficients. 1cr ](/tools/expand-polynomials-calculator/) [ Linear Equation Solver linear-equation-solver Solve a linear equation in the form ax + b = c. 1cr ](/tools/linear-equation-solver/) [ Linear Programming Solver linear-programming-solver Solve a linear program by two-phase simplex in exact rational arithmetic, with slacks and binding constraints. 1cr ](/tools/linear-programming-solver/) [ Parabola Calculator parabola-calculator Analyze a quadratic parabola from coefficients a, b, and c. 1cr ](/tools/parabola-calculator/) [ Partial Fraction Decomposition Calculator partial-fraction-decomposition-calculator Decompose a rational expression into partial fractions. 1cr ](/tools/partial-fraction-decomposition-calculator/) [ Point Slope Form Calculator point-slope-form-calculator Build point-slope, slope-intercept, and standard-form line equations. 1cr ](/tools/point-slope-form-calculator/) [ Polynomial Factoring Calculator polynomial-factoring-calculator Factor a polynomial over the rationals: content, rational roots with multiplicity, linear factors, and any irreducible remainder. 1cr ](/tools/polynomial-factoring-calculator/) [ Polynomial Long Division Calculator polynomial-long-division-calculator Divide one polynomial by another with exact rational arithmetic, returning quotient, remainder, and step-by-step subtraction. 1cr ](/tools/polynomial-long-division-calculator/) [ Polynomial Roots Calculator polynomial-roots-calculator Real and complex roots of a polynomial (degree up to 12) via exact formulas or Durand-Kerner iteration. 1cr ](/tools/polynomial-roots-calculator/) [ Quadratic Formula Calculator quadratic-formula-calculator Solve quadratic roots with discriminant and vertex details. 1cr ](/tools/quadratic-formula-calculator/) [ Slope Intercept Form Calculator slope-intercept-form-calculator Build slope-intercept and standard-form line equations from m and b. 1cr ](/tools/slope-intercept-form-calculator/) [ Square Root Calculator square-root-calculator Calculate the principal and negative square roots of a non-negative number. 1cr ](/tools/square-root-calculator/) [ Standard Form to Slope Intercept Converter standard-form-to-slope-intercept-converter Convert Ax + By = C into slope-intercept form when possible. 1cr ](/tools/standard-form-to-slope-intercept-converter/) [ Synthetic Division Calculator synthetic-division-calculator Divide polynomial coefficients by x minus a using synthetic division. 1cr ](/tools/synthetic-division-calculator/) [ System of Linear Equations Solver system-of-linear-equations-solver Solve n x n linear systems (2 to 8 unknowns) exactly, including parametric infinite-solution forms. 1cr ](/tools/system-of-linear-equations-solver/) [ X and Y Intercept Calculator x-y-intercept-calculator Find x- and y-intercepts for a linear equation ax + by + c = 0. 1cr ](/tools/x-y-intercept-calculator/) Algebra Calculators [ Vertex and Axis of Symmetry Calculator vertex-axis-calculator Find the vertex and axis of symmetry for a quadratic ax^2 + bx + c. 1cr ](/tools/vertex-axis-calculator/) Analytic Geometry [ Parallel and Perpendicular Line Calculator parallel-and-perpendicular-line-calculator Find parallel and perpendicular lines through a given point. 1cr ](/tools/parallel-and-perpendicular-line-calculator/) Angles [ Radian to Degree Converter radian-to-degree-converter Convert radians, fractions, or pi expressions to degrees. 1cr ](/tools/radian-to-degree-converter/) Area [ Acreage Calculator acreage-calculator Calculate land acreage from rectangle, triangle, or circle dimensions. 1cr ](/tools/acreage-calculator/) [ Hectares to Acres Converter hectares-to-acres-converter Convert hectares to acres and related land-area units. 1cr ](/tools/hectares-to-acres-converter/) [ Square Feet to Acres Converter square-feet-to-acres-converter Convert square feet to acres and related land-area units. 1cr ](/tools/square-feet-to-acres-converter/) [ Square Footage Calculator square-footage-calculator Calculate square footage for common room, lot, and curved shapes. 1cr ](/tools/square-footage-calculator/) [ Square Meters to Acres Converter square-meters-to-acres-converter Convert square meters to acres and related land-area units. 1cr ](/tools/square-meters-to-acres-converter/) [ Square Miles to Acres Converter square-miles-to-acres-converter Convert square miles to acres and related land-area units. 1cr ](/tools/square-miles-to-acres-converter/) Arithmetic [ Long Addition and Subtraction Calculator long-addition-and-subtraction-calculator Add or subtract large integers and return aligned column output. 1cr ](/tools/long-addition-and-subtraction-calculator/) [ Multiplication Calculator multiplication-calculator Multiply a list of numbers exactly, without floating-point drift. 1cr ](/tools/multiplication-calculator/) [ Order of Operations Calculator PEMDAS order-of-operations-calculator-pemdas Evaluate arithmetic expressions using standard PEMDAS precedence. 1cr ](/tools/order-of-operations-calculator-pemdas/) Audio [ BPM to Millisecond Delay Calculator bpm-to-ms-delay-calculator Convert tempo in BPM into synchronized straight, dotted, and triplet delay times. 1cr ](/tools/bpm-to-ms-delay-calculator/) Basic Math [ Absolute Value Calculator absolute-value-calculator Calculate the absolute value of a real or complex number. 1cr ](/tools/absolute-value-calculator/) [ Cube and Cube Root Calculator cube-and-cube-root-calculator Calculate a number's cube and cube root. 1cr ](/tools/cube-and-cube-root-calculator/) [ Cube Root Calculator cube-root-calculator Calculate the real cube root of a finite number. 1cr ](/tools/cube-root-calculator/) [ Even or Odd Number Checker even-or-odd-number-checker Check whether one or more integers are even or odd. 1cr ](/tools/even-or-odd-number-checker/) [ First n Digits of e first-n-digits-of-e First n digits of Euler's number e (Decimal series sum 1/n!) with digit-frequency analysis. 1cr ](/tools/first-n-digits-of-e/) [ First n Digits of Pi first-n-digits-of-pi First n digits of pi (Chudnovsky series, exact via Decimal) with digit-frequency analysis. 1cr ](/tools/first-n-digits-of-pi/) [ Long Division Calculator long-division-calculator Calculate quotient, remainder, decimal expansion, and long division steps. 1cr ](/tools/long-division-calculator/) [ Long Multiplication Calculator long-multiplication-calculator Calculate a product with long multiplication partial products. 1cr ](/tools/long-multiplication-calculator/) [ Nth Root Calculator nth-root-calculator High-precision nth roots (up to 100 decimals) with exact-root detection and verification. 1cr ](/tools/nth-root-calculator/) [ Number of Digits number-of-digits Count the digits of any integer with digit frequency, palindrome check, and scientific notation. 1cr ](/tools/number-of-digits/) [ Quotient and Remainder Calculator quotient-and-remainder-calculator Compute the integer quotient and remainder of a division with verification. 1cr ](/tools/quotient-and-remainder-calculator/) [ Sum Calculator sum-calculator High-precision decimal sum of up to 5000 numbers with average, median, and sign statistics. 1cr ](/tools/sum-calculator/) Calculus [ Average Rate of Change Calculator average-rate-of-change-calculator Compute the average rate of change of f(x) on [a, b] with the secant line equation. 1cr ](/tools/average-rate-of-change-calculator/) [ Bernoulli ODE Solver bernoulli-ode-solver Solve y' + p·y = q·y^n by the v = y^(1-n) substitution, with the linearised form and an RK4 cross-check. 1cr ](/tools/bernoulli-ode-solver/) [ Curl Calculator curl-calculator Compute the curl of a 3D vector field (or the scalar curl in 2D) with optional evaluation at a point. 1cr ](/tools/curl-calculator/) [ Curvature Calculator curvature-calculator Calculate curvature and radius of curvature for a quadratic function. 1cr ](/tools/curvature-calculator/) [ Directional Derivative Calculator directional-derivative-calculator Compute the directional derivative of a function along a direction vector, with the maximum rate of change. 1cr ](/tools/directional-derivative-calculator/) [ Divergence Calculator divergence-calculator Compute the divergence of a 2D or 3D vector field, with per-term partials and source/sink classification. 1cr ](/tools/divergence-calculator/) [ Double Integral Calculator double-integral-calculator Evaluate an iterated double integral over rectangular or variable-limit regions. 1cr ](/tools/double-integral-calculator/) [ Euler's Method Calculator euler-s-method-calculator Step an initial value problem forward with explicit Euler, with a full table and optional exact-solution error. 1cr ](/tools/euler-s-method-calculator/) [ Fast Fourier Transform (FFT) Calculator fast-fourier-transform-fft-calculator Discrete Fourier transform of a sample list by radix-2 FFT, with magnitude, phase and the dominant frequency. 1cr ](/tools/fast-fourier-transform-fft-calculator/) [ First Order ODE Solver first-order-ode-solver Classify and solve y' = f(x, y): closed form for constant-coefficient linear equations plus an RK4 solution table and slope field. 1cr ](/tools/first-order-ode-solver/) [ Fourier Series Coefficients Calculator fourier-series-coefficients-calculator Fourier coefficients a0, a_n and b_n for a function over one period, with amplitude, phase and symmetry detection. 1cr ](/tools/fourier-series-coefficients-calculator/) [ Gradient Calculator (Multivariable) gradient-calculator-multivariable Compute the gradient vector of a multivariable function, with optional evaluation, magnitude, and direction at a point. 1cr ](/tools/gradient-calculator-multivariable/) [ Implicit Derivative Calculator implicit-derivative-calculator Differentiate an implicit equation to first, second, or third order using the partial-derivative quotient. 1cr ](/tools/implicit-derivative-calculator/) [ Infinite Series Sum Calculator infinite-series-sum-calculator Closed-form sums for classic infinite series: geometric, p-series, telescoping, alternating harmonic, Leibniz, Basel, e^x, and alternating p-series. 1cr ](/tools/infinite-series-sum-calculator/) [ Inverse Laplace Transform Calculator inverse-laplace-transform-calculator Invert a proper rational Laplace transform by exact partial fractions, including repeated and complex poles. 1cr ](/tools/inverse-laplace-transform-calculator/) [ Jacobian Matrix Calculator jacobian-matrix-calculator Build the Jacobian matrix of a vector-valued function, with the symbolic determinant when it is square. 1cr ](/tools/jacobian-matrix-calculator/) [ L'Hopital's Rule Calculator l-h-pital-s-rule-calculator Resolve 0/0 and infinity/infinity limits by repeated differentiation, showing each application of the rule. 1cr ](/tools/l-h-pital-s-rule-calculator/) [ Laplace Transform Calculator laplace-transform-calculator Laplace transform of a sum of powers, exponentials and trigonometric terms, with the region of convergence. 1cr ](/tools/laplace-transform-calculator/) [ Line Integral Calculator line-integral-calculator Evaluate scalar or vector line integrals along a parametric curve, with arc length and conservative-field check. 1cr ](/tools/line-integral-calculator/) [ Maclaurin Series Calculator maclaurin-series-calculator Exact-coefficient Maclaurin (Taylor at 0) series expansion for common functions, with optional evaluation. 1cr ](/tools/maclaurin-series-calculator/) [ Partial Derivative Calculator partial-derivative-calculator Differentiate a symbolic expression with respect to x, y, z, or t. 1cr ](/tools/partial-derivative-calculator/) [ Second Order ODE Solver second-order-ode-solver Solve a·y'' + b·y' + c·y = 0 from the characteristic equation, with the initial-value constants and damping ratio. 1cr ](/tools/second-order-ode-solver/) [ Series Convergence Test Calculator series-convergence-test-calculator Convergence verdict (absolute/conditional/divergent) for common series families with ratio, root, and divergence test estimates. 1cr ](/tools/series-convergence-test-calculator/) [ Taylor Series Calculator taylor-series-calculator Taylor series expansion of common functions about any center a, using exact shifted-derivative formulas, with optional evaluation. 1cr ](/tools/taylor-series-calculator/) Charts [ Bar Graph Maker bar-graph-maker Prepare normalized bar-chart data from labels and numeric values. 1cr ](/tools/bar-graph-maker/) Combinatorics [ Binomial Coefficient Calculator binomial-coefficient-calculator Calculate C(n, k), the number of combinations choosing k items from n. 1cr ](/tools/binomial-coefficient-calculator/) [ Combination Calculator combination-calculator Calculate combinations C(n, k). 1cr ](/tools/combination-calculator/) [ Derangement (Subfactorial) Calculator derangement-subfactorial-calculator Calculate the number of derangements (subfactorial!n) for n elements. 1cr ](/tools/derangement-subfactorial-calculator/) [ Permutation Calculator permutation-calculator Calculate P(n,r), where order matters and repetition is not allowed. 1cr ](/tools/permutation-calculator/) [ Permutations with Repetition Calculator permutations-with-repetition-calculator Calculate n^r ordered arrangements where items can repeat. 1cr ](/tools/permutations-with-repetition-calculator/) [ Stirling Numbers Calculator stirling-numbers-calculator Calculate unsigned Stirling numbers of the first kind and Stirling numbers of the second kind. 1cr ](/tools/stirling-numbers-calculator/) Complex Numbers [ Complex Numbers Calculator complex-numbers-calculator Add, subtract, multiply, or divide two complex numbers. 1cr ](/tools/complex-numbers-calculator/) Conics [ Hyperbola Calculator hyperbola-calculator Calculate standard-form hyperbola vertices, foci, eccentricity, and asymptotes. 1cr ](/tools/hyperbola-calculator/) Construction [ Flooring Calculator flooring-calculator Estimate flooring material units, waste allowance, and optional cost. 1cr ](/tools/flooring-calculator/) [ Insulation Calculator insulation-calculator Estimate insulation R-value target, thickness, material quantity, and cost range. 1cr ](/tools/insulation-calculator/) [ Paver Calculator paver-calculator Estimate paving stones needed for a rectangular project area. 1cr ](/tools/paver-calculator/) Cooking [ Butter to Oil Converter butter-to-oil-converter Convert butter quantities to practical oil equivalents for baking. 1cr ](/tools/butter-to-oil-converter/) Coordinate Geometry [ Polar to Cartesian Converter polar-to-cartesian-converter Convert polar coordinates to Cartesian x and y coordinates. 1cr ](/tools/polar-to-cartesian-converter/) Education [ Final Grade Calculator final-grade-calculator Calculate the final exam score needed to reach a target course grade. 1cr ](/tools/final-grade-calculator/) Electronics [ LED Resistor Calculator led-resistor-calculator Calculate LED current-limiting resistor values and power ratings. 1cr ](/tools/led-resistor-calculator/) [ PCB Trace Width Calculator pcb-trace-width-calculator Estimate PCB trace width using the IPC-2221 current capacity formula. 1cr ](/tools/pcb-trace-width-calculator/) Exponents [ Exponents Calculator exponents-calculator Raise a base to any power: exact decimal arithmetic for integer exponents up to ±500. 1cr ](/tools/exponents-calculator/) [ Half Life Calculator half-life-calculator Solve exponential decay for remaining amount, initial amount, elapsed time, or half-life. 1cr ](/tools/half-life-calculator/) Finance [ Payback Period Calculator payback-period-calculator Calculate the payback period from an initial investment and annual cash flows. 1cr ](/tools/payback-period-calculator/) Fractions [ Comparing Fractions Calculator comparing-fractions-calculator Compare two fractions or mixed numbers using a common denominator. 1cr ](/tools/comparing-fractions-calculator/) [ Decimal to Fraction Calculator decimal-to-fraction-calculator Convert a decimal or parenthesized repeating decimal to a fraction. 1cr ](/tools/decimal-to-fraction-calculator/) [ Equivalent Fractions Calculator equivalent-fractions-calculator Generate equivalent fractions or check whether two fractions are equivalent. 1cr ](/tools/equivalent-fractions-calculator/) [ Fraction Calculator fraction-calculator Add, subtract, multiply, divide, compare, or simplify fractions. 1cr ](/tools/fraction-calculator/) [ Fraction Simplifier fraction-simplifier Reduce a fraction to lowest terms and return GCF, mixed number, decimal, percentage, and equivalents. 1cr ](/tools/fraction-simplifier/) [ Fraction to Decimal Calculator fraction-to-decimal-calculator Convert proper, improper, or mixed fractions to decimals and detect repeating decimal patterns. 1cr ](/tools/fraction-to-decimal-calculator/) [ Fraction to Mixed Number Converter fraction-to-mixed-number-converter Convert an improper fraction to a simplified mixed number. 1cr ](/tools/fraction-to-mixed-number-converter/) [ Fraction to Percent Converter fraction-to-percent-converter Convert proper, improper, or mixed fractions to percentages with configurable decimal places. 1cr ](/tools/fraction-to-percent-converter/) [ Mixed Number to Fraction Converter mixed-number-to-fraction-converter Convert a mixed number to an improper fraction and simplified form. 1cr ](/tools/mixed-number-to-fraction-converter/) [ Multiple Fraction Calculator multiple-fraction-calculator Apply one arithmetic operation across a list of fractions. 1cr ](/tools/multiple-fraction-calculator/) [ Number to Fraction Converter number-to-fraction-converter Convert decimals, percentages, mixed numbers, and repeating decimals to fractions. 1cr ](/tools/number-to-fraction-converter/) [ Reduce Fractions Calculator reduce-fractions-calculator Reduce a proper, improper, or mixed fraction to lowest terms. 1cr ](/tools/reduce-fractions-calculator/) Functions [ Ceiling and Floor Function Calculator ceiling-and-floor-function-calculator Evaluate floor, ceiling, fractional part, and nearest integer of a value. 1cr ](/tools/ceiling-and-floor-function-calculator/) [ Function Composition Calculator function-composition-calculator Evaluate f(x), g(x), f(g(x)), and g(f(x)) for arithmetic functions. 1cr ](/tools/function-composition-calculator/) [ Function Odd Even Neither Checker function-odd-even-neither-checker Classify a function as odd, even, both, or neither over sample points. 1cr ](/tools/function-odd-even-neither-checker/) [ Hyperbolic Functions Calculator hyperbolic-functions-calculator Calculate sinh, cosh, tanh and reciprocal hyperbolic functions. 1cr ](/tools/hyperbolic-functions-calculator/) Games [ DPS Calculator dps-calculator Calculate raw, sustained, critical-hit, and headshot damage per second. 1cr ](/tools/dps-calculator/) Geometry [ 3D Distance Calculator 3d-distance-calculator Calculate 3D Euclidean distance, midpoint, direction cosines, and related distances. 1cr ](/tools/3d-distance-calculator/) [ Angle Bisector Calculator angle-bisector-calculator Calculate triangle angle bisectors, angles, area, and inradius from side lengths. 1cr ](/tools/angle-bisector-calculator/) [ Arc Length Calculator arc-length-calculator Solve arc length, radius, or central angle for a circle sector. 1cr ](/tools/arc-length-calculator/) [ Area of a Circle Calculator area-of-a-circle-calculator Calculate circle radius, diameter, circumference, and area from one value. 1cr ](/tools/area-of-a-circle-calculator/) [ Area of a Parallelogram Calculator area-of-a-parallelogram-calculator Find parallelogram area from base-height, sides-angle, or diagonals-angle inputs. 1cr ](/tools/area-of-a-parallelogram-calculator/) [ Area of a Sector Calculator area-of-a-sector-calculator Calculate sector area, arc length, perimeter, chord, and segment area. 1cr ](/tools/area-of-a-sector-calculator/) [ Area of a Trapezoid Calculator area-of-a-trapezoid-calculator Calculate trapezoid area from two parallel bases and height. 1cr ](/tools/area-of-a-trapezoid-calculator/) [ Area of an Ellipse Calculator area-of-an-ellipse-calculator Calculate ellipse area, Ramanujan perimeter, foci, and eccentricity. 1cr ](/tools/area-of-an-ellipse-calculator/) [ Area of Equilateral Triangle Calculator area-of-equilateral-triangle-calculator Calculate equilateral-triangle side, area, height, perimeter, and radii. 1cr ](/tools/area-of-equilateral-triangle-calculator/) [ Cartesian to Polar Coordinates Converter cartesian-to-polar-converter Convert Cartesian x-y coordinates to polar radius and angle. 1cr ](/tools/cartesian-to-polar-converter/) [ Circle Calculator circle-calculator Calculate circle radius, diameter, circumference, area, and optional arc/sector values. 1cr ](/tools/circle-calculator/) [ Circumscribed Circle Circumcircle Calculator circumscribed-circle-circumcircle-calculator Calculate the circumcircle of a triangle from side lengths or coordinates. 1cr ](/tools/circumscribed-circle-circumcircle-calculator/) [ Cone Flat Pattern Template Generator cone-flat-pattern-template-generator Calculate unrolled cone or frustum flat-pattern dimensions. 1cr ](/tools/cone-flat-pattern-template-generator/) [ Conic Section Identifier conic-section-identifier Classify a general second-degree equation as a conic section. 1cr ](/tools/conic-section-identifier/) [ Coordinate Geometry Distance Calculator coordinate-geometry-distance-calculator Calculate distance, midpoint, slope, and line equations between two points. 1cr ](/tools/coordinate-geometry-distance-calculator/) [ Cylinder Calculator cylinder-calculator Calculate cylinder volume, base area, lateral area, and total surface area. 1cr ](/tools/cylinder-calculator/) [ Distance Between Two Points Calculator distance-between-two-points-calculator Calculate 2D point distance, midpoint, slope, and line equation. 1cr ](/tools/distance-between-two-points-calculator/) [ Ellipse Circumference Calculator ellipse-circumference-calculator Calculate ellipse circumference with several common approximations. 1cr ](/tools/ellipse-circumference-calculator/) [ Euler Characteristic Calculator euler-characteristic-calculator Calculate Euler characteristic V - E + F and classify common surfaces. 1cr ](/tools/euler-characteristic-calculator/) [ Frustum Calculator frustum-calculator Calculate volume and surface area for a conical frustum. 1cr ](/tools/frustum-calculator/) [ General Triangle Solver general-triangle-solver Solve any triangle (SSS, SAS, ASA, AAS, or the ambiguous SSA case) for all sides, angles, and area. 1cr ](/tools/general-triangle-solver/) [ Golden Ratio Calculator golden-ratio-calculator Calculate golden-ratio segments from total, larger, or smaller segment. 1cr ](/tools/golden-ratio-calculator/) [ Golden Rectangle Calculator golden-rectangle-calculator Calculate golden rectangle dimensions, area, perimeter, and aspect ratio. 1cr ](/tools/golden-rectangle-calculator/) [ Golden Section Calculator golden-section-calculator Find the golden-section points within an interval. 1cr ](/tools/golden-section-calculator/) [ Great Circle Distance Calculator great-circle-distance-calculator Calculate great-circle distance, bearing, and midpoint between two coordinates. 1cr ](/tools/great-circle-distance-calculator/) [ Heron's Formula Calculator heron-s-formula-calculator Calculate triangle area from three side lengths using Heron's formula. 1cr ](/tools/heron-s-formula-calculator/) [ Hypotenuse Calculator hypotenuse-calculator Calculate the hypotenuse and basic right-triangle measures from two legs. 1cr ](/tools/hypotenuse-calculator/) [ Inscribed Circle (Incircle) Calculator inscribed-circle-incircle-calculator Incircle radius (and incenter, from vertex coordinates) of a triangle from side lengths or points. 1cr ](/tools/inscribed-circle-incircle-calculator/) [ Midpoint Calculator midpoint-calculator Find the midpoint, distance, slope, and angle between two points. 1cr ](/tools/midpoint-calculator/) [ Point to Plane Distance Calculator point-to-plane-distance-calculator Calculate the distance from a 3D point to a plane Ax + By + Cz + D = 0. 1cr ](/tools/point-to-plane-distance-calculator/) [ Polygon Diagonals Calculator polygon-diagonals-calculator Calculate the number of diagonals and angle facts for a polygon. 1cr ](/tools/polygon-diagonals-calculator/) [ Pythagorean Theorem Calculator pythagorean-theorem-calculator Find a missing right-triangle side and calculate area, perimeter, and angles. 1cr ](/tools/pythagorean-theorem-calculator/) [ Rectangle Calculator rectangle-calculator Calculate rectangle area, perimeter, diagonal, radii, and aspect ratio from two known values. 1cr ](/tools/rectangle-calculator/) [ Regular Polygon Calculator regular-polygon-calculator Calculate regular polygon area, perimeter, apothem, circumradius, angles, and diagonal count. 1cr ](/tools/regular-polygon-calculator/) [ Right Triangle Calculator right-triangle-calculator Solve a right triangle from two sides or one side and one acute angle. 1cr ](/tools/right-triangle-calculator/) [ Shoelace Formula Calculator shoelace-formula-calculator Calculate polygon area from vertex coordinates using the shoelace formula. 1cr ](/tools/shoelace-formula-calculator/) [ Slope and Grade Calculator slope-and-grade-calculator Convert rise and run into slope, grade percentage and angle. 1cr ](/tools/slope-and-grade-calculator/) [ Slope Calculator slope-calculator Calculate slope, angle, intercepts, and line equation from two points. 1cr ](/tools/slope-calculator/) [ Sphere Calculator sphere-calculator Calculate sphere radius, diameter, circumference, surface area, and volume. 1cr ](/tools/sphere-calculator/) [ Square Calculator square-calculator Calculate square side length, area, perimeter, diagonal, inradius, and circumradius from one known value. 1cr ](/tools/square-calculator/) [ Triangle Area Calculator triangle-area-calculator Calculate triangle area from base and height or Heron's formula. 1cr ](/tools/triangle-area-calculator/) [ Triangle Centroid Calculator triangle-centroid-calculator Calculate a triangle centroid and related side, area, and median properties. 1cr ](/tools/triangle-centroid-calculator/) Geometry Calculators [ Surface Area of a Rectangular Prism Calculator surface-area-of-a-rectangular-prism-calculator Calculate rectangular prism surface area, lateral area, volume, diagonal, and face areas. 1cr ](/tools/surface-area-of-a-rectangular-prism-calculator/) [ Tangent Line to Circle Calculator tangent-line-to-circle-calculator Find tangent line equations and contact points from a point to a circle. 1cr ](/tools/tangent-line-to-circle-calculator/) [ Torus Calculator torus-calculator Calculate torus volume, surface area, and key radii. 1cr ](/tools/torus-calculator/) [ Triangle Orthocenter Calculator triangle-orthocenter-calculator Calculate a triangle orthocenter, altitude feet, side lengths, area, and classifications from coordinates. 1cr ](/tools/triangle-orthocenter-calculator/) Graph Theory [ Adjacency Matrix Calculator adjacency-matrix-calculator Build an adjacency matrix from an edge list (or read one back), with degrees, density, connected components, symmetry, and walk counts from matrix powers. 1cr ](/tools/adjacency-matrix-calculator/) [ Dijkstra's Shortest Path Calculator dijkstra-s-shortest-path-calculator Run Dijkstra's algorithm on a small weighted graph. 1cr ](/tools/dijkstra-s-shortest-path-calculator/) [ Graph Coloring Calculator graph-coloring-calculator Colour an undirected graph with greedy, Welsh-Powell, DSATUR, or exact search, reporting colour classes, the chromatic number, bipartiteness, and bounds. 1cr ](/tools/graph-coloring-calculator/) [ Graph Degree Sequence Validator graph-degree-sequence-validator Validate simple graph degree sequences with the Havel-Hakimi algorithm. 1cr ](/tools/graph-degree-sequence-validator/) [ Planar Graph Checker planar-graph-checker Check graph edge bounds and direct K5/K3,3 obstructions, with components and degree data. 1cr ](/tools/planar-graph-checker/) [ Topological Sort Calculator topological-sort-calculator Topologically order a directed graph with Kahn or DFS, detect cycles, and report layers, sources, sinks, longest path, and the number of valid orderings. 1cr ](/tools/topological-sort-calculator/) Growth [ Logarithmic Growth Calculator logarithmic-growth-calculator Solve compound growth value, time-to-target, or rate using logarithms. 1cr ](/tools/logarithmic-growth-calculator/) Home [ Aquarium Substrate Calculator aquarium-substrate-calculator Estimate aquarium substrate volume, weight, and bag counts. 1cr ](/tools/aquarium-substrate-calculator/) Length [ Feet and Inches to Cm Converter feet-and-inches-to-cm-converter Convert feet and inches to total inches, centimeters, meters, and height comparison percentages. 1cr ](/tools/feet-and-inches-to-cm-converter/) Length Converters [ Inches to Millimeters Converter inches-to-mm-converter Convert decimal, fractional, or mixed-number inches to millimeters. 1cr ](/tools/inches-to-mm-converter/) Lifestyle [ Christmas Tree Calculator christmas-tree-calculator Check tree height fit and estimate lights, ornaments, and garland. 1cr ](/tools/christmas-tree-calculator/) Linear Algebra [ Angle Between Vectors Calculator angle-between-vectors-calculator Calculate the angle between two 2D or 3D vectors. 1cr ](/tools/angle-between-vectors-calculator/) [ Characteristic Polynomial Calculator characteristic-polynomial-calculator Calculate characteristic polynomial coefficients for a square matrix. 1cr ](/tools/characteristic-polynomial-calculator/) [ Cholesky Decomposition Calculator cholesky-decomposition-calculator Decompose a symmetric positive-definite matrix into A = L L^T. 1cr ](/tools/cholesky-decomposition-calculator/) [ Column Space Calculator column-space-calculator Find matrix pivot columns, rank, nullity, RREF, and a column-space basis. 1cr ](/tools/column-space-calculator/) [ Cramer's Rule Calculator cramer-s-rule-calculator Solve 2x2 or 3x3 linear systems with Cramer's rule. 1cr ](/tools/cramer-s-rule-calculator/) [ Cross Product Calculator cross-product-calculator Calculate the 3D cross product, magnitude, areas, and angle. 1cr ](/tools/cross-product-calculator/) [ Determinant Calculator determinant-calculator Calculate the determinant, trace, rank, and invertibility of a square matrix. 1cr ](/tools/determinant-calculator/) [ Dot Product Calculator dot-product-calculator Calculate the dot product, magnitudes, angle, and vector projection. 1cr ](/tools/dot-product-calculator/) [ Eigenvalue and Eigenvector Calculator eigenvalue-eigenvector-calculator Eigenvalues and eigenvectors of 2x2 and 3x3 matrices, exact when rational, complex included. 1cr ](/tools/eigenvalue-eigenvector-calculator/) [ Gram-Schmidt Calculator gram-schmidt-calculator Orthogonalize 2-10 vectors (dimension 2-10): exact orthogonal basis plus orthonormal vectors. 1cr ](/tools/gram-schmidt-calculator/) [ Jordan Normal Form Calculator jordan-normal-form-calculator Jordan normal form of a matrix with rational eigenvalues, with block sizes from the nullities of (A-lambda I)^k. 1cr ](/tools/jordan-normal-form-calculator/) [ Matrix Diagonalization Calculator matrix-diagonalization-calculator Diagonalise a 2x2 to 4x4 matrix as A = P·D·P-inverse in exact rational arithmetic, reporting defective matrices. 1cr ](/tools/matrix-diagonalization-calculator/) [ Matrix Exponential Calculator matrix-exponential-calculator Compute e^(At) by scaling and squaring with a Taylor series, checked against det(e^At) = e^(trace(A)t). 1cr ](/tools/matrix-exponential-calculator/) [ Matrix Inverse Calculator matrix-inverse-calculator Invert a square matrix (2x2 to 8x8) by exact Gauss-Jordan elimination, with determinant. 1cr ](/tools/matrix-inverse-calculator/) [ Matrix LU Decomposition Calculator matrix-lu-decomposition-calculator Factor a square matrix (2x2 to 8x8) into PA = LU with partial pivoting, exactly. 1cr ](/tools/matrix-lu-decomposition-calculator/) [ Matrix Multiplication Calculator matrix-multiplication-calculator Multiply two matrices (up to 10x10) with exact fraction arithmetic. 1cr ](/tools/matrix-multiplication-calculator/) [ Matrix Power Calculator matrix-power-calculator Raise a square matrix (up to 6x6) to any integer power from -10 to 20, exactly. 1cr ](/tools/matrix-power-calculator/) [ Matrix Rank Calculator matrix-rank-calculator Rank, nullity, pivot and free columns of a matrix (up to 10x10) via exact row reduction. 1cr ](/tools/matrix-rank-calculator/) [ Matrix Trace Calculator matrix-trace-calculator Calculate the trace and diagonal details of a square matrix. 1cr ](/tools/matrix-trace-calculator/) [ Null Space Calculator null-space-calculator Kernel basis vectors of a matrix (up to 8x8) via exact RREF, with verification. 1cr ](/tools/null-space-calculator/) [ RREF Calculator (Row Echelon Form) rref-calculator-row-echelon-form Reduced row echelon form (up to 10x10) with rank, pivots, and augmented-system analysis. 1cr ](/tools/rref-calculator-row-echelon-form/) [ Unit Vector Calculator unit-vector-calculator Normalize a vector and return its unit vector. 1cr ](/tools/unit-vector-calculator/) [ Vector Magnitude Calculator vector-magnitude-calculator Calculate the Euclidean magnitude and unit vector for any vector. 1cr ](/tools/vector-magnitude-calculator/) [ Vector Projection Calculator vector-projection-calculator Project one vector onto another and compute the orthogonal component. 1cr ](/tools/vector-projection-calculator/) Logarithms [ Log Base 10 Calculator log-base-10-calculator Calculate common logarithms with bounds and an antilog check. 1cr ](/tools/log-base-10-calculator/) [ Log Base 2 Calculator log-base-2-calculator Calculate binary logarithms and detect exact powers of two. 1cr ](/tools/log-base-2-calculator/) [ Log Calculator log-calculator Logarithm of x in base 10, e, 2, or any custom base, with all three standard logs for comparison. 1cr ](/tools/log-calculator/) [ Natural Log Calculator natural-log-calculator ln(x) with log10, log2, the derivative 1/x, and e^x, flagging exact powers of e. 1cr ](/tools/natural-log-calculator/) Logic [ Boolean Algebra Simplifier boolean-algebra-simplifier Simplify a boolean expression to its minimal sum-of-products or product-of-sums form, with canonical forms, prime implicants, and literal savings. 1cr ](/tools/boolean-algebra-simplifier/) [ Karnaugh Map (K-Map) Solver karnaugh-map-k-map-solver Minimise 2-5 variable boolean functions from minterms, maxterms, or a truth table with Quine-McCluskey, returning prime implicants and the Gray-coded K-map grid. 1cr ](/tools/karnaugh-map-k-map-solver/) [ Truth Table Generator truth-table-generator Generate truth tables for small boolean logic expressions. 1cr ](/tools/truth-table-generator/) Number Formatting [ Rounding Calculator rounding-calculator Round to decimal places, significant figures, or the nearest multiple with 6 rounding methods compared. 1cr ](/tools/rounding-calculator/) [ Significant Figures Calculator significant-figures-calculator Count, round, and apply arithmetic rules for significant figures. 1cr ](/tools/significant-figures-calculator/) Number Systems [ Base Converter base-converter Convert integers between bases 2 through 36. 1cr ](/tools/base-converter/) [ Base-N Calculator base-n-calculator Convert an integer from any base 2 through 36 to every other base. 1cr ](/tools/base-n-calculator/) [ BCD to Binary Converter bcd-to-binary-converter Convert 8421 BCD nibbles to decimal and binary. 1cr ](/tools/bcd-to-binary-converter/) [ BCD to Decimal Converter bcd-to-decimal-converter Convert binary-coded decimal nibbles to a decimal integer. 1cr ](/tools/bcd-to-decimal-converter/) [ BCD to Hex Converter bcd-to-hex-converter Convert BCD to hexadecimal or hexadecimal to BCD. 1cr ](/tools/bcd-to-hex-converter/) [ Binary Calculator binary-calculator Run binary arithmetic and bitwise operations. 1cr ](/tools/binary-calculator/) [ Binary Converter binary-converter Convert a binary number to decimal, hexadecimal, octal, or any base from 2 to 36. 1cr ](/tools/binary-converter/) [ Binary to BCD Converter binary-to-bcd-converter Convert an integer binary value to binary-coded decimal. 1cr ](/tools/binary-to-bcd-converter/) [ Binary to Decimal Converter binary-to-decimal-converter Convert a binary number to decimal, hexadecimal, and octal. 1cr ](/tools/binary-to-decimal-converter/) [ Binary to Gray Code Converter binary-to-gray-code-converter Convert an integer binary value to Gray code. 1cr ](/tools/binary-to-gray-code-converter/) [ Binary to Hex Converter binary-to-hex-converter Convert a binary number to hexadecimal with nibble grouping. 1cr ](/tools/binary-to-hex-converter/) [ Binary to Octal Converter binary-to-octal-converter Convert a binary number to octal using 3-bit grouping. 1cr ](/tools/binary-to-octal-converter/) [ Decimal to BCD Converter decimal-to-bcd-converter Convert a decimal integer to Binary-Coded Decimal (4 bits per digit), with a plain-binary comparison. 1cr ](/tools/decimal-to-bcd-converter/) [ Decimal to Binary Converter decimal-to-binary-converter Convert a decimal integer to binary with grouped bits and division steps. 1cr ](/tools/decimal-to-binary-converter/) [ Decimal to Hex Converter decimal-to-hex-converter Convert a decimal integer to hexadecimal with conversion steps. 1cr ](/tools/decimal-to-hex-converter/) [ Decimal to Octal Converter decimal-to-octal-converter Convert a base-10 integer to octal with division steps. 1cr ](/tools/decimal-to-octal-converter/) [ Decimal to Scientific Notation Converter decimal-to-scientific-notation-converter Convert decimal numbers to scientific, E, and engineering notation. 1cr ](/tools/decimal-to-scientific-notation-converter/) [ Gray Code to Binary Converter gray-code-to-binary-converter Convert Gray code to ordinary binary with XOR steps. 1cr ](/tools/gray-code-to-binary-converter/) [ Hex Converter hex-converter Convert integers between hexadecimal, decimal, binary, and octal. 1cr ](/tools/hex-converter/) [ Hex to BCD Converter hex-to-bcd-converter Convert a hexadecimal integer to binary-coded decimal. 1cr ](/tools/hex-to-bcd-converter/) [ Hex to Binary Converter hex-to-binary-converter Convert a hexadecimal integer to binary. 1cr ](/tools/hex-to-binary-converter/) [ Hex to Decimal Converter hex-to-decimal-converter Convert a hexadecimal integer to decimal with digit breakdown. 1cr ](/tools/hex-to-decimal-converter/) [ Hex to Octal Converter hex-to-octal-converter Convert a hexadecimal integer to octal through binary grouping. 1cr ](/tools/hex-to-octal-converter/) [ Octal Converter octal-converter Convert non-negative integers between octal, decimal, binary, and hex. 1cr ](/tools/octal-converter/) [ Octal to Binary Converter octal-to-binary-converter Convert an octal integer to binary with per-digit mapping. 1cr ](/tools/octal-to-binary-converter/) [ Octal to Decimal Converter octal-to-decimal-converter Convert an octal integer to decimal with positional breakdown. 1cr ](/tools/octal-to-decimal-converter/) [ Ratio to Percentage Calculator ratio-to-percentage-calculator Convert ratios, fractions, or decimal divisions to percentages. 1cr ](/tools/ratio-to-percentage-calculator/) [ Roman Numerals Converter roman-numerals-converter Convert between Roman numerals and Arabic numbers (1-3999) with canonical-form checking. 1cr ](/tools/roman-numerals-converter/) [ Scientific Notation to Decimal Converter scientific-notation-to-decimal-converter Convert scientific notation to ordinary decimal notation. 1cr ](/tools/scientific-notation-to-decimal-converter/) Number Theory [ Amicable Number Checker amicable-number-checker Check whether two integers form an amicable pair, or find the partner of a single number. 1cr ](/tools/amicable-number-checker/) [ Chinese Remainder Theorem Calculator chinese-remainder-theorem-calculator Solve a system of simultaneous congruences with pairwise coprime moduli using the CRT. 1cr ](/tools/chinese-remainder-theorem-calculator/) [ Continued Fraction Calculator continued-fraction-calculator Expand a decimal, fraction, or square root into a continued fraction with convergents. 1cr ](/tools/continued-fraction-calculator/) [ Digital Root Calculator digital-root-calculator Repeated digit sum or product to a single digit in base 2, 8, 10, or 16, with persistence and the casting-out-nines formula check. 1cr ](/tools/digital-root-calculator/) [ Divisibility Test Calculator divisibility-test-calculator Test a number against common divisors, primes, or custom divisors with rule explanations. 1cr ](/tools/divisibility-test-calculator/) [ Egyptian Fraction Calculator egyptian-fraction-calculator Express a proper fraction as a sum of distinct unit fractions using the greedy Fibonacci-Sylvester algorithm. 1cr ](/tools/egyptian-fraction-calculator/) [ Euler's Totient Function Calculator euler-s-totient-function-calculator Calculate Euler's totient function phi(n) with its prime factorization. 1cr ](/tools/euler-s-totient-function-calculator/) [ Extended Euclidean Algorithm Calculator extended-euclidean-algorithm-calculator Find the GCD of two integers and Bezout coefficients via the extended Euclidean algorithm. 1cr ](/tools/extended-euclidean-algorithm-calculator/) [ Factor Calculator factor-calculator List all factors and factor pairs of a number up to 10^12 with its prime factorization. 1cr ](/tools/factor-calculator/) [ Factorial Calculator factorial-calculator Calculate factorial metadata, exact values for bounded inputs, and scientific notation. 1cr ](/tools/factorial-calculator/) [ Fibonacci Number Checker fibonacci-number-checker Check whether a non-negative integer is in the Fibonacci sequence. 1cr ](/tools/fibonacci-number-checker/) [ First n Prime Numbers first-n-prime-numbers Generate the first n primes (up to 10,000) with twin-prime pairs and gap statistics. 1cr ](/tools/first-n-prime-numbers/) [ Goldbach Conjecture Verifier goldbach-conjecture-verifier Verify an even integer by finding prime pairs that sum to it. 1cr ](/tools/goldbach-conjecture-verifier/) [ Greatest Common Factor Calculator greatest-common-factor-calculator Find the GCF of up to 15 numbers with prime factorizations and all common factors. 1cr ](/tools/greatest-common-factor-calculator/) [ Prime Number Checker is-it-a-prime-number Check whether a number up to 10^15 is prime, with factorization and the 5 nearest primes either side. 1cr ](/tools/is-it-a-prime-number/) [ Least Common Multiple Calculator least-common-multiple-calculator Find the LCM of up to 15 numbers with prime factorizations and the GCF cross-check. 1cr ](/tools/least-common-multiple-calculator/) [ List of Prime Numbers list-of-prime-numbers List every prime from 2 up to a limit (max 10,000) with density and twin-prime statistics. 1cr ](/tools/list-of-prime-numbers/) [ Mersenne Prime Checker mersenne-prime-checker Check whether 2^p - 1 is prime for bounded exponents. 1cr ](/tools/mersenne-prime-checker/) [ Möbius Function Calculator mobius-function-calculator Evaluate the Möbius function μ(n) from the prime factorization of n. 1cr ](/tools/mobius-function-calculator/) [ Modular Exponentiation Calculator modular-exponentiation-calculator Compute base^exponent mod modulus efficiently with binary square-and-multiply statistics. 1cr ](/tools/modular-exponentiation-calculator/) [ Partition Function Calculator partition-function-calculator Calculate the integer partition number p(n) for bounded n. 1cr ](/tools/partition-function-calculator/) [ Perfect Number Checker perfect-number-checker Classify a positive integer as perfect, abundant, or deficient. 1cr ](/tools/perfect-number-checker/) [ Prime Factor Calculator prime-factor-calculator Prime factors plus divisor sum, Euler's totient, and abundant/deficient/perfect classification. 1cr ](/tools/prime-factor-calculator/) [ Prime Factorization Calculator prime-factorization-calculator Factor a number up to 10^15 into primes with exponent form and divisor count. 1cr ](/tools/prime-factorization-calculator/) [ Primitive Root Calculator primitive-root-calculator Test whether primitive roots exist modulo n and list them with φ(n). 1cr ](/tools/primitive-root-calculator/) [ Twin Prime Finder twin-prime-finder Find twin prime pairs up to a bounded integer limit. 1cr ](/tools/twin-prime-finder/) Numbers [ Scientific Notation Calculator scientific-notation-calculator Convert a number into scientific, E and engineering notation. 1cr ](/tools/scientific-notation-calculator/) Numerology [ Destiny Number Calculator destiny-number-calculator Calculate a Pythagorean numerology destiny number from a name. 1cr ](/tools/destiny-number-calculator/) Payroll [ Overtime Pay Calculator overtime-pay-calculator Calculate regular pay, overtime pay, gross pay, and effective hourly rate. 1cr ](/tools/overtime-pay-calculator/) Percentage [ Decimal to Percent Converter decimal-to-percent-converter Convert one or more decimal numbers to percentages. 1cr ](/tools/decimal-to-percent-converter/) [ Percent to Decimal Converter percent-to-decimal-converter Convert one or many percentages to decimals (divide by 100), batch input supported. 1cr ](/tools/percent-to-decimal-converter/) [ Percentage Calculator percentage-calculator Six percentage operations behind one endpoint, selected by mode. 1cr ](/tools/percentage-calculator/) [ Percentage Change Calculator percentage-change-calculator Calculate percentage change between two values with chart-ready before-and-after data. 1cr ](/tools/percentage-change-calculator/) [ Percentage Decrease Calculator percentage-decrease-calculator Find a percentage decrease, apply one to a value, or recover the original value before a decrease. 1cr ](/tools/percentage-decrease-calculator/) [ Percentage Error Calculator percentage-error-calculator Calculate percent error between estimated and actual values. 1cr ](/tools/percentage-error-calculator/) [ Percentage Increase Calculator percentage-increase-calculator Calculate the absolute and percentage increase or decrease between two positive values. 1cr ](/tools/percentage-increase-calculator/) Percentages [ Percent Growth Rate Calculator percent-growth-rate-calculator Calculate total percent change, simple annual growth, CAGR, and multiplier. 1cr ](/tools/percent-growth-rate-calculator/) Physics [ Acceleration Calculator acceleration-calculator Calculate acceleration from velocity change, distance, force, centripetal motion, or free fall. 1cr ](/tools/acceleration-calculator/) [ Boxing Punch Power Calculator boxing-punch-power-calculator Estimate punch force, kinetic energy, and power from speed and effective mass. 1cr ](/tools/boxing-punch-power-calculator/) [ Headlight Beam Distance Calculator headlight-beam-distance-calculator Calculate headlight beam road reach from mounting height and aim angle. 1cr ](/tools/headlight-beam-distance-calculator/) [ Horsepower Calculator horsepower-calculator Solve horsepower, torque, or RPM and return common power conversions. 1cr ](/tools/horsepower-calculator/) [ Penny Drop Impact Calculator penny-drop-impact-calculator Estimate idealized penny impact velocity, energy, momentum, and force. 1cr ](/tools/penny-drop-impact-calculator/) [ Speed Calculator speed-calculator Calculate speed from distance and time with common speed unit conversions. 1cr ](/tools/speed-calculator/) Planning [ Parking Ratio Calculator parking-ratio-calculator Estimate parking spaces from common land-use parking ratios. 1cr ](/tools/parking-ratio-calculator/) Probability [ Bayes' Theorem Calculator bayes-theorem-calculator Calculate the posterior probability with Bayes' theorem, likelihood ratio, and natural frequencies. 1cr ](/tools/bayes-theorem-calculator/) [ Beta Distribution Calculator beta-distribution-calculator Beta distribution density, cumulative probability, quantiles, and shape statistics. 1cr ](/tools/beta-distribution-calculator/) [ Binomial Probability Distribution Calculator binomial-probability-distribution-calculator Calculate exact and cumulative binomial probabilities. 1cr ](/tools/binomial-probability-distribution-calculator/) [ Dice Roll Probability Calculator dice-roll-probability-calculator Calculate exact probability metrics for sums of identical dice. 1cr ](/tools/dice-roll-probability-calculator/) [ Exponential Distribution Calculator exponential-distribution-calculator Exponential distribution probabilities (P(X<=x), P(X>x), between) plus mean, median, and variance. 1cr ](/tools/exponential-distribution-calculator/) [ Gacha Pity Calculator gacha-pity-calculator Estimate pull success probability with soft and hard pity rates. 1cr ](/tools/gacha-pity-calculator/) [ Geometric Distribution Calculator geometric-distribution-calculator Compute PMF, CDF, survival, mean, and variance for a geometric distribution. 1cr ](/tools/geometric-distribution-calculator/) [ Hypergeometric Distribution Calculator hypergeometric-distribution-calculator Calculate exact and cumulative hypergeometric probabilities. 1cr ](/tools/hypergeometric-distribution-calculator/) [ Loot Drop Probability Calculator loot-drop-probability-calculator Calculate loot drop odds across repeated independent attempts. 1cr ](/tools/loot-drop-probability-calculator/) [ Negative Binomial Distribution Calculator negative-binomial-distribution-calculator Negative binomial PMF and cumulative probabilities in failures or total-trials parametrization. 1cr ](/tools/negative-binomial-distribution-calculator/) [ Normal Distribution Calculator normal-distribution-calculator Normal probabilities: left/right tail, between two values, or inverse lookup, with z-scores and PDF. 1cr ](/tools/normal-distribution-calculator/) [ Poisson Distribution Calculator poisson-distribution-calculator Calculate Poisson PMF, CDF, and tail probabilities. 1cr ](/tools/poisson-distribution-calculator/) [ Probability Calculator probability-calculator Compute basic, conditional, Bayes, and complement probabilities. 1cr ](/tools/probability-calculator/) Ratios [ Aspect Ratio Calculator aspect-ratio-calculator Simplify dimensions to a ratio, derive dimensions from a ratio, or resize proportionally. 1cr ](/tools/aspect-ratio-calculator/) [ Proportion Calculator proportion-calculator Solve or verify a proportion a/b = c/d from three or four values. 1cr ](/tools/proportion-calculator/) [ Ratio Calculator ratio-calculator Solve a:b = c:d proportions, simplify or scale ratios, and generate equivalent ratio tables. 1cr ](/tools/ratio-calculator/) [ Unit Rate Calculator unit-rate-calculator Calculate a unit rate or compare two unit rates. 1cr ](/tools/unit-rate-calculator/) Sequence Tools [ Catalan Number Generator catalan-number-generator Calculate the nth Catalan number and nearby sequence values. 1cr ](/tools/catalan-number-generator/) [ Collatz Conjecture Calculator collatz-conjecture-calculator Generate and analyze the deterministic Collatz hailstone sequence. 1cr ](/tools/collatz-conjecture-calculator/) Sequences [ Arithmetic Sequence Calculator arithmetic-sequence-calculator Calculate the nth term and partial sum of an arithmetic sequence. 1cr ](/tools/arithmetic-sequence-calculator/) [ Cube Numbers List cube-numbers-list List cube numbers n³ for bases up to 1000 with sums and prime-base counts. 1cr ](/tools/cube-numbers-list/) [ Geometric Sequence Calculator geometric-sequence-calculator Calculate nth term, partial sum, and sample terms for a geometric sequence. 1cr ](/tools/geometric-sequence-calculator/) [ Happy Number Calculator happy-number-calculator Check whether a number is happy or list happy numbers up to a limit. 1cr ](/tools/happy-number-calculator/) [ List of Fibonacci Numbers list-of-fibonacci-numbers Generate Fibonacci numbers by count, maximum value, or index range. 1cr ](/tools/list-of-fibonacci-numbers/) [ Number Pattern Finder number-pattern-finder Detect arithmetic, geometric or quadratic patterns and predict the next value. 1cr ](/tools/number-pattern-finder/) [ Pascal's Triangle Generator pascal-s-triangle-generator Generate Pascal's triangle rows and related row sums. 1cr ](/tools/pascal-s-triangle-generator/) [ Sequence Calculator sequence-calculator Generate arithmetic, geometric, or Fibonacci-style sequence terms and sums. 1cr ](/tools/sequence-calculator/) [ Skip Counting Generator skip-counting-generator Generate an arithmetic skip-counting sequence. 1cr ](/tools/skip-counting-generator/) [ Square Numbers List square-numbers-list List square numbers, find squares in a range, or check a perfect square. 1cr ](/tools/square-numbers-list/) [ Sum of Cubes Calculator sum-of-cubes-calculator Calculate 1^3 + 2^3 +... + n^3. 1cr ](/tools/sum-of-cubes-calculator/) [ Sum of Positive Integers Calculator sum-of-positive-integers-calculator Sum consecutive integers n1..n2 exactly with Gauss's pairing formula. 1cr ](/tools/sum-of-positive-integers-calculator/) [ Sum of Squares Calculator sum-of-squares-calculator Calculate 1^2 + 2^2 +... + n^2. 1cr ](/tools/sum-of-squares-calculator/) Set Theory [ Inclusion Exclusion Calculator inclusion-exclusion-calculator Apply inclusion-exclusion for one, two, or three finite sets. 1cr ](/tools/inclusion-exclusion-calculator/) [ Set Theory Calculator set-theory-calculator Perform common finite set operations. 1cr ](/tools/set-theory-calculator/) Special Functions [ Beta Function Calculator beta-function-calculator Calculate the Euler beta function B(x, y) via the gamma function relationship. 1cr ](/tools/beta-function-calculator/) [ Exponential Integral Calculator exponential-integral-calculator Evaluate E1(x), Ei(x), the generalised E_n(x) and the logarithmic integral li(x). 1cr ](/tools/exponential-integral-calculator/) Sports [ Bike Gear Ratio Calculator bike-gear-ratio-calculator Calculate bicycle gear ratio, gear inches, rollout, gain ratio, and speed. 1cr ](/tools/bike-gear-ratio-calculator/) [ Bowling Score Calculator bowling-score-calculator Score a ten-pin bowling game from roll values. 1cr ](/tools/bowling-score-calculator/) [ Cricket Run Rate Calculator cricket-run-rate-calculator Calculate current, projected, and required cricket run rates from cricket over notation. 1cr ](/tools/cricket-run-rate-calculator/) [ Usage Rate Calculator usage-rate-calculator Calculate basketball usage rate from player and team shot, free throw, turnover, and minute stats. 1cr ](/tools/usage-rate-calculator/) Statistics [ A/B Test Sample Size Calculator a-b-test-sample-size-calculator Size an A/B test from baseline rate, minimum detectable effect, significance, and power. 1cr ](/tools/a-b-test-sample-size-calculator/) [ A/B Test Significance Calculator a-b-test-significance-calculator Test whether an A/B conversion-rate difference is significant, with lift, z score, p-value, and intervals. 1cr ](/tools/a-b-test-significance-calculator/) [ ANOVA Calculator anova-calculator Run one-way ANOVA with F statistic, p-value, table components, and effect sizes. 1cr ](/tools/anova-calculator/) [ Arithmetic Mean Calculator arithmetic-mean-calculator Calculate arithmetic mean, median, modes, range, variance, and standard deviation from a number list. 1cr ](/tools/arithmetic-mean-calculator/) [ Average Calculator average-calculator Calculate mean, median, mode, range, variance, and optional weighted average. 1cr ](/tools/average-calculator/) [ Average Deviation Calculator average-deviation-calculator Calculate mean and median absolute deviation for a numeric dataset. 1cr ](/tools/average-deviation-calculator/) [ Box and Whisker Plot Maker box-and-whisker-plot-maker Compute box plot statistics, whiskers, fences, and outliers. 1cr ](/tools/box-and-whisker-plot-maker/) [ Central Limit Theorem Calculator central-limit-theorem-calculator Sampling-distribution probabilities for the sample mean via the CLT (standard error, z-scores). 1cr ](/tools/central-limit-theorem-calculator/) [ Chi Square Test Calculator chi-square-test-calculator Run a chi-square goodness-of-fit test for observed and expected counts. 1cr ](/tools/chi-square-test-calculator/) [ Coefficient of Variation Calculator coefficient-of-variation-calculator Calculate coefficient of variation from sample or population standard deviation. 1cr ](/tools/coefficient-of-variation-calculator/) [ Cohen's d Calculator cohens-d-calculator Calculate Cohen's d, Hedges' g, overlap, and effect-size interpretation. 1cr ](/tools/cohens-d-calculator/) [ Confidence Interval Calculator confidence-interval-calculator Confidence interval for a population mean from raw data or summary statistics, using the t-distribution or the normal distribution. 1cr ](/tools/confidence-interval-calculator/) [ Confidence Interval for Proportion Calculator confidence-interval-for-proportion-calculator Wald and Wilson score confidence intervals for a proportion at eight confidence levels. 1cr ](/tools/confidence-interval-for-proportion-calculator/) [ Contingency Table Calculator contingency-table-calculator Chi-square test of independence for an r x c contingency table with expected counts, standardized residuals, cell contributions, and Cramer's V. 1cr ](/tools/contingency-table-calculator/) [ Correlation Coefficient Calculator correlation-coefficient-calculator Calculate Pearson, Spearman, and Kendall correlation coefficients. 1cr ](/tools/correlation-coefficient-calculator/) [ Effect Size Calculator effect-size-calculator Calculate Cohen's d, Hedges' g, Glass's delta, and related effect-size statistics for two groups. 1cr ](/tools/effect-size-calculator/) [ Entropy Calculator entropy-calculator Calculate Shannon entropy of a probability distribution in bits, nats, or dits. 1cr ](/tools/entropy-calculator/) [ F-Test / F-Distribution Calculator f-test-f-distribution-calculator Compare two variances with an F test, or turn an F statistic into a p-value and critical values. 1cr ](/tools/f-test-f-distribution-calculator/) [ Find Minimum and Maximum find-minimum-maximum Find min, max, range, mean, median, positions, and sorted values for a number list. 1cr ](/tools/find-minimum-maximum/) [ Fisher's Exact Test Calculator fisher-s-exact-test-calculator Exact hypergeometric test for a 2x2 table with one- and two-tailed p-values, odds ratio with confidence interval, relative risk, and expected counts. 1cr ](/tools/fisher-s-exact-test-calculator/) [ Five Number Summary Calculator five-number-summary-calculator Calculate minimum, Q1, median, Q3, maximum, IQR, and outlier fences. 1cr ](/tools/five-number-summary-calculator/) [ Geometric Mean Calculator geometric-mean-calculator Calculate geometric mean and compare it with arithmetic, harmonic, median, minimum, and maximum values. 1cr ](/tools/geometric-mean-calculator/) [ Gini Coefficient Calculator gini-coefficient-calculator Calculate a Gini coefficient and Lorenz curve points from nonnegative data. 1cr ](/tools/gini-coefficient-calculator/) [ Harmonic Mean Calculator harmonic-mean-calculator Calculate harmonic mean for positive non-zero values with comparison means and reciprocal totals. 1cr ](/tools/harmonic-mean-calculator/) [ Histogram Maker histogram-maker Create histogram bin counts and relative frequencies from numeric data. 1cr ](/tools/histogram-maker/) [ Interquartile Range Calculator interquartile-range-calculator Calculate IQR, quartiles, and 1.5-IQR outlier fences. 1cr ](/tools/interquartile-range-calculator/) [ Kruskal-Wallis Test Calculator kruskal-wallis-test-calculator Run the Kruskal-Wallis H test for several independent groups, with tie correction and rank summaries. 1cr ](/tools/kruskal-wallis-test-calculator/) [ Linear Regression Calculator linear-regression-calculator Least-squares line with r, R-squared, standard errors, sums of squares, and optional prediction. 1cr ](/tools/linear-regression-calculator/) [ Mean Absolute Deviation Calculator mean-absolute-deviation-calculator Calculate mean or median absolute deviation for a numeric dataset. 1cr ](/tools/mean-absolute-deviation-calculator/) [ Mean Calculator mean-calculator Calculate arithmetic mean and supporting summary statistics. 1cr ](/tools/mean-calculator/) [ Mean Median Mode Calculator mean-median-mode-calculator Calculate mean, median, mode, range, variance, and standard deviation. 1cr ](/tools/mean-median-mode-calculator/) [ Median Absolute Deviation Calculator median-absolute-deviation-calculator Calculate raw and scaled median absolute deviation as a robust spread measure. 1cr ](/tools/median-absolute-deviation-calculator/) [ Median Calculator median-calculator Calculate the median, sorted data, quartiles, and range. 1cr ](/tools/median-calculator/) [ Midrange Calculator midrange-calculator Calculate the midpoint between the minimum and maximum of a dataset. 1cr ](/tools/midrange-calculator/) [ Mode Calculator mode-calculator Find the mode or modes and frequency table for a numeric dataset. 1cr ](/tools/mode-calculator/) [ Odds Ratio Calculator odds-ratio-calculator Odds ratio with Woolf CI, relative risk, NNT, and Yates-corrected chi-square from a 2x2 table. 1cr ](/tools/odds-ratio-calculator/) [ Outlier Calculator outlier-calculator Detect IQR outliers and return quartiles, bounds, and counts. 1cr ](/tools/outlier-calculator/) [ P-Value Calculator p-value-calculator Convert a z, t, chi-square, or F test statistic into a one- or two-tailed p-value with critical values and significance at common alpha levels. 1cr ](/tools/p-value-calculator/) [ Percentile Calculator percentile-calculator Calculate a percentile value or percentile rank for a numeric dataset. 1cr ](/tools/percentile-calculator/) [ Population Variance Calculator population-variance-calculator Calculate population variance and population standard deviation. 1cr ](/tools/population-variance-calculator/) [ Quartile Calculator quartile-calculator Calculate Q1, Q2, Q3, IQR, and outlier fences using a selected quartile method. 1cr ](/tools/quartile-calculator/) [ Quartile Deviation Calculator quartile-deviation-calculator Calculate quartile deviation, IQR fences, and outliers for numeric data. 1cr ](/tools/quartile-deviation-calculator/) [ Range Calculator range-calculator Range (max − min) of a data set with quartiles, IQR, midrange, and a spread rating. 1cr ](/tools/range-calculator/) [ Relative Risk Calculator relative-risk-calculator Relative risk with confidence interval, attributable fractions, NNT, and significance test. 1cr ](/tools/relative-risk-calculator/) [ Relative Standard Deviation Calculator relative-standard-deviation-calculator Calculate RSD, coefficient of variation, and precision quality for data. 1cr ](/tools/relative-standard-deviation-calculator/) [ Root Mean Square Calculator root-mean-square-calculator Calculate root mean square for a numeric list. 1cr ](/tools/root-mean-square-calculator/) [ Sample Mean Calculator sample-mean-calculator Calculate sample mean plus core descriptive statistics for a numeric dataset. 1cr ](/tools/sample-mean-calculator/) [ Sample Size Calculator sample-size-calculator Survey sample size from confidence level, margin of error, and optional finite-population correction. 1cr ](/tools/sample-size-calculator/) [ Sample Standard Deviation Calculator sample-standard-deviation-calculator Calculate sample standard deviation and optional z-score outliers. 1cr ](/tools/sample-standard-deviation-calculator/) [ Sample Variance Calculator sample-variance-calculator Calculate sample or population variance from a numeric dataset. 1cr ](/tools/sample-variance-calculator/) [ Spearman Rank Correlation Calculator spearman-rank-correlation-calculator Spearman's rho with average-rank tie handling, tie correction, and t-based significance. 1cr ](/tools/spearman-rank-correlation-calculator/) [ Standard Deviation Calculator standard-deviation-calculator Calculate sample and population standard deviation with quartiles. 1cr ](/tools/standard-deviation-calculator/) [ Standard Error Calculator standard-error-calculator Calculate standard error of the mean and a z-based confidence interval. 1cr ](/tools/standard-error-calculator/) [ Statistics Calculator statistics-calculator Calculate descriptive statistics and histogram-ready distribution data from numeric values. 1cr ](/tools/statistics-calculator/) [ t-Test Calculator t-test-calculator Run one-sample, paired, or independent two-sample t-tests with Welch or pooled variance, p-value, critical value, confidence interval, and Cohen's d. 1cr ](/tools/t-test-calculator/) [ Variance Calculator variance-calculator Calculate sample and population variance with related statistics. 1cr ](/tools/variance-calculator/) [ Weibull Distribution Calculator weibull-distribution-calculator Calculate Weibull PDF/CDF/reliability, moments, and B-life values. 1cr ](/tools/weibull-distribution-calculator/) [ Weighted Average Calculator weighted-average-calculator Calculate a weighted average from value and weight lists. 1cr ](/tools/weighted-average-calculator/) [ Z-Score Calculator zscore-calculator Calculate z-scores, inverse values, percentiles, and normal probabilities. 1cr ](/tools/zscore-calculator/) Surface Area [ Surface Area of a Cone Calculator surface-area-of-a-cone-calculator Calculate cone base, lateral, and total surface area from radius-height, radius-slant, or diameter-height inputs. 1cr ](/tools/surface-area-of-a-cone-calculator/) [ Surface Area of a Cube Calculator surface-area-of-a-cube-calculator Calculate cube surface area and related measurements from edge, diagonal, volume, or surface area. 1cr ](/tools/surface-area-of-a-cube-calculator/) Time [ Commute Life Wasted Calculator commute-life-wasted-calculator Estimate weekly, yearly, and career time spent commuting. 1cr ](/tools/commute-life-wasted-calculator/) Trigonometry [ Arccos Calculator arccos-calculator Calculate inverse cosine in radians and degrees. 1cr ](/tools/arccos-calculator/) [ Arcsin Calculator arcsin-calculator Calculate arcsine from a sine value, including degree/radian output and special-angle recognition. 1cr ](/tools/arcsin-calculator/) [ Arctan Calculator arctan-calculator Calculate inverse tangent in radians and degrees. 1cr ](/tools/arctan-calculator/) [ Arctan2 Calculator arctan2-calculator Calculate atan2(y, x), normalized angle, radius, slope, and quadrant. 1cr ](/tools/arctan2-calculator/) [ Cosine Calculator cosine-calculator Calculate cosine with radians/degrees conversion, quadrant, and special-angle recognition. 1cr ](/tools/cosine-calculator/) [ Cosecant/Secant/Cotangent Calculator csc-sec-cot-calculator Calculate csc, sec, cot, sine, and cosine for an angle. 1cr ](/tools/csc-sec-cot-calculator/) [ Decimal Degrees to DMS Converter decimal-degrees-to-dms-converter Convert decimal degrees to degrees, minutes, and seconds, with hemisphere labels for coordinates. 1cr ](/tools/decimal-degrees-to-dms-converter/) [ Degree to Radian Converter degree-to-radian-converter Convert degrees to radians with pi-fraction, quadrant, and trig values. 1cr ](/tools/degree-to-radian-converter/) [ DMS to Decimal Degrees Converter dms-to-decimal-converter Convert degrees, minutes, and seconds to signed decimal degrees. 1cr ](/tools/dms-to-decimal-converter/) [ Law of Cosines Calculator law-of-cosines-calculator Use the law of cosines to solve a side or included angle. 1cr ](/tools/law-of-cosines-calculator/) [ Law of Sines Calculator law-of-sines-calculator Use the law of sines to solve a side or possible angle. 1cr ](/tools/law-of-sines-calculator/) [ Sine Calculator sine-calculator Calculate sine with radians/degrees conversion, quadrant, and special-angle recognition. 1cr ](/tools/sine-calculator/) [ Tangent Calculator tangent-calculator Calculate tangent and flag vertical-asymptote inputs. 1cr ](/tools/tangent-calculator/) [ Unit Circle Calculator unit-circle-calculator Calculate unit-circle sine, cosine, tangent, radians, degrees, and point coordinates. 1cr ](/tools/unit-circle-calculator/) Unit Conversion [ Length Converter length-converter Convert a length value across metric, imperial, and nautical units. 1cr ](/tools/length-converter/) Unit Converters [ Acres to Hectares Converter acres-to-hectares-converter Convert between acres and hectares with related area units. 1cr ](/tools/acres-to-hectares-converter/) [ Acres to Perches Converter acres-to-perches-converter Convert acres and perches for land area calculations. 1cr ](/tools/acres-to-perches-converter/) [ Acres to Square Feet Converter acres-to-square-feet-converter Convert between acres and square feet with related area units. 1cr ](/tools/acres-to-square-feet-converter/) [ Acres to Square Meters Converter acres-to-square-meters-converter Convert between acres and square meters with related area units. 1cr ](/tools/acres-to-square-meters-converter/) [ Acres to Square Miles Converter acres-to-square-miles-converter Convert acres and square miles, including related land-area units. 1cr ](/tools/acres-to-square-miles-converter/) [ Acres to Square Yards Converter acres-to-square-yards-converter Convert acres and square yards, including related area units. 1cr ](/tools/acres-to-square-yards-converter/) [ Angle Converter angle-converter Convert angles between degrees, radians, gradians, turns, arcminutes, arcseconds, and milliradians. 1cr ](/tools/angle-converter/) [ CM to Inches Converter cm-to-inches-converter Convert centimeters to inches, feet/inches, and nearest 1/16-inch fraction. 1cr ](/tools/cm-to-inches-converter/) [ Cups to Tablespoons Converter cups-to-tablespoons-converter Convert US cups and tablespoons, including teaspoons and fluid ounces. 1cr ](/tools/cups-to-tablespoons-converter/) [ Data Transfer Rate Converter data-transfer-rate-converter Convert bandwidth between bps, Mbps, MB/s and binary variants, with an optional download-time estimate. 1cr ](/tools/data-transfer-rate-converter/) [ Feet to Meters Converter feet-to-meters-converter Convert feet and optional inches to meters, centimeters, and millimeters. 1cr ](/tools/feet-to-meters-converter/) [ File Size Converter file-size-converter Convert file sizes across decimal (KB, MB) and binary (KiB, MiB) units with an all-unit table. 1cr ](/tools/file-size-converter/) [ Gallons to Cups Converter gallons-to-cups-converter Convert US gallons and cups, with quart and pint equivalents. 1cr ](/tools/gallons-to-cups-converter/) [ Grams to Ounces Converter grams-to-ounces-converter Convert grams to ounces, pounds, kilograms, and milligrams. 1cr ](/tools/grams-to-ounces-converter/) [ Grams to Pounds Converter grams-to-pounds-converter Convert grams to pounds, ounces, and kilograms. 1cr ](/tools/grams-to-pounds-converter/) [ Inches to CM Converter inches-to-cm-converter Convert inches to centimeters, millimeters, meters, and feet. 1cr ](/tools/inches-to-cm-converter/) [ kg to lbs Converter kg-to-lbs-converter Convert kilograms and pounds with ounce breakdown. 1cr ](/tools/kg-to-lbs-converter/) [ kPa to psi Converter kpa-to-psi-converter Convert kilopascals to psi, bar, atm, and mmHg. 1cr ](/tools/kpa-to-psi-converter/) [ Liters to Cups Converter liters-to-cups-converter Convert liters to US, metric, and imperial cups. 1cr ](/tools/liters-to-cups-converter/) [ mAh to Wh Converter mah-to-wh-converter Convert battery capacity and energy among mAh, Ah and Wh using nominal voltage. 1cr ](/tools/mah-to-wh-converter/) [ Meters to Feet Converter meters-to-feet-converter Convert meters to decimal feet and feet-and-inches. 1cr ](/tools/meters-to-feet-converter/) [ Ounce to Gram Converter ounce-to-gram-converter Convert ounces to grams, kilograms, milligrams, and pounds. 1cr ](/tools/ounce-to-gram-converter/) [ Ounces to Cups Converter ounces-to-cups-converter Convert US fluid ounces and cups with spoon and milliliter equivalents. 1cr ](/tools/ounces-to-cups-converter/) [ Percent to PPM Converter percent-to-ppm-converter Convert percent to ppm or ppm to percent. 1cr ](/tools/percent-to-ppm-converter/) [ Perches to Acres Converter perches-to-acres-converter Convert perches and acres for land area calculations. 1cr ](/tools/perches-to-acres-converter/) [ Pounds to Grams Converter pounds-to-grams-converter Convert pounds to grams, kilograms, ounces, and milligrams. 1cr ](/tools/pounds-to-grams-converter/) [ PPM to Percent Converter ppm-to-percent-converter Convert parts per million to percentage and related concentration scales. 1cr ](/tools/ppm-to-percent-converter/) [ Square Yards to Acres Converter square-yards-to-acres-converter Convert square yards and acres, including related area units. 1cr ](/tools/square-yards-to-acres-converter/) [ Tablespoons to Cups Converter tablespoons-to-cups-converter Convert US tablespoons to cups, teaspoons, fluid ounces, and milliliters. 1cr ](/tools/tablespoons-to-cups-converter/) [ Tablespoons to Teaspoons Converter tablespoons-to-teaspoons-converter Convert US tablespoons to teaspoons, cups, fluid ounces, and milliliters. 1cr ](/tools/tablespoons-to-teaspoons-converter/) [ Teaspoons to Cups Converter teaspoons-to-cups-converter Convert US teaspoons and cups, including tablespoons and fluid ounces. 1cr ](/tools/teaspoons-to-cups-converter/) [ Teaspoons to Tablespoons Converter teaspoons-to-tablespoons-converter Convert US teaspoons to tablespoons, cups, fluid ounces, and milliliters. 1cr ](/tools/teaspoons-to-tablespoons-converter/) Volume [ Cups to Gallons Converter cups-to-gallons-converter Convert US cups and gallons with related volume units. 1cr ](/tools/cups-to-gallons-converter/) [ Cups to Liters Converter cups-to-liters-converter Convert US cups and liters with milliliter, fluid-ounce, and spoon equivalents. 1cr ](/tools/cups-to-liters-converter/) [ Cups to Ounces Converter cups-to-ounces-converter Convert cups and fluid ounces for US customary, US legal, imperial, or metric cups. 1cr ](/tools/cups-to-ounces-converter/) [ Cups to Quarts Converter cups-to-quarts-converter Convert US cups and quarts with related volume units. 1cr ](/tools/cups-to-quarts-converter/) [ Cups to Teaspoons Converter cups-to-teaspoons-converter Convert US cups and teaspoons with tablespoon and fluid-ounce equivalents. 1cr ](/tools/cups-to-teaspoons-converter/) [ Volume of a Cone Calculator volume-of-a-cone-calculator Calculate cone volume, slant height, base area, lateral area, and total surface area. 1cr ](/tools/volume-of-a-cone-calculator/) [ Volume of a Cube Calculator volume-of-a-cube-calculator Calculate cube volume, surface area, face area, diagonals, and total edge length. 1cr ](/tools/volume-of-a-cube-calculator/) [ Volume of a Pyramid Calculator volume-of-a-pyramid-calculator Calculate volume, base area, slant height, and surface area for square, rectangular, or triangular pyramids. 1cr ](/tools/volume-of-a-pyramid-calculator/) [ Volume of a Rectangular Prism Calculator volume-of-a-rectangular-prism-calculator Calculate rectangular prism volume, surface area, diagonals, base perimeter, and total edge length. 1cr ](/tools/volume-of-a-rectangular-prism-calculator/) [ Volume of Ellipsoid Calculator volume-of-ellipsoid-calculator Calculate ellipsoid volume, approximate surface area, cross sections, equivalent sphere radius, and shape type. 1cr ](/tools/volume-of-ellipsoid-calculator/) Volume Converters [ Cubic Meters to Cubic Feet cubic-meters-to-cubic-feet Convert cubic meters and cubic feet with common volume equivalents. 1cr ](/tools/cubic-meters-to-cubic-feet/) [ Gallons to Liters Converter gallons-to-liters-converter Convert US or UK gallons to liters, with a reverse conversion mode. 1cr ](/tools/gallons-to-liters-converter/) ## [Random](/tools/category/random/) 14 endpoints [full page →](/tools/category/random/) Random generators for apps, tests, and automations. Cards [ Random Playing Card Generator random-playing-card-generator Draw random playing cards from a standard deck with optional jokers. 1cr ](/tools/random-playing-card-generator/) Color [ Random Color Generator random-color-generator Generate random HEX, RGB, and HSL colors with optional harmony rules. 1cr ](/tools/random-color-generator/) Date [ Random Date Generator random-date-generator Generate random dates inside a bounded date range. 1cr ](/tools/random-date-generator/) Lists [ List Randomizer list-randomizer Shuffle a newline-separated list into random order. 1cr ](/tools/list-randomizer/) [ Random Group Generator random-group-generator Create random balanced groups from a newline-separated list of names. 1cr ](/tools/random-group-generator/) [ Random Line Picker random-line-picker Pick random non-empty lines from user-supplied text. 1cr ](/tools/random-line-picker/) [ Random Name Picker random-name-picker Draw one or more random names from a list, optionally removing each name once picked. 1cr ](/tools/random-name-picker/) [ Random Picker random-picker Pick random items from any newline-separated list. 1cr ](/tools/random-picker/) Network [ Random Port Number Generator random-port-number-generator Generate random network port numbers in standard or custom ranges. 1cr ](/tools/random-port-number-generator/) Numbers [ Random Decimal Number Generator random-decimal-number-generator Generate random decimal numbers between 0 and 1 with configurable precision. 1cr ](/tools/random-decimal-number-generator/) [ Random Integer Generator random-integer-generator Generate random integers with optional uniqueness, sorting, exclusions, and seed replay. 1cr ](/tools/random-integer-generator/) Quotes [ Random Quote Generator random-quote-generator Generate or search quotes from a bundled SQLite quote database. 3cr ](/tools/random-quote-generator/) Text [ Random Letter Generator random-letter-generator Generate random letters with case, vowel/consonant, and duplicate controls. 1cr ](/tools/random-letter-generator/) [ Random String Generator random-string-generator Generate random strings, passwords, API keys, tokens, PINs, or hex strings. 1cr ](/tools/random-string-generator/) ## [Webmaster](/tools/category/webmaster/) 19 endpoints [full page →](/tools/category/webmaster/) DNS, HTTP, meta, robots, and other webmaster utilities. Advertising [ CPC Calculator cpc-calculator Calculate CPC, CPM, or CTR from two known campaign metrics. 1cr ](/tools/cpc-calculator/) [ CPM Calculator cpm-calculator Calculate campaign cost, CPM, or impressions from two known advertising metrics. 1cr ](/tools/cpm-calculator/) Analytics [ Value of A Visitor Calculator value-of-a-visitor-calculator Calculate website visitor value, conversion rate, annualized revenue, and traffic ROI. 2cr ](/tools/value-of-a-visitor-calculator/) CSS [ CSS Box Shadow Generator css-box-shadow-generator Generate a CSS box-shadow declaration from numeric shadow controls. 1cr ](/tools/css-box-shadow-generator/) [ CSS Compressor css-compressor Minify CSS and return compression statistics. 1cr ](/tools/css-compressor/) Encoding [ JSON String Escape/Unescape json-string-escape-unescape Escape or unescape JSON string content deterministically. 1cr ](/tools/json-string-escape-unescape/) HTML [ HTML Beautifier html-beautifier Indent and align HTML, or minify it, preserving the contents of pre, script, style and textarea. 1cr ](/tools/html-beautifier/) [ HTML Compressor html-compressor Compress HTML by removing comments and extra whitespace. 1cr ](/tools/html-compressor/) [ HTML Entity Encoder Decoder html-entity-encoder-decoder Encode or decode HTML entities for text and markup snippets. 1cr ](/tools/html-entity-encoder-decoder/) [ HTML to Markdown Converter html-to-markdown-converter Convert HTML into Markdown, handling headings, emphasis, links, images, lists, blockquotes, code blocks, and tables, with script and style content removed. 1cr ](/tools/html-to-markdown-converter/) [ HTML to Text Converter html-to-text-converter Strip HTML tags, scripts, styles, and comments to extract plain text, with tag/script/style/comment counts and a size comparison. 1cr ](/tools/html-to-text-converter/) IP [ IP Address to Binary Converter ip-address-to-binary-converter Convert IPv4 or IPv6 addresses to padded binary forms. 1cr ](/tools/ip-address-to-binary-converter/) Redirects [ .htaccess Redirect Generator htaccess-redirect-generator Generate Apache rules for path redirects, HTTPS, hostname normalization, or IP blocking. 1cr ](/tools/htaccess-redirect-generator/) SEO [ Hreflang Tag Generator hreflang-tag-generator Generate hreflang link tags, HTTP Link headers, and sitemap XML from language and URL pairs. 1cr ](/tools/hreflang-tag-generator/) [ Keyword Density Checker keyword-density-checker One-, two- and three-word keyword density with stop-word filtering and word counts. 1cr ](/tools/keyword-density-checker/) [ Meta Tag Generator meta-tag-generator Build SEO, Open Graph, and Twitter Card meta tags with inherited defaults, length checks, and Google, Facebook, and Twitter preview data. 1cr ](/tools/meta-tag-generator/) [ Robots.txt Generator robots-txt-generator Generate a robots.txt from allow/disallow paths, extra user-agent groups, and sitemaps, or validate an existing file for errors and crawler warnings. 1cr ](/tools/robots-txt-generator/) [ URL Slug Generator url-slug-generator Generate an SEO-friendly URL slug from a title or phrase. 1cr ](/tools/url-slug-generator/) [ XML Sitemap Generator xml-sitemap-generator Generate a validated XML sitemap from paths or URLs with lastmod, change frequency, and priority. 1cr ](/tools/xml-sitemap-generator/) ## [Business](/tools/category/business/) 15 endpoints [full page →](/tools/category/business/) Cost Calculators [ Employee Cost Calculator employee-cost-calculator True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. 1cr ](/tools/employee-cost-calculator/) [ EOQ Calculator eoq-calculator Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. 1cr ](/tools/eoq-calculator/) [ Print Cost Calculator print-cost-calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. 1cr ](/tools/print-cost-calculator/) Customer Experience [ CSAT Score Calculator csat-score-calculator Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. 1cr ](/tools/csat-score-calculator/) Human Resources [ Bradford Factor Calculator bradford-factor-calculator Calculate an attendance Bradford Factor from absence spells and total absent days. 1cr ](/tools/bradford-factor-calculator/) [ Compa-Ratio Calculator compa-ratio-calculator Compare salary with a pay-range midpoint and calculate range penetration. 1cr ](/tools/compa-ratio-calculator/) [ Employee Turnover Rate Calculator employee-turnover-rate-calculator Calculate period and annualized employee turnover from average headcount and separations. 1cr ](/tools/employee-turnover-rate-calculator/) [ FTE Calculator fte-calculator Convert full-time and part-time headcount and hours into full-time equivalents. 1cr ](/tools/fte-calculator/) Operations [ Billable Utilization Calculator billable-utilization-calculator Calculate billable utilization, target gap, revenue and gross margin for a work period. 1cr ](/tools/billable-utilization-calculator/) Productivity [ Revenue Per Employee Calculator revenue-per-employee-calculator Calculate revenue per employee for a period and annualized basis. 1cr ](/tools/revenue-per-employee-calculator/) Profitability [ Contribution Margin Calculator contribution-margin-calculator Calculate unit and total contribution margin, ratio, profit, and break-even units. 1cr ](/tools/contribution-margin-calculator/) Reliability [ MTBF & MTTR Calculator mtbf-mttr-calculator Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. 1cr ](/tools/mtbf-mttr-calculator/) Research [ Survey Response Rate Calculator survey-response-rate-calculator Calculate complete and overall survey response rates, completion rate and approximate margin of error. 1cr ](/tools/survey-response-rate-calculator/) Small Business Calculators [ Lemonade Stand Calculator lemonade-stand-calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. 1cr ](/tools/lemonade-stand-calculator/) Social Media [ Follower Growth Rate Calculator follower-growth-rate-calculator Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. 1cr ](/tools/follower-growth-rate-calculator/) ## [Color](/tools/category/color/) 3 endpoints [full page →](/tools/category/color/) Accessibility [ Color Contrast Checker color-contrast-checker Check WCAG contrast ratio and AA/AAA compliance for two colors. 1cr ](/tools/color-contrast-checker/) Conversion [ Color Code Converter color-code-converter-all-formats Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. 1cr ](/tools/color-code-converter-all-formats/) Palette [ Color Scheme Generator color-scheme-generator Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. 1cr ](/tools/color-scheme-generator/) ## [Construction](/tools/category/construction/) 19 endpoints [full page →](/tools/category/construction/) Construction And DIY Calculators [ Lumber Calculator lumber-calculator Calculate board feet, coverage, waste, linear feet, and lumber cost. 1cr ](/tools/lumber-calculator/) Layout [ Miter Angle Calculator miter-angle-calculator Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. 1cr ](/tools/miter-angle-calculator/) [ Squareness Checker squareness-checker Check a corner against the Pythagorean 3-4-5 squareness rule. 1cr ](/tools/squareness-checker/) [ Stair Calculator stair-calculator Estimate stair risers, treads, run, stringer length, slope, and step profile data. 1cr ](/tools/stair-calculator/) Lumber [ Board Foot Calculator board-foot-calculator Calculate lumber volume in board feet, cubic volume, weight, and optional cost. 1cr ](/tools/board-foot-calculator/) Materials [ Asphalt Calculator asphalt-calculator Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. 1cr ](/tools/asphalt-calculator/) [ Brick and Mortar Calculator brick-and-mortar-calculator Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. 1cr ](/tools/brick-and-mortar-calculator/) [ Carpet Calculator carpet-calculator Estimate carpet area, waste, roll length, padding, installation, and cost. 1cr ](/tools/carpet-calculator/) [ Concrete Calculator concrete-calculator Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. 1cr ](/tools/concrete-calculator/) [ Decking Calculator decking-calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. 1cr ](/tools/decking-calculator/) [ Drywall Calculator drywall-calculator Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. 1cr ](/tools/drywall-calculator/) [ Fence Calculator fence-calculator Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. 1cr ](/tools/fence-calculator/) [ Paint Calculator paint-calculator Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. 1cr ](/tools/paint-calculator/) [ Steel Weight Calculator steel-weight-calculator Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. 1cr ](/tools/steel-weight-calculator/) [ Tile Calculator tile-calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. 1cr ](/tools/tile-calculator/) [ Wallpaper Calculator wallpaper-calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. 1cr ](/tools/wallpaper-calculator/) Roofing [ Roof Pitch Calculator roof-pitch-calculator Calculate roof pitch, angle, slope percent, and rafter multiplier. 1cr ](/tools/roof-pitch-calculator/) Structural [ Beam Load Calculator beam-load-calculator Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. 1cr ](/tools/beam-load-calculator/) [ Rebar Calculator rebar-calculator Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. 1cr ](/tools/rebar-calculator/) ## [Conversion](/tools/category/conversion/) 17 endpoints [full page →](/tools/category/conversion/) Area [ Square Feet to Square Meters Converter square-feet-to-square-meters Convert square feet and square meters with exact international-foot conversion. 1cr ](/tools/square-feet-to-square-meters/) Cooking [ Quarts to Cups Converter quarts-to-cups-converter Convert US customary quarts and cups in either direction. 1cr ](/tools/quarts-to-cups-converter/) Fuel [ Fuel Efficiency Converter fuel-efficiency-converter-mpg-l-100km-km-l Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. 1cr ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) Length [ Centimeters to Feet and Inches Converter cm-to-feet-and-inches-converter Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. 1cr ](/tools/cm-to-feet-and-inches-converter/) Media [ FPS Converter fps-converter Convert between frame counts, duration and timecode at a given frame rate. 1cr ](/tools/fps-converter/) Pressure [ Pressure Converter pressure-converter Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. 1cr ](/tools/pressure-converter/) [ PSI to Bar Converter psi-to-bar-converter Convert pressure between pounds per square inch and bar. 1cr ](/tools/psi-to-bar-converter/) Scale [ Scale Model Conversion Calculator scale-model-conversion-calculator Convert a length from one model scale to another. 1cr ](/tools/scale-model-conversion-calculator/) Size [ Shoe Size Converter shoe-size-converter Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. 1cr ](/tools/shoe-size-converter/) Speed [ Knots to MPH Converter knots-to-mph-converter Convert speed between nautical knots and miles per hour. 1cr ](/tools/knots-to-mph-converter/) [ MPH to KMH Converter mph-to-kmh-kmh-to-mph Convert miles per hour and kilometers per hour in either direction. 1cr ](/tools/mph-to-kmh-kmh-to-mph/) [ Speed Converter speed-converter Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. 1cr ](/tools/speed-converter/) Temperature [ Temperature Converter temperature-converter Convert temperatures among Celsius, Fahrenheit and Kelvin. 1cr ](/tools/temperature-converter/) Unit Converters [ Volume Converter volume-converter Convert volume among metric, US customary, cooking, and cubic units. 1cr ](/tools/volume-converter/) [ Weight (Mass) Converter weight-converter Convert mass among metric, imperial, ton, stone, and carat units. 1cr ](/tools/weight-converter/) Volume [ Cubic Feet to Cubic Yards Converter cubic-feet-to-cubic-yards Convert cubic feet and cubic yards and optionally add material waste and order rounding. 1cr ](/tools/cubic-feet-to-cubic-yards/) Weight [ Pounds to Kilograms Converter lbs-to-kg-converter Convert mass between pounds and kilograms using the international avoirdupois pound. 1cr ](/tools/lbs-to-kg-converter/) ## [Converters](/tools/category/converters/) 1 endpoint [full page →](/tools/category/converters/) [ Torque Converter torque-converter-nm-ft-lb-kgf-cm Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. 1cr ](/tools/torque-converter-nm-ft-lb-kgf-cm/) ## [Cooking](/tools/category/cooking/) 12 endpoints [full page →](/tools/category/cooking/) Baking [ Baking Pan Size Converter baking-pan-size-converter Scale a recipe when switching between common baking pan sizes. 1cr ](/tools/baking-pan-size-converter/) [ Dough Hydration Calculator dough-hydration-calculator Calculate dough hydration, required water, or a simple baker's percentage recipe. 1cr ](/tools/dough-hydration-calculator/) [ Sourdough Calculator sourdough-calculator Calculate sourdough flour, water, starter, salt, and dough weight. 1cr ](/tools/sourdough-calculator/) Coffee [ Coffee Brew Ratio Calculator coffee-brew-ratio-calculator Calculate coffee and water amounts for common brewing methods and strengths. 1cr ](/tools/coffee-brew-ratio-calculator/) Conversion [ Cooking Unit Converter cooking-unit-converter Convert cooking volume and weight units using ingredient density. 1cr ](/tools/cooking-unit-converter/) [ Cups to Grams Converter cups-to-grams-converter Convert cups to grams for common cooking ingredients. 1cr ](/tools/cups-to-grams-converter/) Conversions [ Yeast Conversion Calculator yeast-conversion-calculator Convert fresh, active dry, and instant yeast amounts. 1cr ](/tools/yeast-conversion-calculator/) Fermentation [ Brine and Salinity Calculator brine-and-salinity-calculator Calculate salt, water, or salinity for brines and fermentation recipes. 1cr ](/tools/brine-and-salinity-calculator/) [ Fermentation Time Calculator fermentation-time-calculator Estimate fermentation time using a Q10 temperature adjustment model. 1cr ](/tools/fermentation-time-calculator/) Portions [ Spaghetti Portion Calculator spaghetti-portion-calculator Calculate dry and cooked spaghetti portions for a serving count. 1cr ](/tools/spaghetti-portion-calculator/) Ratios [ Baker's Percentage Calculator baker-s-percentage-calculator Scale bread ingredients from flour weight and baker's percentages. 1cr ](/tools/baker-s-percentage-calculator/) Recipes [ Recipe Scaler recipe-scaler Scale ingredient quantities from one serving count to another. 1cr ](/tools/recipe-scaler/) ## [Craft](/tools/category/craft/) 5 endpoints [full page →](/tools/category/craft/) Craft Tools [ Knitting Needle Size Converter knitting-needle-size-converter Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. 1cr ](/tools/knitting-needle-size-converter/) [ Origami Paper Size Calculator origami-paper-size-calculator Calculate paper square size from target origami model size and model ratio. 1cr ](/tools/origami-paper-size-calculator/) [ Pottery Clay Shrinkage Calculator pottery-clay-shrinkage-calculator Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. 1cr ](/tools/pottery-clay-shrinkage-calculator/) [ Quilt Binding Calculator quilt-binding-calculator Calculate quilt binding length, strip count, finished width, and fabric yardage. 1cr ](/tools/quilt-binding-calculator/) Sizing [ Cross-Stitch Size Calculator cross-stitch-size-calculator Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. 1cr ](/tools/cross-stitch-size-calculator/) ## [Creator](/tools/category/creator/) 1 endpoint [full page →](/tools/category/creator/) [ YouTube Earnings Estimator youtube-earnings-estimator Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. 1cr ](/tools/youtube-earnings-estimator/) ## [Datetime](/tools/category/datetime/) 2 endpoints [full page →](/tools/category/datetime/) Seasons [ Autumnal Equinox Day autumnal-equinox-day Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. 1cr ](/tools/autumnal-equinox-day/) Time [ Decimal to Time Converter decimal-to-time-converter Convert decimal hours to hours, minutes, and seconds. 1cr ](/tools/decimal-to-time-converter/) ## [Dev](/tools/category/dev/) 14 endpoints [full page →](/tools/category/dev/) Color [ CMYK to Hex Converter cmyk-to-hex-converter Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. 1cr ](/tools/cmyk-to-hex-converter/) [ Hex to CMYK Converter hex-to-cmyk-converter Convert a hex color to CMYK print percentages. 1cr ](/tools/hex-to-cmyk-converter/) [ Hex to RGB Converter hex-to-rgb-converter Convert a hex color to RGB, HSL, CMYK, and contrast metrics. 1cr ](/tools/hex-to-rgb-converter/) [ RGB to Hex Converter rgb-to-hex-converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. 1cr ](/tools/rgb-to-hex-converter/) Data Conversion [ CSV to JSON Converter csv-to-json-converter Convert CSV text to JSON with delimiter auto-detection and type inference. 1cr ](/tools/csv-to-json-converter/) [ JSON to CSV Converter json-to-csv-converter Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. 1cr ](/tools/json-to-csv-converter/) Encoding [ Base64 Decoder base64-decoder Decode standard or URL-safe Base64 text and return byte and character analysis. 1cr ](/tools/base64-decoder/) [ Base64 Encoder base64-encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. 1cr ](/tools/base64-encoder/) [ JWT Decoder jwt-decoder Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. 1cr ](/tools/jwt-decoder/) [ URL Decoder url-decoder Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. 1cr ](/tools/url-decoder/) [ URL Encoder url-encoder Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. 1cr ](/tools/url-encoder/) [ URL Parser url-parser Break a URL into scheme, host, port, path, decoded query parameters, and fragment. 1cr ](/tools/url-parser/) Scheduling [ Cron Job Generator cron-job-generator Generate a cron expression from common schedule presets. 1cr ](/tools/cron-job-generator/) [ Crontab Expression Generator crontab-expression-generator Build and validate a crontab expression from individual fields. 1cr ](/tools/crontab-expression-generator/) ## [Developer](/tools/category/developer/) 19 endpoints [full page →](/tools/category/developer/) CSS [ CSS Grid Generator css-grid-generator Generate responsive or fixed CSS Grid styles and matching HTML markup. 1cr ](/tools/css-grid-generator/) Color [ Color Inverter color-inverter Invert a hex colour and report luminance plus a readable text colour. 1cr ](/tools/color-inverter/) Data Conversion [ cURL to JSON Converter curl-to-json-converter Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. 1cr ](/tools/curl-to-json-converter/) [ JSON to YAML Converter json-to-yaml-converter Convert a JSON document into block-style YAML, quoting only the scalars that need it. 1cr ](/tools/json-to-yaml-converter/) [ XML to JSON Converter xml-to-json-converter Convert XML into JSON using standard, compact, JsonML, or preserve styles. 1cr ](/tools/xml-to-json-converter/) Data Formatting [ ISO 8601 Date Formatter iso-8601-date-formatter Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. 1cr ](/tools/iso-8601-date-formatter/) [ JSON Formatter/Validator json-formatter-validator Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. 1cr ](/tools/json-formatter-validator/) [ JSON Schema Generator json-schema-generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. 1cr ](/tools/json-schema-generator/) [ SQL Formatter sql-formatter Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. 1cr ](/tools/sql-formatter/) [ YAML Formatter/Validator yaml-formatter-validator Validate, format, minify, or convert YAML to JSON. 1cr ](/tools/yaml-formatter-validator/) Data Validation [ UUID Validator/Decoder uuid-validator-decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. 1cr ](/tools/uuid-validator-decoder/) [ XML Validator xml-validator Validate XML well-formedness and return document statistics. 1cr ](/tools/xml-validator/) Encoders [ Text to Binary/Hex/ASCII Converter text-to-binary-hex-ascii-converter Encode or decode text, binary, hex, and ASCII byte values. 1cr ](/tools/text-to-binary-hex-ascii-converter/) General Tools [ ASCII Table Reference ascii-table-reference Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. 1cr ](/tools/ascii-table-reference/) [ cURL Command Builder curl-command-builder Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. 1cr ](/tools/curl-command-builder/) [ HTTP Status Code Reference http-status-code-reference Look up an HTTP status code or browse the registered codes by class with their defining RFCs. 1cr ](/tools/http-status-code-reference/) [ Unix Permission Calculator unix-permission-calculator Convert Unix permission digits into symbolic permissions and chmod notation. 1cr ](/tools/unix-permission-calculator/) Logic [ Logic Gate Simulator logic-gate-simulator Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. 1cr ](/tools/logic-gate-simulator/) Text Conversion [ Text to SQL List Converter text-to-sql-list-converter Convert lines of text into quoted SQL IN-list or tuple syntax. 1cr ](/tools/text-to-sql-list-converter/) ## [Education](/tools/category/education/) 6 endpoints [full page →](/tools/category/education/) Attendance [ Attendance Percentage Calculator attendance-percentage-calculator Calculate attendance percentage, classes needed for a target, and safe skips. 1cr ](/tools/attendance-percentage-calculator/) Grades [ CGPA to Percentage Converter cgpa-to-percentage-converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. 1cr ](/tools/cgpa-to-percentage-converter/) [ GPA Calculator gpa-calculator Calculate term and cumulative GPA from letter grades and credits. 1cr ](/tools/gpa-calculator/) [ Grade Calculator grade-calculator Calculate weighted grades and the score needed on remaining work. 1cr ](/tools/grade-calculator/) Student Calculators [ Learning Curve Calculator learning-curve-calculator Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. 1cr ](/tools/learning-curve-calculator/) [ Percentage to CGPA Converter percentage-to-cgpa-converter Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. 1cr ](/tools/percentage-to-cgpa-converter/) ## [Electronics](/tools/category/electronics/) 7 endpoints [full page →](/tools/category/electronics/) AC Circuits [ 3-Phase Power Calculator 3-phase-power-calculator Calculate balanced three-phase real, apparent, and reactive power. 1cr ](/tools/3-phase-power-calculator/) [ Amps to Watts Calculator amps-to-watts-calculator Convert current and voltage into real, apparent, and reactive power. 1cr ](/tools/amps-to-watts-calculator/) [ Inductive Reactance Calculator inductive-reactance-calculator Solve XL = 2πfL for inductive reactance, frequency, or inductance. 1cr ](/tools/inductive-reactance-calculator/) Circuits [ Transformer Calculator transformer-calculator Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. 1cr ](/tools/transformer-calculator/) [ Voltage Divider Calculator voltage-divider-calculator Calculate voltage divider output or solve for R1 or R2. 1cr ](/tools/voltage-divider-calculator/) Runtime [ Battery Life Calculator battery-life-calculator Estimate battery runtime from capacity, consumption, and efficiency. 1cr ](/tools/battery-life-calculator/) Wiring [ Voltage Drop Calculator voltage-drop-calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. 1cr ](/tools/voltage-drop-calculator/) ## [Engineering](/tools/category/engineering/) 3 endpoints [full page →](/tools/category/engineering/) Electrical [ Wire Gauge Calculator wire-gauge-calculator Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. 1cr ](/tools/wire-gauge-calculator/) Electronics Tools [ Impedance Calculator impedance-calculator Calculate series or parallel RLC impedance, phase, resonance, and power factor. 1cr ](/tools/impedance-calculator/) Physics Calculators [ Hydraulic Cylinder Force Calculator hydraulic-cylinder-force-calculator Calculate hydraulic cylinder extend and retract force from pressure and diameters. 1cr ](/tools/hydraulic-cylinder-force-calculator/) ## [Environment](/tools/category/environment/) 1 endpoint [full page →](/tools/category/environment/) [ Water Usage Calculator water-usage-calculator Estimate household daily, monthly, and annual water use by activity. 1cr ](/tools/water-usage-calculator/) ## [Event](/tools/category/event/) 1 endpoint [full page →](/tools/category/event/) [ Wedding Alcohol Calculator wedding-alcohol-calculator Estimate wine, beer, spirits, and champagne quantities for an event. 1cr ](/tools/wedding-alcohol-calculator/) ## [Fitness](/tools/category/fitness/) 3 endpoints [full page →](/tools/category/fitness/) Pace [ Running Pace Calculator running-pace-calculator Calculate running pace per kilometer and mile plus speed. 1cr ](/tools/running-pace-calculator/) Sports Calculators [ Swimming Pace Calculator swimming-pace-calculator Calculate swim pace per 100m/100yd, speed, lap splits, race estimates, and pace zone. 1cr ](/tools/swimming-pace-calculator/) [ Vertical Jump Calculator vertical-jump-calculator Calculate vertical jump height, rating, percentile estimate, and optional power estimates. 1cr ](/tools/vertical-jump-calculator/) ## [Food](/tools/category/food/) 3 endpoints [full page →](/tools/category/food/) Coffee [ Coffee Ratio by Cups Calculator coffee-ratio-by-cups-calculator Calculate coffee and water amounts by cup count using standard, strong, light or custom brew ratios. 1cr ](/tools/coffee-ratio-by-cups-calculator/) Planning Calculators [ Pizza Party Planner pizza-party-planner Estimate pizzas, slices, vegetarian split, leftovers, and optional cost for a group. 1cr ](/tools/pizza-party-planner/) [ Taco Bar Calculator taco-bar-calculator Estimate taco bar shells, protein, toppings, sides, and extras for a group. 1cr ](/tools/taco-bar-calculator/) ## [Gaming](/tools/category/gaming/) 1 endpoint [full page →](/tools/category/gaming/) [ Game Sensitivity Converter game-sensitivity-converter Convert FPS mouse sensitivity using cm per 360 degrees. 1cr ](/tools/game-sensitivity-converter/) ## [Geometry](/tools/category/geometry/) 4 endpoints [full page →](/tools/category/geometry/) Surface Area [ Surface Area Calculator surface-area-calculator Calculate the surface area of spheres, cylinders, cuboids and cones. 1cr ](/tools/surface-area-calculator/) [ Surface Area of a Sphere Calculator surface-area-of-sphere-calculator Calculate the surface area, volume and diameter of a sphere from its radius. 1cr ](/tools/surface-area-of-sphere-calculator/) Volume [ Volume Calculator volume-calculator Calculate the volume of spheres, cylinders, cuboids, cones and rectangular pyramids. 1cr ](/tools/volume-calculator/) [ Volume of a Sphere Calculator volume-of-sphere-calculator Calculate the volume, surface area and diameter of a sphere from its radius. 1cr ](/tools/volume-of-sphere-calculator/) ## [Health](/tools/category/health/) 26 endpoints [full page →](/tools/category/health/) Body Metrics [ BMI Calculator bmi-calculator Calculate Body Mass Index, BMI Prime, and healthy weight range in metric or imperial units. 1cr ](/tools/bmi-calculator/) [ Body Fat Percentage Calculator body-fat-percentage-calculator Estimate body fat percentage with the US Navy method and age-adjusted healthy ranges. 1cr ](/tools/body-fat-percentage-calculator/) [ Body Surface Area Calculator body-surface-area-calculator Estimate body surface area using Mosteller, Du Bois, or Haycock formulas. 1cr ](/tools/body-surface-area-calculator/) [ Child Height Predictor child-height-predictor Predicted adult height from parents' heights via the mid-parental (Tanner) method with range and adult percentile. 1cr ](/tools/child-height-predictor/) [ Ideal Weight Calculator ideal-weight-calculator Ideal body weight via Devine, Robinson, Miller, and Hamwi formulas with frame-size adjustment and healthy BMI range. 1cr ](/tools/ideal-weight-calculator/) [ Lean Body Mass Calculator lean-body-mass-calculator Lean body mass via Boer, James, and Hume equations with estimated body fat percentage and category. 1cr ](/tools/lean-body-mass-calculator/) [ Waist to Hip Ratio Calculator waist-to-hip-ratio-calculator Waist-to-hip ratio with WHO risk category, body shape pattern, and the waist target for a healthy ratio. 1cr ](/tools/waist-to-hip-ratio-calculator/) Diabetes [ Blood Sugar Converter blood-sugar-converter Convert blood glucose between mg/dL and mmol/L with fasting-range category and reference table. 1cr ](/tools/blood-sugar-converter/) [ HbA1c Calculator hba1c-calculator Convert between HbA1c percentage and estimated average glucose (mg/dL and mmol/L) with ADA interpretation. 1cr ](/tools/hba1c-calculator/) Fitness [ Heart Rate Zone Calculator heart-rate-zone-calculator Estimate heart-rate training zones using max-heart-rate or Karvonen formulas. 1cr ](/tools/heart-rate-zone-calculator/) [ Max Heart Rate Calculator max-heart-rate-calculator Maximum heart rate from six validated formulas (Fox, Tanaka, Gellish, Gulati, Nes, Arena) with training zones. 1cr ](/tools/max-heart-rate-calculator/) [ One Rep Max (1RM) Calculator one-rep-max-calculator One-rep max estimated by seven formulas (Brzycki, Epley, Lander, Lombardi, Mayhew, O'Conner, Wathan) with training zones and warm-up sets. 1cr ](/tools/one-rep-max-calculator/) [ Steps to Distance Calculator steps-to-distance-calculator Estimate distance walked or run from a step count and height. 1cr ](/tools/steps-to-distance-calculator/) Hydration [ Water Intake Calculator water-intake-calculator Estimate daily water intake from body weight, activity, and hot-weather adjustment. 1cr ](/tools/water-intake-calculator/) Kidney Function [ Creatinine Clearance Calculator creatinine-clearance-calculator Estimate creatinine clearance with the Cockcroft-Gault equation and CKD stage. 1cr ](/tools/creatinine-clearance-calculator/) [ FENa Calculator fena-calculator Fractional excretion of sodium (FENa) with prerenal / indeterminate / intrinsic-renal interpretation. 1cr ](/tools/fena-calculator/) [ GFR Calculator gfr-calculator Estimated GFR via CKD-EPI 2021 (primary), CKD-EPI 2009, MDRD, and Cockcroft-Gault with CKD staging. 1cr ](/tools/gfr-calculator/) Lab Values [ ANC Calculator anc-calculator Absolute neutrophil count from CBC values with NCI CTCAE neutropenia grading. 1cr ](/tools/anc-calculator/) [ BUN to Creatinine Ratio Calculator bun-to-creatinine-ratio-calculator Calculate the BUN to creatinine ratio with unit conversion and reference range. 1cr ](/tools/bun-to-creatinine-ratio-calculator/) [ Corrected Calcium Calculator corrected-calcium-calculator Albumin-corrected calcium (Payne 0.8 or modified 0.6 coefficient) with clinical interpretation. 1cr ](/tools/corrected-calcium-calculator/) [ Corrected Sodium Calculator corrected-sodium-calculator Hyperglycemia-corrected sodium via Katz and Hillier formulas with severity interpretation. 1cr ](/tools/corrected-sodium-calculator/) Nutrition [ Caffeine Limit Calculator caffeine-overdose-calculator Estimate a safe daily caffeine limit and what it equals in drinks. 1cr ](/tools/caffeine-overdose-calculator/) [ Calorie Deficit Calculator calorie-deficit-calculator Estimate daily calorie deficit, target intake, and projected weight-loss trend. 1cr ](/tools/calorie-deficit-calculator/) [ Protein Intake Calculator protein-intake-calculator Estimate daily protein intake and per-meal targets from weight and training goal. 1cr ](/tools/protein-intake-calculator/) Pregnancy [ Due Date Calculator due-date-calculator Pregnancy due date via Naegele's rule from LMP, conception date, or ultrasound, with trimester milestones. 1cr ](/tools/due-date-calculator/) [ Gestational Age Calculator gestational-age-calculator Work out gestational age in weeks and days plus the estimated due date. 1cr ](/tools/gestational-age-calculator/) ## [Home](/tools/category/home/) 6 endpoints [full page →](/tools/category/home/) Energy Calculators [ Appliance Energy Cost Calculator appliance-energy-cost-calculator Daily, monthly, and annual electricity cost for an appliance from wattage, usage hours, and rate. 1cr ](/tools/appliance-energy-cost-calculator/) [ Light Bulb Savings Calculator light-bulb-savings-calculator Compare bulb energy, replacement cost, total savings, and payback period. 1cr ](/tools/light-bulb-savings-calculator/) Garden Calculators [ Mulch, Soil & Gravel Calculator mulch-soil-gravel-calculator Volume, weight, bag count, and truck-load estimate for mulch, topsoil, gravel, or sand over a rectangular area. 1cr ](/tools/mulch-soil-gravel-calculator/) [ Plant Spacing Calculator plant-spacing-calculator Estimate plant counts for square and triangular garden spacing layouts. 1cr ](/tools/plant-spacing-calculator/) Utilities [ Gas vs Electric Cost Comparison gas-vs-electric-cost-comparison Compare gas and electric annual running costs and CO2 estimates. 1cr ](/tools/gas-vs-electric-cost-comparison/) [ Shower Cost Calculator shower-cost-calculator Estimate water use, energy use, and cost for showers. 1cr ](/tools/shower-cost-calculator/) ## [Lifestyle](/tools/category/lifestyle/) 18 endpoints [full page →](/tools/category/lifestyle/) Astrology [ What Is My Zodiac Sign what-is-my-zodiac-sign Return the western zodiac sign, element and modality for a birth date. 1cr ](/tools/what-is-my-zodiac-sign/) Crafts [ Beading Pattern Calculator beading-pattern-calculator Calculate beads needed from strand length and a repeating bead pattern. 1cr ](/tools/beading-pattern-calculator/) [ Yarn Calculator yarn-calculator Estimate yarn yards, meters, grams, and skeins for common knitting/crochet projects. 1cr ](/tools/yarn-calculator/) Fitness [ Bench Press Calculator bench-press-calculator Estimate bench press one-rep max, formula comparisons, and training zones. 1cr ](/tools/bench-press-calculator/) [ BMR Calculator bmr-calculator Calculate BMR, RMR estimate, TDEE, macro estimates, and activity-level calorie needs. 1cr ](/tools/bmr-calculator/) Fun [ Love Compatibility Calculator love-compatibility-calculator Deterministic name-based compatibility score, for entertainment. 1cr ](/tools/love-compatibility-calculator/) Health [ BAC Calculator bac-calculator Estimate blood alcohol content using standard-drink counts and the Widmark formula. 1cr ](/tools/bac-calculator/) [ Biological Age Calculator biological-age-calculator Estimate biological age from lifestyle and health-factor adjustments. 1cr ](/tools/biological-age-calculator/) Home [ Dishwasher Load Optimizer dishwasher-load-optimizer Estimate dishwasher rack utilization, cycles needed, and item placement. 1cr ](/tools/dishwasher-load-optimizer/) Numerology [ Angel Number Calculator angel-number-calculator Find recurring angel-number interpretations or derive one from a birth date. 1cr ](/tools/angel-number-calculator/) [ Numerology Calculator numerology-calculator Life path, expression and soul urge numbers from a birth date and name. 1cr ](/tools/numerology-calculator/) [ What Is My Lucky Number what-is-my-lucky-number Derive a lucky number deterministically from a birth date. 1cr ](/tools/what-is-my-lucky-number/) Pets [ Aquarium Heater Wattage Calculator aquarium-heater-wattage-calculator Estimate aquarium heater wattage from tank size and temperature gap. 1cr ](/tools/aquarium-heater-wattage-calculator/) [ Bird Cage Size Calculator bird-cage-size-calculator Recommend minimum bird cage dimensions and bar spacing by species. 1cr ](/tools/bird-cage-size-calculator/) [ Cat Litter Box Calculator cat-litter-box-calculator Estimate recommended cat litter boxes, placement, and monthly litter use. 1cr ](/tools/cat-litter-box-calculator/) [ Cat Years Calculator cat-years-calculator Convert cat age into human-equivalent years and life stage. 1cr ](/tools/cat-years-calculator/) [ Dog Years Calculator dog-years-calculator Convert dog age to human-equivalent years by breed size. 1cr ](/tools/dog-years-calculator/) Size Conversion [ Clothing Size Converter clothing-size-converter Convert clothing sizes between alpha, US, UK, EU, JP, KR, and measurements. 1cr ](/tools/clothing-size-converter/) ## [Marketing](/tools/category/marketing/) 12 endpoints [full page →](/tools/category/marketing/) Advertising [ CTR Calculator ctr-calculator Calculate click-through rate, required clicks for a target CTR, or bulk campaign CTR. 1cr ](/tools/ctr-calculator/) Email [ Email Open Rate Calculator email-open-rate-calculator Calculate email delivery rate and open rate from campaign counts. 1cr ](/tools/email-open-rate-calculator/) [ Unsubscribe Rate Calculator unsubscribe-rate-calculator Calculate campaign unsubscribe rate and subscriber-list loss rate. 1cr ](/tools/unsubscribe-rate-calculator/) Funnels [ Conversion Rate Calculator conversion-rate-calculator Calculate conversion rate from visitors and conversions. 1cr ](/tools/conversion-rate-calculator/) ROI [ Social Media ROI Calculator social-media-roi-calculator Calculate social media campaign ROI, ROAS, conversion rate, and unit costs. 2cr ](/tools/social-media-roi-calculator/) Retention [ Churn Rate Calculator churn-rate-calculator Calculate churn, retention, ending customers, and net customer growth. 1cr ](/tools/churn-rate-calculator/) SaaS Metrics [ ARPU Calculator arpu-calculator Calculate ARPU for a period plus monthly and annualized ARPU. 1cr ](/tools/arpu-calculator/) Surveys [ Net Promoter Score Calculator net-promoter-score-calculator Calculate NPS from promoter, passive, and detractor counts. 1cr ](/tools/net-promoter-score-calculator/) Unit Costs [ Cost Per Lead Calculator cost-per-lead-calculator Calculate cost per lead and optional funnel metrics. 1cr ](/tools/cost-per-lead-calculator/) Unit Economics [ Customer Acquisition Cost Calculator customer-acquisition-cost-calculator Calculate CAC from marketing spend, sales spend, and new customers. 1cr ](/tools/customer-acquisition-cost-calculator/) [ Customer Lifetime Value Calculator customer-lifetime-value-calculator Estimate LTV from order value, purchase frequency, gross margin, and lifespan. 1cr ](/tools/customer-lifetime-value-calculator/) [ Customer Lifetime Value (CLV) Calculator customer-lifetime-value-clv-calculator Customer lifetime value from ARPU, gross margin, and retention rate via a discounted-perpetuity model, with CLV:CAC health rating. 1cr ](/tools/customer-lifetime-value-clv-calculator/) ## [Miscellaneous](/tools/category/miscellaneous/) 13 endpoints [full page →](/tools/category/miscellaneous/) Automotive [ Engine Displacement Calculator engine-displacement-calculator Calculate total and per-cylinder engine displacement from bore, stroke and cylinder count. 1cr ](/tools/engine-displacement-calculator/) Construction [ Bend Allowance Calculator bend-allowance-calculator Calculate sheet-metal bend allowance, setback, deduction and flat-pattern length. 1cr ](/tools/bend-allowance-calculator/) Electronics [ Battery Series/Parallel Calculator battery-series-parallel-calculator Calculate battery-pack voltage, capacity, energy, resistance, discharge current and runtime from an S/P layout. 1cr ](/tools/battery-series-parallel-calculator/) [ kVA Calculator kva-calculator Solve kVA, kW, kVAR, volts or amps for DC, single-phase and three-phase systems. 1cr ](/tools/kva-calculator/) [ RC Low-Pass Filter Calculator rc-low-pass-filter-calculator Calculate RC low-pass cutoff, time constant, gain, attenuation and phase at a selected frequency. 1cr ](/tools/rc-low-pass-filter-calculator/) [ Resistors in Series Calculator resistors-in-series-calculator Add up to 200 series resistors and report each resistor's voltage-divider share. 1cr ](/tools/resistors-in-series-calculator/) [ Series/Parallel Capacitor Calculator series-parallel-capacitor-calculator Calculate equivalent capacitance for a list of capacitors connected in series or parallel. 1cr ](/tools/series-parallel-capacitor-calculator/) [ Watts to Amps Calculator watts-to-amps-calculator Convert watts to amps for DC, single-phase AC or three-phase AC systems. 1cr ](/tools/watts-to-amps-calculator/) General Tools [ Tire Size Calculator tire-size-calculator Calculate tire sidewall, diameter, circumference, and revolutions per mile. 1cr ](/tools/tire-size-calculator/) Physics [ Mechanical Advantage Calculator mechanical-advantage-calculator Calculate ideal and efficiency-adjusted mechanical advantage for levers, pulleys, ramps and gears. 1cr ](/tools/mechanical-advantage-calculator/) Student Calculators [ Test Score Calculator test-score-calculator Convert earned and total test points into a percentage, letter grade, and GPA points. 1cr ](/tools/test-score-calculator/) [ Weighted Grade Calculator weighted-grade-calculator Calculate a weighted course grade from category weights and scores. 1cr ](/tools/weighted-grade-calculator/) Time [ Daily Time Savings Calculator daily-time-savings-calculator Calculate yearly, monthly, and weekly time saved from a small daily savings habit. 1cr ](/tools/daily-time-savings-calculator/) ## [Network](/tools/category/network/) 3 endpoints [full page →](/tools/category/network/) IP [ IP Address to Hex Converter ip-address-to-hex-converter Convert IPv4 or IPv6 addresses to integer, hex, and binary formats. 1cr ](/tools/ip-address-to-hex-converter/) [ IP Subnet Calculator ip-subnet-calculator Calculate CIDR subnet address ranges, masks, and host counts. 1cr ](/tools/ip-subnet-calculator/) MAC [ MAC Address Analyzer mac-address-analyzer Normalize and inspect MAC address type and administration bits. 1cr ](/tools/mac-address-analyzer/) ## [Physics](/tools/category/physics/) 2 endpoints [full page →](/tools/category/physics/) Mechanics [ Friction Calculator friction-calculator Calculate static and kinetic friction, sliding state, and acceleration from mass or normal force. 1cr ](/tools/friction-calculator/) Thermodynamics [ Boiling Point Calculator boiling-point-calculator Calculate water boiling point from altitude or atmospheric pressure. 1cr ](/tools/boiling-point-calculator/) ## [Productivity](/tools/category/productivity/) 1 endpoint [full page →](/tools/category/productivity/) [ Keyboard Mileage Calculator keyboard-mileage-calculator Estimate finger travel distance from typing speed and time spent typing. 1cr ](/tools/keyboard-mileage-calculator/) ## [Science](/tools/category/science/) 87 endpoints [full page →](/tools/category/science/) Astronomy [ Astronomical Unit Converter astronomical-unit-converter Convert astronomical distances among AU, light-time, parsecs, kilometers, and miles. 1cr ](/tools/astronomical-unit-converter/) Chemical Calculators [ Dilution Calculator dilution-calculator Solve M1V1 = M2V2 for stock concentration, stock volume, final concentration, or final volume. 1cr ](/tools/dilution-calculator/) [ Empirical Formula Calculator empirical-formula-calculator Empirical formula from element mass percentages or masses, with optional molecular formula when a molecular mass is supplied. 1cr ](/tools/empirical-formula-calculator/) [ Limiting Reactant Calculator limiting-reactant-calculator Find the limiting reactant, theoretical yield, leftover excess, and percent yield from a balanced equation. 1cr ](/tools/limiting-reactant-calculator/) [ Molality Calculator molality-calculator Calculate molality and colligative freezing and boiling point shifts. 1cr ](/tools/molality-calculator/) [ Molar Mass Calculator molar-mass-calculator Molar mass of a chemical formula with per-element atom count, contribution, and percentage composition, supporting nested parentheses. 1cr ](/tools/molar-mass-calculator/) [ Molarity Calculator molarity-calculator Calculate molarity, solute mass, or solution volume from mass, molar mass, and volume. 1cr ](/tools/molarity-calculator/) [ Mole/Gram/Particle Converter mole-gram-particle-converter Convert among moles, grams, and particles using molar mass and Avogadro's constant. 1cr ](/tools/mole-gram-particle-converter/) [ Nernst Equation Calculator nernst-equation-calculator Calculate electrochemical cell potential under non-standard conditions. 1cr ](/tools/nernst-equation-calculator/) [ Osmotic Pressure Calculator osmotic-pressure-calculator Calculate osmotic pressure from molarity, temperature, and van't Hoff factor. 1cr ](/tools/osmotic-pressure-calculator/) [ pKa to Ka Converter pka-to-ka-converter Convert between pKa, Ka, pKb, and Kb for an acid-base conjugate pair. 1cr ](/tools/pka-to-ka-converter/) Chemistry [ Beer-Lambert Law Calculator beer-lambert-law-calculator Solve A = epsilon l c for absorbance, molar absorptivity, concentration, or path length. 1cr ](/tools/beer-lambert-law-calculator/) [ Boiling Point Elevation Calculator boiling-point-elevation-calculator Calculate boiling point elevation from molality, Kb, and van't Hoff factor. 1cr ](/tools/boiling-point-elevation-calculator/) [ Chemical Equation Balancer chemical-equation-balancer Balance a chemical equation by solving the element matrix for the smallest whole-number coefficients. 1cr ](/tools/chemical-equation-balancer/) [ Electron Configuration Calculator electron-configuration-calculator Electron configuration of any element or ion, with noble-gas notation, shells, and valence electrons. 1cr ](/tools/electron-configuration-calculator/) [ Freezing Point Depression Calculator freezing-point-depression-calculator Freezing point depression (delta-Tf = i * Kf * m) from molality or from solute/solvent mass, with a van't Hoff factor for ionic solutes. 1cr ](/tools/freezing-point-depression-calculator/) [ Henderson-Hasselbalch Calculator henderson-hasselbalch-calculator Buffer pH from pKa and the conjugate base/acid ratio, or solve for the ratio or the pKa, via the Henderson-Hasselbalch equation. 1cr ](/tools/henderson-hasselbalch-calculator/) [ Percent Yield Calculator percent-yield-calculator Solve percent yield, actual yield, or theoretical yield. 1cr ](/tools/percent-yield-calculator/) [ pH Calculator ph-calculator pH, pOH, [H+], and [OH-] from any one of them, with acidity classification at 25 C. 1cr ](/tools/ph-calculator/) Electrical [ Parallel Resistor Calculator parallel-resistor-calculator Calculate equivalent resistance and current sharing for resistors in parallel. 1cr ](/tools/parallel-resistor-calculator/) [ Power Factor Calculator power-factor-calculator Calculate power factor, reactive power, or capacitor correction values. 1cr ](/tools/power-factor-calculator/) [ RC Time Constant Calculator rc-time-constant-calculator Calculate RC circuit time constant, cutoff frequency, and charging or discharging levels. 1cr ](/tools/rc-time-constant-calculator/) Electronics [ 555 Timer Calculator 555-timer-calculator Calculate 555 timer astable frequency, period, duty cycle, or monostable pulse width. 1cr ](/tools/555-timer-calculator/) [ Capacitor Calculator capacitor-calculator Calculate capacitor charge, stored energy, reactance, RC timing, or decode ceramic capacitor codes. 1cr ](/tools/capacitor-calculator/) [ Decibel (dB) Calculator decibel-db-calculator Calculate power dB, voltage dB, dB ratios, and dBm/dBW/watt conversions. 1cr ](/tools/decibel-db-calculator/) [ Ohm's Law Calculator ohm-s-law-calculator Calculate voltage, current, resistance, and power from any two known values. 1cr ](/tools/ohm-s-law-calculator/) [ Parallel Capacitor Calculator parallel-capacitor-calculator Calculate equivalent capacitance for capacitors in parallel. 1cr ](/tools/parallel-capacitor-calculator/) [ Resistor Color Code Calculator resistor-color-code-calculator Calculate 4-band, 5-band, and 6-band resistor values from color bands. 1cr ](/tools/resistor-color-code-calculator/) [ Resonant Frequency Calculator resonant-frequency-calculator Calculate LC/RLC resonant frequency, inductance, capacitance, impedance, Q factor, and bandwidth. 1cr ](/tools/resonant-frequency-calculator/) [ Series Resistor Calculator series-resistor-calculator Calculate equivalent resistance for resistors in series. 1cr ](/tools/series-resistor-calculator/) Fluid Mechanics [ Bernoulli Equation Calculator bernoulli-equation-calculator Solve one Bernoulli streamline pressure, velocity, or height term. 1cr ](/tools/bernoulli-equation-calculator/) [ Reynolds Number Calculator reynolds-number-calculator Reynolds number with laminar/transitional/turbulent classification using geometry-specific thresholds for pipes, plates, and channels. 1cr ](/tools/reynolds-number-calculator/) Mechanics [ Belt Length Calculator belt-length-calculator Calculate open or crossed belt length, wrap angles, and optional belt speed. 1cr ](/tools/belt-length-calculator/) [ Bolt Torque Calculator bolt-torque-calculator Recommended bolt tightening torque and preload for metric sizes and ISO grades, by the short-form K method and VDI 2230. 1cr ](/tools/bolt-torque-calculator/) [ Gear Ratio Calculator (Mechanical) gear-ratio-calculator-mechanical Calculate gear ratio, output RPM, torque, and mechanical advantage. 1cr ](/tools/gear-ratio-calculator-mechanical/) Physics [ Angular Velocity Calculator angular-velocity-calculator Convert angular velocity between rad/s, RPM, Hz, deg/s, and period, or derive it from linear speed and radius with tangential and centripetal results. 1cr ](/tools/angular-velocity-calculator/) [ Density Calculator density-calculator Solve density, mass, or volume with common unit conversions. 1cr ](/tools/density-calculator/) [ Doppler Effect Calculator doppler-effect-calculator Observed frequency shift for moving sources and observers, classical for sound or relativistic for light. 1cr ](/tools/doppler-effect-calculator/) [ Falling Through Earth Calculator falling-through-earth-calculator Calculate idealized uniform-density gravity-train travel time and speed. 1cr ](/tools/falling-through-earth-calculator/) [ Force Calculator force-calculator Solve Newton's second law for force, mass, or acceleration with common unit conversions. 1cr ](/tools/force-calculator/) [ Heat Transfer Calculator heat-transfer-calculator Calculate heat transfer by conduction, convection, or radiation. 1cr ](/tools/heat-transfer-calculator/) [ Kinetic Energy Calculator kinetic-energy-calculator Solve kinetic energy, mass, or velocity with KE = 1/2 m v^2 and unit conversions. 1cr ](/tools/kinetic-energy-calculator/) [ Lens Equation Calculator lens-equation-calculator Thin-lens equation solver for image distance, focal length, or object distance with magnification and image properties. 1cr ](/tools/lens-equation-calculator/) [ Moment of Inertia Calculator moment-of-inertia-calculator Area moment of inertia (rectangle, circle, hollow circle, triangle) or mass moment of inertia (rod, cylinder, sphere, hollow cylinder), in SI units. 1cr ](/tools/moment-of-inertia-calculator/) [ Momentum Calculator momentum-calculator Calculate linear momentum and kinetic energy from mass and velocity. 1cr ](/tools/momentum-calculator/) [ Pendulum Period Calculator pendulum-period-calculator Simple pendulum solver for period, length, gravity, or frequency with planet presets and a large-amplitude correction. 1cr ](/tools/pendulum-period-calculator/) [ Potential Energy Calculator potential-energy-calculator Calculate gravitational or elastic potential energy and solve for missing variables. 1cr ](/tools/potential-energy-calculator/) [ Projectile Motion Calculator projectile-motion-calculator Projectile range, max height, flight time, and impact speed/angle from launch speed, angle, height, and gravity. 1cr ](/tools/projectile-motion-calculator/) [ Snell's Law Calculator snell-s-law-calculator Refraction angles, indices, critical angle, and Brewster angle from Snell's law with a built-in material library. 1cr ](/tools/snell-s-law-calculator/) [ Specific Heat Capacity Calculator specific-heat-capacity-calculator Solve Q = m*c*dT for heat, mass, specific heat, or final temperature with a substance library and mixed units. 1cr ](/tools/specific-heat-capacity-calculator/) [ Spring Constant Calculator spring-constant-calculator Hooke's law solver for force, spring constant, or displacement, plus elastic energy and oscillation period. 1cr ](/tools/spring-constant-calculator/) [ Stopping Distance Calculator stopping-distance-calculator Vehicle reaction + braking stopping distance by road condition (dry/wet/snow/ice), km/h or mph. 1cr ](/tools/stopping-distance-calculator/) [ Terminal Velocity Calculator terminal-velocity-calculator Terminal velocity from mass, drag coefficient, area, and fluid density, with object presets and approach-time milestones. 1cr ](/tools/terminal-velocity-calculator/) [ Thermal Expansion Calculator thermal-expansion-calculator Calculate linear, area, or volume thermal expansion for common materials. 1cr ](/tools/thermal-expansion-calculator/) [ Torque Calculator torque-calculator Solve torque, force, lever arm distance, or angle using tau = F r sin(theta). 1cr ](/tools/torque-calculator/) [ Velocity Calculator velocity-calculator Calculate average velocity, distance, time, or relative velocity with distance, time, and speed units. 1cr ](/tools/velocity-calculator/) [ Work and Power Calculator work-and-power-calculator Calculate mechanical work and power with common unit conversions. 1cr ](/tools/work-and-power-calculator/) [ Work Calculator work-calculator Calculate mechanical work from force, distance, and angle. 1cr ](/tools/work-calculator/) Physics Calculators [ Buoyancy Calculator buoyancy-calculator Calculate buoyant force, object density, apparent weight, and float/sink verdict. 1cr ](/tools/buoyancy-calculator/) [ Coulomb's Law Calculator coulomb-s-law-calculator Electrostatic force between two point charges via Coulomb's law, solving for force, charge, or distance with dielectric media. 1cr ](/tools/coulomb-s-law-calculator/) [ de Broglie Wavelength Calculator de-broglie-wavelength-calculator Calculate a particle's de Broglie wavelength from velocity or kinetic energy. 1cr ](/tools/de-broglie-wavelength-calculator/) [ E=mc² Calculator e-mc-calculator Convert mass and energy using E=mc² with configurable conversion efficiency. 1cr ](/tools/e-mc-calculator/) [ Electricity Calculator electricity-calculator Solve voltage, current, resistance, and power from any two known Ohm's law values. 1cr ](/tools/electricity-calculator/) [ Escape Velocity Calculator escape-velocity-calculator Calculate escape velocity for preset or custom celestial bodies. 1cr ](/tools/escape-velocity-calculator/) [ Gravitational Force Calculator gravitational-force-calculator Solve Newton's universal gravitation equation for force, mass, or distance. 1cr ](/tools/gravitational-force-calculator/) [ Ideal Gas Law Calculator ideal-gas-law-calculator Solve PV=nRT for pressure, volume, moles, or temperature with unit conversion. 1cr ](/tools/ideal-gas-law-calculator/) [ Kepler's Third Law Calculator kepler-s-third-law-calculator Calculate orbital period and mean velocity from semi-major axis and central mass. 1cr ](/tools/kepler-s-third-law-calculator/) [ Photon Energy Calculator photon-energy-calculator Convert photon wavelength, frequency, and energy using E=hf=hc/lambda. 1cr ](/tools/photon-energy-calculator/) [ Time Dilation Calculator time-dilation-calculator Relativistic time dilation, Lorentz factor, clock rate, and optional length contraction at any sub-light speed. 1cr ](/tools/time-dilation-calculator/) Pressure [ Bar to PSI Converter bar-to-psi-converter Convert bar and PSI, including kPa, MPa, atm, torr, inHg, and Pa. 1cr ](/tools/bar-to-psi-converter/) [ psi to kPa Converter psi-to-kpa-converter Convert pounds per square inch to kilopascals and related pressure units. 1cr ](/tools/psi-to-kpa-converter/) Temperature [ Celsius to Fahrenheit Calculator celsius-to-fahrenheit-calculator Convert Celsius to Fahrenheit and related temperature scales. 1cr ](/tools/celsius-to-fahrenheit-calculator/) [ Celsius to Kelvin Converter celsius-to-kelvin-converter Convert Celsius to Kelvin and related temperature scales. 1cr ](/tools/celsius-to-kelvin-converter/) [ Celsius to Rankine Converter celsius-to-rankine-converter Convert Celsius to Rankine and related temperature scales. 1cr ](/tools/celsius-to-rankine-converter/) [ Fahrenheit to Celsius Calculator fahrenheit-to-celsius-calculator Convert Fahrenheit to Celsius and related temperature scales. 1cr ](/tools/fahrenheit-to-celsius-calculator/) [ Fahrenheit to Kelvin Converter fahrenheit-to-kelvin-converter Convert Fahrenheit to Kelvin and related temperature scales. 1cr ](/tools/fahrenheit-to-kelvin-converter/) [ Fahrenheit to Rankine Converter fahrenheit-to-rankine-converter Convert Fahrenheit to Rankine and related temperature scales. 1cr ](/tools/fahrenheit-to-rankine-converter/) [ Kelvin to Celsius Converter kelvin-to-celsius-converter Convert Kelvin to Celsius and related temperature scales. 1cr ](/tools/kelvin-to-celsius-converter/) [ Kelvin to Fahrenheit Converter kelvin-to-fahrenheit-converter Convert Kelvin to Fahrenheit and related temperature scales. 1cr ](/tools/kelvin-to-fahrenheit-converter/) [ Rankine to Celsius Converter rankine-to-celsius-converter Convert Rankine to Celsius and related temperature scales. 1cr ](/tools/rankine-to-celsius-converter/) [ Rankine to Fahrenheit Converter rankine-to-fahrenheit-converter Convert Rankine to Fahrenheit and related temperature scales. 1cr ](/tools/rankine-to-fahrenheit-converter/) Unit Converters [ Energy Converter energy-converter Convert energy between joules, calories, BTU, watt-hours, electronvolts, ergs, and therms. 1cr ](/tools/energy-converter/) [ Power Converter power-converter Convert power among watts, kilowatts, horsepower, BTU per hour, refrigeration tons, and related units. 1cr ](/tools/power-converter/) [ Ultimate Frequency & Wavelength Converter ultimate-frequency-wavelength-converter Convert between frequency and wavelength using a configurable propagation speed and identify the spectrum band. 1cr ](/tools/ultimate-frequency-wavelength-converter/) Weather [ Dew Point Calculator dew-point-calculator Calculate dew point temperature from air temperature and relative humidity using the Magnus formula. 1cr ](/tools/dew-point-calculator/) [ Heat Index Calculator heat-index-calculator Calculate the NWS heat index (apparent temperature) from air temperature and relative humidity. 1cr ](/tools/heat-index-calculator/) [ Wind Chill Calculator wind-chill-calculator Calculate NWS wind chill and frostbite risk from air temperature and wind speed. 1cr ](/tools/wind-chill-calculator/) ## [Sports](/tools/category/sports/) 15 endpoints [full page →](/tools/category/sports/) Baseball [ At Bats per Home Run Calculator at-bats-per-home-run-calculator Calculate baseball at-bats per home run ratio and home run rate. 1cr ](/tools/at-bats-per-home-run-calculator/) [ Batting Average Calculator batting-average-calculator Calculate baseball batting average from hits and at-bats. 1cr ](/tools/batting-average-calculator/) [ ERA Calculator era-calculator Calculate baseball earned run average. 1cr ](/tools/era-calculator/) [ FIP Calculator fip-calculator Calculate baseball fielding independent pitching. 1cr ](/tools/fip-calculator/) [ On Base Percentage Calculator on-base-percentage-calculator Calculate on-base percentage with batting average and optional OPS. 1cr ](/tools/on-base-percentage-calculator/) [ OPS Calculator ops-calculator Calculate baseball on-base plus slugging with OBP and SLG components. 1cr ](/tools/ops-calculator/) [ Slugging Percentage Calculator slugging-percentage-calculator Calculate baseball slugging percentage from hit types. 1cr ](/tools/slugging-percentage-calculator/) [ Total Bases Calculator total-bases-calculator Calculate baseball total bases from singles, doubles, triples, and home runs. 1cr ](/tools/total-bases-calculator/) [ WAR Calculator war-calculator Estimate simplified baseball WAR for position players or pitchers. 1cr ](/tools/war-calculator/) [ WHIP Calculator whip-calculator Calculate baseball WHIP with baseball innings notation support. 1cr ](/tools/whip-calculator/) Basketball [ Effective Field Goal Percentage Calculator efg-calculator Calculate basketball effective field goal percentage. 1cr ](/tools/efg-calculator/) [ Field Goal Percentage Calculator field-goal-percentage-calculator Calculate made-shot percentage and related shooting metrics. 1cr ](/tools/field-goal-percentage-calculator/) [ Rebound Rate Calculator rebound-rate-calculator Calculate basketball offensive, defensive, and total rebound rates. 1cr ](/tools/rebound-rate-calculator/) [ True Shooting Percentage Calculator true-shooting-percentage-calculator Calculate basketball true shooting percentage from points, FGA, and FTA. 1cr ](/tools/true-shooting-percentage-calculator/) Climbing [ Climbing Grade Converter climbing-grade-converter Convert roped and bouldering climbing grades across common systems. 1cr ](/tools/climbing-grade-converter/) ## [Time](/tools/category/time/) 5 endpoints [full page →](/tools/category/time/) Calendar [ Is It Leap Year is-it-leap-year Check whether a Gregorian calendar year is a leap year. 1cr ](/tools/is-it-leap-year/) Countdown [ Countdown Timer countdown-timer Calculate an exact countdown between two ISO datetimes. 1cr ](/tools/countdown-timer/) Date Format [ Date to Roman Numerals Converter date-to-roman-numerals-converter Convert a calendar date into Roman numeral date formats. 1cr ](/tools/date-to-roman-numerals-converter/) Dates [ Halfway Date Calculator halfway-date-calculator Find the midpoint and quarter points between two dates. 1cr ](/tools/halfway-date-calculator/) Duration [ Hours Calculator hours-calculator Calculate gross and net hours between two times, including breaks. 1cr ](/tools/hours-calculator/) ## [Time-Date](/tools/category/time-date/) 21 endpoints [full page →](/tools/category/time-date/) Calendar [ Hebrew Calendar Converter hebrew-calendar-converter Convert between Gregorian and Hebrew dates, including leap months, year kind and month lengths. 1cr ](/tools/hebrew-calendar-converter/) [ Hijri Calendar Converter hijri-calendar-converter Convert between Gregorian and Hijri (Islamic) dates with month names, sacred-month and leap-year flags. 1cr ](/tools/hijri-calendar-converter/) [ When Is Leap Year when-is-leap-year Check leap-year status and nearby leap years using Gregorian rules. 1cr ](/tools/when-is-leap-year/) Calendars [ Leap Years List leap-years-list List every leap year in a range using the Gregorian rule. 1cr ](/tools/leap-years-list/) Date Tools [ Add Business Days to Date add-business-days-to-date Add or subtract business days from a date, skipping weekends under a configurable workweek pattern. 1cr ](/tools/add-business-days-to-date/) [ Age Calculator age-calculator Exact age in years/months/days plus total days, next-birthday countdown, day born, and zodiac sign. 1cr ](/tools/age-calculator/) [ Date Calculator date-calculator Add or subtract years, months, weeks, and days from a date. 1cr ](/tools/date-calculator/) [ Date Difference Calculator date-difference-calculator Calculate days, weeks, approximate months/years, and business days between two dates. 1cr ](/tools/date-difference-calculator/) [ Day of the Year Calculator day-of-the-year-calculator Day number within the year plus days remaining, year progress, quarter, and ISO week. 1cr ](/tools/day-of-the-year-calculator/) [ Days in Month days-in-month Number of days in a given month/year with leap-year detection and calendar boundary details. 1cr ](/tools/days-in-month/) [ Julian Date Converter julian-date-converter Convert between calendar dates and Julian Date, Modified Julian Date, or Unix time. 1cr ](/tools/julian-date-converter/) [ Time Between Two Dates time-between-two-dates Calculate exact elapsed time between two ISO datetimes. 1cr ](/tools/time-between-two-dates/) [ Week Number Calculator week-number-calculator ISO 8601 and North American week numbers for a date, with week ranges, or the dates of a given ISO week. 1cr ](/tools/week-number-calculator/) Differences [ How Long Ago Calculator how-long-ago-calculator Express the gap between a date and today in years, months, weeks and days. 1cr ](/tools/how-long-ago-calculator/) Season [ Winter Solstice Day winter-solstice-day Return winter solstice date/time for Northern or Southern Hemisphere, 2024-2030. 1cr ](/tools/winter-solstice-day/) Time Calculators [ Time Duration Calculator time-duration-calculator Calculate elapsed time between two times or datetimes. 1cr ](/tools/time-duration-calculator/) [ Time to Decimal Converter time-to-decimal-converter Convert between hours/minutes/seconds and decimal hours. 1cr ](/tools/time-to-decimal-converter/) [ Work Hours Calculator work-hours-calculator Calculate weekly work hours, overtime, and optional pay from day entries. 1cr ](/tools/work-hours-calculator/) Time Conversion [ Military Time Converter military-time-converter Convert between 12-hour, 24-hour, and military time, including the spoken military form. 1cr ](/tools/military-time-converter/) [ Time Zone Converter time-zone-converter Convert a local date/time between IANA time zones with DST-aware offsets, to one or more targets. 1cr ](/tools/time-zone-converter/) [ Unix Time Converter unix-time-converter Convert between Unix timestamps and UTC ISO datetimes. 1cr ](/tools/unix-time-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - business 15 endpoints # Business API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Cost Calculators [ Employee Cost Calculator employee-cost-calculator True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. 1cr · v2026-04-22 ](/tools/employee-cost-calculator/) [ EOQ Calculator eoq-calculator Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. 1cr · v2026-04-22 ](/tools/eoq-calculator/) [ Print Cost Calculator print-cost-calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. 1cr · v2026-04-22 ](/tools/print-cost-calculator/) Customer Experience [ CSAT Score Calculator csat-score-calculator Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. 1cr · v2026-04-22 ](/tools/csat-score-calculator/) Human Resources [ Bradford Factor Calculator bradford-factor-calculator Calculate an attendance Bradford Factor from absence spells and total absent days. 1cr · v2026-04-22 ](/tools/bradford-factor-calculator/) [ Compa-Ratio Calculator compa-ratio-calculator Compare salary with a pay-range midpoint and calculate range penetration. 1cr · v2026-04-22 ](/tools/compa-ratio-calculator/) [ Employee Turnover Rate Calculator employee-turnover-rate-calculator Calculate period and annualized employee turnover from average headcount and separations. 1cr · v2026-04-22 ](/tools/employee-turnover-rate-calculator/) [ FTE Calculator fte-calculator Convert full-time and part-time headcount and hours into full-time equivalents. 1cr · v2026-04-22 ](/tools/fte-calculator/) Operations [ Billable Utilization Calculator billable-utilization-calculator Calculate billable utilization, target gap, revenue and gross margin for a work period. 1cr · v2026-04-22 ](/tools/billable-utilization-calculator/) Productivity [ Revenue Per Employee Calculator revenue-per-employee-calculator Calculate revenue per employee for a period and annualized basis. 1cr · v2026-04-22 ](/tools/revenue-per-employee-calculator/) Profitability [ Contribution Margin Calculator contribution-margin-calculator Calculate unit and total contribution margin, ratio, profit, and break-even units. 1cr · v2026-04-22 ](/tools/contribution-margin-calculator/) Reliability [ MTBF & MTTR Calculator mtbf-mttr-calculator Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. 1cr · v2026-04-22 ](/tools/mtbf-mttr-calculator/) Research [ Survey Response Rate Calculator survey-response-rate-calculator Calculate complete and overall survey response rates, completion rate and approximate margin of error. 1cr · v2026-04-22 ](/tools/survey-response-rate-calculator/) Small Business Calculators [ Lemonade Stand Calculator lemonade-stand-calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. 1cr · v2026-04-22 ](/tools/lemonade-stand-calculator/) Social Media [ Follower Growth Rate Calculator follower-growth-rate-calculator Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. 1cr · v2026-04-22 ](/tools/follower-growth-rate-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - color 3 endpoints # Color API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Accessibility [ Color Contrast Checker color-contrast-checker Check WCAG contrast ratio and AA/AAA compliance for two colors. 1cr · v2026-04-22 ](/tools/color-contrast-checker/) Conversion [ Color Code Converter color-code-converter-all-formats Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. 1cr · v2026-04-22 ](/tools/color-code-converter-all-formats/) Palette [ Color Scheme Generator color-scheme-generator Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. 1cr · v2026-04-22 ](/tools/color-scheme-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - construction 19 endpoints # Construction API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Construction And DIY Calculators [ Lumber Calculator lumber-calculator Calculate board feet, coverage, waste, linear feet, and lumber cost. 1cr · v2026-04-22 ](/tools/lumber-calculator/) Layout [ Miter Angle Calculator miter-angle-calculator Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. 1cr · v2026-04-22 ](/tools/miter-angle-calculator/) [ Squareness Checker squareness-checker Check a corner against the Pythagorean 3-4-5 squareness rule. 1cr · v2026-04-22 ](/tools/squareness-checker/) [ Stair Calculator stair-calculator Estimate stair risers, treads, run, stringer length, slope, and step profile data. 1cr · v2026-04-22 ](/tools/stair-calculator/) Lumber [ Board Foot Calculator board-foot-calculator Calculate lumber volume in board feet, cubic volume, weight, and optional cost. 1cr · v2026-04-22 ](/tools/board-foot-calculator/) Materials [ Asphalt Calculator asphalt-calculator Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. 1cr · v2026-04-22 ](/tools/asphalt-calculator/) [ Brick and Mortar Calculator brick-and-mortar-calculator Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. 1cr · v2026-04-22 ](/tools/brick-and-mortar-calculator/) [ Carpet Calculator carpet-calculator Estimate carpet area, waste, roll length, padding, installation, and cost. 1cr · v2026-04-22 ](/tools/carpet-calculator/) [ Concrete Calculator concrete-calculator Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. 1cr · v2026-04-22 ](/tools/concrete-calculator/) [ Decking Calculator decking-calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. 1cr · v2026-04-22 ](/tools/decking-calculator/) [ Drywall Calculator drywall-calculator Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. 1cr · v2026-04-22 ](/tools/drywall-calculator/) [ Fence Calculator fence-calculator Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. 1cr · v2026-04-22 ](/tools/fence-calculator/) [ Paint Calculator paint-calculator Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. 1cr · v2026-04-22 ](/tools/paint-calculator/) [ Steel Weight Calculator steel-weight-calculator Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. 1cr · v2026-04-22 ](/tools/steel-weight-calculator/) [ Tile Calculator tile-calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. 1cr · v2026-04-22 ](/tools/tile-calculator/) [ Wallpaper Calculator wallpaper-calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. 1cr · v2026-04-22 ](/tools/wallpaper-calculator/) Roofing [ Roof Pitch Calculator roof-pitch-calculator Calculate roof pitch, angle, slope percent, and rafter multiplier. 1cr · v2026-04-22 ](/tools/roof-pitch-calculator/) Structural [ Beam Load Calculator beam-load-calculator Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. 1cr · v2026-04-22 ](/tools/beam-load-calculator/) [ Rebar Calculator rebar-calculator Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. 1cr · v2026-04-22 ](/tools/rebar-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - conversion 17 endpoints # Conversion API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Area [ Square Feet to Square Meters Converter square-feet-to-square-meters Convert square feet and square meters with exact international-foot conversion. 1cr · v2026-04-22 ](/tools/square-feet-to-square-meters/) Cooking [ Quarts to Cups Converter quarts-to-cups-converter Convert US customary quarts and cups in either direction. 1cr · v2026-04-22 ](/tools/quarts-to-cups-converter/) Fuel [ Fuel Efficiency Converter fuel-efficiency-converter-mpg-l-100km-km-l Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. 1cr · v2026-04-22 ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) Length [ Centimeters to Feet and Inches Converter cm-to-feet-and-inches-converter Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. 1cr · v2026-04-22 ](/tools/cm-to-feet-and-inches-converter/) Media [ FPS Converter fps-converter Convert between frame counts, duration and timecode at a given frame rate. 1cr · v2026-04-22 ](/tools/fps-converter/) Pressure [ Pressure Converter pressure-converter Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. 1cr · v2026-04-22 ](/tools/pressure-converter/) [ PSI to Bar Converter psi-to-bar-converter Convert pressure between pounds per square inch and bar. 1cr · v2026-04-22 ](/tools/psi-to-bar-converter/) Scale [ Scale Model Conversion Calculator scale-model-conversion-calculator Convert a length from one model scale to another. 1cr · v2026-04-22 ](/tools/scale-model-conversion-calculator/) Size [ Shoe Size Converter shoe-size-converter Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. 1cr · v2026-04-22 ](/tools/shoe-size-converter/) Speed [ Knots to MPH Converter knots-to-mph-converter Convert speed between nautical knots and miles per hour. 1cr · v2026-04-22 ](/tools/knots-to-mph-converter/) [ MPH to KMH Converter mph-to-kmh-kmh-to-mph Convert miles per hour and kilometers per hour in either direction. 1cr · v2026-04-22 ](/tools/mph-to-kmh-kmh-to-mph/) [ Speed Converter speed-converter Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. 1cr · v2026-04-22 ](/tools/speed-converter/) Temperature [ Temperature Converter temperature-converter Convert temperatures among Celsius, Fahrenheit and Kelvin. 1cr · v2026-04-22 ](/tools/temperature-converter/) Unit Converters [ Volume Converter volume-converter Convert volume among metric, US customary, cooking, and cubic units. 1cr · v2026-04-22 ](/tools/volume-converter/) [ Weight (Mass) Converter weight-converter Convert mass among metric, imperial, ton, stone, and carat units. 1cr · v2026-04-22 ](/tools/weight-converter/) Volume [ Cubic Feet to Cubic Yards Converter cubic-feet-to-cubic-yards Convert cubic feet and cubic yards and optionally add material waste and order rounding. 1cr · v2026-04-22 ](/tools/cubic-feet-to-cubic-yards/) Weight [ Pounds to Kilograms Converter lbs-to-kg-converter Convert mass between pounds and kilograms using the international avoirdupois pound. 1cr · v2026-04-22 ](/tools/lbs-to-kg-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - converters 1 endpoints # Converters API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) [ Torque Converter torque-converter-nm-ft-lb-kgf-cm Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. 1cr · v2026-04-22 ](/tools/torque-converter-nm-ft-lb-kgf-cm/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - cooking 12 endpoints # Cooking API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Baking [ Baking Pan Size Converter baking-pan-size-converter Scale a recipe when switching between common baking pan sizes. 1cr · v2026-04-22 ](/tools/baking-pan-size-converter/) [ Dough Hydration Calculator dough-hydration-calculator Calculate dough hydration, required water, or a simple baker's percentage recipe. 1cr · v2026-04-22 ](/tools/dough-hydration-calculator/) [ Sourdough Calculator sourdough-calculator Calculate sourdough flour, water, starter, salt, and dough weight. 1cr · v2026-04-22 ](/tools/sourdough-calculator/) Coffee [ Coffee Brew Ratio Calculator coffee-brew-ratio-calculator Calculate coffee and water amounts for common brewing methods and strengths. 1cr · v2026-04-22 ](/tools/coffee-brew-ratio-calculator/) Conversion [ Cooking Unit Converter cooking-unit-converter Convert cooking volume and weight units using ingredient density. 1cr · v2026-04-22 ](/tools/cooking-unit-converter/) [ Cups to Grams Converter cups-to-grams-converter Convert cups to grams for common cooking ingredients. 1cr · v2026-04-22 ](/tools/cups-to-grams-converter/) Conversions [ Yeast Conversion Calculator yeast-conversion-calculator Convert fresh, active dry, and instant yeast amounts. 1cr · v2026-04-22 ](/tools/yeast-conversion-calculator/) Fermentation [ Brine and Salinity Calculator brine-and-salinity-calculator Calculate salt, water, or salinity for brines and fermentation recipes. 1cr · v2026-04-22 ](/tools/brine-and-salinity-calculator/) [ Fermentation Time Calculator fermentation-time-calculator Estimate fermentation time using a Q10 temperature adjustment model. 1cr · v2026-04-22 ](/tools/fermentation-time-calculator/) Portions [ Spaghetti Portion Calculator spaghetti-portion-calculator Calculate dry and cooked spaghetti portions for a serving count. 1cr · v2026-04-22 ](/tools/spaghetti-portion-calculator/) Ratios [ Baker's Percentage Calculator baker-s-percentage-calculator Scale bread ingredients from flour weight and baker's percentages. 1cr · v2026-04-22 ](/tools/baker-s-percentage-calculator/) Recipes [ Recipe Scaler recipe-scaler Scale ingredient quantities from one serving count to another. 1cr · v2026-04-22 ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - craft 5 endpoints # Craft API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Craft Tools [ Knitting Needle Size Converter knitting-needle-size-converter Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. 1cr · v2026-04-22 ](/tools/knitting-needle-size-converter/) [ Origami Paper Size Calculator origami-paper-size-calculator Calculate paper square size from target origami model size and model ratio. 1cr · v2026-04-22 ](/tools/origami-paper-size-calculator/) [ Pottery Clay Shrinkage Calculator pottery-clay-shrinkage-calculator Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. 1cr · v2026-04-22 ](/tools/pottery-clay-shrinkage-calculator/) [ Quilt Binding Calculator quilt-binding-calculator Calculate quilt binding length, strip count, finished width, and fabric yardage. 1cr · v2026-04-22 ](/tools/quilt-binding-calculator/) Sizing [ Cross-Stitch Size Calculator cross-stitch-size-calculator Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. 1cr · v2026-04-22 ](/tools/cross-stitch-size-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - creator 1 endpoints # Creator API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) [ YouTube Earnings Estimator youtube-earnings-estimator Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. 1cr · v2026-04-22 ](/tools/youtube-earnings-estimator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - datetime 2 endpoints # Datetime API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Seasons [ Autumnal Equinox Day autumnal-equinox-day Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. 1cr · v2026-04-22 ](/tools/autumnal-equinox-day/) Time [ Decimal to Time Converter decimal-to-time-converter Convert decimal hours to hours, minutes, and seconds. 1cr · v2026-04-22 ](/tools/decimal-to-time-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - dev 14 endpoints # Dev API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Color [ CMYK to Hex Converter cmyk-to-hex-converter Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. 1cr · v2026-04-22 ](/tools/cmyk-to-hex-converter/) [ Hex to CMYK Converter hex-to-cmyk-converter Convert a hex color to CMYK print percentages. 1cr · v2026-04-22 ](/tools/hex-to-cmyk-converter/) [ Hex to RGB Converter hex-to-rgb-converter Convert a hex color to RGB, HSL, CMYK, and contrast metrics. 1cr · v2026-04-22 ](/tools/hex-to-rgb-converter/) [ RGB to Hex Converter rgb-to-hex-converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. 1cr · v2026-04-22 ](/tools/rgb-to-hex-converter/) Data Conversion [ CSV to JSON Converter csv-to-json-converter Convert CSV text to JSON with delimiter auto-detection and type inference. 1cr · v2026-04-22 ](/tools/csv-to-json-converter/) [ JSON to CSV Converter json-to-csv-converter Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. 1cr · v2026-04-22 ](/tools/json-to-csv-converter/) Encoding [ Base64 Decoder base64-decoder Decode standard or URL-safe Base64 text and return byte and character analysis. 1cr · v2026-04-22 ](/tools/base64-decoder/) [ Base64 Encoder base64-encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. 1cr · v2026-04-22 ](/tools/base64-encoder/) [ JWT Decoder jwt-decoder Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. 1cr · v2026-04-22 ](/tools/jwt-decoder/) [ URL Decoder url-decoder Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. 1cr · v2026-04-22 ](/tools/url-decoder/) [ URL Encoder url-encoder Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. 1cr · v2026-04-22 ](/tools/url-encoder/) [ URL Parser url-parser Break a URL into scheme, host, port, path, decoded query parameters, and fragment. 1cr · v2026-04-22 ](/tools/url-parser/) Scheduling [ Cron Job Generator cron-job-generator Generate a cron expression from common schedule presets. 1cr · v2026-04-22 ](/tools/cron-job-generator/) [ Crontab Expression Generator crontab-expression-generator Build and validate a crontab expression from individual fields. 1cr · v2026-04-22 ](/tools/crontab-expression-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - developer 19 endpoints # Developer API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) CSS [ CSS Grid Generator css-grid-generator Generate responsive or fixed CSS Grid styles and matching HTML markup. 1cr · v2026-04-22 ](/tools/css-grid-generator/) Color [ Color Inverter color-inverter Invert a hex colour and report luminance plus a readable text colour. 1cr · v2026-04-22 ](/tools/color-inverter/) Data Conversion [ cURL to JSON Converter curl-to-json-converter Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. 1cr · v2026-04-22 ](/tools/curl-to-json-converter/) [ JSON to YAML Converter json-to-yaml-converter Convert a JSON document into block-style YAML, quoting only the scalars that need it. 1cr · v2026-04-22 ](/tools/json-to-yaml-converter/) [ XML to JSON Converter xml-to-json-converter Convert XML into JSON using standard, compact, JsonML, or preserve styles. 1cr · v2026-04-22 ](/tools/xml-to-json-converter/) Data Formatting [ ISO 8601 Date Formatter iso-8601-date-formatter Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. 1cr · v2026-04-22 ](/tools/iso-8601-date-formatter/) [ JSON Formatter/Validator json-formatter-validator Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. 1cr · v2026-04-22 ](/tools/json-formatter-validator/) [ JSON Schema Generator json-schema-generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. 1cr · v2026-04-22 ](/tools/json-schema-generator/) [ SQL Formatter sql-formatter Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. 1cr · v2026-04-22 ](/tools/sql-formatter/) [ YAML Formatter/Validator yaml-formatter-validator Validate, format, minify, or convert YAML to JSON. 1cr · v2026-04-22 ](/tools/yaml-formatter-validator/) Data Validation [ UUID Validator/Decoder uuid-validator-decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. 1cr · v2026-04-22 ](/tools/uuid-validator-decoder/) [ XML Validator xml-validator Validate XML well-formedness and return document statistics. 1cr · v2026-04-22 ](/tools/xml-validator/) Encoders [ Text to Binary/Hex/ASCII Converter text-to-binary-hex-ascii-converter Encode or decode text, binary, hex, and ASCII byte values. 1cr · v2026-04-22 ](/tools/text-to-binary-hex-ascii-converter/) General Tools [ ASCII Table Reference ascii-table-reference Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. 1cr · v2026-04-22 ](/tools/ascii-table-reference/) [ cURL Command Builder curl-command-builder Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. 1cr · v2026-04-22 ](/tools/curl-command-builder/) [ HTTP Status Code Reference http-status-code-reference Look up an HTTP status code or browse the registered codes by class with their defining RFCs. 1cr · v2026-04-22 ](/tools/http-status-code-reference/) [ Unix Permission Calculator unix-permission-calculator Convert Unix permission digits into symbolic permissions and chmod notation. 1cr · v2026-04-22 ](/tools/unix-permission-calculator/) Logic [ Logic Gate Simulator logic-gate-simulator Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. 1cr · v2026-04-22 ](/tools/logic-gate-simulator/) Text Conversion [ Text to SQL List Converter text-to-sql-list-converter Convert lines of text into quoted SQL IN-list or tuple syntax. 1cr · v2026-04-22 ](/tools/text-to-sql-list-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - education 6 endpoints # Education API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Attendance [ Attendance Percentage Calculator attendance-percentage-calculator Calculate attendance percentage, classes needed for a target, and safe skips. 1cr · v2026-04-22 ](/tools/attendance-percentage-calculator/) Grades [ CGPA to Percentage Converter cgpa-to-percentage-converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. 1cr · v2026-04-22 ](/tools/cgpa-to-percentage-converter/) [ GPA Calculator gpa-calculator Calculate term and cumulative GPA from letter grades and credits. 1cr · v2026-04-22 ](/tools/gpa-calculator/) [ Grade Calculator grade-calculator Calculate weighted grades and the score needed on remaining work. 1cr · v2026-04-22 ](/tools/grade-calculator/) Student Calculators [ Learning Curve Calculator learning-curve-calculator Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. 1cr · v2026-04-22 ](/tools/learning-curve-calculator/) [ Percentage to CGPA Converter percentage-to-cgpa-converter Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. 1cr · v2026-04-22 ](/tools/percentage-to-cgpa-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - electronics 7 endpoints # Electronics API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) AC Circuits [ 3-Phase Power Calculator 3-phase-power-calculator Calculate balanced three-phase real, apparent, and reactive power. 1cr · v2026-04-22 ](/tools/3-phase-power-calculator/) [ Amps to Watts Calculator amps-to-watts-calculator Convert current and voltage into real, apparent, and reactive power. 1cr · v2026-04-22 ](/tools/amps-to-watts-calculator/) [ Inductive Reactance Calculator inductive-reactance-calculator Solve XL = 2πfL for inductive reactance, frequency, or inductance. 1cr · v2026-04-22 ](/tools/inductive-reactance-calculator/) Circuits [ Transformer Calculator transformer-calculator Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. 1cr · v2026-04-22 ](/tools/transformer-calculator/) [ Voltage Divider Calculator voltage-divider-calculator Calculate voltage divider output or solve for R1 or R2. 1cr · v2026-04-22 ](/tools/voltage-divider-calculator/) Runtime [ Battery Life Calculator battery-life-calculator Estimate battery runtime from capacity, consumption, and efficiency. 1cr · v2026-04-22 ](/tools/battery-life-calculator/) Wiring [ Voltage Drop Calculator voltage-drop-calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. 1cr · v2026-04-22 ](/tools/voltage-drop-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - engineering 3 endpoints # Engineering API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Electrical [ Wire Gauge Calculator wire-gauge-calculator Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. 1cr · v2026-04-22 ](/tools/wire-gauge-calculator/) Electronics Tools [ Impedance Calculator impedance-calculator Calculate series or parallel RLC impedance, phase, resonance, and power factor. 1cr · v2026-04-22 ](/tools/impedance-calculator/) Physics Calculators [ Hydraulic Cylinder Force Calculator hydraulic-cylinder-force-calculator Calculate hydraulic cylinder extend and retract force from pressure and diameters. 1cr · v2026-04-22 ](/tools/hydraulic-cylinder-force-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - environment 1 endpoints # Environment API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) [ Water Usage Calculator water-usage-calculator Estimate household daily, monthly, and annual water use by activity. 1cr · v2026-04-22 ](/tools/water-usage-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - event 1 endpoints # Event API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) [ Wedding Alcohol Calculator wedding-alcohol-calculator Estimate wine, beer, spirits, and champagne quantities for an event. 1cr · v2026-04-22 ](/tools/wedding-alcohol-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - finance 191 endpoints # Finance API Exact interest, mortgage, APY, and other money math. Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Accounting [ Depreciation Calculator depreciation-calculator Generate straight-line or declining-balance depreciation schedules with chart-ready book values. 1cr · v2026-04-22 ](/tools/depreciation-calculator/) Auto [ Car Depreciation Calculator car-depreciation-calculator Estimate vehicle depreciation using a declining-balance annual rate. 2cr · v2026-04-22 ](/tools/car-depreciation-calculator/) [ Car Lease Calculator car-lease-calculator Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. 2cr · v2026-04-22 ](/tools/car-lease-calculator/) Bills [ Tip Calculator tip-calculator Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. 1cr · v2026-04-22 ](/tools/tip-calculator/) Bonds [ Bond Convexity Calculator bond-convexity-calculator Calculate bond price, duration, convexity, and a second-order yield-shock estimate. 2cr · v2026-04-22 ](/tools/bond-convexity-calculator/) [ Bond Duration Calculator bond-duration-calculator-macaulay-modified Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. 2cr · v2026-04-22 ](/tools/bond-duration-calculator-macaulay-modified/) [ Bond Equivalent Yield Calculator bond-equivalent-yield-calculator Calculate bond equivalent yield for a discount security. 2cr · v2026-04-22 ](/tools/bond-equivalent-yield-calculator/) [ Bond Yield to Maturity Calculator bond-yield-to-maturity-calculator Calculate bond yield to maturity with current yield and return metrics. 2cr · v2026-04-22 ](/tools/bond-yield-to-maturity-calculator/) [ Treasury Inflation-Protected Securities (TIPS) Calculator treasury-inflation-protected-securities-tips-calculator Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. 2cr · v2026-04-22 ](/tools/treasury-inflation-protected-securities-tips-calculator/) [ Zero Coupon Bond Calculator zero-coupon-bond-calculator Calculate zero coupon bond price or yield to maturity. 2cr · v2026-04-22 ](/tools/zero-coupon-bond-calculator/) Cash Flow [ Cash Flow Calculator cash-flow-calculator Calculate net cash flow, ending cash, and optional month-by-month cash balance. 1cr · v2026-04-22 ](/tools/cash-flow-calculator/) Coverage [ Debt Service Coverage Ratio Calculator debt-service-coverage-ratio-calculator Calculate DSCR and cash flow after annual debt service. 1cr · v2026-04-22 ](/tools/debt-service-coverage-ratio-calculator/) Credit [ Credit Card Interest Calculator credit-card-interest-calculator Estimate credit card payoff time, interest cost, and payment strategy savings. 2cr · v2026-04-22 ](/tools/credit-card-interest-calculator/) Credit Card Calculators [ Credit Card Payment Calculator credit-card-payment-calculator Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. 1cr · v2026-04-22 ](/tools/credit-card-payment-calculator/) [ Credit Card Payoff Calculator credit-card-payoff-calculator Estimate how long a credit card payoff plan will take and how much interest it costs. 1cr · v2026-04-22 ](/tools/credit-card-payoff-calculator/) [ Credit Utilization Calculator credit-utilization-calculator Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. 2cr · v2026-04-22 ](/tools/credit-utilization-calculator/) Crypto [ Bitcoin Investment Calculator bitcoin-investment-calculator Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. 2cr · v2026-04-22 ](/tools/bitcoin-investment-calculator/) [ Crypto Arbitrage Calculator crypto-arbitrage-calculator Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. 2cr · v2026-04-22 ](/tools/crypto-arbitrage-calculator/) [ Crypto Leverage Calculator crypto-leverage-calculator Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. 2cr · v2026-04-22 ](/tools/crypto-leverage-calculator/) [ Crypto Profit/Loss Calculator crypto-profit-loss-calculator Calculate crypto trade profit, ROI, transaction fees, and break-even price. 2cr · v2026-04-22 ](/tools/crypto-profit-loss-calculator/) Debt [ Debt Consolidation Calculator debt-consolidation-calculator Estimate a consolidated debt payment and interest cost. 2cr · v2026-04-22 ](/tools/debt-consolidation-calculator/) [ Debt Coverage Ratio Calculator debt-coverage-ratio-calculator Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. 2cr · v2026-04-22 ](/tools/debt-coverage-ratio-calculator/) [ Debt to Income Ratio Calculator debt-to-income-ratio-calculator Calculate debt-to-income ratio from monthly income and debt payments. 2cr · v2026-04-22 ](/tools/debt-to-income-ratio-calculator/) [ Fixed Charge Coverage Ratio Calculator fixed-charge-coverage-ratio-calculator Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. 2cr · v2026-04-22 ](/tools/fixed-charge-coverage-ratio-calculator/) [ Interest Coverage Ratio Calculator interest-coverage-ratio-calculator Calculate EBIT or EBITDA based interest coverage ratio. 2cr · v2026-04-22 ](/tools/interest-coverage-ratio-calculator/) [ Times Interest Earned Ratio Calculator times-interest-earned-ratio-calculator Calculate times interest earned ratio and interest coverage safety margin. 2cr · v2026-04-22 ](/tools/times-interest-earned-ratio-calculator/) Debt Calculators [ Debt Payoff Calculator debt-payoff-calculator Compare debt snowball and avalanche payoff strategies for a small list of debts. 1cr · v2026-04-22 ](/tools/debt-payoff-calculator/) Depreciation [ Actual Cash Value Calculator actual-cash-value-calculator Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. 1cr · v2026-04-22 ](/tools/actual-cash-value-calculator/) Discounts [ Discount Calculator discount-calculator Calculate final price, savings, tax, stacked discounts, or BOGO deals. 1cr · v2026-04-22 ](/tools/discount-calculator/) [ Percent Off Calculator percent-off-calculator Calculate discount amount and sale price from original price and percent off. 1cr · v2026-04-22 ](/tools/percent-off-calculator/) [ Sale Price Calculator sale-price-calculator Calculate discounted sale price, tax, final price, and chart-ready price breakdown. 1cr · v2026-04-22 ](/tools/sale-price-calculator/) Ecommerce [ Amazon FBA Calculator amazon-fba-calculator Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. 2cr · v2026-04-22 ](/tools/amazon-fba-calculator/) [ eBay Fee Calculator ebay-fee-calculator Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. 2cr · v2026-04-22 ](/tools/ebay-fee-calculator/) Efficiency [ Average Collection Period Calculator average-collection-period-calculator Calculate average collection period, receivables turnover, and industry benchmark spread. 2cr · v2026-04-22 ](/tools/average-collection-period-calculator/) [ Debtor Days Calculator debtor-days-calculator Calculate debtor days, receivables ratio, and working capital above a 30-day target. 2cr · v2026-04-22 ](/tools/debtor-days-calculator/) [ Fixed Asset Turnover Calculator fixed-asset-turnover-calculator Measure revenue generated per dollar of net fixed assets. 2cr · v2026-04-22 ](/tools/fixed-asset-turnover-calculator/) [ Inventory Turnover Calculator inventory-turnover-calculator Calculate inventory turnover, days sales in inventory, and annualized turnover. 2cr · v2026-04-22 ](/tools/inventory-turnover-calculator/) [ Inventory Turnover Ratio Calculator inventory-turnover-ratio-calculator Calculate inventory turnover ratio and days inventory outstanding. 1cr · v2026-04-22 ](/tools/inventory-turnover-ratio-calculator/) [ Receivables Turnover Ratio Calculator receivables-turnover-ratio-calculator Calculate receivables turnover and days sales outstanding. 2cr · v2026-04-22 ](/tools/receivables-turnover-ratio-calculator/) [ Total Asset Turnover Calculator total-asset-turnover-calculator Measure revenue generated per dollar of average total assets. 2cr · v2026-04-22 ](/tools/total-asset-turnover-calculator/) Everyday Calculators [ Pizza Value Calculator pizza-value-calculator Compare two pizzas by area, price per area, slice value, and savings percentage. 1cr · v2026-04-22 ](/tools/pizza-value-calculator/) Financial Ratio [ Goodwill to Assets Ratio Calculator goodwill-to-assets-ratio-calculator Calculate goodwill-to-assets ratio and tangible asset share. 2cr · v2026-04-22 ](/tools/goodwill-to-assets-ratio-calculator/) [ Retention Ratio Calculator retention-ratio-calculator Calculate retention ratio, payout ratio, and retained earnings. 2cr · v2026-04-22 ](/tools/retention-ratio-calculator/) Housing [ Home Affordability Calculator home-affordability-calculator Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. 2cr · v2026-04-22 ](/tools/home-affordability-calculator/) [ Rent Affordability Calculator rent-affordability-calculator Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. 1cr · v2026-04-22 ](/tools/rent-affordability-calculator/) [ Rent vs Buy Calculator rent-vs-buy-calculator Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. 2cr · v2026-04-22 ](/tools/rent-vs-buy-calculator/) Interest [ APR Calculator apr-calculator Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. 2cr · v2026-04-22 ](/tools/apr-calculator/) [ APR to APY Calculator apr-to-apy-calculator Convert APR to APY for a selected compounding frequency. 2cr · v2026-04-22 ](/tools/apr-to-apy-calculator/) [ APY Calculator apy-calculator Calculate annual percentage yield and compound growth. 2cr · v2026-04-22 ](/tools/apy-calculator/) [ APY to APR Calculator apy-to-apr-calculator Convert APY back to nominal APR for a compounding frequency. 2cr · v2026-04-22 ](/tools/apy-to-apr-calculator/) [ Compound Daily Interest Calculator compound-daily-interest-calculator Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. 2cr · v2026-04-22 ](/tools/compound-daily-interest-calculator/) [ Compound Interest Calculator compound-interest-calculator Compound-interest formula with selectable compounding frequency. 2cr · v2026-04-22 ](/tools/compound-interest-calculator/) [ Continuous Compounding Calculator continuous-compounding-calculator Calculate future value and interest with continuous compounding. 1cr · v2026-04-22 ](/tools/continuous-compounding-calculator/) [ Doubling Time Calculator doubling-time-calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. 1cr · v2026-04-22 ](/tools/doubling-time-calculator/) [ Effective Interest Rate Calculator effective-interest-rate-calculator Convert a nominal interest rate to its effective annual rate. 2cr · v2026-04-22 ](/tools/effective-interest-rate-calculator/) [ Effective Yield Calculator effective-yield-calculator Calculate effective annual yield from nominal APR and compounding frequency. 2cr · v2026-04-22 ](/tools/effective-yield-calculator/) [ Forward Rate Calculator forward-rate-calculator Implied forward rates from a spot curve, as a full matrix plus the consecutive forward curve and shape diagnosis. 2cr · v2026-04-22 ](/tools/forward-rate-calculator/) [ Interest Rate Calculator interest-rate-calculator Solve the implied annual interest rate from principal, term, and monthly payment. 2cr · v2026-04-22 ](/tools/interest-rate-calculator/) [ Nominal Interest Rate Calculator nominal-interest-rate-calculator Convert an effective annual rate to a nominal annual rate. 2cr · v2026-04-22 ](/tools/nominal-interest-rate-calculator/) [ Rule of 72 Calculator rule-of-72-calculator Estimate investment doubling time with the Rule of 72 and exact compound formula. 1cr · v2026-04-22 ](/tools/rule-of-72-calculator/) [ Simple Interest Calculator simple-interest-calculator Simple-interest formula: I = P * r * t. 2cr · v2026-04-22 ](/tools/simple-interest-calculator/) Investing [ CAPM Calculator capm-calculator Solve the Capital Asset Pricing Model for expected return, risk-free rate, market return, or beta. 2cr · v2026-04-22 ](/tools/capm-calculator/) [ Dollar Cost Averaging Calculator dollar-cost-averaging-calculator Simulate portfolio growth from regular periodic investments with compounding returns. 2cr · v2026-04-22 ](/tools/dollar-cost-averaging-calculator/) [ ESPP Calculator espp-calculator Estimate ESPP shares, lookback discount, sale proceeds, taxes, and after-tax return. 2cr · v2026-04-22 ](/tools/espp-calculator/) [ Holding Period Return Calculator holding-period-return-calculator Holding period return with income and capital-gains yield split, return multiple, and optional annualized return. 2cr · v2026-04-22 ](/tools/holding-period-return-calculator/) [ IRR Calculator irr-calculator Internal rate of return solved by bisection for uniform or variable cash flows, with rating and profit summary. 2cr · v2026-04-22 ](/tools/irr-calculator/) [ NPV Calculator npv-calculator Net present value with IRR, profitability index, payback periods, decision guidance, and rate sensitivity. 2cr · v2026-04-22 ](/tools/npv-calculator/) [ Real Rate of Return Calculator real-rate-of-return-calculator Inflation-adjusted real return via the Fisher equation, vs the simple approximation, with optional projection. 2cr · v2026-04-22 ](/tools/real-rate-of-return-calculator/) [ Sharpe Ratio Calculator sharpe-ratio-calculator Sharpe ratio from summary statistics or a series of periodic returns (annualized), with performance rating. 2cr · v2026-04-22 ](/tools/sharpe-ratio-calculator/) [ SIP Calculator sip-calculator Systematic investment plan projection with optional annual step-up and initial lump sum, month-by-month compounding. 2cr · v2026-04-22 ](/tools/sip-calculator/) [ Stock Average Calculator stock-average-calculator Average cost per share after buying more shares, with breakeven price and optional profit/loss at the current price. 2cr · v2026-04-22 ](/tools/stock-average-calculator/) [ Stock Profit Loss Calculator stock-profit-loss-calculator Calculate stock trade profit, loss, ROI, and breakeven price. 2cr · v2026-04-22 ](/tools/stock-profit-loss-calculator/) [ Stock Split Calculator stock-split-calculator Post-split shares, price, cost basis, and fractional-share handling for forward and reverse stock splits. 2cr · v2026-04-22 ](/tools/stock-split-calculator/) Investment [ Capital Employed Calculator capital-employed-calculator Calculate capital employed by common balance-sheet methods and optional ROCE. 2cr · v2026-04-22 ](/tools/capital-employed-calculator/) [ WACC Calculator wacc-calculator Calculate weighted average cost of capital and component contributions. 1cr · v2026-04-22 ](/tools/wacc-calculator/) Leverage [ Debt to Asset Ratio Calculator debt-to-asset-ratio-calculator Calculate debt-to-asset ratio, equity ratio, and optional industry benchmark spread. 2cr · v2026-04-22 ](/tools/debt-to-asset-ratio-calculator/) [ Debt to Equity Ratio Calculator debt-to-equity-ratio-calculator Calculate debt-to-equity ratio, equity multiplier, and capital structure shares. 2cr · v2026-04-22 ](/tools/debt-to-equity-ratio-calculator/) [ Equity Ratio Calculator equity-ratio-calculator Calculate equity ratio, debt ratio, equity multiplier, and industry benchmark spread. 2cr · v2026-04-22 ](/tools/equity-ratio-calculator/) Liquidity [ Cash Ratio Calculator cash-ratio-calculator Calculate cash ratio from cash, marketable securities, and current liabilities. 2cr · v2026-04-22 ](/tools/cash-ratio-calculator/) [ Current Ratio Calculator current-ratio-calculator Calculate current ratio and working capital from current assets and liabilities. 2cr · v2026-04-22 ](/tools/current-ratio-calculator/) [ Loan to Deposit Ratio Calculator loan-to-deposit-ratio-calculator Calculate bank loan-to-deposit ratio, deposit coverage, and liquidity status. 2cr · v2026-04-22 ](/tools/loan-to-deposit-ratio-calculator/) [ Quick Ratio Calculator quick-ratio-calculator Calculate quick ratio, quick assets, current ratio, and liquidity rating. 2cr · v2026-04-22 ](/tools/quick-ratio-calculator/) Loan Calculators [ Amortization Calculator amortization-calculator Calculate loan payment, interest, payoff timing, and savings from extra monthly principal. 1cr · v2026-04-22 ](/tools/amortization-calculator/) [ HELOC Calculator heloc-calculator Estimate HELOC draw-period and repayment-period payments, interest cost, and combined loan-to-value. 1cr · v2026-04-22 ](/tools/heloc-calculator/) Loans [ ARM Mortgage Calculator arm-mortgage-calculator Worst-case payment path of an adjustable-rate mortgage under its initial, periodic, and lifetime caps. 2cr · v2026-04-22 ](/tools/arm-mortgage-calculator/) [ Auto Loan Calculator auto-loan-calculator Calculate auto loan amount, monthly payment, tax, and total interest. 2cr · v2026-04-22 ](/tools/auto-loan-calculator/) [ Balloon Loan Calculator balloon-loan-calculator Monthly payment and final balloon payment for amortized or interest-only balloon loans. 2cr · v2026-04-22 ](/tools/balloon-loan-calculator/) [ Biweekly Mortgage Payment Calculator biweekly-mortgage-payment-calculator Biweekly versus monthly mortgage payments with interest saved and time cut from the term. 2cr · v2026-04-22 ](/tools/biweekly-mortgage-payment-calculator/) [ Business Loan Calculator business-loan-calculator Estimate business loan payments, fees, payoff time, and interest. 2cr · v2026-04-22 ](/tools/business-loan-calculator/) [ Car Affordability Calculator car-affordability-calculator Maximum affordable car price under the 20/4/10 rule with the binding constraint identified. 2cr · v2026-04-22 ](/tools/car-affordability-calculator/) [ Car Loan Payoff Calculator car-loan-payoff-calculator Compare standard and accelerated payoff for a car loan. 2cr · v2026-04-22 ](/tools/car-loan-payoff-calculator/) [ Down Payment Calculator down-payment-calculator Estimate mortgage down payment, loan amount, monthly payment, PMI, and comparison scenarios. 2cr · v2026-04-22 ](/tools/down-payment-calculator/) [ EMI Calculator emi-calculator Calculate equated monthly installment and total interest for a loan. 2cr · v2026-04-22 ](/tools/emi-calculator/) [ FHA Loan Calculator fha-loan-calculator FHA payment with upfront and annual mortgage insurance premiums from the HUD MIP schedule. 2cr · v2026-04-22 ](/tools/fha-loan-calculator/) [ Interest-Only Mortgage Calculator interest-only-mortgage-calculator Interest-only payment, the payment jump when the IO period ends, and the extra interest versus a standard loan. 2cr · v2026-04-22 ](/tools/interest-only-mortgage-calculator/) [ Loan Payoff Calculator loan-payoff-calculator Calculate loan payoff months and savings from extra monthly payments. 2cr · v2026-04-22 ](/tools/loan-payoff-calculator/) [ Mortgage Calculator mortgage-calculator Monthly payment, total interest, LTV, and optional amortization schedule. 5cr · v2026-04-22 ](/tools/mortgage-calculator/) [ Mortgage Payoff Calculator mortgage-payoff-calculator Early mortgage payoff simulation with extra monthly, yearly, and one-time payments; time and interest saved. 2cr · v2026-04-22 ](/tools/mortgage-payoff-calculator/) [ Mortgage Recast Calculator mortgage-recast-calculator New payment after a lump-sum recast, versus prepaying without recasting. 2cr · v2026-04-22 ](/tools/mortgage-recast-calculator/) [ Personal Loan Calculator personal-loan-calculator Calculate personal loan payment, payoff time, interest, and extra-payment savings. 2cr · v2026-04-22 ](/tools/personal-loan-calculator/) [ VA Loan Calculator va-loan-calculator VA loan payment with the funding fee by use type and down payment, financed or paid at closing. 2cr · v2026-04-22 ](/tools/va-loan-calculator/) Marketing [ ROAS Calculator roas-calculator Calculate return on ad spend, profit, ROI, or target revenue. 2cr · v2026-04-22 ](/tools/roas-calculator/) Mortgage [ Mortgage Comparison Calculator mortgage-comparison-calculator Compare two to four fixed-rate mortgages by payment, total interest, total cost, and annual amortization. 2cr · v2026-04-22 ](/tools/mortgage-comparison-calculator/) Options [ Black-Scholes Calculator black-scholes-calculator Price European call and put options with dividend-adjusted Black-Scholes and full Greeks. 2cr · v2026-04-22 ](/tools/black-scholes-calculator/) [ Options Profit Calculator options-profit-calculator Calculate long call or put break-even, maximum risk, expiration P/L, and payoff curve. 2cr · v2026-04-22 ](/tools/options-profit-calculator/) Payroll [ Time Card Calculator time-card-calculator Calculate regular hours, overtime hours, gross pay, and daily hour chart data. 1cr · v2026-04-22 ](/tools/time-card-calculator/) Planning [ Budget Calculator budget-calculator Allocate income into needs, wants, and savings using the 50/30/20 budgeting rule. 2cr · v2026-04-22 ](/tools/budget-calculator/) [ Cost of Raising a Child Calculator cost-of-raising-a-child-calculator Project the cost of raising a child to 18 by spending category with income tier, siblings, inflation, and optional college. 2cr · v2026-04-22 ](/tools/cost-of-raising-a-child-calculator/) [ Emergency Fund Calculator emergency-fund-calculator Emergency fund target by employment profile and dependents, with 3/6/9/12-month tiers and time to reach each. 2cr · v2026-04-22 ](/tools/emergency-fund-calculator/) [ Net Worth Calculator net-worth-calculator Net worth from itemized assets and liabilities with debt-to-asset ratio, health rating, and milestone tracking. 2cr · v2026-04-22 ](/tools/net-worth-calculator/) Profit [ Break-Even Calculator break-even-calculator Calculate break-even units, revenue, contribution margin, and target-profit units. 1cr · v2026-04-22 ](/tools/break-even-calculator/) [ EBIT Calculator ebit-calculator Calculate EBIT and EBIT margin from revenue, expenses, and non-operating income. 2cr · v2026-04-22 ](/tools/ebit-calculator/) [ EBITDA Calculator ebitda-calculator Calculate EBITDA using net income or operating income inputs. 2cr · v2026-04-22 ](/tools/ebitda-calculator/) Profitability [ Break Even Point Calculator break-even-point-calculator Calculate break-even units, revenue, costs, and rounded-unit profit. 1cr · v2026-04-22 ](/tools/break-even-point-calculator/) [ Cash Flow Margin Calculator cash-flow-margin-calculator Calculate operating cash flow margin as a percentage of net sales. 2cr · v2026-04-22 ](/tools/cash-flow-margin-calculator/) [ Earnings per Share Calculator earnings-per-share-calculator Calculate basic, diluted, or weighted earnings per share. 2cr · v2026-04-22 ](/tools/earnings-per-share-calculator/) [ EBIT Margin Calculator ebit-margin-calculator Calculate EBIT margin and EBIT-to-revenue ratio. 2cr · v2026-04-22 ](/tools/ebit-margin-calculator/) [ EBITDA Margin Calculator ebitda-margin-calculator Calculate EBITDA margin from direct EBITDA or component inputs. 2cr · v2026-04-22 ](/tools/ebitda-margin-calculator/) [ Gross Profit Margin Calculator gross-profit-margin-calculator Calculate gross profit, gross margin, markup, and cost ratio. 2cr · v2026-04-22 ](/tools/gross-profit-margin-calculator/) [ Margin Calculator margin-calculator Calculate gross profit, margin percent, markup percent, and chart-ready revenue breakdown. 1cr · v2026-04-22 ](/tools/margin-calculator/) [ Net Profit Margin Calculator net-profit-margin-calculator Calculate net profit margin and profit per revenue dollar. 2cr · v2026-04-22 ](/tools/net-profit-margin-calculator/) [ Operating Margin Calculator operating-margin-calculator Calculate operating margin from operating income or detailed operating components. 2cr · v2026-04-22 ](/tools/operating-margin-calculator/) [ Operating Profit Percentage Calculator operating-profit-percentage-calculator Calculate operating profit percentage from operating income or a revenue cost breakdown. 2cr · v2026-04-22 ](/tools/operating-profit-percentage-calculator/) [ Profit Calculator profit-calculator Solve profit, margin, markup, revenue, or cost from the known values. 2cr · v2026-04-22 ](/tools/profit-calculator/) [ Profit to Sales Ratio Calculator profit-to-sales-ratio-calculator Calculate profit-to-sales ratio and compare it with an industry benchmark. 2cr · v2026-04-22 ](/tools/profit-to-sales-ratio-calculator/) [ Return on Assets Ratio Calculator return-on-assets-ratio-calculator Calculate ROA with optional DuPont margin and asset-turnover breakdown. 2cr · v2026-04-22 ](/tools/return-on-assets-ratio-calculator/) [ Return On Equity Calculator return-on-equity-calculator Calculate ROE with optional 3- or 5-component DuPont analysis. 2cr · v2026-04-22 ](/tools/return-on-equity-calculator/) [ Return On Sales Calculator return-on-sales-calculator Calculate return on sales, operating cost ratio, and ROS decimal. 2cr · v2026-04-22 ](/tools/return-on-sales-calculator/) Real Estate [ Cap Rate Calculator cap-rate-calculator Calculate net operating income, cap rate, expense ratio, and monthly NOI. 1cr · v2026-04-22 ](/tools/cap-rate-calculator/) [ Capitalization Rate Calculator capitalization-rate-calculator Solve cap rate, property value, or required NOI for real estate income analysis. 2cr · v2026-04-22 ](/tools/capitalization-rate-calculator/) [ Closing Costs Calculator closing-costs-calculator Generic national-average estimate of home purchase or refinance closing costs by fee category. 2cr · v2026-04-22 ](/tools/closing-costs-calculator/) [ Gross Rent Multiplier Calculator gross-rent-multiplier-calculator Calculate gross rent multiplier and rental yield for a property. 2cr · v2026-04-22 ](/tools/gross-rent-multiplier-calculator/) [ Home Equity Calculator home-equity-calculator Calculate home equity, LTV, CLTV, and optional five-year equity projection. 2cr · v2026-04-22 ](/tools/home-equity-calculator/) [ Loan to Cost Calculator loan-to-cost-calculator Calculate loan-to-cost percent and equity required for a project. 1cr · v2026-04-22 ](/tools/loan-to-cost-calculator/) [ Loan to Value Calculator loan-to-value-calculator Calculate loan-to-value percent, equity, and equity percent for a property. 1cr · v2026-04-22 ](/tools/loan-to-value-calculator/) [ Moving Cost Estimator moving-cost-estimator Estimate moving costs from home size, distance, service level, and access factors. 2cr · v2026-04-22 ](/tools/moving-cost-estimator/) [ Prorated Rent Calculator prorated-rent-calculator Prorate rent for a partial month from a move date, comparing actual-days, banker's 30-day, and annual-basis methods. 2cr · v2026-04-22 ](/tools/prorated-rent-calculator/) [ Real Estate Commission Calculator real-estate-commission-calculator Calculate total real-estate commission, agent split, rate comparisons, and seller net proceeds. 2cr · v2026-04-22 ](/tools/real-estate-commission-calculator/) Real Estate Calculators [ BRRRR Method Calculator brrrr-method-calculator Analyze a BRRRR real estate deal, including all-in cost, refinance proceeds, capital recycled, equity, and cash flow. 1cr · v2026-04-22 ](/tools/brrrr-method-calculator/) [ Cash-on-Cash Return Calculator cash-on-cash-return-calculator Estimate rental property cash-on-cash return, cap rate, NOI, cash flow, and DSCR. 1cr · v2026-04-22 ](/tools/cash-on-cash-return-calculator/) [ House Flipping Profit Calculator house-flipping-profit-calculator Estimate house flip net profit, ROI, financing effects, and the 70 percent rule threshold. 1cr · v2026-04-22 ](/tools/house-flipping-profit-calculator/) [ Housing Appreciation Calculator housing-appreciation-calculator Calculate total home value change, annualized appreciation, and a future value projection. 1cr · v2026-04-22 ](/tools/housing-appreciation-calculator/) Retail [ Markup Calculator markup-calculator Calculate markup percentage, selling price, cost, profit, and margin. 1cr · v2026-04-22 ](/tools/markup-calculator/) Retirement [ 401(k) Calculator 401-k-calculator Project 401(k) growth to retirement with employer matching, IRS contribution limits, salary raises, and year-by-year balances. 2cr · v2026-04-22 ](/tools/401-k-calculator/) [ EPF Calculator epf-calculator India Employees Provident Fund maturity corpus, splitting the employer's 12% into EPF and the EPS pension slice, with year-end interest compounding. 2cr · v2026-04-22 ](/tools/epf-calculator/) [ Retirement Calculator retirement-calculator Estimate retirement savings growth, inflation-adjusted value, and contribution breakdown. 1cr · v2026-04-22 ](/tools/retirement-calculator/) [ Roth IRA Calculator roth-ira-calculator Project Roth IRA growth with contributions, earnings, and chart-ready year-by-year data. 1cr · v2026-04-22 ](/tools/roth-ira-calculator/) Return [ CAGR Calculator cagr-calculator Calculate the compound annual growth rate between a beginning and ending value. 2cr · v2026-04-22 ](/tools/cagr-calculator/) [ Dividend Payout Ratio Calculator dividend-payout-ratio-calculator Calculate dividend payout ratio and retention ratio from total or per-share inputs. 2cr · v2026-04-22 ](/tools/dividend-payout-ratio-calculator/) [ Dividend Yield Calculator dividend-yield-calculator Calculate dividend yield, per-payment dividend, and optional annual income. 2cr · v2026-04-22 ](/tools/dividend-yield-calculator/) [ ROI Calculator roi-calculator Calculate ROI, annualized ROI, CAGR, and investment term from fixed dates. 2cr · v2026-04-22 ](/tools/roi-calculator/) [ Tax-Equivalent Yield Calculator tax-equivalent-yield-calculator Tax-equivalent yield of a municipal bond from federal and state marginal rates, with a bracket table. 2cr · v2026-04-22 ](/tools/tax-equivalent-yield-calculator/) Salary [ Hourly to Salary Calculator hourly-to-salary-calculator Convert an hourly wage to weekly, monthly, and annual salary. 2cr · v2026-04-22 ](/tools/hourly-to-salary-calculator/) [ Hourly Wage Calculator hourly-wage-calculator Convert annual salary to equivalent hourly wage. 2cr · v2026-04-22 ](/tools/hourly-wage-calculator/) [ Salary Conversion Calculator salary-conversion-calculator Convert wage amounts across hourly, daily, weekly, monthly, and annual pay periods. 2cr · v2026-04-22 ](/tools/salary-conversion-calculator/) [ Salary Raise Calculator salary-raise-calculator New salary after a raise by percent, target salary, or flat amount, with per-period breakdown and inflation-adjusted real raise. 2cr · v2026-04-22 ](/tools/salary-raise-calculator/) [ Weekly Wage Calculator weekly-wage-calculator Convert annual salary to weekly wage. 2cr · v2026-04-22 ](/tools/weekly-wage-calculator/) Sales [ Commission Calculator commission-calculator Calculate flat, tiered, or bonus-based sales commission. 2cr · v2026-04-22 ](/tools/commission-calculator/) [ PayPal Fee Calculator paypal-fee-calculator PayPal fee and net for a received payment, or the gross-up invoice amount needed to net a target after fees. 2cr · v2026-04-22 ](/tools/paypal-fee-calculator/) Savings [ Compound Savings Calculator compound-savings-calculator Project savings growth with compound interest and regular contributions. 1cr · v2026-04-22 ](/tools/compound-savings-calculator/) [ Fixed Deposit Calculator fixed-deposit-calculator Fixed deposit maturity value and interest for simple, periodic, or continuous compounding with effective annual rate. 2cr · v2026-04-22 ](/tools/fixed-deposit-calculator/) [ Recurring Deposit Calculator recurring-deposit-calculator Project recurring monthly deposits with compound interest and chart-ready balance data. 1cr · v2026-04-22 ](/tools/recurring-deposit-calculator/) [ Savings Calculator savings-calculator Project savings growth with recurring contributions and chart-ready balance data. 1cr · v2026-04-22 ](/tools/savings-calculator/) Startup [ Burn Rate Calculator burn-rate-calculator Calculate gross burn, net burn, and estimated runway from cash flow. 1cr · v2026-04-22 ](/tools/burn-rate-calculator/) [ Runway Calculator runway-calculator Calculate cash runway in months and chart the cash balance decline. 1cr · v2026-04-22 ](/tools/runway-calculator/) TVM [ Future Value Calculator future-value-calculator Calculate future value from a lump sum plus optional recurring contributions. 2cr · v2026-04-22 ](/tools/future-value-calculator/) [ Future Value Factor Calculator future-value-factor-calculator Calculate the future value factor for a rate and number of periods. 2cr · v2026-04-22 ](/tools/future-value-factor-calculator/) [ Future Value of Annuity Calculator future-value-of-annuity-calculator Calculate future value for ordinary annuities and annuities due. 2cr · v2026-04-22 ](/tools/future-value-of-annuity-calculator/) [ Future Value of Annuity Due Calculator future-value-of-annuity-due-calculator Calculate future value of an annuity due and compare it with an ordinary annuity. 2cr · v2026-04-22 ](/tools/future-value-of-annuity-due-calculator/) [ Future Value of Growing Annuity Calculator future-value-of-growing-annuity-calculator Calculate future value for payments that grow each period. 2cr · v2026-04-22 ](/tools/future-value-of-growing-annuity-calculator/) [ Future Value of Lump Sum Calculator future-value-of-lump-sum-calculator Calculate compound future value for a single lump-sum investment. 2cr · v2026-04-22 ](/tools/future-value-of-lump-sum-calculator/) [ FVIFA Calculator fvifa-calculator Calculate the future value interest factor of an annuity. 2cr · v2026-04-22 ](/tools/fvifa-calculator/) [ Present Value Annuity Due Calculator present-value-annuity-due-calculator Calculate the present value of an annuity due and compare it with an ordinary annuity. 2cr · v2026-04-22 ](/tools/present-value-annuity-due-calculator/) [ Present Value of Annuity Calculator present-value-of-annuity-calculator Calculate present value for ordinary annuities and annuities due. 2cr · v2026-04-22 ](/tools/present-value-of-annuity-calculator/) [ Present Value of Lump Sum Calculator present-value-of-lump-sum-calculator Discount a future lump sum back to present value. 2cr · v2026-04-22 ](/tools/present-value-of-lump-sum-calculator/) [ PVIF Calculator pvif-calculator Calculate the present value interest factor and discounted future value. 2cr · v2026-04-22 ](/tools/pvif-calculator/) [ PVIFA Calculator pvifa-calculator Calculate the present value interest factor of an annuity and optional present value. 2cr · v2026-04-22 ](/tools/pvifa-calculator/) Tax [ Estate Tax Calculator estate-tax-calculator Estimate federal estate tax from gross estate, deductions, gifts, exemption, and graduated brackets. 2cr · v2026-04-22 ](/tools/estate-tax-calculator/) [ Sales Tax Calculator sales-tax-calculator Calculate sales tax, tax-inclusive totals, pre-tax prices or an implied tax rate. 1cr · v2026-04-22 ](/tools/sales-tax-calculator/) [ VAT Calculator vat-calculator Add, remove, or extract VAT from an amount using a preset or custom rate. 2cr · v2026-04-22 ](/tools/vat-calculator/) Taxes [ Property Tax Calculator property-tax-calculator Annual and monthly property tax from home value, assessment ratio, tax rate (percent or mills), exemptions, and a 10-year projection. 2cr · v2026-04-22 ](/tools/property-tax-calculator/) [ Tax Calculator tax-calculator Estimate taxable income, tax, take-home income, and effective rate from user-supplied flat rates. 1cr · v2026-04-22 ](/tools/tax-calculator/) Time Value [ Discount Factor Calculator discount-factor-calculator Discount factor and present value for discrete or continuous compounding with a period-by-period table. 2cr · v2026-04-22 ](/tools/discount-factor-calculator/) [ Present Value Calculator present-value-calculator Discount a future value to present value with configurable compounding and chart-ready series. 1cr · v2026-04-22 ](/tools/present-value-calculator/) Trading [ Short Selling Profit Calculator short-selling-profit-calculator Calculate short-sale net profit after borrow fees, margin interest, and commissions. 2cr · v2026-04-22 ](/tools/short-selling-profit-calculator/) [ Stop Loss Take Profit Calculator stop-loss-take-profit-calculator Calculate stop-loss and take-profit levels, risk/reward, and risk-based position size. 2cr · v2026-04-22 ](/tools/stop-loss-take-profit-calculator/) Travel [ Fuel Cost Calculator fuel-cost-calculator Estimate trip fuel usage, total fuel cost, and per-person cost. 1cr · v2026-04-22 ](/tools/fuel-cost-calculator/) Valuation [ Book Value per Share Calculator book-value-per-share-calculator Calculate book value per share, common equity, and optional price-to-book ratio. 2cr · v2026-04-22 ](/tools/book-value-per-share-calculator/) [ P/E Ratio Calculator p-e-ratio-calculator Calculate price-to-earnings ratio, earnings yield, and sector benchmark premium. 2cr · v2026-04-22 ](/tools/p-e-ratio-calculator/) [ Price to Book Ratio Calculator price-to-book-ratio-calculator Calculate price-to-book ratio and compare it to industry benchmark ranges. 2cr · v2026-04-22 ](/tools/price-to-book-ratio-calculator/) Vehicle Costs [ Cost Per Mile Calculator cost-per-mile-calculator Estimate total annual driving cost and the true cost per mile from fuel and ownership costs. 1cr · v2026-04-22 ](/tools/cost-per-mile-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - fitness 3 endpoints # Fitness API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Pace [ Running Pace Calculator running-pace-calculator Calculate running pace per kilometer and mile plus speed. 1cr · v2026-04-22 ](/tools/running-pace-calculator/) Sports Calculators [ Swimming Pace Calculator swimming-pace-calculator Calculate swim pace per 100m/100yd, speed, lap splits, race estimates, and pace zone. 1cr · v2026-04-22 ](/tools/swimming-pace-calculator/) [ Vertical Jump Calculator vertical-jump-calculator Calculate vertical jump height, rating, percentile estimate, and optional power estimates. 1cr · v2026-04-22 ](/tools/vertical-jump-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - food 3 endpoints # Food API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Coffee [ Coffee Ratio by Cups Calculator coffee-ratio-by-cups-calculator Calculate coffee and water amounts by cup count using standard, strong, light or custom brew ratios. 1cr · v2026-04-22 ](/tools/coffee-ratio-by-cups-calculator/) Planning Calculators [ Pizza Party Planner pizza-party-planner Estimate pizzas, slices, vegetarian split, leftovers, and optional cost for a group. 1cr · v2026-04-22 ](/tools/pizza-party-planner/) [ Taco Bar Calculator taco-bar-calculator Estimate taco bar shells, protein, toppings, sides, and extras for a group. 1cr · v2026-04-22 ](/tools/taco-bar-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - gaming 1 endpoints # Gaming API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) [ Game Sensitivity Converter game-sensitivity-converter Convert FPS mouse sensitivity using cm per 360 degrees. 1cr · v2026-04-22 ](/tools/game-sensitivity-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - geometry 4 endpoints # Geometry API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Surface Area [ Surface Area Calculator surface-area-calculator Calculate the surface area of spheres, cylinders, cuboids and cones. 1cr · v2026-04-22 ](/tools/surface-area-calculator/) [ Surface Area of a Sphere Calculator surface-area-of-sphere-calculator Calculate the surface area, volume and diameter of a sphere from its radius. 1cr · v2026-04-22 ](/tools/surface-area-of-sphere-calculator/) Volume [ Volume Calculator volume-calculator Calculate the volume of spheres, cylinders, cuboids, cones and rectangular pyramids. 1cr · v2026-04-22 ](/tools/volume-calculator/) [ Volume of a Sphere Calculator volume-of-sphere-calculator Calculate the volume, surface area and diameter of a sphere from its radius. 1cr · v2026-04-22 ](/tools/volume-of-sphere-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - hash 15 endpoints # Hash & Checksum API SHA, MD5, HMAC, and digest utilities with stable JSON output. Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Checksum [ Adler-32 Checksum Calculator adler32-checksum-calculator Calculate the Adler-32 checksum of UTF-8 text with A and B component breakdown. 1cr · v2026-04-22 ](/tools/adler32-checksum-calculator/) [ CRC32 Checksum Calculator crc32-checksum-calculator Calculate the IEEE CRC32 checksum of text in hex, decimal, and binary form. 1cr · v2026-04-22 ](/tools/crc32-checksum-calculator/) [ CRC64 Checksum Calculator crc64-checksum-calculator Calculate the CRC64 checksum of text using ECMA-182, WE, or Jones polynomial variants. 1cr · v2026-04-22 ](/tools/crc64-checksum-calculator/) [ FNV-1a Hash Generator fnv1a-hash-generator Generate a fast non-cryptographic FNV-1a hash in 32, 64, 128, or 256-bit variants. 1cr · v2026-04-22 ](/tools/fnv1a-hash-generator/) [ MurmurHash3 Generator murmurhash3-generator 32-bit MurmurHash3 (x86) of the input text, in decimal, hex, and binary, with a configurable seed. 1cr · v2026-04-22 ](/tools/murmurhash3-generator/) Digest [ BLAKE2b Hash Generator blake2b-hash-generator Generate a BLAKE2b digest with 256, 384, or 512-bit output. 1cr · v2026-04-22 ](/tools/blake2b-hash-generator/) [ MD5 Hash Generator md5-hash-generator Generate an MD5 hex digest for checksum and legacy compatibility. 1cr · v2026-04-22 ](/tools/md5-hash-generator/) [ SHA1 Hash Generator sha1-hash-generator Generate the SHA-1 hash (160-bit) of text. 1cr · v2026-04-22 ](/tools/sha1-hash-generator/) [ SHA-224 Hash Generator sha224-hash-generator Generate the SHA-224 hash (224-bit) of text. 1cr · v2026-04-22 ](/tools/sha224-hash-generator/) [ SHA-256 Hash Generator sha256-hash-generator Generate a SHA-256 hex digest of a UTF-8 string. 1cr · v2026-04-22 ](/tools/sha256-hash-generator/) [ SHA3-256 Hash Generator sha3-256-hash-generator Generate the SHA3-256 hash (256-bit Keccak) of text. 1cr · v2026-04-22 ](/tools/sha3-256-hash-generator/) [ SHA3-384 Hash Generator sha3-384-hash-generator Generate the SHA3-384 hash (384-bit Keccak) of text. 1cr · v2026-04-22 ](/tools/sha3-384-hash-generator/) [ SHA3-512 Hash Generator sha3-512-hash-generator Generate a SHA3-512 hex digest of a UTF-8 string. 1cr · v2026-04-22 ](/tools/sha3-512-hash-generator/) [ SHA-384 Hash Generator sha384-hash-generator Generate a SHA-384 hex digest of a UTF-8 string. 1cr · v2026-04-22 ](/tools/sha384-hash-generator/) [ SHA-512 Hash Generator sha512-hash-generator Generate a SHA-512 hex digest of a UTF-8 string. 1cr · v2026-04-22 ](/tools/sha512-hash-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - health 26 endpoints # Health API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Body Metrics [ BMI Calculator bmi-calculator Calculate Body Mass Index, BMI Prime, and healthy weight range in metric or imperial units. 1cr · v2026-04-22 ](/tools/bmi-calculator/) [ Body Fat Percentage Calculator body-fat-percentage-calculator Estimate body fat percentage with the US Navy method and age-adjusted healthy ranges. 1cr · v2026-04-22 ](/tools/body-fat-percentage-calculator/) [ Body Surface Area Calculator body-surface-area-calculator Estimate body surface area using Mosteller, Du Bois, or Haycock formulas. 1cr · v2026-04-22 ](/tools/body-surface-area-calculator/) [ Child Height Predictor child-height-predictor Predicted adult height from parents' heights via the mid-parental (Tanner) method with range and adult percentile. 1cr · v2026-04-22 ](/tools/child-height-predictor/) [ Ideal Weight Calculator ideal-weight-calculator Ideal body weight via Devine, Robinson, Miller, and Hamwi formulas with frame-size adjustment and healthy BMI range. 1cr · v2026-04-22 ](/tools/ideal-weight-calculator/) [ Lean Body Mass Calculator lean-body-mass-calculator Lean body mass via Boer, James, and Hume equations with estimated body fat percentage and category. 1cr · v2026-04-22 ](/tools/lean-body-mass-calculator/) [ Waist to Hip Ratio Calculator waist-to-hip-ratio-calculator Waist-to-hip ratio with WHO risk category, body shape pattern, and the waist target for a healthy ratio. 1cr · v2026-04-22 ](/tools/waist-to-hip-ratio-calculator/) Diabetes [ Blood Sugar Converter blood-sugar-converter Convert blood glucose between mg/dL and mmol/L with fasting-range category and reference table. 1cr · v2026-04-22 ](/tools/blood-sugar-converter/) [ HbA1c Calculator hba1c-calculator Convert between HbA1c percentage and estimated average glucose (mg/dL and mmol/L) with ADA interpretation. 1cr · v2026-04-22 ](/tools/hba1c-calculator/) Fitness [ Heart Rate Zone Calculator heart-rate-zone-calculator Estimate heart-rate training zones using max-heart-rate or Karvonen formulas. 1cr · v2026-04-22 ](/tools/heart-rate-zone-calculator/) [ Max Heart Rate Calculator max-heart-rate-calculator Maximum heart rate from six validated formulas (Fox, Tanaka, Gellish, Gulati, Nes, Arena) with training zones. 1cr · v2026-04-22 ](/tools/max-heart-rate-calculator/) [ One Rep Max (1RM) Calculator one-rep-max-calculator One-rep max estimated by seven formulas (Brzycki, Epley, Lander, Lombardi, Mayhew, O'Conner, Wathan) with training zones and warm-up sets. 1cr · v2026-04-22 ](/tools/one-rep-max-calculator/) [ Steps to Distance Calculator steps-to-distance-calculator Estimate distance walked or run from a step count and height. 1cr · v2026-04-22 ](/tools/steps-to-distance-calculator/) Hydration [ Water Intake Calculator water-intake-calculator Estimate daily water intake from body weight, activity, and hot-weather adjustment. 1cr · v2026-04-22 ](/tools/water-intake-calculator/) Kidney Function [ Creatinine Clearance Calculator creatinine-clearance-calculator Estimate creatinine clearance with the Cockcroft-Gault equation and CKD stage. 1cr · v2026-04-22 ](/tools/creatinine-clearance-calculator/) [ FENa Calculator fena-calculator Fractional excretion of sodium (FENa) with prerenal / indeterminate / intrinsic-renal interpretation. 1cr · v2026-04-22 ](/tools/fena-calculator/) [ GFR Calculator gfr-calculator Estimated GFR via CKD-EPI 2021 (primary), CKD-EPI 2009, MDRD, and Cockcroft-Gault with CKD staging. 1cr · v2026-04-22 ](/tools/gfr-calculator/) Lab Values [ ANC Calculator anc-calculator Absolute neutrophil count from CBC values with NCI CTCAE neutropenia grading. 1cr · v2026-04-22 ](/tools/anc-calculator/) [ BUN to Creatinine Ratio Calculator bun-to-creatinine-ratio-calculator Calculate the BUN to creatinine ratio with unit conversion and reference range. 1cr · v2026-04-22 ](/tools/bun-to-creatinine-ratio-calculator/) [ Corrected Calcium Calculator corrected-calcium-calculator Albumin-corrected calcium (Payne 0.8 or modified 0.6 coefficient) with clinical interpretation. 1cr · v2026-04-22 ](/tools/corrected-calcium-calculator/) [ Corrected Sodium Calculator corrected-sodium-calculator Hyperglycemia-corrected sodium via Katz and Hillier formulas with severity interpretation. 1cr · v2026-04-22 ](/tools/corrected-sodium-calculator/) Nutrition [ Caffeine Limit Calculator caffeine-overdose-calculator Estimate a safe daily caffeine limit and what it equals in drinks. 1cr · v2026-04-22 ](/tools/caffeine-overdose-calculator/) [ Calorie Deficit Calculator calorie-deficit-calculator Estimate daily calorie deficit, target intake, and projected weight-loss trend. 1cr · v2026-04-22 ](/tools/calorie-deficit-calculator/) [ Protein Intake Calculator protein-intake-calculator Estimate daily protein intake and per-meal targets from weight and training goal. 1cr · v2026-04-22 ](/tools/protein-intake-calculator/) Pregnancy [ Due Date Calculator due-date-calculator Pregnancy due date via Naegele's rule from LMP, conception date, or ultrasound, with trimester milestones. 1cr · v2026-04-22 ](/tools/due-date-calculator/) [ Gestational Age Calculator gestational-age-calculator Work out gestational age in weeks and days plus the estimated due date. 1cr · v2026-04-22 ](/tools/gestational-age-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - home 6 endpoints # Home API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Energy Calculators [ Appliance Energy Cost Calculator appliance-energy-cost-calculator Daily, monthly, and annual electricity cost for an appliance from wattage, usage hours, and rate. 1cr · v2026-04-22 ](/tools/appliance-energy-cost-calculator/) [ Light Bulb Savings Calculator light-bulb-savings-calculator Compare bulb energy, replacement cost, total savings, and payback period. 1cr · v2026-04-22 ](/tools/light-bulb-savings-calculator/) Garden Calculators [ Mulch, Soil & Gravel Calculator mulch-soil-gravel-calculator Volume, weight, bag count, and truck-load estimate for mulch, topsoil, gravel, or sand over a rectangular area. 1cr · v2026-04-22 ](/tools/mulch-soil-gravel-calculator/) [ Plant Spacing Calculator plant-spacing-calculator Estimate plant counts for square and triangular garden spacing layouts. 1cr · v2026-04-22 ](/tools/plant-spacing-calculator/) Utilities [ Gas vs Electric Cost Comparison gas-vs-electric-cost-comparison Compare gas and electric annual running costs and CO2 estimates. 1cr · v2026-04-22 ](/tools/gas-vs-electric-cost-comparison/) [ Shower Cost Calculator shower-cost-calculator Estimate water use, energy use, and cost for showers. 1cr · v2026-04-22 ](/tools/shower-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - lifestyle 18 endpoints # Lifestyle API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Astrology [ What Is My Zodiac Sign what-is-my-zodiac-sign Return the western zodiac sign, element and modality for a birth date. 1cr · v2026-04-22 ](/tools/what-is-my-zodiac-sign/) Crafts [ Beading Pattern Calculator beading-pattern-calculator Calculate beads needed from strand length and a repeating bead pattern. 1cr · v2026-04-22 ](/tools/beading-pattern-calculator/) [ Yarn Calculator yarn-calculator Estimate yarn yards, meters, grams, and skeins for common knitting/crochet projects. 1cr · v2026-04-22 ](/tools/yarn-calculator/) Fitness [ Bench Press Calculator bench-press-calculator Estimate bench press one-rep max, formula comparisons, and training zones. 1cr · v2026-04-22 ](/tools/bench-press-calculator/) [ BMR Calculator bmr-calculator Calculate BMR, RMR estimate, TDEE, macro estimates, and activity-level calorie needs. 1cr · v2026-04-22 ](/tools/bmr-calculator/) Fun [ Love Compatibility Calculator love-compatibility-calculator Deterministic name-based compatibility score, for entertainment. 1cr · v2026-04-22 ](/tools/love-compatibility-calculator/) Health [ BAC Calculator bac-calculator Estimate blood alcohol content using standard-drink counts and the Widmark formula. 1cr · v2026-04-22 ](/tools/bac-calculator/) [ Biological Age Calculator biological-age-calculator Estimate biological age from lifestyle and health-factor adjustments. 1cr · v2026-04-22 ](/tools/biological-age-calculator/) Home [ Dishwasher Load Optimizer dishwasher-load-optimizer Estimate dishwasher rack utilization, cycles needed, and item placement. 1cr · v2026-04-22 ](/tools/dishwasher-load-optimizer/) Numerology [ Angel Number Calculator angel-number-calculator Find recurring angel-number interpretations or derive one from a birth date. 1cr · v2026-04-22 ](/tools/angel-number-calculator/) [ Numerology Calculator numerology-calculator Life path, expression and soul urge numbers from a birth date and name. 1cr · v2026-04-22 ](/tools/numerology-calculator/) [ What Is My Lucky Number what-is-my-lucky-number Derive a lucky number deterministically from a birth date. 1cr · v2026-04-22 ](/tools/what-is-my-lucky-number/) Pets [ Aquarium Heater Wattage Calculator aquarium-heater-wattage-calculator Estimate aquarium heater wattage from tank size and temperature gap. 1cr · v2026-04-22 ](/tools/aquarium-heater-wattage-calculator/) [ Bird Cage Size Calculator bird-cage-size-calculator Recommend minimum bird cage dimensions and bar spacing by species. 1cr · v2026-04-22 ](/tools/bird-cage-size-calculator/) [ Cat Litter Box Calculator cat-litter-box-calculator Estimate recommended cat litter boxes, placement, and monthly litter use. 1cr · v2026-04-22 ](/tools/cat-litter-box-calculator/) [ Cat Years Calculator cat-years-calculator Convert cat age into human-equivalent years and life stage. 1cr · v2026-04-22 ](/tools/cat-years-calculator/) [ Dog Years Calculator dog-years-calculator Convert dog age to human-equivalent years by breed size. 1cr · v2026-04-22 ](/tools/dog-years-calculator/) Size Conversion [ Clothing Size Converter clothing-size-converter Convert clothing sizes between alpha, US, UK, EU, JP, KR, and measurements. 1cr · v2026-04-22 ](/tools/clothing-size-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - marketing 12 endpoints # Marketing API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Advertising [ CTR Calculator ctr-calculator Calculate click-through rate, required clicks for a target CTR, or bulk campaign CTR. 1cr · v2026-04-22 ](/tools/ctr-calculator/) Email [ Email Open Rate Calculator email-open-rate-calculator Calculate email delivery rate and open rate from campaign counts. 1cr · v2026-04-22 ](/tools/email-open-rate-calculator/) [ Unsubscribe Rate Calculator unsubscribe-rate-calculator Calculate campaign unsubscribe rate and subscriber-list loss rate. 1cr · v2026-04-22 ](/tools/unsubscribe-rate-calculator/) Funnels [ Conversion Rate Calculator conversion-rate-calculator Calculate conversion rate from visitors and conversions. 1cr · v2026-04-22 ](/tools/conversion-rate-calculator/) ROI [ Social Media ROI Calculator social-media-roi-calculator Calculate social media campaign ROI, ROAS, conversion rate, and unit costs. 2cr · v2026-04-22 ](/tools/social-media-roi-calculator/) Retention [ Churn Rate Calculator churn-rate-calculator Calculate churn, retention, ending customers, and net customer growth. 1cr · v2026-04-22 ](/tools/churn-rate-calculator/) SaaS Metrics [ ARPU Calculator arpu-calculator Calculate ARPU for a period plus monthly and annualized ARPU. 1cr · v2026-04-22 ](/tools/arpu-calculator/) Surveys [ Net Promoter Score Calculator net-promoter-score-calculator Calculate NPS from promoter, passive, and detractor counts. 1cr · v2026-04-22 ](/tools/net-promoter-score-calculator/) Unit Costs [ Cost Per Lead Calculator cost-per-lead-calculator Calculate cost per lead and optional funnel metrics. 1cr · v2026-04-22 ](/tools/cost-per-lead-calculator/) Unit Economics [ Customer Acquisition Cost Calculator customer-acquisition-cost-calculator Calculate CAC from marketing spend, sales spend, and new customers. 1cr · v2026-04-22 ](/tools/customer-acquisition-cost-calculator/) [ Customer Lifetime Value Calculator customer-lifetime-value-calculator Estimate LTV from order value, purchase frequency, gross margin, and lifespan. 1cr · v2026-04-22 ](/tools/customer-lifetime-value-calculator/) [ Customer Lifetime Value (CLV) Calculator customer-lifetime-value-clv-calculator Customer lifetime value from ARPU, gross margin, and retention rate via a discounted-perpetuity model, with CLV:CAC health rating. 1cr · v2026-04-22 ](/tools/customer-lifetime-value-clv-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - math 439 endpoints # Math API Percentage, unit conversion, geometry, and sequences. Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Advanced [ Complementary Error Function Calculator complementary-error-function-calculator Calculate erf(x), erfc(x), and related error-function values. 1cr · v2026-04-22 ](/tools/complementary-error-function-calculator/) [ Exponential Decay Calculator exponential-decay-calculator Solve continuous exponential decay equations for final amount, initial amount, rate, or time. 1cr · v2026-04-22 ](/tools/exponential-decay-calculator/) [ Exponential Growth Calculator exponential-growth-calculator Solve continuous exponential growth equations for final amount, initial amount, rate, or time. 1cr · v2026-04-22 ](/tools/exponential-growth-calculator/) Advanced Math [ Antilog Calculator antilog-calculator Calculate an antilogarithm as base raised to an exponent. 1cr · v2026-04-22 ](/tools/antilog-calculator/) [ Error Function Calculator error-function-calculator Evaluate erf, erfc, inverse erf, and inverse erfc for bounded inputs. 1cr · v2026-04-22 ](/tools/error-function-calculator/) [ Gamma Function Calculator gamma-function-calculator Evaluate the gamma function for bounded real inputs. 1cr · v2026-04-22 ](/tools/gamma-function-calculator/) Algebra [ Absolute Value Equation Solver absolute-value-equation-solver Solve equations of the form |a*x + b| = c. 1cr · v2026-04-22 ](/tools/absolute-value-equation-solver/) [ Absolute Value Inequality Solver absolute-value-inequality-solver Solve inequalities of the form |a*x + b| compared with c. 1cr · v2026-04-22 ](/tools/absolute-value-inequality-solver/) [ Binomial Theorem Expansion Calculator binomial-theorem-expansion-calculator Expand (a + b)^n for n up to 50 with every coefficient and term listed. 1cr · v2026-04-22 ](/tools/binomial-theorem-expansion-calculator/) [ Completing the Square Calculator completing-the-square-calculator Convert a quadratic to vertex form and solve by completing the square. 1cr · v2026-04-22 ](/tools/completing-the-square-calculator/) [ Cubic Equation Solver cubic-equation-solver Solve ax^3 + bx^2 + cx + d = 0 and return all real or complex roots. 1cr · v2026-04-22 ](/tools/cubic-equation-solver/) [ Descartes' Rule of Signs Calculator descartes-rule-of-signs-calculator Possible counts of positive and negative real roots of a polynomial via sign changes in f(x) and f(-x), with the full root-count table. 1cr · v2026-04-22 ](/tools/descartes-rule-of-signs-calculator/) [ Distance-Speed-Time Triangle Calculator distance-speed-time-triangle-calculator Solve distance, speed, or time from the other two, plus multi-leg average speed and round-trip harmonic mean. 1cr · v2026-04-22 ](/tools/distance-speed-time-triangle-calculator/) [ Expand Polynomials Calculator expand-polynomials-calculator Expand a product of polynomial factors (optionally raised to a power) into standard form with exact rational coefficients. 1cr · v2026-04-22 ](/tools/expand-polynomials-calculator/) [ Linear Equation Solver linear-equation-solver Solve a linear equation in the form ax + b = c. 1cr · v2026-04-22 ](/tools/linear-equation-solver/) [ Linear Programming Solver linear-programming-solver Solve a linear program by two-phase simplex in exact rational arithmetic, with slacks and binding constraints. 1cr · v2026-04-22 ](/tools/linear-programming-solver/) [ Parabola Calculator parabola-calculator Analyze a quadratic parabola from coefficients a, b, and c. 1cr · v2026-04-22 ](/tools/parabola-calculator/) [ Partial Fraction Decomposition Calculator partial-fraction-decomposition-calculator Decompose a rational expression into partial fractions. 1cr · v2026-04-22 ](/tools/partial-fraction-decomposition-calculator/) [ Point Slope Form Calculator point-slope-form-calculator Build point-slope, slope-intercept, and standard-form line equations. 1cr · v2026-04-22 ](/tools/point-slope-form-calculator/) [ Polynomial Factoring Calculator polynomial-factoring-calculator Factor a polynomial over the rationals: content, rational roots with multiplicity, linear factors, and any irreducible remainder. 1cr · v2026-04-22 ](/tools/polynomial-factoring-calculator/) [ Polynomial Long Division Calculator polynomial-long-division-calculator Divide one polynomial by another with exact rational arithmetic, returning quotient, remainder, and step-by-step subtraction. 1cr · v2026-04-22 ](/tools/polynomial-long-division-calculator/) [ Polynomial Roots Calculator polynomial-roots-calculator Real and complex roots of a polynomial (degree up to 12) via exact formulas or Durand-Kerner iteration. 1cr · v2026-04-22 ](/tools/polynomial-roots-calculator/) [ Quadratic Formula Calculator quadratic-formula-calculator Solve quadratic roots with discriminant and vertex details. 1cr · v2026-04-22 ](/tools/quadratic-formula-calculator/) [ Slope Intercept Form Calculator slope-intercept-form-calculator Build slope-intercept and standard-form line equations from m and b. 1cr · v2026-04-22 ](/tools/slope-intercept-form-calculator/) [ Square Root Calculator square-root-calculator Calculate the principal and negative square roots of a non-negative number. 1cr · v2026-04-22 ](/tools/square-root-calculator/) [ Standard Form to Slope Intercept Converter standard-form-to-slope-intercept-converter Convert Ax + By = C into slope-intercept form when possible. 1cr · v2026-04-22 ](/tools/standard-form-to-slope-intercept-converter/) [ Synthetic Division Calculator synthetic-division-calculator Divide polynomial coefficients by x minus a using synthetic division. 1cr · v2026-04-22 ](/tools/synthetic-division-calculator/) [ System of Linear Equations Solver system-of-linear-equations-solver Solve n x n linear systems (2 to 8 unknowns) exactly, including parametric infinite-solution forms. 1cr · v2026-04-22 ](/tools/system-of-linear-equations-solver/) [ X and Y Intercept Calculator x-y-intercept-calculator Find x- and y-intercepts for a linear equation ax + by + c = 0. 1cr · v2026-04-22 ](/tools/x-y-intercept-calculator/) Algebra Calculators [ Vertex and Axis of Symmetry Calculator vertex-axis-calculator Find the vertex and axis of symmetry for a quadratic ax^2 + bx + c. 1cr · v2026-04-22 ](/tools/vertex-axis-calculator/) Analytic Geometry [ Parallel and Perpendicular Line Calculator parallel-and-perpendicular-line-calculator Find parallel and perpendicular lines through a given point. 1cr · v2026-04-22 ](/tools/parallel-and-perpendicular-line-calculator/) Angles [ Radian to Degree Converter radian-to-degree-converter Convert radians, fractions, or pi expressions to degrees. 1cr · v2026-04-22 ](/tools/radian-to-degree-converter/) Area [ Acreage Calculator acreage-calculator Calculate land acreage from rectangle, triangle, or circle dimensions. 1cr · v2026-04-22 ](/tools/acreage-calculator/) [ Hectares to Acres Converter hectares-to-acres-converter Convert hectares to acres and related land-area units. 1cr · v2026-04-22 ](/tools/hectares-to-acres-converter/) [ Square Feet to Acres Converter square-feet-to-acres-converter Convert square feet to acres and related land-area units. 1cr · v2026-04-22 ](/tools/square-feet-to-acres-converter/) [ Square Footage Calculator square-footage-calculator Calculate square footage for common room, lot, and curved shapes. 1cr · v2026-04-22 ](/tools/square-footage-calculator/) [ Square Meters to Acres Converter square-meters-to-acres-converter Convert square meters to acres and related land-area units. 1cr · v2026-04-22 ](/tools/square-meters-to-acres-converter/) [ Square Miles to Acres Converter square-miles-to-acres-converter Convert square miles to acres and related land-area units. 1cr · v2026-04-22 ](/tools/square-miles-to-acres-converter/) Arithmetic [ Long Addition and Subtraction Calculator long-addition-and-subtraction-calculator Add or subtract large integers and return aligned column output. 1cr · v2026-04-22 ](/tools/long-addition-and-subtraction-calculator/) [ Multiplication Calculator multiplication-calculator Multiply a list of numbers exactly, without floating-point drift. 1cr · v2026-04-22 ](/tools/multiplication-calculator/) [ Order of Operations Calculator PEMDAS order-of-operations-calculator-pemdas Evaluate arithmetic expressions using standard PEMDAS precedence. 1cr · v2026-04-22 ](/tools/order-of-operations-calculator-pemdas/) Audio [ BPM to Millisecond Delay Calculator bpm-to-ms-delay-calculator Convert tempo in BPM into synchronized straight, dotted, and triplet delay times. 1cr · v2026-04-22 ](/tools/bpm-to-ms-delay-calculator/) Basic Math [ Absolute Value Calculator absolute-value-calculator Calculate the absolute value of a real or complex number. 1cr · v2026-04-22 ](/tools/absolute-value-calculator/) [ Cube and Cube Root Calculator cube-and-cube-root-calculator Calculate a number's cube and cube root. 1cr · v2026-04-22 ](/tools/cube-and-cube-root-calculator/) [ Cube Root Calculator cube-root-calculator Calculate the real cube root of a finite number. 1cr · v2026-04-22 ](/tools/cube-root-calculator/) [ Even or Odd Number Checker even-or-odd-number-checker Check whether one or more integers are even or odd. 1cr · v2026-04-22 ](/tools/even-or-odd-number-checker/) [ First n Digits of e first-n-digits-of-e First n digits of Euler's number e (Decimal series sum 1/n!) with digit-frequency analysis. 1cr · v2026-04-22 ](/tools/first-n-digits-of-e/) [ First n Digits of Pi first-n-digits-of-pi First n digits of pi (Chudnovsky series, exact via Decimal) with digit-frequency analysis. 1cr · v2026-04-22 ](/tools/first-n-digits-of-pi/) [ Long Division Calculator long-division-calculator Calculate quotient, remainder, decimal expansion, and long division steps. 1cr · v2026-04-22 ](/tools/long-division-calculator/) [ Long Multiplication Calculator long-multiplication-calculator Calculate a product with long multiplication partial products. 1cr · v2026-04-22 ](/tools/long-multiplication-calculator/) [ Nth Root Calculator nth-root-calculator High-precision nth roots (up to 100 decimals) with exact-root detection and verification. 1cr · v2026-04-22 ](/tools/nth-root-calculator/) [ Number of Digits number-of-digits Count the digits of any integer with digit frequency, palindrome check, and scientific notation. 1cr · v2026-04-22 ](/tools/number-of-digits/) [ Quotient and Remainder Calculator quotient-and-remainder-calculator Compute the integer quotient and remainder of a division with verification. 1cr · v2026-04-22 ](/tools/quotient-and-remainder-calculator/) [ Sum Calculator sum-calculator High-precision decimal sum of up to 5000 numbers with average, median, and sign statistics. 1cr · v2026-04-22 ](/tools/sum-calculator/) Calculus [ Average Rate of Change Calculator average-rate-of-change-calculator Compute the average rate of change of f(x) on [a, b] with the secant line equation. 1cr · v2026-04-22 ](/tools/average-rate-of-change-calculator/) [ Bernoulli ODE Solver bernoulli-ode-solver Solve y' + p·y = q·y^n by the v = y^(1-n) substitution, with the linearised form and an RK4 cross-check. 1cr · v2026-04-22 ](/tools/bernoulli-ode-solver/) [ Curl Calculator curl-calculator Compute the curl of a 3D vector field (or the scalar curl in 2D) with optional evaluation at a point. 1cr · v2026-04-22 ](/tools/curl-calculator/) [ Curvature Calculator curvature-calculator Calculate curvature and radius of curvature for a quadratic function. 1cr · v2026-04-22 ](/tools/curvature-calculator/) [ Directional Derivative Calculator directional-derivative-calculator Compute the directional derivative of a function along a direction vector, with the maximum rate of change. 1cr · v2026-04-22 ](/tools/directional-derivative-calculator/) [ Divergence Calculator divergence-calculator Compute the divergence of a 2D or 3D vector field, with per-term partials and source/sink classification. 1cr · v2026-04-22 ](/tools/divergence-calculator/) [ Double Integral Calculator double-integral-calculator Evaluate an iterated double integral over rectangular or variable-limit regions. 1cr · v2026-04-22 ](/tools/double-integral-calculator/) [ Euler's Method Calculator euler-s-method-calculator Step an initial value problem forward with explicit Euler, with a full table and optional exact-solution error. 1cr · v2026-04-22 ](/tools/euler-s-method-calculator/) [ Fast Fourier Transform (FFT) Calculator fast-fourier-transform-fft-calculator Discrete Fourier transform of a sample list by radix-2 FFT, with magnitude, phase and the dominant frequency. 1cr · v2026-04-22 ](/tools/fast-fourier-transform-fft-calculator/) [ First Order ODE Solver first-order-ode-solver Classify and solve y' = f(x, y): closed form for constant-coefficient linear equations plus an RK4 solution table and slope field. 1cr · v2026-04-22 ](/tools/first-order-ode-solver/) [ Fourier Series Coefficients Calculator fourier-series-coefficients-calculator Fourier coefficients a0, a_n and b_n for a function over one period, with amplitude, phase and symmetry detection. 1cr · v2026-04-22 ](/tools/fourier-series-coefficients-calculator/) [ Gradient Calculator (Multivariable) gradient-calculator-multivariable Compute the gradient vector of a multivariable function, with optional evaluation, magnitude, and direction at a point. 1cr · v2026-04-22 ](/tools/gradient-calculator-multivariable/) [ Implicit Derivative Calculator implicit-derivative-calculator Differentiate an implicit equation to first, second, or third order using the partial-derivative quotient. 1cr · v2026-04-22 ](/tools/implicit-derivative-calculator/) [ Infinite Series Sum Calculator infinite-series-sum-calculator Closed-form sums for classic infinite series: geometric, p-series, telescoping, alternating harmonic, Leibniz, Basel, e^x, and alternating p-series. 1cr · v2026-04-22 ](/tools/infinite-series-sum-calculator/) [ Inverse Laplace Transform Calculator inverse-laplace-transform-calculator Invert a proper rational Laplace transform by exact partial fractions, including repeated and complex poles. 1cr · v2026-04-22 ](/tools/inverse-laplace-transform-calculator/) [ Jacobian Matrix Calculator jacobian-matrix-calculator Build the Jacobian matrix of a vector-valued function, with the symbolic determinant when it is square. 1cr · v2026-04-22 ](/tools/jacobian-matrix-calculator/) [ L'Hopital's Rule Calculator l-h-pital-s-rule-calculator Resolve 0/0 and infinity/infinity limits by repeated differentiation, showing each application of the rule. 1cr · v2026-04-22 ](/tools/l-h-pital-s-rule-calculator/) [ Laplace Transform Calculator laplace-transform-calculator Laplace transform of a sum of powers, exponentials and trigonometric terms, with the region of convergence. 1cr · v2026-04-22 ](/tools/laplace-transform-calculator/) [ Line Integral Calculator line-integral-calculator Evaluate scalar or vector line integrals along a parametric curve, with arc length and conservative-field check. 1cr · v2026-04-22 ](/tools/line-integral-calculator/) [ Maclaurin Series Calculator maclaurin-series-calculator Exact-coefficient Maclaurin (Taylor at 0) series expansion for common functions, with optional evaluation. 1cr · v2026-04-22 ](/tools/maclaurin-series-calculator/) [ Partial Derivative Calculator partial-derivative-calculator Differentiate a symbolic expression with respect to x, y, z, or t. 1cr · v2026-04-22 ](/tools/partial-derivative-calculator/) [ Second Order ODE Solver second-order-ode-solver Solve a·y'' + b·y' + c·y = 0 from the characteristic equation, with the initial-value constants and damping ratio. 1cr · v2026-04-22 ](/tools/second-order-ode-solver/) [ Series Convergence Test Calculator series-convergence-test-calculator Convergence verdict (absolute/conditional/divergent) for common series families with ratio, root, and divergence test estimates. 1cr · v2026-04-22 ](/tools/series-convergence-test-calculator/) [ Taylor Series Calculator taylor-series-calculator Taylor series expansion of common functions about any center a, using exact shifted-derivative formulas, with optional evaluation. 1cr · v2026-04-22 ](/tools/taylor-series-calculator/) Charts [ Bar Graph Maker bar-graph-maker Prepare normalized bar-chart data from labels and numeric values. 1cr · v2026-04-22 ](/tools/bar-graph-maker/) Combinatorics [ Binomial Coefficient Calculator binomial-coefficient-calculator Calculate C(n, k), the number of combinations choosing k items from n. 1cr · v2026-04-22 ](/tools/binomial-coefficient-calculator/) [ Combination Calculator combination-calculator Calculate combinations C(n, k). 1cr · v2026-04-22 ](/tools/combination-calculator/) [ Derangement (Subfactorial) Calculator derangement-subfactorial-calculator Calculate the number of derangements (subfactorial!n) for n elements. 1cr · v2026-04-22 ](/tools/derangement-subfactorial-calculator/) [ Permutation Calculator permutation-calculator Calculate P(n,r), where order matters and repetition is not allowed. 1cr · v2026-04-22 ](/tools/permutation-calculator/) [ Permutations with Repetition Calculator permutations-with-repetition-calculator Calculate n^r ordered arrangements where items can repeat. 1cr · v2026-04-22 ](/tools/permutations-with-repetition-calculator/) [ Stirling Numbers Calculator stirling-numbers-calculator Calculate unsigned Stirling numbers of the first kind and Stirling numbers of the second kind. 1cr · v2026-04-22 ](/tools/stirling-numbers-calculator/) Complex Numbers [ Complex Numbers Calculator complex-numbers-calculator Add, subtract, multiply, or divide two complex numbers. 1cr · v2026-04-22 ](/tools/complex-numbers-calculator/) Conics [ Hyperbola Calculator hyperbola-calculator Calculate standard-form hyperbola vertices, foci, eccentricity, and asymptotes. 1cr · v2026-04-22 ](/tools/hyperbola-calculator/) Construction [ Flooring Calculator flooring-calculator Estimate flooring material units, waste allowance, and optional cost. 1cr · v2026-04-22 ](/tools/flooring-calculator/) [ Insulation Calculator insulation-calculator Estimate insulation R-value target, thickness, material quantity, and cost range. 1cr · v2026-04-22 ](/tools/insulation-calculator/) [ Paver Calculator paver-calculator Estimate paving stones needed for a rectangular project area. 1cr · v2026-04-22 ](/tools/paver-calculator/) Cooking [ Butter to Oil Converter butter-to-oil-converter Convert butter quantities to practical oil equivalents for baking. 1cr · v2026-04-22 ](/tools/butter-to-oil-converter/) Coordinate Geometry [ Polar to Cartesian Converter polar-to-cartesian-converter Convert polar coordinates to Cartesian x and y coordinates. 1cr · v2026-04-22 ](/tools/polar-to-cartesian-converter/) Education [ Final Grade Calculator final-grade-calculator Calculate the final exam score needed to reach a target course grade. 1cr · v2026-04-22 ](/tools/final-grade-calculator/) Electronics [ LED Resistor Calculator led-resistor-calculator Calculate LED current-limiting resistor values and power ratings. 1cr · v2026-04-22 ](/tools/led-resistor-calculator/) [ PCB Trace Width Calculator pcb-trace-width-calculator Estimate PCB trace width using the IPC-2221 current capacity formula. 1cr · v2026-04-22 ](/tools/pcb-trace-width-calculator/) Exponents [ Exponents Calculator exponents-calculator Raise a base to any power: exact decimal arithmetic for integer exponents up to ±500. 1cr · v2026-04-22 ](/tools/exponents-calculator/) [ Half Life Calculator half-life-calculator Solve exponential decay for remaining amount, initial amount, elapsed time, or half-life. 1cr · v2026-04-22 ](/tools/half-life-calculator/) Finance [ Payback Period Calculator payback-period-calculator Calculate the payback period from an initial investment and annual cash flows. 1cr · v2026-04-22 ](/tools/payback-period-calculator/) Fractions [ Comparing Fractions Calculator comparing-fractions-calculator Compare two fractions or mixed numbers using a common denominator. 1cr · v2026-04-22 ](/tools/comparing-fractions-calculator/) [ Decimal to Fraction Calculator decimal-to-fraction-calculator Convert a decimal or parenthesized repeating decimal to a fraction. 1cr · v2026-04-22 ](/tools/decimal-to-fraction-calculator/) [ Equivalent Fractions Calculator equivalent-fractions-calculator Generate equivalent fractions or check whether two fractions are equivalent. 1cr · v2026-04-22 ](/tools/equivalent-fractions-calculator/) [ Fraction Calculator fraction-calculator Add, subtract, multiply, divide, compare, or simplify fractions. 1cr · v2026-04-22 ](/tools/fraction-calculator/) [ Fraction Simplifier fraction-simplifier Reduce a fraction to lowest terms and return GCF, mixed number, decimal, percentage, and equivalents. 1cr · v2026-04-22 ](/tools/fraction-simplifier/) [ Fraction to Decimal Calculator fraction-to-decimal-calculator Convert proper, improper, or mixed fractions to decimals and detect repeating decimal patterns. 1cr · v2026-04-22 ](/tools/fraction-to-decimal-calculator/) [ Fraction to Mixed Number Converter fraction-to-mixed-number-converter Convert an improper fraction to a simplified mixed number. 1cr · v2026-04-22 ](/tools/fraction-to-mixed-number-converter/) [ Fraction to Percent Converter fraction-to-percent-converter Convert proper, improper, or mixed fractions to percentages with configurable decimal places. 1cr · v2026-04-22 ](/tools/fraction-to-percent-converter/) [ Mixed Number to Fraction Converter mixed-number-to-fraction-converter Convert a mixed number to an improper fraction and simplified form. 1cr · v2026-04-22 ](/tools/mixed-number-to-fraction-converter/) [ Multiple Fraction Calculator multiple-fraction-calculator Apply one arithmetic operation across a list of fractions. 1cr · v2026-04-22 ](/tools/multiple-fraction-calculator/) [ Number to Fraction Converter number-to-fraction-converter Convert decimals, percentages, mixed numbers, and repeating decimals to fractions. 1cr · v2026-04-22 ](/tools/number-to-fraction-converter/) [ Reduce Fractions Calculator reduce-fractions-calculator Reduce a proper, improper, or mixed fraction to lowest terms. 1cr · v2026-04-22 ](/tools/reduce-fractions-calculator/) Functions [ Ceiling and Floor Function Calculator ceiling-and-floor-function-calculator Evaluate floor, ceiling, fractional part, and nearest integer of a value. 1cr · v2026-04-22 ](/tools/ceiling-and-floor-function-calculator/) [ Function Composition Calculator function-composition-calculator Evaluate f(x), g(x), f(g(x)), and g(f(x)) for arithmetic functions. 1cr · v2026-04-22 ](/tools/function-composition-calculator/) [ Function Odd Even Neither Checker function-odd-even-neither-checker Classify a function as odd, even, both, or neither over sample points. 1cr · v2026-04-22 ](/tools/function-odd-even-neither-checker/) [ Hyperbolic Functions Calculator hyperbolic-functions-calculator Calculate sinh, cosh, tanh and reciprocal hyperbolic functions. 1cr · v2026-04-22 ](/tools/hyperbolic-functions-calculator/) Games [ DPS Calculator dps-calculator Calculate raw, sustained, critical-hit, and headshot damage per second. 1cr · v2026-04-22 ](/tools/dps-calculator/) Geometry [ 3D Distance Calculator 3d-distance-calculator Calculate 3D Euclidean distance, midpoint, direction cosines, and related distances. 1cr · v2026-04-22 ](/tools/3d-distance-calculator/) [ Angle Bisector Calculator angle-bisector-calculator Calculate triangle angle bisectors, angles, area, and inradius from side lengths. 1cr · v2026-04-22 ](/tools/angle-bisector-calculator/) [ Arc Length Calculator arc-length-calculator Solve arc length, radius, or central angle for a circle sector. 1cr · v2026-04-22 ](/tools/arc-length-calculator/) [ Area of a Circle Calculator area-of-a-circle-calculator Calculate circle radius, diameter, circumference, and area from one value. 1cr · v2026-04-22 ](/tools/area-of-a-circle-calculator/) [ Area of a Parallelogram Calculator area-of-a-parallelogram-calculator Find parallelogram area from base-height, sides-angle, or diagonals-angle inputs. 1cr · v2026-04-22 ](/tools/area-of-a-parallelogram-calculator/) [ Area of a Sector Calculator area-of-a-sector-calculator Calculate sector area, arc length, perimeter, chord, and segment area. 1cr · v2026-04-22 ](/tools/area-of-a-sector-calculator/) [ Area of a Trapezoid Calculator area-of-a-trapezoid-calculator Calculate trapezoid area from two parallel bases and height. 1cr · v2026-04-22 ](/tools/area-of-a-trapezoid-calculator/) [ Area of an Ellipse Calculator area-of-an-ellipse-calculator Calculate ellipse area, Ramanujan perimeter, foci, and eccentricity. 1cr · v2026-04-22 ](/tools/area-of-an-ellipse-calculator/) [ Area of Equilateral Triangle Calculator area-of-equilateral-triangle-calculator Calculate equilateral-triangle side, area, height, perimeter, and radii. 1cr · v2026-04-22 ](/tools/area-of-equilateral-triangle-calculator/) [ Cartesian to Polar Coordinates Converter cartesian-to-polar-converter Convert Cartesian x-y coordinates to polar radius and angle. 1cr · v2026-04-22 ](/tools/cartesian-to-polar-converter/) [ Circle Calculator circle-calculator Calculate circle radius, diameter, circumference, area, and optional arc/sector values. 1cr · v2026-04-22 ](/tools/circle-calculator/) [ Circumscribed Circle Circumcircle Calculator circumscribed-circle-circumcircle-calculator Calculate the circumcircle of a triangle from side lengths or coordinates. 1cr · v2026-04-22 ](/tools/circumscribed-circle-circumcircle-calculator/) [ Cone Flat Pattern Template Generator cone-flat-pattern-template-generator Calculate unrolled cone or frustum flat-pattern dimensions. 1cr · v2026-04-22 ](/tools/cone-flat-pattern-template-generator/) [ Conic Section Identifier conic-section-identifier Classify a general second-degree equation as a conic section. 1cr · v2026-04-22 ](/tools/conic-section-identifier/) [ Coordinate Geometry Distance Calculator coordinate-geometry-distance-calculator Calculate distance, midpoint, slope, and line equations between two points. 1cr · v2026-04-22 ](/tools/coordinate-geometry-distance-calculator/) [ Cylinder Calculator cylinder-calculator Calculate cylinder volume, base area, lateral area, and total surface area. 1cr · v2026-04-22 ](/tools/cylinder-calculator/) [ Distance Between Two Points Calculator distance-between-two-points-calculator Calculate 2D point distance, midpoint, slope, and line equation. 1cr · v2026-04-22 ](/tools/distance-between-two-points-calculator/) [ Ellipse Circumference Calculator ellipse-circumference-calculator Calculate ellipse circumference with several common approximations. 1cr · v2026-04-22 ](/tools/ellipse-circumference-calculator/) [ Euler Characteristic Calculator euler-characteristic-calculator Calculate Euler characteristic V - E + F and classify common surfaces. 1cr · v2026-04-22 ](/tools/euler-characteristic-calculator/) [ Frustum Calculator frustum-calculator Calculate volume and surface area for a conical frustum. 1cr · v2026-04-22 ](/tools/frustum-calculator/) [ General Triangle Solver general-triangle-solver Solve any triangle (SSS, SAS, ASA, AAS, or the ambiguous SSA case) for all sides, angles, and area. 1cr · v2026-04-22 ](/tools/general-triangle-solver/) [ Golden Ratio Calculator golden-ratio-calculator Calculate golden-ratio segments from total, larger, or smaller segment. 1cr · v2026-04-22 ](/tools/golden-ratio-calculator/) [ Golden Rectangle Calculator golden-rectangle-calculator Calculate golden rectangle dimensions, area, perimeter, and aspect ratio. 1cr · v2026-04-22 ](/tools/golden-rectangle-calculator/) [ Golden Section Calculator golden-section-calculator Find the golden-section points within an interval. 1cr · v2026-04-22 ](/tools/golden-section-calculator/) [ Great Circle Distance Calculator great-circle-distance-calculator Calculate great-circle distance, bearing, and midpoint between two coordinates. 1cr · v2026-04-22 ](/tools/great-circle-distance-calculator/) [ Heron's Formula Calculator heron-s-formula-calculator Calculate triangle area from three side lengths using Heron's formula. 1cr · v2026-04-22 ](/tools/heron-s-formula-calculator/) [ Hypotenuse Calculator hypotenuse-calculator Calculate the hypotenuse and basic right-triangle measures from two legs. 1cr · v2026-04-22 ](/tools/hypotenuse-calculator/) [ Inscribed Circle (Incircle) Calculator inscribed-circle-incircle-calculator Incircle radius (and incenter, from vertex coordinates) of a triangle from side lengths or points. 1cr · v2026-04-22 ](/tools/inscribed-circle-incircle-calculator/) [ Midpoint Calculator midpoint-calculator Find the midpoint, distance, slope, and angle between two points. 1cr · v2026-04-22 ](/tools/midpoint-calculator/) [ Point to Plane Distance Calculator point-to-plane-distance-calculator Calculate the distance from a 3D point to a plane Ax + By + Cz + D = 0. 1cr · v2026-04-22 ](/tools/point-to-plane-distance-calculator/) [ Polygon Diagonals Calculator polygon-diagonals-calculator Calculate the number of diagonals and angle facts for a polygon. 1cr · v2026-04-22 ](/tools/polygon-diagonals-calculator/) [ Pythagorean Theorem Calculator pythagorean-theorem-calculator Find a missing right-triangle side and calculate area, perimeter, and angles. 1cr · v2026-04-22 ](/tools/pythagorean-theorem-calculator/) [ Rectangle Calculator rectangle-calculator Calculate rectangle area, perimeter, diagonal, radii, and aspect ratio from two known values. 1cr · v2026-04-22 ](/tools/rectangle-calculator/) [ Regular Polygon Calculator regular-polygon-calculator Calculate regular polygon area, perimeter, apothem, circumradius, angles, and diagonal count. 1cr · v2026-04-22 ](/tools/regular-polygon-calculator/) [ Right Triangle Calculator right-triangle-calculator Solve a right triangle from two sides or one side and one acute angle. 1cr · v2026-04-22 ](/tools/right-triangle-calculator/) [ Shoelace Formula Calculator shoelace-formula-calculator Calculate polygon area from vertex coordinates using the shoelace formula. 1cr · v2026-04-22 ](/tools/shoelace-formula-calculator/) [ Slope and Grade Calculator slope-and-grade-calculator Convert rise and run into slope, grade percentage and angle. 1cr · v2026-04-22 ](/tools/slope-and-grade-calculator/) [ Slope Calculator slope-calculator Calculate slope, angle, intercepts, and line equation from two points. 1cr · v2026-04-22 ](/tools/slope-calculator/) [ Sphere Calculator sphere-calculator Calculate sphere radius, diameter, circumference, surface area, and volume. 1cr · v2026-04-22 ](/tools/sphere-calculator/) [ Square Calculator square-calculator Calculate square side length, area, perimeter, diagonal, inradius, and circumradius from one known value. 1cr · v2026-04-22 ](/tools/square-calculator/) [ Triangle Area Calculator triangle-area-calculator Calculate triangle area from base and height or Heron's formula. 1cr · v2026-04-22 ](/tools/triangle-area-calculator/) [ Triangle Centroid Calculator triangle-centroid-calculator Calculate a triangle centroid and related side, area, and median properties. 1cr · v2026-04-22 ](/tools/triangle-centroid-calculator/) Geometry Calculators [ Surface Area of a Rectangular Prism Calculator surface-area-of-a-rectangular-prism-calculator Calculate rectangular prism surface area, lateral area, volume, diagonal, and face areas. 1cr · v2026-04-22 ](/tools/surface-area-of-a-rectangular-prism-calculator/) [ Tangent Line to Circle Calculator tangent-line-to-circle-calculator Find tangent line equations and contact points from a point to a circle. 1cr · v2026-04-22 ](/tools/tangent-line-to-circle-calculator/) [ Torus Calculator torus-calculator Calculate torus volume, surface area, and key radii. 1cr · v2026-04-22 ](/tools/torus-calculator/) [ Triangle Orthocenter Calculator triangle-orthocenter-calculator Calculate a triangle orthocenter, altitude feet, side lengths, area, and classifications from coordinates. 1cr · v2026-04-22 ](/tools/triangle-orthocenter-calculator/) Graph Theory [ Adjacency Matrix Calculator adjacency-matrix-calculator Build an adjacency matrix from an edge list (or read one back), with degrees, density, connected components, symmetry, and walk counts from matrix powers. 1cr · v2026-04-22 ](/tools/adjacency-matrix-calculator/) [ Dijkstra's Shortest Path Calculator dijkstra-s-shortest-path-calculator Run Dijkstra's algorithm on a small weighted graph. 1cr · v2026-04-22 ](/tools/dijkstra-s-shortest-path-calculator/) [ Graph Coloring Calculator graph-coloring-calculator Colour an undirected graph with greedy, Welsh-Powell, DSATUR, or exact search, reporting colour classes, the chromatic number, bipartiteness, and bounds. 1cr · v2026-04-22 ](/tools/graph-coloring-calculator/) [ Graph Degree Sequence Validator graph-degree-sequence-validator Validate simple graph degree sequences with the Havel-Hakimi algorithm. 1cr · v2026-04-22 ](/tools/graph-degree-sequence-validator/) [ Planar Graph Checker planar-graph-checker Check graph edge bounds and direct K5/K3,3 obstructions, with components and degree data. 1cr · v2026-04-22 ](/tools/planar-graph-checker/) [ Topological Sort Calculator topological-sort-calculator Topologically order a directed graph with Kahn or DFS, detect cycles, and report layers, sources, sinks, longest path, and the number of valid orderings. 1cr · v2026-04-22 ](/tools/topological-sort-calculator/) Growth [ Logarithmic Growth Calculator logarithmic-growth-calculator Solve compound growth value, time-to-target, or rate using logarithms. 1cr · v2026-04-22 ](/tools/logarithmic-growth-calculator/) Home [ Aquarium Substrate Calculator aquarium-substrate-calculator Estimate aquarium substrate volume, weight, and bag counts. 1cr · v2026-04-22 ](/tools/aquarium-substrate-calculator/) Length [ Feet and Inches to Cm Converter feet-and-inches-to-cm-converter Convert feet and inches to total inches, centimeters, meters, and height comparison percentages. 1cr · v2026-04-22 ](/tools/feet-and-inches-to-cm-converter/) Length Converters [ Inches to Millimeters Converter inches-to-mm-converter Convert decimal, fractional, or mixed-number inches to millimeters. 1cr · v2026-04-22 ](/tools/inches-to-mm-converter/) Lifestyle [ Christmas Tree Calculator christmas-tree-calculator Check tree height fit and estimate lights, ornaments, and garland. 1cr · v2026-04-22 ](/tools/christmas-tree-calculator/) Linear Algebra [ Angle Between Vectors Calculator angle-between-vectors-calculator Calculate the angle between two 2D or 3D vectors. 1cr · v2026-04-22 ](/tools/angle-between-vectors-calculator/) [ Characteristic Polynomial Calculator characteristic-polynomial-calculator Calculate characteristic polynomial coefficients for a square matrix. 1cr · v2026-04-22 ](/tools/characteristic-polynomial-calculator/) [ Cholesky Decomposition Calculator cholesky-decomposition-calculator Decompose a symmetric positive-definite matrix into A = L L^T. 1cr · v2026-04-22 ](/tools/cholesky-decomposition-calculator/) [ Column Space Calculator column-space-calculator Find matrix pivot columns, rank, nullity, RREF, and a column-space basis. 1cr · v2026-04-22 ](/tools/column-space-calculator/) [ Cramer's Rule Calculator cramer-s-rule-calculator Solve 2x2 or 3x3 linear systems with Cramer's rule. 1cr · v2026-04-22 ](/tools/cramer-s-rule-calculator/) [ Cross Product Calculator cross-product-calculator Calculate the 3D cross product, magnitude, areas, and angle. 1cr · v2026-04-22 ](/tools/cross-product-calculator/) [ Determinant Calculator determinant-calculator Calculate the determinant, trace, rank, and invertibility of a square matrix. 1cr · v2026-04-22 ](/tools/determinant-calculator/) [ Dot Product Calculator dot-product-calculator Calculate the dot product, magnitudes, angle, and vector projection. 1cr · v2026-04-22 ](/tools/dot-product-calculator/) [ Eigenvalue and Eigenvector Calculator eigenvalue-eigenvector-calculator Eigenvalues and eigenvectors of 2x2 and 3x3 matrices, exact when rational, complex included. 1cr · v2026-04-22 ](/tools/eigenvalue-eigenvector-calculator/) [ Gram-Schmidt Calculator gram-schmidt-calculator Orthogonalize 2-10 vectors (dimension 2-10): exact orthogonal basis plus orthonormal vectors. 1cr · v2026-04-22 ](/tools/gram-schmidt-calculator/) [ Jordan Normal Form Calculator jordan-normal-form-calculator Jordan normal form of a matrix with rational eigenvalues, with block sizes from the nullities of (A-lambda I)^k. 1cr · v2026-04-22 ](/tools/jordan-normal-form-calculator/) [ Matrix Diagonalization Calculator matrix-diagonalization-calculator Diagonalise a 2x2 to 4x4 matrix as A = P·D·P-inverse in exact rational arithmetic, reporting defective matrices. 1cr · v2026-04-22 ](/tools/matrix-diagonalization-calculator/) [ Matrix Exponential Calculator matrix-exponential-calculator Compute e^(At) by scaling and squaring with a Taylor series, checked against det(e^At) = e^(trace(A)t). 1cr · v2026-04-22 ](/tools/matrix-exponential-calculator/) [ Matrix Inverse Calculator matrix-inverse-calculator Invert a square matrix (2x2 to 8x8) by exact Gauss-Jordan elimination, with determinant. 1cr · v2026-04-22 ](/tools/matrix-inverse-calculator/) [ Matrix LU Decomposition Calculator matrix-lu-decomposition-calculator Factor a square matrix (2x2 to 8x8) into PA = LU with partial pivoting, exactly. 1cr · v2026-04-22 ](/tools/matrix-lu-decomposition-calculator/) [ Matrix Multiplication Calculator matrix-multiplication-calculator Multiply two matrices (up to 10x10) with exact fraction arithmetic. 1cr · v2026-04-22 ](/tools/matrix-multiplication-calculator/) [ Matrix Power Calculator matrix-power-calculator Raise a square matrix (up to 6x6) to any integer power from -10 to 20, exactly. 1cr · v2026-04-22 ](/tools/matrix-power-calculator/) [ Matrix Rank Calculator matrix-rank-calculator Rank, nullity, pivot and free columns of a matrix (up to 10x10) via exact row reduction. 1cr · v2026-04-22 ](/tools/matrix-rank-calculator/) [ Matrix Trace Calculator matrix-trace-calculator Calculate the trace and diagonal details of a square matrix. 1cr · v2026-04-22 ](/tools/matrix-trace-calculator/) [ Null Space Calculator null-space-calculator Kernel basis vectors of a matrix (up to 8x8) via exact RREF, with verification. 1cr · v2026-04-22 ](/tools/null-space-calculator/) [ RREF Calculator (Row Echelon Form) rref-calculator-row-echelon-form Reduced row echelon form (up to 10x10) with rank, pivots, and augmented-system analysis. 1cr · v2026-04-22 ](/tools/rref-calculator-row-echelon-form/) [ Unit Vector Calculator unit-vector-calculator Normalize a vector and return its unit vector. 1cr · v2026-04-22 ](/tools/unit-vector-calculator/) [ Vector Magnitude Calculator vector-magnitude-calculator Calculate the Euclidean magnitude and unit vector for any vector. 1cr · v2026-04-22 ](/tools/vector-magnitude-calculator/) [ Vector Projection Calculator vector-projection-calculator Project one vector onto another and compute the orthogonal component. 1cr · v2026-04-22 ](/tools/vector-projection-calculator/) Logarithms [ Log Base 10 Calculator log-base-10-calculator Calculate common logarithms with bounds and an antilog check. 1cr · v2026-04-22 ](/tools/log-base-10-calculator/) [ Log Base 2 Calculator log-base-2-calculator Calculate binary logarithms and detect exact powers of two. 1cr · v2026-04-22 ](/tools/log-base-2-calculator/) [ Log Calculator log-calculator Logarithm of x in base 10, e, 2, or any custom base, with all three standard logs for comparison. 1cr · v2026-04-22 ](/tools/log-calculator/) [ Natural Log Calculator natural-log-calculator ln(x) with log10, log2, the derivative 1/x, and e^x, flagging exact powers of e. 1cr · v2026-04-22 ](/tools/natural-log-calculator/) Logic [ Boolean Algebra Simplifier boolean-algebra-simplifier Simplify a boolean expression to its minimal sum-of-products or product-of-sums form, with canonical forms, prime implicants, and literal savings. 1cr · v2026-04-22 ](/tools/boolean-algebra-simplifier/) [ Karnaugh Map (K-Map) Solver karnaugh-map-k-map-solver Minimise 2-5 variable boolean functions from minterms, maxterms, or a truth table with Quine-McCluskey, returning prime implicants and the Gray-coded K-map grid. 1cr · v2026-04-22 ](/tools/karnaugh-map-k-map-solver/) [ Truth Table Generator truth-table-generator Generate truth tables for small boolean logic expressions. 1cr · v2026-04-22 ](/tools/truth-table-generator/) Number Formatting [ Rounding Calculator rounding-calculator Round to decimal places, significant figures, or the nearest multiple with 6 rounding methods compared. 1cr · v2026-04-22 ](/tools/rounding-calculator/) [ Significant Figures Calculator significant-figures-calculator Count, round, and apply arithmetic rules for significant figures. 1cr · v2026-04-22 ](/tools/significant-figures-calculator/) Number Systems [ Base Converter base-converter Convert integers between bases 2 through 36. 1cr · v2026-04-22 ](/tools/base-converter/) [ Base-N Calculator base-n-calculator Convert an integer from any base 2 through 36 to every other base. 1cr · v2026-04-22 ](/tools/base-n-calculator/) [ BCD to Binary Converter bcd-to-binary-converter Convert 8421 BCD nibbles to decimal and binary. 1cr · v2026-04-22 ](/tools/bcd-to-binary-converter/) [ BCD to Decimal Converter bcd-to-decimal-converter Convert binary-coded decimal nibbles to a decimal integer. 1cr · v2026-04-22 ](/tools/bcd-to-decimal-converter/) [ BCD to Hex Converter bcd-to-hex-converter Convert BCD to hexadecimal or hexadecimal to BCD. 1cr · v2026-04-22 ](/tools/bcd-to-hex-converter/) [ Binary Calculator binary-calculator Run binary arithmetic and bitwise operations. 1cr · v2026-04-22 ](/tools/binary-calculator/) [ Binary Converter binary-converter Convert a binary number to decimal, hexadecimal, octal, or any base from 2 to 36. 1cr · v2026-04-22 ](/tools/binary-converter/) [ Binary to BCD Converter binary-to-bcd-converter Convert an integer binary value to binary-coded decimal. 1cr · v2026-04-22 ](/tools/binary-to-bcd-converter/) [ Binary to Decimal Converter binary-to-decimal-converter Convert a binary number to decimal, hexadecimal, and octal. 1cr · v2026-04-22 ](/tools/binary-to-decimal-converter/) [ Binary to Gray Code Converter binary-to-gray-code-converter Convert an integer binary value to Gray code. 1cr · v2026-04-22 ](/tools/binary-to-gray-code-converter/) [ Binary to Hex Converter binary-to-hex-converter Convert a binary number to hexadecimal with nibble grouping. 1cr · v2026-04-22 ](/tools/binary-to-hex-converter/) [ Binary to Octal Converter binary-to-octal-converter Convert a binary number to octal using 3-bit grouping. 1cr · v2026-04-22 ](/tools/binary-to-octal-converter/) [ Decimal to BCD Converter decimal-to-bcd-converter Convert a decimal integer to Binary-Coded Decimal (4 bits per digit), with a plain-binary comparison. 1cr · v2026-04-22 ](/tools/decimal-to-bcd-converter/) [ Decimal to Binary Converter decimal-to-binary-converter Convert a decimal integer to binary with grouped bits and division steps. 1cr · v2026-04-22 ](/tools/decimal-to-binary-converter/) [ Decimal to Hex Converter decimal-to-hex-converter Convert a decimal integer to hexadecimal with conversion steps. 1cr · v2026-04-22 ](/tools/decimal-to-hex-converter/) [ Decimal to Octal Converter decimal-to-octal-converter Convert a base-10 integer to octal with division steps. 1cr · v2026-04-22 ](/tools/decimal-to-octal-converter/) [ Decimal to Scientific Notation Converter decimal-to-scientific-notation-converter Convert decimal numbers to scientific, E, and engineering notation. 1cr · v2026-04-22 ](/tools/decimal-to-scientific-notation-converter/) [ Gray Code to Binary Converter gray-code-to-binary-converter Convert Gray code to ordinary binary with XOR steps. 1cr · v2026-04-22 ](/tools/gray-code-to-binary-converter/) [ Hex Converter hex-converter Convert integers between hexadecimal, decimal, binary, and octal. 1cr · v2026-04-22 ](/tools/hex-converter/) [ Hex to BCD Converter hex-to-bcd-converter Convert a hexadecimal integer to binary-coded decimal. 1cr · v2026-04-22 ](/tools/hex-to-bcd-converter/) [ Hex to Binary Converter hex-to-binary-converter Convert a hexadecimal integer to binary. 1cr · v2026-04-22 ](/tools/hex-to-binary-converter/) [ Hex to Decimal Converter hex-to-decimal-converter Convert a hexadecimal integer to decimal with digit breakdown. 1cr · v2026-04-22 ](/tools/hex-to-decimal-converter/) [ Hex to Octal Converter hex-to-octal-converter Convert a hexadecimal integer to octal through binary grouping. 1cr · v2026-04-22 ](/tools/hex-to-octal-converter/) [ Octal Converter octal-converter Convert non-negative integers between octal, decimal, binary, and hex. 1cr · v2026-04-22 ](/tools/octal-converter/) [ Octal to Binary Converter octal-to-binary-converter Convert an octal integer to binary with per-digit mapping. 1cr · v2026-04-22 ](/tools/octal-to-binary-converter/) [ Octal to Decimal Converter octal-to-decimal-converter Convert an octal integer to decimal with positional breakdown. 1cr · v2026-04-22 ](/tools/octal-to-decimal-converter/) [ Ratio to Percentage Calculator ratio-to-percentage-calculator Convert ratios, fractions, or decimal divisions to percentages. 1cr · v2026-04-22 ](/tools/ratio-to-percentage-calculator/) [ Roman Numerals Converter roman-numerals-converter Convert between Roman numerals and Arabic numbers (1-3999) with canonical-form checking. 1cr · v2026-04-22 ](/tools/roman-numerals-converter/) [ Scientific Notation to Decimal Converter scientific-notation-to-decimal-converter Convert scientific notation to ordinary decimal notation. 1cr · v2026-04-22 ](/tools/scientific-notation-to-decimal-converter/) Number Theory [ Amicable Number Checker amicable-number-checker Check whether two integers form an amicable pair, or find the partner of a single number. 1cr · v2026-04-22 ](/tools/amicable-number-checker/) [ Chinese Remainder Theorem Calculator chinese-remainder-theorem-calculator Solve a system of simultaneous congruences with pairwise coprime moduli using the CRT. 1cr · v2026-04-22 ](/tools/chinese-remainder-theorem-calculator/) [ Continued Fraction Calculator continued-fraction-calculator Expand a decimal, fraction, or square root into a continued fraction with convergents. 1cr · v2026-04-22 ](/tools/continued-fraction-calculator/) [ Digital Root Calculator digital-root-calculator Repeated digit sum or product to a single digit in base 2, 8, 10, or 16, with persistence and the casting-out-nines formula check. 1cr · v2026-04-22 ](/tools/digital-root-calculator/) [ Divisibility Test Calculator divisibility-test-calculator Test a number against common divisors, primes, or custom divisors with rule explanations. 1cr · v2026-04-22 ](/tools/divisibility-test-calculator/) [ Egyptian Fraction Calculator egyptian-fraction-calculator Express a proper fraction as a sum of distinct unit fractions using the greedy Fibonacci-Sylvester algorithm. 1cr · v2026-04-22 ](/tools/egyptian-fraction-calculator/) [ Euler's Totient Function Calculator euler-s-totient-function-calculator Calculate Euler's totient function phi(n) with its prime factorization. 1cr · v2026-04-22 ](/tools/euler-s-totient-function-calculator/) [ Extended Euclidean Algorithm Calculator extended-euclidean-algorithm-calculator Find the GCD of two integers and Bezout coefficients via the extended Euclidean algorithm. 1cr · v2026-04-22 ](/tools/extended-euclidean-algorithm-calculator/) [ Factor Calculator factor-calculator List all factors and factor pairs of a number up to 10^12 with its prime factorization. 1cr · v2026-04-22 ](/tools/factor-calculator/) [ Factorial Calculator factorial-calculator Calculate factorial metadata, exact values for bounded inputs, and scientific notation. 1cr · v2026-04-22 ](/tools/factorial-calculator/) [ Fibonacci Number Checker fibonacci-number-checker Check whether a non-negative integer is in the Fibonacci sequence. 1cr · v2026-04-22 ](/tools/fibonacci-number-checker/) [ First n Prime Numbers first-n-prime-numbers Generate the first n primes (up to 10,000) with twin-prime pairs and gap statistics. 1cr · v2026-04-22 ](/tools/first-n-prime-numbers/) [ Goldbach Conjecture Verifier goldbach-conjecture-verifier Verify an even integer by finding prime pairs that sum to it. 1cr · v2026-04-22 ](/tools/goldbach-conjecture-verifier/) [ Greatest Common Factor Calculator greatest-common-factor-calculator Find the GCF of up to 15 numbers with prime factorizations and all common factors. 1cr · v2026-04-22 ](/tools/greatest-common-factor-calculator/) [ Prime Number Checker is-it-a-prime-number Check whether a number up to 10^15 is prime, with factorization and the 5 nearest primes either side. 1cr · v2026-04-22 ](/tools/is-it-a-prime-number/) [ Least Common Multiple Calculator least-common-multiple-calculator Find the LCM of up to 15 numbers with prime factorizations and the GCF cross-check. 1cr · v2026-04-22 ](/tools/least-common-multiple-calculator/) [ List of Prime Numbers list-of-prime-numbers List every prime from 2 up to a limit (max 10,000) with density and twin-prime statistics. 1cr · v2026-04-22 ](/tools/list-of-prime-numbers/) [ Mersenne Prime Checker mersenne-prime-checker Check whether 2^p - 1 is prime for bounded exponents. 1cr · v2026-04-22 ](/tools/mersenne-prime-checker/) [ Möbius Function Calculator mobius-function-calculator Evaluate the Möbius function μ(n) from the prime factorization of n. 1cr · v2026-04-22 ](/tools/mobius-function-calculator/) [ Modular Exponentiation Calculator modular-exponentiation-calculator Compute base^exponent mod modulus efficiently with binary square-and-multiply statistics. 1cr · v2026-04-22 ](/tools/modular-exponentiation-calculator/) [ Partition Function Calculator partition-function-calculator Calculate the integer partition number p(n) for bounded n. 1cr · v2026-04-22 ](/tools/partition-function-calculator/) [ Perfect Number Checker perfect-number-checker Classify a positive integer as perfect, abundant, or deficient. 1cr · v2026-04-22 ](/tools/perfect-number-checker/) [ Prime Factor Calculator prime-factor-calculator Prime factors plus divisor sum, Euler's totient, and abundant/deficient/perfect classification. 1cr · v2026-04-22 ](/tools/prime-factor-calculator/) [ Prime Factorization Calculator prime-factorization-calculator Factor a number up to 10^15 into primes with exponent form and divisor count. 1cr · v2026-04-22 ](/tools/prime-factorization-calculator/) [ Primitive Root Calculator primitive-root-calculator Test whether primitive roots exist modulo n and list them with φ(n). 1cr · v2026-04-22 ](/tools/primitive-root-calculator/) [ Twin Prime Finder twin-prime-finder Find twin prime pairs up to a bounded integer limit. 1cr · v2026-04-22 ](/tools/twin-prime-finder/) Numbers [ Scientific Notation Calculator scientific-notation-calculator Convert a number into scientific, E and engineering notation. 1cr · v2026-04-22 ](/tools/scientific-notation-calculator/) Numerology [ Destiny Number Calculator destiny-number-calculator Calculate a Pythagorean numerology destiny number from a name. 1cr · v2026-04-22 ](/tools/destiny-number-calculator/) Payroll [ Overtime Pay Calculator overtime-pay-calculator Calculate regular pay, overtime pay, gross pay, and effective hourly rate. 1cr · v2026-04-22 ](/tools/overtime-pay-calculator/) Percentage [ Decimal to Percent Converter decimal-to-percent-converter Convert one or more decimal numbers to percentages. 1cr · v2026-04-22 ](/tools/decimal-to-percent-converter/) [ Percent to Decimal Converter percent-to-decimal-converter Convert one or many percentages to decimals (divide by 100), batch input supported. 1cr · v2026-04-22 ](/tools/percent-to-decimal-converter/) [ Percentage Calculator percentage-calculator Six percentage operations behind one endpoint, selected by mode. 1cr · v2026-04-22 ](/tools/percentage-calculator/) [ Percentage Change Calculator percentage-change-calculator Calculate percentage change between two values with chart-ready before-and-after data. 1cr · v2026-04-22 ](/tools/percentage-change-calculator/) [ Percentage Decrease Calculator percentage-decrease-calculator Find a percentage decrease, apply one to a value, or recover the original value before a decrease. 1cr · v2026-04-22 ](/tools/percentage-decrease-calculator/) [ Percentage Error Calculator percentage-error-calculator Calculate percent error between estimated and actual values. 1cr · v2026-04-22 ](/tools/percentage-error-calculator/) [ Percentage Increase Calculator percentage-increase-calculator Calculate the absolute and percentage increase or decrease between two positive values. 1cr · v2026-04-22 ](/tools/percentage-increase-calculator/) Percentages [ Percent Growth Rate Calculator percent-growth-rate-calculator Calculate total percent change, simple annual growth, CAGR, and multiplier. 1cr · v2026-04-22 ](/tools/percent-growth-rate-calculator/) Physics [ Acceleration Calculator acceleration-calculator Calculate acceleration from velocity change, distance, force, centripetal motion, or free fall. 1cr · v2026-04-22 ](/tools/acceleration-calculator/) [ Boxing Punch Power Calculator boxing-punch-power-calculator Estimate punch force, kinetic energy, and power from speed and effective mass. 1cr · v2026-04-22 ](/tools/boxing-punch-power-calculator/) [ Headlight Beam Distance Calculator headlight-beam-distance-calculator Calculate headlight beam road reach from mounting height and aim angle. 1cr · v2026-04-22 ](/tools/headlight-beam-distance-calculator/) [ Horsepower Calculator horsepower-calculator Solve horsepower, torque, or RPM and return common power conversions. 1cr · v2026-04-22 ](/tools/horsepower-calculator/) [ Penny Drop Impact Calculator penny-drop-impact-calculator Estimate idealized penny impact velocity, energy, momentum, and force. 1cr · v2026-04-22 ](/tools/penny-drop-impact-calculator/) [ Speed Calculator speed-calculator Calculate speed from distance and time with common speed unit conversions. 1cr · v2026-04-22 ](/tools/speed-calculator/) Planning [ Parking Ratio Calculator parking-ratio-calculator Estimate parking spaces from common land-use parking ratios. 1cr · v2026-04-22 ](/tools/parking-ratio-calculator/) Probability [ Bayes' Theorem Calculator bayes-theorem-calculator Calculate the posterior probability with Bayes' theorem, likelihood ratio, and natural frequencies. 1cr · v2026-04-22 ](/tools/bayes-theorem-calculator/) [ Beta Distribution Calculator beta-distribution-calculator Beta distribution density, cumulative probability, quantiles, and shape statistics. 1cr · v2026-04-22 ](/tools/beta-distribution-calculator/) [ Binomial Probability Distribution Calculator binomial-probability-distribution-calculator Calculate exact and cumulative binomial probabilities. 1cr · v2026-04-22 ](/tools/binomial-probability-distribution-calculator/) [ Dice Roll Probability Calculator dice-roll-probability-calculator Calculate exact probability metrics for sums of identical dice. 1cr · v2026-04-22 ](/tools/dice-roll-probability-calculator/) [ Exponential Distribution Calculator exponential-distribution-calculator Exponential distribution probabilities (P(X<=x), P(X>x), between) plus mean, median, and variance. 1cr · v2026-04-22 ](/tools/exponential-distribution-calculator/) [ Gacha Pity Calculator gacha-pity-calculator Estimate pull success probability with soft and hard pity rates. 1cr · v2026-04-22 ](/tools/gacha-pity-calculator/) [ Geometric Distribution Calculator geometric-distribution-calculator Compute PMF, CDF, survival, mean, and variance for a geometric distribution. 1cr · v2026-04-22 ](/tools/geometric-distribution-calculator/) [ Hypergeometric Distribution Calculator hypergeometric-distribution-calculator Calculate exact and cumulative hypergeometric probabilities. 1cr · v2026-04-22 ](/tools/hypergeometric-distribution-calculator/) [ Loot Drop Probability Calculator loot-drop-probability-calculator Calculate loot drop odds across repeated independent attempts. 1cr · v2026-04-22 ](/tools/loot-drop-probability-calculator/) [ Negative Binomial Distribution Calculator negative-binomial-distribution-calculator Negative binomial PMF and cumulative probabilities in failures or total-trials parametrization. 1cr · v2026-04-22 ](/tools/negative-binomial-distribution-calculator/) [ Normal Distribution Calculator normal-distribution-calculator Normal probabilities: left/right tail, between two values, or inverse lookup, with z-scores and PDF. 1cr · v2026-04-22 ](/tools/normal-distribution-calculator/) [ Poisson Distribution Calculator poisson-distribution-calculator Calculate Poisson PMF, CDF, and tail probabilities. 1cr · v2026-04-22 ](/tools/poisson-distribution-calculator/) [ Probability Calculator probability-calculator Compute basic, conditional, Bayes, and complement probabilities. 1cr · v2026-04-22 ](/tools/probability-calculator/) Ratios [ Aspect Ratio Calculator aspect-ratio-calculator Simplify dimensions to a ratio, derive dimensions from a ratio, or resize proportionally. 1cr · v2026-04-22 ](/tools/aspect-ratio-calculator/) [ Proportion Calculator proportion-calculator Solve or verify a proportion a/b = c/d from three or four values. 1cr · v2026-04-22 ](/tools/proportion-calculator/) [ Ratio Calculator ratio-calculator Solve a:b = c:d proportions, simplify or scale ratios, and generate equivalent ratio tables. 1cr · v2026-04-22 ](/tools/ratio-calculator/) [ Unit Rate Calculator unit-rate-calculator Calculate a unit rate or compare two unit rates. 1cr · v2026-04-22 ](/tools/unit-rate-calculator/) Sequence Tools [ Catalan Number Generator catalan-number-generator Calculate the nth Catalan number and nearby sequence values. 1cr · v2026-04-22 ](/tools/catalan-number-generator/) [ Collatz Conjecture Calculator collatz-conjecture-calculator Generate and analyze the deterministic Collatz hailstone sequence. 1cr · v2026-04-22 ](/tools/collatz-conjecture-calculator/) Sequences [ Arithmetic Sequence Calculator arithmetic-sequence-calculator Calculate the nth term and partial sum of an arithmetic sequence. 1cr · v2026-04-22 ](/tools/arithmetic-sequence-calculator/) [ Cube Numbers List cube-numbers-list List cube numbers n³ for bases up to 1000 with sums and prime-base counts. 1cr · v2026-04-22 ](/tools/cube-numbers-list/) [ Geometric Sequence Calculator geometric-sequence-calculator Calculate nth term, partial sum, and sample terms for a geometric sequence. 1cr · v2026-04-22 ](/tools/geometric-sequence-calculator/) [ Happy Number Calculator happy-number-calculator Check whether a number is happy or list happy numbers up to a limit. 1cr · v2026-04-22 ](/tools/happy-number-calculator/) [ List of Fibonacci Numbers list-of-fibonacci-numbers Generate Fibonacci numbers by count, maximum value, or index range. 1cr · v2026-04-22 ](/tools/list-of-fibonacci-numbers/) [ Number Pattern Finder number-pattern-finder Detect arithmetic, geometric or quadratic patterns and predict the next value. 1cr · v2026-04-22 ](/tools/number-pattern-finder/) [ Pascal's Triangle Generator pascal-s-triangle-generator Generate Pascal's triangle rows and related row sums. 1cr · v2026-04-22 ](/tools/pascal-s-triangle-generator/) [ Sequence Calculator sequence-calculator Generate arithmetic, geometric, or Fibonacci-style sequence terms and sums. 1cr · v2026-04-22 ](/tools/sequence-calculator/) [ Skip Counting Generator skip-counting-generator Generate an arithmetic skip-counting sequence. 1cr · v2026-04-22 ](/tools/skip-counting-generator/) [ Square Numbers List square-numbers-list List square numbers, find squares in a range, or check a perfect square. 1cr · v2026-04-22 ](/tools/square-numbers-list/) [ Sum of Cubes Calculator sum-of-cubes-calculator Calculate 1^3 + 2^3 +... + n^3. 1cr · v2026-04-22 ](/tools/sum-of-cubes-calculator/) [ Sum of Positive Integers Calculator sum-of-positive-integers-calculator Sum consecutive integers n1..n2 exactly with Gauss's pairing formula. 1cr · v2026-04-22 ](/tools/sum-of-positive-integers-calculator/) [ Sum of Squares Calculator sum-of-squares-calculator Calculate 1^2 + 2^2 +... + n^2. 1cr · v2026-04-22 ](/tools/sum-of-squares-calculator/) Set Theory [ Inclusion Exclusion Calculator inclusion-exclusion-calculator Apply inclusion-exclusion for one, two, or three finite sets. 1cr · v2026-04-22 ](/tools/inclusion-exclusion-calculator/) [ Set Theory Calculator set-theory-calculator Perform common finite set operations. 1cr · v2026-04-22 ](/tools/set-theory-calculator/) Special Functions [ Beta Function Calculator beta-function-calculator Calculate the Euler beta function B(x, y) via the gamma function relationship. 1cr · v2026-04-22 ](/tools/beta-function-calculator/) [ Exponential Integral Calculator exponential-integral-calculator Evaluate E1(x), Ei(x), the generalised E_n(x) and the logarithmic integral li(x). 1cr · v2026-04-22 ](/tools/exponential-integral-calculator/) Sports [ Bike Gear Ratio Calculator bike-gear-ratio-calculator Calculate bicycle gear ratio, gear inches, rollout, gain ratio, and speed. 1cr · v2026-04-22 ](/tools/bike-gear-ratio-calculator/) [ Bowling Score Calculator bowling-score-calculator Score a ten-pin bowling game from roll values. 1cr · v2026-04-22 ](/tools/bowling-score-calculator/) [ Cricket Run Rate Calculator cricket-run-rate-calculator Calculate current, projected, and required cricket run rates from cricket over notation. 1cr · v2026-04-22 ](/tools/cricket-run-rate-calculator/) [ Usage Rate Calculator usage-rate-calculator Calculate basketball usage rate from player and team shot, free throw, turnover, and minute stats. 1cr · v2026-04-22 ](/tools/usage-rate-calculator/) Statistics [ A/B Test Sample Size Calculator a-b-test-sample-size-calculator Size an A/B test from baseline rate, minimum detectable effect, significance, and power. 1cr · v2026-04-22 ](/tools/a-b-test-sample-size-calculator/) [ A/B Test Significance Calculator a-b-test-significance-calculator Test whether an A/B conversion-rate difference is significant, with lift, z score, p-value, and intervals. 1cr · v2026-04-22 ](/tools/a-b-test-significance-calculator/) [ ANOVA Calculator anova-calculator Run one-way ANOVA with F statistic, p-value, table components, and effect sizes. 1cr · v2026-04-22 ](/tools/anova-calculator/) [ Arithmetic Mean Calculator arithmetic-mean-calculator Calculate arithmetic mean, median, modes, range, variance, and standard deviation from a number list. 1cr · v2026-04-22 ](/tools/arithmetic-mean-calculator/) [ Average Calculator average-calculator Calculate mean, median, mode, range, variance, and optional weighted average. 1cr · v2026-04-22 ](/tools/average-calculator/) [ Average Deviation Calculator average-deviation-calculator Calculate mean and median absolute deviation for a numeric dataset. 1cr · v2026-04-22 ](/tools/average-deviation-calculator/) [ Box and Whisker Plot Maker box-and-whisker-plot-maker Compute box plot statistics, whiskers, fences, and outliers. 1cr · v2026-04-22 ](/tools/box-and-whisker-plot-maker/) [ Central Limit Theorem Calculator central-limit-theorem-calculator Sampling-distribution probabilities for the sample mean via the CLT (standard error, z-scores). 1cr · v2026-04-22 ](/tools/central-limit-theorem-calculator/) [ Chi Square Test Calculator chi-square-test-calculator Run a chi-square goodness-of-fit test for observed and expected counts. 1cr · v2026-04-22 ](/tools/chi-square-test-calculator/) [ Coefficient of Variation Calculator coefficient-of-variation-calculator Calculate coefficient of variation from sample or population standard deviation. 1cr · v2026-04-22 ](/tools/coefficient-of-variation-calculator/) [ Cohen's d Calculator cohens-d-calculator Calculate Cohen's d, Hedges' g, overlap, and effect-size interpretation. 1cr · v2026-04-22 ](/tools/cohens-d-calculator/) [ Confidence Interval Calculator confidence-interval-calculator Confidence interval for a population mean from raw data or summary statistics, using the t-distribution or the normal distribution. 1cr · v2026-04-22 ](/tools/confidence-interval-calculator/) [ Confidence Interval for Proportion Calculator confidence-interval-for-proportion-calculator Wald and Wilson score confidence intervals for a proportion at eight confidence levels. 1cr · v2026-04-22 ](/tools/confidence-interval-for-proportion-calculator/) [ Contingency Table Calculator contingency-table-calculator Chi-square test of independence for an r x c contingency table with expected counts, standardized residuals, cell contributions, and Cramer's V. 1cr · v2026-04-22 ](/tools/contingency-table-calculator/) [ Correlation Coefficient Calculator correlation-coefficient-calculator Calculate Pearson, Spearman, and Kendall correlation coefficients. 1cr · v2026-04-22 ](/tools/correlation-coefficient-calculator/) [ Effect Size Calculator effect-size-calculator Calculate Cohen's d, Hedges' g, Glass's delta, and related effect-size statistics for two groups. 1cr · v2026-04-22 ](/tools/effect-size-calculator/) [ Entropy Calculator entropy-calculator Calculate Shannon entropy of a probability distribution in bits, nats, or dits. 1cr · v2026-04-22 ](/tools/entropy-calculator/) [ F-Test / F-Distribution Calculator f-test-f-distribution-calculator Compare two variances with an F test, or turn an F statistic into a p-value and critical values. 1cr · v2026-04-22 ](/tools/f-test-f-distribution-calculator/) [ Find Minimum and Maximum find-minimum-maximum Find min, max, range, mean, median, positions, and sorted values for a number list. 1cr · v2026-04-22 ](/tools/find-minimum-maximum/) [ Fisher's Exact Test Calculator fisher-s-exact-test-calculator Exact hypergeometric test for a 2x2 table with one- and two-tailed p-values, odds ratio with confidence interval, relative risk, and expected counts. 1cr · v2026-04-22 ](/tools/fisher-s-exact-test-calculator/) [ Five Number Summary Calculator five-number-summary-calculator Calculate minimum, Q1, median, Q3, maximum, IQR, and outlier fences. 1cr · v2026-04-22 ](/tools/five-number-summary-calculator/) [ Geometric Mean Calculator geometric-mean-calculator Calculate geometric mean and compare it with arithmetic, harmonic, median, minimum, and maximum values. 1cr · v2026-04-22 ](/tools/geometric-mean-calculator/) [ Gini Coefficient Calculator gini-coefficient-calculator Calculate a Gini coefficient and Lorenz curve points from nonnegative data. 1cr · v2026-04-22 ](/tools/gini-coefficient-calculator/) [ Harmonic Mean Calculator harmonic-mean-calculator Calculate harmonic mean for positive non-zero values with comparison means and reciprocal totals. 1cr · v2026-04-22 ](/tools/harmonic-mean-calculator/) [ Histogram Maker histogram-maker Create histogram bin counts and relative frequencies from numeric data. 1cr · v2026-04-22 ](/tools/histogram-maker/) [ Interquartile Range Calculator interquartile-range-calculator Calculate IQR, quartiles, and 1.5-IQR outlier fences. 1cr · v2026-04-22 ](/tools/interquartile-range-calculator/) [ Kruskal-Wallis Test Calculator kruskal-wallis-test-calculator Run the Kruskal-Wallis H test for several independent groups, with tie correction and rank summaries. 1cr · v2026-04-22 ](/tools/kruskal-wallis-test-calculator/) [ Linear Regression Calculator linear-regression-calculator Least-squares line with r, R-squared, standard errors, sums of squares, and optional prediction. 1cr · v2026-04-22 ](/tools/linear-regression-calculator/) [ Mean Absolute Deviation Calculator mean-absolute-deviation-calculator Calculate mean or median absolute deviation for a numeric dataset. 1cr · v2026-04-22 ](/tools/mean-absolute-deviation-calculator/) [ Mean Calculator mean-calculator Calculate arithmetic mean and supporting summary statistics. 1cr · v2026-04-22 ](/tools/mean-calculator/) [ Mean Median Mode Calculator mean-median-mode-calculator Calculate mean, median, mode, range, variance, and standard deviation. 1cr · v2026-04-22 ](/tools/mean-median-mode-calculator/) [ Median Absolute Deviation Calculator median-absolute-deviation-calculator Calculate raw and scaled median absolute deviation as a robust spread measure. 1cr · v2026-04-22 ](/tools/median-absolute-deviation-calculator/) [ Median Calculator median-calculator Calculate the median, sorted data, quartiles, and range. 1cr · v2026-04-22 ](/tools/median-calculator/) [ Midrange Calculator midrange-calculator Calculate the midpoint between the minimum and maximum of a dataset. 1cr · v2026-04-22 ](/tools/midrange-calculator/) [ Mode Calculator mode-calculator Find the mode or modes and frequency table for a numeric dataset. 1cr · v2026-04-22 ](/tools/mode-calculator/) [ Odds Ratio Calculator odds-ratio-calculator Odds ratio with Woolf CI, relative risk, NNT, and Yates-corrected chi-square from a 2x2 table. 1cr · v2026-04-22 ](/tools/odds-ratio-calculator/) [ Outlier Calculator outlier-calculator Detect IQR outliers and return quartiles, bounds, and counts. 1cr · v2026-04-22 ](/tools/outlier-calculator/) [ P-Value Calculator p-value-calculator Convert a z, t, chi-square, or F test statistic into a one- or two-tailed p-value with critical values and significance at common alpha levels. 1cr · v2026-04-22 ](/tools/p-value-calculator/) [ Percentile Calculator percentile-calculator Calculate a percentile value or percentile rank for a numeric dataset. 1cr · v2026-04-22 ](/tools/percentile-calculator/) [ Population Variance Calculator population-variance-calculator Calculate population variance and population standard deviation. 1cr · v2026-04-22 ](/tools/population-variance-calculator/) [ Quartile Calculator quartile-calculator Calculate Q1, Q2, Q3, IQR, and outlier fences using a selected quartile method. 1cr · v2026-04-22 ](/tools/quartile-calculator/) [ Quartile Deviation Calculator quartile-deviation-calculator Calculate quartile deviation, IQR fences, and outliers for numeric data. 1cr · v2026-04-22 ](/tools/quartile-deviation-calculator/) [ Range Calculator range-calculator Range (max − min) of a data set with quartiles, IQR, midrange, and a spread rating. 1cr · v2026-04-22 ](/tools/range-calculator/) [ Relative Risk Calculator relative-risk-calculator Relative risk with confidence interval, attributable fractions, NNT, and significance test. 1cr · v2026-04-22 ](/tools/relative-risk-calculator/) [ Relative Standard Deviation Calculator relative-standard-deviation-calculator Calculate RSD, coefficient of variation, and precision quality for data. 1cr · v2026-04-22 ](/tools/relative-standard-deviation-calculator/) [ Root Mean Square Calculator root-mean-square-calculator Calculate root mean square for a numeric list. 1cr · v2026-04-22 ](/tools/root-mean-square-calculator/) [ Sample Mean Calculator sample-mean-calculator Calculate sample mean plus core descriptive statistics for a numeric dataset. 1cr · v2026-04-22 ](/tools/sample-mean-calculator/) [ Sample Size Calculator sample-size-calculator Survey sample size from confidence level, margin of error, and optional finite-population correction. 1cr · v2026-04-22 ](/tools/sample-size-calculator/) [ Sample Standard Deviation Calculator sample-standard-deviation-calculator Calculate sample standard deviation and optional z-score outliers. 1cr · v2026-04-22 ](/tools/sample-standard-deviation-calculator/) [ Sample Variance Calculator sample-variance-calculator Calculate sample or population variance from a numeric dataset. 1cr · v2026-04-22 ](/tools/sample-variance-calculator/) [ Spearman Rank Correlation Calculator spearman-rank-correlation-calculator Spearman's rho with average-rank tie handling, tie correction, and t-based significance. 1cr · v2026-04-22 ](/tools/spearman-rank-correlation-calculator/) [ Standard Deviation Calculator standard-deviation-calculator Calculate sample and population standard deviation with quartiles. 1cr · v2026-04-22 ](/tools/standard-deviation-calculator/) [ Standard Error Calculator standard-error-calculator Calculate standard error of the mean and a z-based confidence interval. 1cr · v2026-04-22 ](/tools/standard-error-calculator/) [ Statistics Calculator statistics-calculator Calculate descriptive statistics and histogram-ready distribution data from numeric values. 1cr · v2026-04-22 ](/tools/statistics-calculator/) [ t-Test Calculator t-test-calculator Run one-sample, paired, or independent two-sample t-tests with Welch or pooled variance, p-value, critical value, confidence interval, and Cohen's d. 1cr · v2026-04-22 ](/tools/t-test-calculator/) [ Variance Calculator variance-calculator Calculate sample and population variance with related statistics. 1cr · v2026-04-22 ](/tools/variance-calculator/) [ Weibull Distribution Calculator weibull-distribution-calculator Calculate Weibull PDF/CDF/reliability, moments, and B-life values. 1cr · v2026-04-22 ](/tools/weibull-distribution-calculator/) [ Weighted Average Calculator weighted-average-calculator Calculate a weighted average from value and weight lists. 1cr · v2026-04-22 ](/tools/weighted-average-calculator/) [ Z-Score Calculator zscore-calculator Calculate z-scores, inverse values, percentiles, and normal probabilities. 1cr · v2026-04-22 ](/tools/zscore-calculator/) Surface Area [ Surface Area of a Cone Calculator surface-area-of-a-cone-calculator Calculate cone base, lateral, and total surface area from radius-height, radius-slant, or diameter-height inputs. 1cr · v2026-04-22 ](/tools/surface-area-of-a-cone-calculator/) [ Surface Area of a Cube Calculator surface-area-of-a-cube-calculator Calculate cube surface area and related measurements from edge, diagonal, volume, or surface area. 1cr · v2026-04-22 ](/tools/surface-area-of-a-cube-calculator/) Time [ Commute Life Wasted Calculator commute-life-wasted-calculator Estimate weekly, yearly, and career time spent commuting. 1cr · v2026-04-22 ](/tools/commute-life-wasted-calculator/) Trigonometry [ Arccos Calculator arccos-calculator Calculate inverse cosine in radians and degrees. 1cr · v2026-04-22 ](/tools/arccos-calculator/) [ Arcsin Calculator arcsin-calculator Calculate arcsine from a sine value, including degree/radian output and special-angle recognition. 1cr · v2026-04-22 ](/tools/arcsin-calculator/) [ Arctan Calculator arctan-calculator Calculate inverse tangent in radians and degrees. 1cr · v2026-04-22 ](/tools/arctan-calculator/) [ Arctan2 Calculator arctan2-calculator Calculate atan2(y, x), normalized angle, radius, slope, and quadrant. 1cr · v2026-04-22 ](/tools/arctan2-calculator/) [ Cosine Calculator cosine-calculator Calculate cosine with radians/degrees conversion, quadrant, and special-angle recognition. 1cr · v2026-04-22 ](/tools/cosine-calculator/) [ Cosecant/Secant/Cotangent Calculator csc-sec-cot-calculator Calculate csc, sec, cot, sine, and cosine for an angle. 1cr · v2026-04-22 ](/tools/csc-sec-cot-calculator/) [ Decimal Degrees to DMS Converter decimal-degrees-to-dms-converter Convert decimal degrees to degrees, minutes, and seconds, with hemisphere labels for coordinates. 1cr · v2026-04-22 ](/tools/decimal-degrees-to-dms-converter/) [ Degree to Radian Converter degree-to-radian-converter Convert degrees to radians with pi-fraction, quadrant, and trig values. 1cr · v2026-04-22 ](/tools/degree-to-radian-converter/) [ DMS to Decimal Degrees Converter dms-to-decimal-converter Convert degrees, minutes, and seconds to signed decimal degrees. 1cr · v2026-04-22 ](/tools/dms-to-decimal-converter/) [ Law of Cosines Calculator law-of-cosines-calculator Use the law of cosines to solve a side or included angle. 1cr · v2026-04-22 ](/tools/law-of-cosines-calculator/) [ Law of Sines Calculator law-of-sines-calculator Use the law of sines to solve a side or possible angle. 1cr · v2026-04-22 ](/tools/law-of-sines-calculator/) [ Sine Calculator sine-calculator Calculate sine with radians/degrees conversion, quadrant, and special-angle recognition. 1cr · v2026-04-22 ](/tools/sine-calculator/) [ Tangent Calculator tangent-calculator Calculate tangent and flag vertical-asymptote inputs. 1cr · v2026-04-22 ](/tools/tangent-calculator/) [ Unit Circle Calculator unit-circle-calculator Calculate unit-circle sine, cosine, tangent, radians, degrees, and point coordinates. 1cr · v2026-04-22 ](/tools/unit-circle-calculator/) Unit Conversion [ Length Converter length-converter Convert a length value across metric, imperial, and nautical units. 1cr · v2026-04-22 ](/tools/length-converter/) Unit Converters [ Acres to Hectares Converter acres-to-hectares-converter Convert between acres and hectares with related area units. 1cr · v2026-04-22 ](/tools/acres-to-hectares-converter/) [ Acres to Perches Converter acres-to-perches-converter Convert acres and perches for land area calculations. 1cr · v2026-04-22 ](/tools/acres-to-perches-converter/) [ Acres to Square Feet Converter acres-to-square-feet-converter Convert between acres and square feet with related area units. 1cr · v2026-04-22 ](/tools/acres-to-square-feet-converter/) [ Acres to Square Meters Converter acres-to-square-meters-converter Convert between acres and square meters with related area units. 1cr · v2026-04-22 ](/tools/acres-to-square-meters-converter/) [ Acres to Square Miles Converter acres-to-square-miles-converter Convert acres and square miles, including related land-area units. 1cr · v2026-04-22 ](/tools/acres-to-square-miles-converter/) [ Acres to Square Yards Converter acres-to-square-yards-converter Convert acres and square yards, including related area units. 1cr · v2026-04-22 ](/tools/acres-to-square-yards-converter/) [ Angle Converter angle-converter Convert angles between degrees, radians, gradians, turns, arcminutes, arcseconds, and milliradians. 1cr · v2026-04-22 ](/tools/angle-converter/) [ CM to Inches Converter cm-to-inches-converter Convert centimeters to inches, feet/inches, and nearest 1/16-inch fraction. 1cr · v2026-04-22 ](/tools/cm-to-inches-converter/) [ Cups to Tablespoons Converter cups-to-tablespoons-converter Convert US cups and tablespoons, including teaspoons and fluid ounces. 1cr · v2026-04-22 ](/tools/cups-to-tablespoons-converter/) [ Data Transfer Rate Converter data-transfer-rate-converter Convert bandwidth between bps, Mbps, MB/s and binary variants, with an optional download-time estimate. 1cr · v2026-04-22 ](/tools/data-transfer-rate-converter/) [ Feet to Meters Converter feet-to-meters-converter Convert feet and optional inches to meters, centimeters, and millimeters. 1cr · v2026-04-22 ](/tools/feet-to-meters-converter/) [ File Size Converter file-size-converter Convert file sizes across decimal (KB, MB) and binary (KiB, MiB) units with an all-unit table. 1cr · v2026-04-22 ](/tools/file-size-converter/) [ Gallons to Cups Converter gallons-to-cups-converter Convert US gallons and cups, with quart and pint equivalents. 1cr · v2026-04-22 ](/tools/gallons-to-cups-converter/) [ Grams to Ounces Converter grams-to-ounces-converter Convert grams to ounces, pounds, kilograms, and milligrams. 1cr · v2026-04-22 ](/tools/grams-to-ounces-converter/) [ Grams to Pounds Converter grams-to-pounds-converter Convert grams to pounds, ounces, and kilograms. 1cr · v2026-04-22 ](/tools/grams-to-pounds-converter/) [ Inches to CM Converter inches-to-cm-converter Convert inches to centimeters, millimeters, meters, and feet. 1cr · v2026-04-22 ](/tools/inches-to-cm-converter/) [ kg to lbs Converter kg-to-lbs-converter Convert kilograms and pounds with ounce breakdown. 1cr · v2026-04-22 ](/tools/kg-to-lbs-converter/) [ kPa to psi Converter kpa-to-psi-converter Convert kilopascals to psi, bar, atm, and mmHg. 1cr · v2026-04-22 ](/tools/kpa-to-psi-converter/) [ Liters to Cups Converter liters-to-cups-converter Convert liters to US, metric, and imperial cups. 1cr · v2026-04-22 ](/tools/liters-to-cups-converter/) [ mAh to Wh Converter mah-to-wh-converter Convert battery capacity and energy among mAh, Ah and Wh using nominal voltage. 1cr · v2026-04-22 ](/tools/mah-to-wh-converter/) [ Meters to Feet Converter meters-to-feet-converter Convert meters to decimal feet and feet-and-inches. 1cr · v2026-04-22 ](/tools/meters-to-feet-converter/) [ Ounce to Gram Converter ounce-to-gram-converter Convert ounces to grams, kilograms, milligrams, and pounds. 1cr · v2026-04-22 ](/tools/ounce-to-gram-converter/) [ Ounces to Cups Converter ounces-to-cups-converter Convert US fluid ounces and cups with spoon and milliliter equivalents. 1cr · v2026-04-22 ](/tools/ounces-to-cups-converter/) [ Percent to PPM Converter percent-to-ppm-converter Convert percent to ppm or ppm to percent. 1cr · v2026-04-22 ](/tools/percent-to-ppm-converter/) [ Perches to Acres Converter perches-to-acres-converter Convert perches and acres for land area calculations. 1cr · v2026-04-22 ](/tools/perches-to-acres-converter/) [ Pounds to Grams Converter pounds-to-grams-converter Convert pounds to grams, kilograms, ounces, and milligrams. 1cr · v2026-04-22 ](/tools/pounds-to-grams-converter/) [ PPM to Percent Converter ppm-to-percent-converter Convert parts per million to percentage and related concentration scales. 1cr · v2026-04-22 ](/tools/ppm-to-percent-converter/) [ Square Yards to Acres Converter square-yards-to-acres-converter Convert square yards and acres, including related area units. 1cr · v2026-04-22 ](/tools/square-yards-to-acres-converter/) [ Tablespoons to Cups Converter tablespoons-to-cups-converter Convert US tablespoons to cups, teaspoons, fluid ounces, and milliliters. 1cr · v2026-04-22 ](/tools/tablespoons-to-cups-converter/) [ Tablespoons to Teaspoons Converter tablespoons-to-teaspoons-converter Convert US tablespoons to teaspoons, cups, fluid ounces, and milliliters. 1cr · v2026-04-22 ](/tools/tablespoons-to-teaspoons-converter/) [ Teaspoons to Cups Converter teaspoons-to-cups-converter Convert US teaspoons and cups, including tablespoons and fluid ounces. 1cr · v2026-04-22 ](/tools/teaspoons-to-cups-converter/) [ Teaspoons to Tablespoons Converter teaspoons-to-tablespoons-converter Convert US teaspoons to tablespoons, cups, fluid ounces, and milliliters. 1cr · v2026-04-22 ](/tools/teaspoons-to-tablespoons-converter/) Volume [ Cups to Gallons Converter cups-to-gallons-converter Convert US cups and gallons with related volume units. 1cr · v2026-04-22 ](/tools/cups-to-gallons-converter/) [ Cups to Liters Converter cups-to-liters-converter Convert US cups and liters with milliliter, fluid-ounce, and spoon equivalents. 1cr · v2026-04-22 ](/tools/cups-to-liters-converter/) [ Cups to Ounces Converter cups-to-ounces-converter Convert cups and fluid ounces for US customary, US legal, imperial, or metric cups. 1cr · v2026-04-22 ](/tools/cups-to-ounces-converter/) [ Cups to Quarts Converter cups-to-quarts-converter Convert US cups and quarts with related volume units. 1cr · v2026-04-22 ](/tools/cups-to-quarts-converter/) [ Cups to Teaspoons Converter cups-to-teaspoons-converter Convert US cups and teaspoons with tablespoon and fluid-ounce equivalents. 1cr · v2026-04-22 ](/tools/cups-to-teaspoons-converter/) [ Volume of a Cone Calculator volume-of-a-cone-calculator Calculate cone volume, slant height, base area, lateral area, and total surface area. 1cr · v2026-04-22 ](/tools/volume-of-a-cone-calculator/) [ Volume of a Cube Calculator volume-of-a-cube-calculator Calculate cube volume, surface area, face area, diagonals, and total edge length. 1cr · v2026-04-22 ](/tools/volume-of-a-cube-calculator/) [ Volume of a Pyramid Calculator volume-of-a-pyramid-calculator Calculate volume, base area, slant height, and surface area for square, rectangular, or triangular pyramids. 1cr · v2026-04-22 ](/tools/volume-of-a-pyramid-calculator/) [ Volume of a Rectangular Prism Calculator volume-of-a-rectangular-prism-calculator Calculate rectangular prism volume, surface area, diagonals, base perimeter, and total edge length. 1cr · v2026-04-22 ](/tools/volume-of-a-rectangular-prism-calculator/) [ Volume of Ellipsoid Calculator volume-of-ellipsoid-calculator Calculate ellipsoid volume, approximate surface area, cross sections, equivalent sphere radius, and shape type. 1cr · v2026-04-22 ](/tools/volume-of-ellipsoid-calculator/) Volume Converters [ Cubic Meters to Cubic Feet cubic-meters-to-cubic-feet Convert cubic meters and cubic feet with common volume equivalents. 1cr · v2026-04-22 ](/tools/cubic-meters-to-cubic-feet/) [ Gallons to Liters Converter gallons-to-liters-converter Convert US or UK gallons to liters, with a reverse conversion mode. 1cr · v2026-04-22 ](/tools/gallons-to-liters-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - miscellaneous 13 endpoints # Miscellaneous API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Automotive [ Engine Displacement Calculator engine-displacement-calculator Calculate total and per-cylinder engine displacement from bore, stroke and cylinder count. 1cr · v2026-04-22 ](/tools/engine-displacement-calculator/) Construction [ Bend Allowance Calculator bend-allowance-calculator Calculate sheet-metal bend allowance, setback, deduction and flat-pattern length. 1cr · v2026-04-22 ](/tools/bend-allowance-calculator/) Electronics [ Battery Series/Parallel Calculator battery-series-parallel-calculator Calculate battery-pack voltage, capacity, energy, resistance, discharge current and runtime from an S/P layout. 1cr · v2026-04-22 ](/tools/battery-series-parallel-calculator/) [ kVA Calculator kva-calculator Solve kVA, kW, kVAR, volts or amps for DC, single-phase and three-phase systems. 1cr · v2026-04-22 ](/tools/kva-calculator/) [ RC Low-Pass Filter Calculator rc-low-pass-filter-calculator Calculate RC low-pass cutoff, time constant, gain, attenuation and phase at a selected frequency. 1cr · v2026-04-22 ](/tools/rc-low-pass-filter-calculator/) [ Resistors in Series Calculator resistors-in-series-calculator Add up to 200 series resistors and report each resistor's voltage-divider share. 1cr · v2026-04-22 ](/tools/resistors-in-series-calculator/) [ Series/Parallel Capacitor Calculator series-parallel-capacitor-calculator Calculate equivalent capacitance for a list of capacitors connected in series or parallel. 1cr · v2026-04-22 ](/tools/series-parallel-capacitor-calculator/) [ Watts to Amps Calculator watts-to-amps-calculator Convert watts to amps for DC, single-phase AC or three-phase AC systems. 1cr · v2026-04-22 ](/tools/watts-to-amps-calculator/) General Tools [ Tire Size Calculator tire-size-calculator Calculate tire sidewall, diameter, circumference, and revolutions per mile. 1cr · v2026-04-22 ](/tools/tire-size-calculator/) Physics [ Mechanical Advantage Calculator mechanical-advantage-calculator Calculate ideal and efficiency-adjusted mechanical advantage for levers, pulleys, ramps and gears. 1cr · v2026-04-22 ](/tools/mechanical-advantage-calculator/) Student Calculators [ Test Score Calculator test-score-calculator Convert earned and total test points into a percentage, letter grade, and GPA points. 1cr · v2026-04-22 ](/tools/test-score-calculator/) [ Weighted Grade Calculator weighted-grade-calculator Calculate a weighted course grade from category weights and scores. 1cr · v2026-04-22 ](/tools/weighted-grade-calculator/) Time [ Daily Time Savings Calculator daily-time-savings-calculator Calculate yearly, monthly, and weekly time saved from a small daily savings habit. 1cr · v2026-04-22 ](/tools/daily-time-savings-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - network 3 endpoints # Network API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) IP [ IP Address to Hex Converter ip-address-to-hex-converter Convert IPv4 or IPv6 addresses to integer, hex, and binary formats. 1cr · v2026-04-22 ](/tools/ip-address-to-hex-converter/) [ IP Subnet Calculator ip-subnet-calculator Calculate CIDR subnet address ranges, masks, and host counts. 1cr · v2026-04-22 ](/tools/ip-subnet-calculator/) MAC [ MAC Address Analyzer mac-address-analyzer Normalize and inspect MAC address type and administration bits. 1cr · v2026-04-22 ](/tools/mac-address-analyzer/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - physics 2 endpoints # Physics API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Mechanics [ Friction Calculator friction-calculator Calculate static and kinetic friction, sliding state, and acceleration from mass or normal force. 1cr · v2026-04-22 ](/tools/friction-calculator/) Thermodynamics [ Boiling Point Calculator boiling-point-calculator Calculate water boiling point from altitude or atmospheric pressure. 1cr · v2026-04-22 ](/tools/boiling-point-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - productivity 1 endpoints # Productivity API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) [ Keyboard Mileage Calculator keyboard-mileage-calculator Estimate finger travel distance from typing speed and time spent typing. 1cr · v2026-04-22 ](/tools/keyboard-mileage-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - random 14 endpoints # Random API Random generators for apps, tests, and automations. Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Cards [ Random Playing Card Generator random-playing-card-generator Draw random playing cards from a standard deck with optional jokers. 1cr · v2026-04-22 ](/tools/random-playing-card-generator/) Color [ Random Color Generator random-color-generator Generate random HEX, RGB, and HSL colors with optional harmony rules. 1cr · v2026-04-22 ](/tools/random-color-generator/) Date [ Random Date Generator random-date-generator Generate random dates inside a bounded date range. 1cr · v2026-04-22 ](/tools/random-date-generator/) Lists [ List Randomizer list-randomizer Shuffle a newline-separated list into random order. 1cr · v2026-04-22 ](/tools/list-randomizer/) [ Random Group Generator random-group-generator Create random balanced groups from a newline-separated list of names. 1cr · v2026-04-22 ](/tools/random-group-generator/) [ Random Line Picker random-line-picker Pick random non-empty lines from user-supplied text. 1cr · v2026-04-22 ](/tools/random-line-picker/) [ Random Name Picker random-name-picker Draw one or more random names from a list, optionally removing each name once picked. 1cr · v2026-04-22 ](/tools/random-name-picker/) [ Random Picker random-picker Pick random items from any newline-separated list. 1cr · v2026-04-22 ](/tools/random-picker/) Network [ Random Port Number Generator random-port-number-generator Generate random network port numbers in standard or custom ranges. 1cr · v2026-04-22 ](/tools/random-port-number-generator/) Numbers [ Random Decimal Number Generator random-decimal-number-generator Generate random decimal numbers between 0 and 1 with configurable precision. 1cr · v2026-04-22 ](/tools/random-decimal-number-generator/) [ Random Integer Generator random-integer-generator Generate random integers with optional uniqueness, sorting, exclusions, and seed replay. 1cr · v2026-04-22 ](/tools/random-integer-generator/) Quotes [ Random Quote Generator random-quote-generator Generate or search quotes from a bundled SQLite quote database. 3cr · v2026-04-22 ](/tools/random-quote-generator/) Text [ Random Letter Generator random-letter-generator Generate random letters with case, vowel/consonant, and duplicate controls. 1cr · v2026-04-22 ](/tools/random-letter-generator/) [ Random String Generator random-string-generator Generate random strings, passwords, API keys, tokens, PINs, or hex strings. 1cr · v2026-04-22 ](/tools/random-string-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - science 87 endpoints # Science API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Astronomy [ Astronomical Unit Converter astronomical-unit-converter Convert astronomical distances among AU, light-time, parsecs, kilometers, and miles. 1cr · v2026-04-22 ](/tools/astronomical-unit-converter/) Chemical Calculators [ Dilution Calculator dilution-calculator Solve M1V1 = M2V2 for stock concentration, stock volume, final concentration, or final volume. 1cr · v2026-04-22 ](/tools/dilution-calculator/) [ Empirical Formula Calculator empirical-formula-calculator Empirical formula from element mass percentages or masses, with optional molecular formula when a molecular mass is supplied. 1cr · v2026-04-22 ](/tools/empirical-formula-calculator/) [ Limiting Reactant Calculator limiting-reactant-calculator Find the limiting reactant, theoretical yield, leftover excess, and percent yield from a balanced equation. 1cr · v2026-04-22 ](/tools/limiting-reactant-calculator/) [ Molality Calculator molality-calculator Calculate molality and colligative freezing and boiling point shifts. 1cr · v2026-04-22 ](/tools/molality-calculator/) [ Molar Mass Calculator molar-mass-calculator Molar mass of a chemical formula with per-element atom count, contribution, and percentage composition, supporting nested parentheses. 1cr · v2026-04-22 ](/tools/molar-mass-calculator/) [ Molarity Calculator molarity-calculator Calculate molarity, solute mass, or solution volume from mass, molar mass, and volume. 1cr · v2026-04-22 ](/tools/molarity-calculator/) [ Mole/Gram/Particle Converter mole-gram-particle-converter Convert among moles, grams, and particles using molar mass and Avogadro's constant. 1cr · v2026-04-22 ](/tools/mole-gram-particle-converter/) [ Nernst Equation Calculator nernst-equation-calculator Calculate electrochemical cell potential under non-standard conditions. 1cr · v2026-04-22 ](/tools/nernst-equation-calculator/) [ Osmotic Pressure Calculator osmotic-pressure-calculator Calculate osmotic pressure from molarity, temperature, and van't Hoff factor. 1cr · v2026-04-22 ](/tools/osmotic-pressure-calculator/) [ pKa to Ka Converter pka-to-ka-converter Convert between pKa, Ka, pKb, and Kb for an acid-base conjugate pair. 1cr · v2026-04-22 ](/tools/pka-to-ka-converter/) Chemistry [ Beer-Lambert Law Calculator beer-lambert-law-calculator Solve A = epsilon l c for absorbance, molar absorptivity, concentration, or path length. 1cr · v2026-04-22 ](/tools/beer-lambert-law-calculator/) [ Boiling Point Elevation Calculator boiling-point-elevation-calculator Calculate boiling point elevation from molality, Kb, and van't Hoff factor. 1cr · v2026-04-22 ](/tools/boiling-point-elevation-calculator/) [ Chemical Equation Balancer chemical-equation-balancer Balance a chemical equation by solving the element matrix for the smallest whole-number coefficients. 1cr · v2026-04-22 ](/tools/chemical-equation-balancer/) [ Electron Configuration Calculator electron-configuration-calculator Electron configuration of any element or ion, with noble-gas notation, shells, and valence electrons. 1cr · v2026-04-22 ](/tools/electron-configuration-calculator/) [ Freezing Point Depression Calculator freezing-point-depression-calculator Freezing point depression (delta-Tf = i * Kf * m) from molality or from solute/solvent mass, with a van't Hoff factor for ionic solutes. 1cr · v2026-04-22 ](/tools/freezing-point-depression-calculator/) [ Henderson-Hasselbalch Calculator henderson-hasselbalch-calculator Buffer pH from pKa and the conjugate base/acid ratio, or solve for the ratio or the pKa, via the Henderson-Hasselbalch equation. 1cr · v2026-04-22 ](/tools/henderson-hasselbalch-calculator/) [ Percent Yield Calculator percent-yield-calculator Solve percent yield, actual yield, or theoretical yield. 1cr · v2026-04-22 ](/tools/percent-yield-calculator/) [ pH Calculator ph-calculator pH, pOH, [H+], and [OH-] from any one of them, with acidity classification at 25 C. 1cr · v2026-04-22 ](/tools/ph-calculator/) Electrical [ Parallel Resistor Calculator parallel-resistor-calculator Calculate equivalent resistance and current sharing for resistors in parallel. 1cr · v2026-04-22 ](/tools/parallel-resistor-calculator/) [ Power Factor Calculator power-factor-calculator Calculate power factor, reactive power, or capacitor correction values. 1cr · v2026-04-22 ](/tools/power-factor-calculator/) [ RC Time Constant Calculator rc-time-constant-calculator Calculate RC circuit time constant, cutoff frequency, and charging or discharging levels. 1cr · v2026-04-22 ](/tools/rc-time-constant-calculator/) Electronics [ 555 Timer Calculator 555-timer-calculator Calculate 555 timer astable frequency, period, duty cycle, or monostable pulse width. 1cr · v2026-04-22 ](/tools/555-timer-calculator/) [ Capacitor Calculator capacitor-calculator Calculate capacitor charge, stored energy, reactance, RC timing, or decode ceramic capacitor codes. 1cr · v2026-04-22 ](/tools/capacitor-calculator/) [ Decibel (dB) Calculator decibel-db-calculator Calculate power dB, voltage dB, dB ratios, and dBm/dBW/watt conversions. 1cr · v2026-04-22 ](/tools/decibel-db-calculator/) [ Ohm's Law Calculator ohm-s-law-calculator Calculate voltage, current, resistance, and power from any two known values. 1cr · v2026-04-22 ](/tools/ohm-s-law-calculator/) [ Parallel Capacitor Calculator parallel-capacitor-calculator Calculate equivalent capacitance for capacitors in parallel. 1cr · v2026-04-22 ](/tools/parallel-capacitor-calculator/) [ Resistor Color Code Calculator resistor-color-code-calculator Calculate 4-band, 5-band, and 6-band resistor values from color bands. 1cr · v2026-04-22 ](/tools/resistor-color-code-calculator/) [ Resonant Frequency Calculator resonant-frequency-calculator Calculate LC/RLC resonant frequency, inductance, capacitance, impedance, Q factor, and bandwidth. 1cr · v2026-04-22 ](/tools/resonant-frequency-calculator/) [ Series Resistor Calculator series-resistor-calculator Calculate equivalent resistance for resistors in series. 1cr · v2026-04-22 ](/tools/series-resistor-calculator/) Fluid Mechanics [ Bernoulli Equation Calculator bernoulli-equation-calculator Solve one Bernoulli streamline pressure, velocity, or height term. 1cr · v2026-04-22 ](/tools/bernoulli-equation-calculator/) [ Reynolds Number Calculator reynolds-number-calculator Reynolds number with laminar/transitional/turbulent classification using geometry-specific thresholds for pipes, plates, and channels. 1cr · v2026-04-22 ](/tools/reynolds-number-calculator/) Mechanics [ Belt Length Calculator belt-length-calculator Calculate open or crossed belt length, wrap angles, and optional belt speed. 1cr · v2026-04-22 ](/tools/belt-length-calculator/) [ Bolt Torque Calculator bolt-torque-calculator Recommended bolt tightening torque and preload for metric sizes and ISO grades, by the short-form K method and VDI 2230. 1cr · v2026-04-22 ](/tools/bolt-torque-calculator/) [ Gear Ratio Calculator (Mechanical) gear-ratio-calculator-mechanical Calculate gear ratio, output RPM, torque, and mechanical advantage. 1cr · v2026-04-22 ](/tools/gear-ratio-calculator-mechanical/) Physics [ Angular Velocity Calculator angular-velocity-calculator Convert angular velocity between rad/s, RPM, Hz, deg/s, and period, or derive it from linear speed and radius with tangential and centripetal results. 1cr · v2026-04-22 ](/tools/angular-velocity-calculator/) [ Density Calculator density-calculator Solve density, mass, or volume with common unit conversions. 1cr · v2026-04-22 ](/tools/density-calculator/) [ Doppler Effect Calculator doppler-effect-calculator Observed frequency shift for moving sources and observers, classical for sound or relativistic for light. 1cr · v2026-04-22 ](/tools/doppler-effect-calculator/) [ Falling Through Earth Calculator falling-through-earth-calculator Calculate idealized uniform-density gravity-train travel time and speed. 1cr · v2026-04-22 ](/tools/falling-through-earth-calculator/) [ Force Calculator force-calculator Solve Newton's second law for force, mass, or acceleration with common unit conversions. 1cr · v2026-04-22 ](/tools/force-calculator/) [ Heat Transfer Calculator heat-transfer-calculator Calculate heat transfer by conduction, convection, or radiation. 1cr · v2026-04-22 ](/tools/heat-transfer-calculator/) [ Kinetic Energy Calculator kinetic-energy-calculator Solve kinetic energy, mass, or velocity with KE = 1/2 m v^2 and unit conversions. 1cr · v2026-04-22 ](/tools/kinetic-energy-calculator/) [ Lens Equation Calculator lens-equation-calculator Thin-lens equation solver for image distance, focal length, or object distance with magnification and image properties. 1cr · v2026-04-22 ](/tools/lens-equation-calculator/) [ Moment of Inertia Calculator moment-of-inertia-calculator Area moment of inertia (rectangle, circle, hollow circle, triangle) or mass moment of inertia (rod, cylinder, sphere, hollow cylinder), in SI units. 1cr · v2026-04-22 ](/tools/moment-of-inertia-calculator/) [ Momentum Calculator momentum-calculator Calculate linear momentum and kinetic energy from mass and velocity. 1cr · v2026-04-22 ](/tools/momentum-calculator/) [ Pendulum Period Calculator pendulum-period-calculator Simple pendulum solver for period, length, gravity, or frequency with planet presets and a large-amplitude correction. 1cr · v2026-04-22 ](/tools/pendulum-period-calculator/) [ Potential Energy Calculator potential-energy-calculator Calculate gravitational or elastic potential energy and solve for missing variables. 1cr · v2026-04-22 ](/tools/potential-energy-calculator/) [ Projectile Motion Calculator projectile-motion-calculator Projectile range, max height, flight time, and impact speed/angle from launch speed, angle, height, and gravity. 1cr · v2026-04-22 ](/tools/projectile-motion-calculator/) [ Snell's Law Calculator snell-s-law-calculator Refraction angles, indices, critical angle, and Brewster angle from Snell's law with a built-in material library. 1cr · v2026-04-22 ](/tools/snell-s-law-calculator/) [ Specific Heat Capacity Calculator specific-heat-capacity-calculator Solve Q = m*c*dT for heat, mass, specific heat, or final temperature with a substance library and mixed units. 1cr · v2026-04-22 ](/tools/specific-heat-capacity-calculator/) [ Spring Constant Calculator spring-constant-calculator Hooke's law solver for force, spring constant, or displacement, plus elastic energy and oscillation period. 1cr · v2026-04-22 ](/tools/spring-constant-calculator/) [ Stopping Distance Calculator stopping-distance-calculator Vehicle reaction + braking stopping distance by road condition (dry/wet/snow/ice), km/h or mph. 1cr · v2026-04-22 ](/tools/stopping-distance-calculator/) [ Terminal Velocity Calculator terminal-velocity-calculator Terminal velocity from mass, drag coefficient, area, and fluid density, with object presets and approach-time milestones. 1cr · v2026-04-22 ](/tools/terminal-velocity-calculator/) [ Thermal Expansion Calculator thermal-expansion-calculator Calculate linear, area, or volume thermal expansion for common materials. 1cr · v2026-04-22 ](/tools/thermal-expansion-calculator/) [ Torque Calculator torque-calculator Solve torque, force, lever arm distance, or angle using tau = F r sin(theta). 1cr · v2026-04-22 ](/tools/torque-calculator/) [ Velocity Calculator velocity-calculator Calculate average velocity, distance, time, or relative velocity with distance, time, and speed units. 1cr · v2026-04-22 ](/tools/velocity-calculator/) [ Work and Power Calculator work-and-power-calculator Calculate mechanical work and power with common unit conversions. 1cr · v2026-04-22 ](/tools/work-and-power-calculator/) [ Work Calculator work-calculator Calculate mechanical work from force, distance, and angle. 1cr · v2026-04-22 ](/tools/work-calculator/) Physics Calculators [ Buoyancy Calculator buoyancy-calculator Calculate buoyant force, object density, apparent weight, and float/sink verdict. 1cr · v2026-04-22 ](/tools/buoyancy-calculator/) [ Coulomb's Law Calculator coulomb-s-law-calculator Electrostatic force between two point charges via Coulomb's law, solving for force, charge, or distance with dielectric media. 1cr · v2026-04-22 ](/tools/coulomb-s-law-calculator/) [ de Broglie Wavelength Calculator de-broglie-wavelength-calculator Calculate a particle's de Broglie wavelength from velocity or kinetic energy. 1cr · v2026-04-22 ](/tools/de-broglie-wavelength-calculator/) [ E=mc² Calculator e-mc-calculator Convert mass and energy using E=mc² with configurable conversion efficiency. 1cr · v2026-04-22 ](/tools/e-mc-calculator/) [ Electricity Calculator electricity-calculator Solve voltage, current, resistance, and power from any two known Ohm's law values. 1cr · v2026-04-22 ](/tools/electricity-calculator/) [ Escape Velocity Calculator escape-velocity-calculator Calculate escape velocity for preset or custom celestial bodies. 1cr · v2026-04-22 ](/tools/escape-velocity-calculator/) [ Gravitational Force Calculator gravitational-force-calculator Solve Newton's universal gravitation equation for force, mass, or distance. 1cr · v2026-04-22 ](/tools/gravitational-force-calculator/) [ Ideal Gas Law Calculator ideal-gas-law-calculator Solve PV=nRT for pressure, volume, moles, or temperature with unit conversion. 1cr · v2026-04-22 ](/tools/ideal-gas-law-calculator/) [ Kepler's Third Law Calculator kepler-s-third-law-calculator Calculate orbital period and mean velocity from semi-major axis and central mass. 1cr · v2026-04-22 ](/tools/kepler-s-third-law-calculator/) [ Photon Energy Calculator photon-energy-calculator Convert photon wavelength, frequency, and energy using E=hf=hc/lambda. 1cr · v2026-04-22 ](/tools/photon-energy-calculator/) [ Time Dilation Calculator time-dilation-calculator Relativistic time dilation, Lorentz factor, clock rate, and optional length contraction at any sub-light speed. 1cr · v2026-04-22 ](/tools/time-dilation-calculator/) Pressure [ Bar to PSI Converter bar-to-psi-converter Convert bar and PSI, including kPa, MPa, atm, torr, inHg, and Pa. 1cr · v2026-04-22 ](/tools/bar-to-psi-converter/) [ psi to kPa Converter psi-to-kpa-converter Convert pounds per square inch to kilopascals and related pressure units. 1cr · v2026-04-22 ](/tools/psi-to-kpa-converter/) Temperature [ Celsius to Fahrenheit Calculator celsius-to-fahrenheit-calculator Convert Celsius to Fahrenheit and related temperature scales. 1cr · v2026-04-22 ](/tools/celsius-to-fahrenheit-calculator/) [ Celsius to Kelvin Converter celsius-to-kelvin-converter Convert Celsius to Kelvin and related temperature scales. 1cr · v2026-04-22 ](/tools/celsius-to-kelvin-converter/) [ Celsius to Rankine Converter celsius-to-rankine-converter Convert Celsius to Rankine and related temperature scales. 1cr · v2026-04-22 ](/tools/celsius-to-rankine-converter/) [ Fahrenheit to Celsius Calculator fahrenheit-to-celsius-calculator Convert Fahrenheit to Celsius and related temperature scales. 1cr · v2026-04-22 ](/tools/fahrenheit-to-celsius-calculator/) [ Fahrenheit to Kelvin Converter fahrenheit-to-kelvin-converter Convert Fahrenheit to Kelvin and related temperature scales. 1cr · v2026-04-22 ](/tools/fahrenheit-to-kelvin-converter/) [ Fahrenheit to Rankine Converter fahrenheit-to-rankine-converter Convert Fahrenheit to Rankine and related temperature scales. 1cr · v2026-04-22 ](/tools/fahrenheit-to-rankine-converter/) [ Kelvin to Celsius Converter kelvin-to-celsius-converter Convert Kelvin to Celsius and related temperature scales. 1cr · v2026-04-22 ](/tools/kelvin-to-celsius-converter/) [ Kelvin to Fahrenheit Converter kelvin-to-fahrenheit-converter Convert Kelvin to Fahrenheit and related temperature scales. 1cr · v2026-04-22 ](/tools/kelvin-to-fahrenheit-converter/) [ Rankine to Celsius Converter rankine-to-celsius-converter Convert Rankine to Celsius and related temperature scales. 1cr · v2026-04-22 ](/tools/rankine-to-celsius-converter/) [ Rankine to Fahrenheit Converter rankine-to-fahrenheit-converter Convert Rankine to Fahrenheit and related temperature scales. 1cr · v2026-04-22 ](/tools/rankine-to-fahrenheit-converter/) Unit Converters [ Energy Converter energy-converter Convert energy between joules, calories, BTU, watt-hours, electronvolts, ergs, and therms. 1cr · v2026-04-22 ](/tools/energy-converter/) [ Power Converter power-converter Convert power among watts, kilowatts, horsepower, BTU per hour, refrigeration tons, and related units. 1cr · v2026-04-22 ](/tools/power-converter/) [ Ultimate Frequency & Wavelength Converter ultimate-frequency-wavelength-converter Convert between frequency and wavelength using a configurable propagation speed and identify the spectrum band. 1cr · v2026-04-22 ](/tools/ultimate-frequency-wavelength-converter/) Weather [ Dew Point Calculator dew-point-calculator Calculate dew point temperature from air temperature and relative humidity using the Magnus formula. 1cr · v2026-04-22 ](/tools/dew-point-calculator/) [ Heat Index Calculator heat-index-calculator Calculate the NWS heat index (apparent temperature) from air temperature and relative humidity. 1cr · v2026-04-22 ](/tools/heat-index-calculator/) [ Wind Chill Calculator wind-chill-calculator Calculate NWS wind chill and frostbite risk from air temperature and wind speed. 1cr · v2026-04-22 ](/tools/wind-chill-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - sports 15 endpoints # Sports API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Baseball [ At Bats per Home Run Calculator at-bats-per-home-run-calculator Calculate baseball at-bats per home run ratio and home run rate. 1cr · v2026-04-22 ](/tools/at-bats-per-home-run-calculator/) [ Batting Average Calculator batting-average-calculator Calculate baseball batting average from hits and at-bats. 1cr · v2026-04-22 ](/tools/batting-average-calculator/) [ ERA Calculator era-calculator Calculate baseball earned run average. 1cr · v2026-04-22 ](/tools/era-calculator/) [ FIP Calculator fip-calculator Calculate baseball fielding independent pitching. 1cr · v2026-04-22 ](/tools/fip-calculator/) [ On Base Percentage Calculator on-base-percentage-calculator Calculate on-base percentage with batting average and optional OPS. 1cr · v2026-04-22 ](/tools/on-base-percentage-calculator/) [ OPS Calculator ops-calculator Calculate baseball on-base plus slugging with OBP and SLG components. 1cr · v2026-04-22 ](/tools/ops-calculator/) [ Slugging Percentage Calculator slugging-percentage-calculator Calculate baseball slugging percentage from hit types. 1cr · v2026-04-22 ](/tools/slugging-percentage-calculator/) [ Total Bases Calculator total-bases-calculator Calculate baseball total bases from singles, doubles, triples, and home runs. 1cr · v2026-04-22 ](/tools/total-bases-calculator/) [ WAR Calculator war-calculator Estimate simplified baseball WAR for position players or pitchers. 1cr · v2026-04-22 ](/tools/war-calculator/) [ WHIP Calculator whip-calculator Calculate baseball WHIP with baseball innings notation support. 1cr · v2026-04-22 ](/tools/whip-calculator/) Basketball [ Effective Field Goal Percentage Calculator efg-calculator Calculate basketball effective field goal percentage. 1cr · v2026-04-22 ](/tools/efg-calculator/) [ Field Goal Percentage Calculator field-goal-percentage-calculator Calculate made-shot percentage and related shooting metrics. 1cr · v2026-04-22 ](/tools/field-goal-percentage-calculator/) [ Rebound Rate Calculator rebound-rate-calculator Calculate basketball offensive, defensive, and total rebound rates. 1cr · v2026-04-22 ](/tools/rebound-rate-calculator/) [ True Shooting Percentage Calculator true-shooting-percentage-calculator Calculate basketball true shooting percentage from points, FGA, and FTA. 1cr · v2026-04-22 ](/tools/true-shooting-percentage-calculator/) Climbing [ Climbing Grade Converter climbing-grade-converter Convert roped and bouldering climbing grades across common systems. 1cr · v2026-04-22 ](/tools/climbing-grade-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - text 56 endpoints # Text API Word / character / line counters, whitespace, case, encoding. Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Analysis [ Character Counter character-counter Count characters, letters, digits, whitespace, and punctuation. 1cr · v2026-04-22 ](/tools/character-counter/) [ Compare Two Strings compare-two-strings Compare two strings with equality, similarity, edit distance, and diff statistics. 1cr · v2026-04-22 ](/tools/compare-two-strings/) [ Email Extractor email-extractor Extract email addresses from text with de-duplication, sorting, and a domain breakdown. 1cr · v2026-04-22 ](/tools/email-extractor/) [ Find Longest Line find-longest-line Rank text lines by character, word, or byte length and return the longest lines. 1cr · v2026-04-22 ](/tools/find-longest-line/) [ Line Counter line-counter Count total / non-empty / empty lines and longest-line length. 1cr · v2026-04-22 ](/tools/line-counter/) [ Lipogram Checker lipogram-checker Check whether text avoids one or more forbidden letters. 1cr · v2026-04-22 ](/tools/lipogram-checker/) [ Pangram Checker pangram-checker Check whether text contains every letter A through Z. 1cr · v2026-04-22 ](/tools/pangram-checker/) [ Sentence Counter sentence-counter Count sentences and classify sentence type and basic complexity. 1cr · v2026-04-22 ](/tools/sentence-counter/) [ Word Counter word-counter Count words, characters, sentences, paragraphs, reading/speaking time, top words. 1cr · v2026-04-22 ](/tools/word-counter/) CSS [ CSS Beautifier css-beautifier Format compact CSS with indentation and line breaks. 1cr · v2026-04-22 ](/tools/css-beautifier/) Case [ Text Case Converter lowercase-uppercase-letters Convert text to uppercase, lowercase, title, sentence, camel, snake, kebab, and related cases. 1cr · v2026-04-22 ](/tools/lowercase-uppercase-letters/) [ Title Case Converter title-case-converter Convert text to title case using smart, APA, Chicago, MLA, AP, or simple capitalization rules. 1cr · v2026-04-22 ](/tools/title-case-converter/) Cipher [ Caesar Cipher Tool caesar-cipher-tool Encrypt or decrypt text with a Caesar shift cipher, with optional brute-force candidates. 1cr · v2026-04-22 ](/tools/caesar-cipher-tool/) Cleanup [ Invisible Character Remover invisible-character-remover Detect, remove, or reveal zero-width and Unicode formatting characters hidden in text. 1cr · v2026-04-22 ](/tools/invisible-character-remover/) [ List Cleaner list-cleaner Trim, deduplicate, remove blanks, and optionally sort list lines. 1cr · v2026-04-22 ](/tools/list-cleaner/) [ Smart Quotes Remover smart-quotes-remover Replace curly smart quotes and primes with straight quotes, with JSON-safe escaping. 1cr · v2026-04-22 ](/tools/smart-quotes-remover/) Comparison [ Diff Checker diff-checker Compare two texts line by line and return change statistics with a unified diff. 1cr · v2026-04-22 ](/tools/diff-checker/) Conversion [ Number to Word Converter number-to-word-converter Convert a decimal number to English cardinal, ordinal, or currency words. 1cr · v2026-04-22 ](/tools/number-to-word-converter/) Deduplication [ Remove Duplicate Lines remove-duplicate-lines Remove duplicate text lines while keeping first, last, or only unique occurrences. 1cr · v2026-04-22 ](/tools/remove-duplicate-lines/) Encoding [ Morse Code Decoder morse-code-decoder Decode International Morse Code to text (single space between letters, three spaces between words). 1cr · v2026-04-22 ](/tools/morse-code-decoder/) [ Morse Code Generator morse-code-generator Convert text to International Morse code with character breakdown. 1cr · v2026-04-22 ](/tools/morse-code-generator/) Extraction [ Number Extractor number-extractor Extract decimal or integer values from text and return the values with simple statistics. 1cr · v2026-04-22 ](/tools/number-extractor/) Formatting [ ASCII Art Generator ascii-art-generator Generate deterministic ASCII banner art from short text. 1cr · v2026-04-22 ](/tools/ascii-art-generator/) [ Markdown Table Generator markdown-table-generator Turn delimited rows into a padded Markdown table with auto-detected delimiter, optional header row, and left, center, or right column alignment. 1cr · v2026-04-22 ](/tools/markdown-table-generator/) [ Text Formatter text-formatter Apply case and whitespace transforms to a block of text. 1cr · v2026-04-22 ](/tools/text-formatter/) Generators [ Buzzword Bingo Generator buzzword-bingo-generator Generate a deterministic buzzword bingo board from a term list and seed. 1cr · v2026-04-22 ](/tools/buzzword-bingo-generator/) Lines [ Reverse Line reverse-line Reverse the characters in each line of text. 1cr · v2026-04-22 ](/tools/reverse-line/) Lists [ List Difference Calculator list-difference-calculator Compare two line-based lists and return differences, intersection, and union. 1cr · v2026-04-22 ](/tools/list-difference-calculator/) Modification [ Add Line Numbers add-line-numbers Add configurable line numbers to the start or end of each text line. 1cr · v2026-04-22 ](/tools/add-line-numbers/) [ Add Prefix and Suffix add-prefix-and-suffix Add prefix, suffix, and optional numbering to each text line, word, or delimited item. 1cr · v2026-04-22 ](/tools/add-prefix-and-suffix/) [ Break Line by Characters break-line-by-characters Insert line breaks at a maximum character count, with smart word-wrap or hard-break modes. 1cr · v2026-04-22 ](/tools/break-line-by-characters/) [ Find and Replace Text find-replace-text Find and replace text with literal or regex patterns, case and whole-word options. 1cr · v2026-04-22 ](/tools/find-replace-text/) [ Remove Accent remove-accent Remove accents and combining marks from Unicode text. 1cr · v2026-04-22 ](/tools/remove-accent/) [ Remove Line Numbers remove-line-numbers Strip numeric prefixes such as line numbers from each line of text. 1cr · v2026-04-22 ](/tools/remove-line-numbers/) [ Remove Lines Containing remove-lines-containing Keep or remove lines matching a text, word, prefix, suffix, or regex pattern. 1cr · v2026-04-22 ](/tools/remove-lines-containing/) [ Remove Punctuation remove-punctuation Remove or replace selected punctuation categories from text. 1cr · v2026-04-22 ](/tools/remove-punctuation/) [ Reverse Lines reverse-lines Reverse the order of lines in a text block. 1cr · v2026-04-22 ](/tools/reverse-lines/) [ Reverse Text reverse-text Reverse whole text, word order, each word, or line order. 1cr · v2026-04-22 ](/tools/reverse-text/) [ String Repeat string-repeat Repeat a string with separators, optional prefixes, suffixes, and numbering. 1cr · v2026-04-22 ](/tools/string-repeat/) Number Lists [ Sort Numbers sort-numbers Sort up to 1000 numbers and optionally remove duplicates while returning basic statistics. 1cr · v2026-04-22 ](/tools/sort-numbers/) Sorting [ Sort Lines Alphabetically sort-lines-alphabetically Sort text lines alphabetically, naturally, numerically, or by length. 1cr · v2026-04-22 ](/tools/sort-lines-alphabetically/) [ Sort Text By Length sort-text-by-length Sort text lines by character length with basic line statistics. 1cr · v2026-04-22 ](/tools/sort-text-by-length/) Subtitles [ CSV to SRT Converter csv-to-srt Convert CSV subtitle rows with start, end, and text columns to SRT. 1cr · v2026-04-22 ](/tools/csv-to-srt/) [ SRT to CSV Converter srt-to-csv Convert SRT subtitle content to CSV rows. 1cr · v2026-04-22 ](/tools/srt-to-csv/) [ SRT to TXT Converter srt-to-txt Extract plain, timestamped, JSON, or sentence text from SRT subtitles. 1cr · v2026-04-22 ](/tools/srt-to-txt/) Text Conversion [ Word to Phone Number Converter word-to-phone-number-converter Convert words and phrases into T9 keypad phone numbers. 1cr · v2026-04-22 ](/tools/word-to-phone-number-converter/) Text Modification [ Text Repeat text-repeat Repeat text multiple times with separators, numbering, and case options. 1cr · v2026-04-22 ](/tools/text-repeat/) [ Upside Down Text Generator upside-down-text-generator Flip text upside down using Unicode character mappings. 1cr · v2026-04-22 ](/tools/upside-down-text-generator/) Text Statistics [ Syllable Counter syllable-counter Count syllables per word, line, and text with haiku detection and Flesch reading ease. 1cr · v2026-04-22 ](/tools/syllable-counter/) [ Word Frequency Analyzer word-frequency-analyzer Analyze word frequency, unique words, lexical diversity, and CSV output. 1cr · v2026-04-22 ](/tools/word-frequency-analyzer/) Unicode [ Invisible Text Generator invisible-text-generator Generate a run of zero-width or blank Unicode characters. 1cr · v2026-04-22 ](/tools/invisible-text-generator/) Whitespace [ Remove Empty Lines remove-empty-lines Remove blank or whitespace-only lines from text and report line reduction statistics. 1cr · v2026-04-22 ](/tools/remove-empty-lines/) [ Remove Leading Trailing Spaces remove-leading-trailing-spaces Trim leading and trailing spaces or tabs from each line. 1cr · v2026-04-22 ](/tools/remove-leading-trailing-spaces/) [ Remove Spaces remove-spaces Strip whitespace: all, extra, leading, trailing, or per-line. 1cr · v2026-04-22 ](/tools/remove-spaces/) Word Games [ Anagram Generator anagram-generator Generate letter-permutation anagrams of a word and check whether two words are anagrams. 1cr · v2026-04-22 ](/tools/anagram-generator/) [ Pig Latin Translator pig-latin-translator Translate English to Pig Latin and back in four dialects with qu-handling, case preservation, and Y rules. 1cr · v2026-04-22 ](/tools/pig-latin-translator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - time 5 endpoints # Time API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Calendar [ Is It Leap Year is-it-leap-year Check whether a Gregorian calendar year is a leap year. 1cr · v2026-04-22 ](/tools/is-it-leap-year/) Countdown [ Countdown Timer countdown-timer Calculate an exact countdown between two ISO datetimes. 1cr · v2026-04-22 ](/tools/countdown-timer/) Date Format [ Date to Roman Numerals Converter date-to-roman-numerals-converter Convert a calendar date into Roman numeral date formats. 1cr · v2026-04-22 ](/tools/date-to-roman-numerals-converter/) Dates [ Halfway Date Calculator halfway-date-calculator Find the midpoint and quarter points between two dates. 1cr · v2026-04-22 ](/tools/halfway-date-calculator/) Duration [ Hours Calculator hours-calculator Calculate gross and net hours between two times, including breaks. 1cr · v2026-04-22 ](/tools/hours-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - time-date 21 endpoints # Time-Date API Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Calendar [ Hebrew Calendar Converter hebrew-calendar-converter Convert between Gregorian and Hebrew dates, including leap months, year kind and month lengths. 1cr · v2026-04-22 ](/tools/hebrew-calendar-converter/) [ Hijri Calendar Converter hijri-calendar-converter Convert between Gregorian and Hijri (Islamic) dates with month names, sacred-month and leap-year flags. 1cr · v2026-04-22 ](/tools/hijri-calendar-converter/) [ When Is Leap Year when-is-leap-year Check leap-year status and nearby leap years using Gregorian rules. 1cr · v2026-04-22 ](/tools/when-is-leap-year/) Calendars [ Leap Years List leap-years-list List every leap year in a range using the Gregorian rule. 1cr · v2026-04-22 ](/tools/leap-years-list/) Date Tools [ Add Business Days to Date add-business-days-to-date Add or subtract business days from a date, skipping weekends under a configurable workweek pattern. 1cr · v2026-04-22 ](/tools/add-business-days-to-date/) [ Age Calculator age-calculator Exact age in years/months/days plus total days, next-birthday countdown, day born, and zodiac sign. 1cr · v2026-04-22 ](/tools/age-calculator/) [ Date Calculator date-calculator Add or subtract years, months, weeks, and days from a date. 1cr · v2026-04-22 ](/tools/date-calculator/) [ Date Difference Calculator date-difference-calculator Calculate days, weeks, approximate months/years, and business days between two dates. 1cr · v2026-04-22 ](/tools/date-difference-calculator/) [ Day of the Year Calculator day-of-the-year-calculator Day number within the year plus days remaining, year progress, quarter, and ISO week. 1cr · v2026-04-22 ](/tools/day-of-the-year-calculator/) [ Days in Month days-in-month Number of days in a given month/year with leap-year detection and calendar boundary details. 1cr · v2026-04-22 ](/tools/days-in-month/) [ Julian Date Converter julian-date-converter Convert between calendar dates and Julian Date, Modified Julian Date, or Unix time. 1cr · v2026-04-22 ](/tools/julian-date-converter/) [ Time Between Two Dates time-between-two-dates Calculate exact elapsed time between two ISO datetimes. 1cr · v2026-04-22 ](/tools/time-between-two-dates/) [ Week Number Calculator week-number-calculator ISO 8601 and North American week numbers for a date, with week ranges, or the dates of a given ISO week. 1cr · v2026-04-22 ](/tools/week-number-calculator/) Differences [ How Long Ago Calculator how-long-ago-calculator Express the gap between a date and today in years, months, weeks and days. 1cr · v2026-04-22 ](/tools/how-long-ago-calculator/) Season [ Winter Solstice Day winter-solstice-day Return winter solstice date/time for Northern or Southern Hemisphere, 2024-2030. 1cr · v2026-04-22 ](/tools/winter-solstice-day/) Time Calculators [ Time Duration Calculator time-duration-calculator Calculate elapsed time between two times or datetimes. 1cr · v2026-04-22 ](/tools/time-duration-calculator/) [ Time to Decimal Converter time-to-decimal-converter Convert between hours/minutes/seconds and decimal hours. 1cr · v2026-04-22 ](/tools/time-to-decimal-converter/) [ Work Hours Calculator work-hours-calculator Calculate weekly work hours, overtime, and optional pay from day entries. 1cr · v2026-04-22 ](/tools/work-hours-calculator/) Time Conversion [ Military Time Converter military-time-converter Convert between 12-hour, 24-hour, and military time, including the spoken military form. 1cr · v2026-04-22 ](/tools/military-time-converter/) [ Time Zone Converter time-zone-converter Convert a local date/time between IANA time zones with DST-aware offsets, to one or more targets. 1cr · v2026-04-22 ](/tools/time-zone-converter/) [ Unix Time Converter unix-time-converter Convert between Unix timestamps and UTC ISO datetimes. 1cr · v2026-04-22 ](/tools/unix-time-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - webmaster 19 endpoints # Webmaster API DNS, HTTP, meta, robots, and other webmaster utilities. Same bearer token, same credit pool, same JSON envelope as every other endpoint — drop them into apps, sites, workflows, or agents without rebuilding formulas, validation, or docs. [Start free →](/billing/checkout/?plan=free) [View OpenAPI](/v1/docs) [All categories](/tools/) Advertising [ CPC Calculator cpc-calculator Calculate CPC, CPM, or CTR from two known campaign metrics. 1cr · v2026-04-22 ](/tools/cpc-calculator/) [ CPM Calculator cpm-calculator Calculate campaign cost, CPM, or impressions from two known advertising metrics. 1cr · v2026-04-22 ](/tools/cpm-calculator/) Analytics [ Value of A Visitor Calculator value-of-a-visitor-calculator Calculate website visitor value, conversion rate, annualized revenue, and traffic ROI. 2cr · v2026-04-22 ](/tools/value-of-a-visitor-calculator/) CSS [ CSS Box Shadow Generator css-box-shadow-generator Generate a CSS box-shadow declaration from numeric shadow controls. 1cr · v2026-04-22 ](/tools/css-box-shadow-generator/) [ CSS Compressor css-compressor Minify CSS and return compression statistics. 1cr · v2026-04-22 ](/tools/css-compressor/) Encoding [ JSON String Escape/Unescape json-string-escape-unescape Escape or unescape JSON string content deterministically. 1cr · v2026-04-22 ](/tools/json-string-escape-unescape/) HTML [ HTML Beautifier html-beautifier Indent and align HTML, or minify it, preserving the contents of pre, script, style and textarea. 1cr · v2026-04-22 ](/tools/html-beautifier/) [ HTML Compressor html-compressor Compress HTML by removing comments and extra whitespace. 1cr · v2026-04-22 ](/tools/html-compressor/) [ HTML Entity Encoder Decoder html-entity-encoder-decoder Encode or decode HTML entities for text and markup snippets. 1cr · v2026-04-22 ](/tools/html-entity-encoder-decoder/) [ HTML to Markdown Converter html-to-markdown-converter Convert HTML into Markdown, handling headings, emphasis, links, images, lists, blockquotes, code blocks, and tables, with script and style content removed. 1cr · v2026-04-22 ](/tools/html-to-markdown-converter/) [ HTML to Text Converter html-to-text-converter Strip HTML tags, scripts, styles, and comments to extract plain text, with tag/script/style/comment counts and a size comparison. 1cr · v2026-04-22 ](/tools/html-to-text-converter/) IP [ IP Address to Binary Converter ip-address-to-binary-converter Convert IPv4 or IPv6 addresses to padded binary forms. 1cr · v2026-04-22 ](/tools/ip-address-to-binary-converter/) Redirects [ .htaccess Redirect Generator htaccess-redirect-generator Generate Apache rules for path redirects, HTTPS, hostname normalization, or IP blocking. 1cr · v2026-04-22 ](/tools/htaccess-redirect-generator/) SEO [ Hreflang Tag Generator hreflang-tag-generator Generate hreflang link tags, HTTP Link headers, and sitemap XML from language and URL pairs. 1cr · v2026-04-22 ](/tools/hreflang-tag-generator/) [ Keyword Density Checker keyword-density-checker One-, two- and three-word keyword density with stop-word filtering and word counts. 1cr · v2026-04-22 ](/tools/keyword-density-checker/) [ Meta Tag Generator meta-tag-generator Build SEO, Open Graph, and Twitter Card meta tags with inherited defaults, length checks, and Google, Facebook, and Twitter preview data. 1cr · v2026-04-22 ](/tools/meta-tag-generator/) [ Robots.txt Generator robots-txt-generator Generate a robots.txt from allow/disallow paths, extra user-agent groups, and sitemaps, or validate an existing file for errors and crawler warnings. 1cr · v2026-04-22 ](/tools/robots-txt-generator/) [ URL Slug Generator url-slug-generator Generate an SEO-friendly URL slug from a title or phrase. 1cr · v2026-04-22 ](/tools/url-slug-generator/) [ XML Sitemap Generator xml-sitemap-generator Generate a validated XML sitemap from paths or URLs with lastmod, change frequency, and priority. 1cr · v2026-04-22 ](/tools/xml-sitemap-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Employee Cost Calculator API # Employee Cost Calculator API business 1 credit / call v2026-04-22 True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. One POST adds Employee Cost Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Employee Cost Calculator on miniwebtool.com →](https://miniwebtool.com/employee-cost-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run ``` ### Request body Field Type Req. `annual_salary` `float` — `suta_rate_pct` `float` — `workers_comp_rate_pct` `float` — `health_monthly` `float` — `dental_monthly` `float` — `vision_monthly` `float` — `life_insurance_pct` `float` — `retirement_match_pct` `float` — `pto_days` `float` — `equipment_annual` `float` — `training_annual` `float` — `recruitment_cost` `float` — `tenure_years` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "employee-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → annual_salary (float) suta_rate_pct (float) workers_comp_rate_pct (float) health_monthly (float) dental_monthly (float) vision_monthly (float) life_insurance_pct (float) retirement_match_pct (float) pto_days (float) equipment_annual (float) training_annual (float) recruitment_cost (float) tenure_years (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`employee-cost-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"annual_salary":70000,"health_monthly":500,"retirement_match_pct":3}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'annual_salary': 70000, 'health_monthly': 500, 'retirement_match_pct': 3}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"annual_salary":70000,"health_monthly":500,"retirement_match_pct":3}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'annual_salary' => 70000, 'health_monthly' => 500, 'retirement_match_pct' => 3 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'annual_salary' => 70000, 'health_monthly' => 500, 'retirement_match_pct' => 3 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "annual_salary": 70000, "health_monthly": 500, "retirement_match_pct": 3, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"annual_salary\":70000,\"health_monthly\":500,\"retirement_match_pct\":3}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`employee-cost-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/employee-cost-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/employee-cost-calculator/prompt.md`](/tools/employee-cost-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Employee Cost Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Employee Cost Calculator** — True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_salary` | float | no | (default `70000`) | | `suta_rate_pct` | float | no | (default `2.7`) | | `workers_comp_rate_pct` | float | no | (default `1.0`) | | `health_monthly` | float | no | (default `500`) | | `dental_monthly` | float | no | (default `40`) | | `vision_monthly` | float | no | (default `10`) | | `life_insurance_pct` | float | no | (default `0.3`) | | `retirement_match_pct` | float | no | (default `3`) | | `pto_days` | float | no | (default `15`) | | `equipment_annual` | float | no | (default `1000`) | | `training_annual` | float | no | (default `500`) | | `recruitment_cost` | float | no | (default `3000`) | | `tenure_years` | float | no | (default `3`) | Example request body: ```json { "annual_salary": 70000, "health_monthly": 500, "retirement_match_pct": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "employee-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "annual_salary": 70000.0, "payroll_taxes": { "social_security": 4340.0, "medicare": 1015.0, "futa": 42.0, "suta": 189.0, "workers_comp": 700.0, "total": 6286.0 }, "benefits": { "health_insurance": 6000.0, "dental_insurance": 480.0, "vision_insurance": 120.0, "life_insurance": 210.0, "retirement_match": 2100.0, "total": 8910.0 }, "pto_cost": 4038.46, "overhead": { "equipment": 1000.0, "training": 500.0, "recruitment_amortized": 1000.0, "total": 2500.0 }, "total_annual_cost": 91734.46, "total_overhead_above_salary": 21734.46, "overhead_pct_of_salary": 31.0, "cost_multiplier": 1.31, "note": "US-style payroll tax figures (2026 SS wage base $168,600, FUTA/SUTA wage base $7,000); adjust for your jurisdiction." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Employee Cost Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Employee Cost Calculator** — True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_salary` | float | no | (default `70000`) | | `suta_rate_pct` | float | no | (default `2.7`) | | `workers_comp_rate_pct` | float | no | (default `1.0`) | | `health_monthly` | float | no | (default `500`) | | `dental_monthly` | float | no | (default `40`) | | `vision_monthly` | float | no | (default `10`) | | `life_insurance_pct` | float | no | (default `0.3`) | | `retirement_match_pct` | float | no | (default `3`) | | `pto_days` | float | no | (default `15`) | | `equipment_annual` | float | no | (default `1000`) | | `training_annual` | float | no | (default `500`) | | `recruitment_cost` | float | no | (default `3000`) | | `tenure_years` | float | no | (default `3`) | Example request body: ```json { "annual_salary": 70000, "health_monthly": 500, "retirement_match_pct": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "employee-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "annual_salary": 70000.0, "payroll_taxes": { "social_security": 4340.0, "medicare": 1015.0, "futa": 42.0, "suta": 189.0, "workers_comp": 700.0, "total": 6286.0 }, "benefits": { "health_insurance": 6000.0, "dental_insurance": 480.0, "vision_insurance": 120.0, "life_insurance": 210.0, "retirement_match": 2100.0, "total": 8910.0 }, "pto_cost": 4038.46, "overhead": { "equipment": 1000.0, "training": 500.0, "recruitment_amortized": 1000.0, "total": 2500.0 }, "total_annual_cost": 91734.46, "total_overhead_above_salary": 21734.46, "overhead_pct_of_salary": 31.0, "cost_multiplier": 1.31, "note": "US-style payroll tax figures (2026 SS wage base $168,600, FUTA/SUTA wage base $7,000); adjust for your jurisdiction." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-employee-cost-calculator.mdc copy prompt ```text --- description: MiniWebtool Employee Cost Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Employee Cost Calculator API ## The API **Employee Cost Calculator** — True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/employee-cost-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_salary` | float | no | (default `70000`) | | `suta_rate_pct` | float | no | (default `2.7`) | | `workers_comp_rate_pct` | float | no | (default `1.0`) | | `health_monthly` | float | no | (default `500`) | | `dental_monthly` | float | no | (default `40`) | | `vision_monthly` | float | no | (default `10`) | | `life_insurance_pct` | float | no | (default `0.3`) | | `retirement_match_pct` | float | no | (default `3`) | | `pto_days` | float | no | (default `15`) | | `equipment_annual` | float | no | (default `1000`) | | `training_annual` | float | no | (default `500`) | | `recruitment_cost` | float | no | (default `3000`) | | `tenure_years` | float | no | (default `3`) | Example request body: ```json { "annual_salary": 70000, "health_monthly": 500, "retirement_match_pct": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "employee-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "annual_salary": 70000.0, "payroll_taxes": { "social_security": 4340.0, "medicare": 1015.0, "futa": 42.0, "suta": 189.0, "workers_comp": 700.0, "total": 6286.0 }, "benefits": { "health_insurance": 6000.0, "dental_insurance": 480.0, "vision_insurance": 120.0, "life_insurance": 210.0, "retirement_match": 2100.0, "total": 8910.0 }, "pto_cost": 4038.46, "overhead": { "equipment": 1000.0, "training": 500.0, "recruitment_amortized": 1000.0, "total": 2500.0 }, "total_annual_cost": 91734.46, "total_overhead_above_salary": 21734.46, "overhead_pct_of_salary": 31.0, "cost_multiplier": 1.31, "note": "US-style payroll tax figures (2026 SS wage base $168,600, FUTA/SUTA wage base $7,000); adjust for your jurisdiction." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `employee-cost-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `employee-cost-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call employee-cost-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/employee-cost-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Employee Cost Calculator API do? + True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipment, training, and recruiting. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Employee Cost Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Employee Cost Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Employee Cost Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Employee Cost Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `employee-cost-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`employee-cost-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"employee-cost-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - EOQ Calculator API # EOQ Calculator API business 1 credit / call v2026-04-22 Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. One POST adds EOQ Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the EOQ Calculator on miniwebtool.com →](https://miniwebtool.com/eoq-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/eoq-calculator/run ``` ### Request body Field Type Req. `annual_demand` `float` ✓ `order_cost` `float` ✓ `holding_cost` holding/carrying cost per unit per year `float` ✓ `lead_time_days` `float` — `safety_stock` `float` — `days_per_year` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "eoq-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → annual_demand (float) * order_cost (float) * holding_cost (float) * holding/carrying cost per unit per year lead_time_days (float) safety_stock (float) days_per_year (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`eoq-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/eoq-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"annual_demand":12000,"order_cost":50,"holding_cost":3,"lead_time_days":7}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/eoq-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'annual_demand': 12000, 'order_cost': 50, 'holding_cost': 3, 'lead_time_days': 7}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/eoq-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"annual_demand":12000,"order_cost":50,"holding_cost":3,"lead_time_days":7}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'annual_demand' => 12000, 'order_cost' => 50, 'holding_cost' => 3, 'lead_time_days' => 7 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/eoq-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'annual_demand' => 12000, 'order_cost' => 50, 'holding_cost' => 3, 'lead_time_days' => 7 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "annual_demand": 12000, "order_cost": 50, "holding_cost": 3, "lead_time_days": 7, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/eoq-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/eoq-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"annual_demand\":12000,\"order_cost\":50,\"holding_cost\":3,\"lead_time_days\":7}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`eoq-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/eoq-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/eoq-calculator/prompt.md`](/tools/eoq-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool EOQ Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **EOQ Calculator** — Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/eoq-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/eoq-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_demand` | float | yes | — | | `order_cost` | float | yes | — | | `holding_cost` | float | yes | holding/carrying cost per unit per year | | `lead_time_days` | float | no | (default `0.0`) | | `safety_stock` | float | no | (default `0.0`) | | `days_per_year` | float | no | (default `365.0`) | Example request body: ```json { "annual_demand": 12000, "order_cost": 50, "holding_cost": 3, "lead_time_days": 7 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "eoq-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "eoq": 632.46, "orders_per_year": 18.974, "cycle_days": 19.24, "annual_ordering_cost": 948.68, "annual_holding_cost": 948.68, "total_inventory_cost": 1897.37, "reorder_point": 230.14, "max_inventory": 632.46, "avg_inventory": 316.23 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool EOQ Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **EOQ Calculator** — Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/eoq-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/eoq-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_demand` | float | yes | — | | `order_cost` | float | yes | — | | `holding_cost` | float | yes | holding/carrying cost per unit per year | | `lead_time_days` | float | no | (default `0.0`) | | `safety_stock` | float | no | (default `0.0`) | | `days_per_year` | float | no | (default `365.0`) | Example request body: ```json { "annual_demand": 12000, "order_cost": 50, "holding_cost": 3, "lead_time_days": 7 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "eoq-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "eoq": 632.46, "orders_per_year": 18.974, "cycle_days": 19.24, "annual_ordering_cost": 948.68, "annual_holding_cost": 948.68, "total_inventory_cost": 1897.37, "reorder_point": 230.14, "max_inventory": 632.46, "avg_inventory": 316.23 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-eoq-calculator.mdc copy prompt ```text --- description: MiniWebtool EOQ Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool EOQ Calculator API ## The API **EOQ Calculator** — Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/eoq-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/eoq-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_demand` | float | yes | — | | `order_cost` | float | yes | — | | `holding_cost` | float | yes | holding/carrying cost per unit per year | | `lead_time_days` | float | no | (default `0.0`) | | `safety_stock` | float | no | (default `0.0`) | | `days_per_year` | float | no | (default `365.0`) | Example request body: ```json { "annual_demand": 12000, "order_cost": 50, "holding_cost": 3, "lead_time_days": 7 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "eoq-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "eoq": 632.46, "orders_per_year": 18.974, "cycle_days": 19.24, "annual_ordering_cost": 948.68, "annual_holding_cost": 948.68, "total_inventory_cost": 1897.37, "reorder_point": 230.14, "max_inventory": 632.46, "avg_inventory": 316.23 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `eoq-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `eoq-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call eoq-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`annual_demand`,`order_cost`,`holding_cost`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/eoq-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the EOQ Calculator API do? + Economic Order Quantity that minimizes combined ordering and holding cost, with orders/year, cycle length, and reorder point. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to EOQ Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the EOQ Calculator API require? + Required fields: annual_demand, order_cost, holding_cost. Full schema at /v1/openapi.json. Is the EOQ Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the EOQ Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `eoq-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`eoq-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"eoq-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Print Cost Calculator API # Print Cost Calculator API business 1 credit / call v2026-04-22 Calculate ink, toner, paper, print job, monthly, and yearly printing costs. One POST adds Print Cost Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Print Cost Calculator on miniwebtool.com →](https://miniwebtool.com/print-cost-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/run ``` ### Request body Field Type Req. `print_type` bw | color `str` — `black_cartridge_price` `float` — `black_page_yield` `float` — `color_cartridge_price` `float` — `color_page_yield` `float` — `paper_price` `float` — `sheets_per_ream` `float` — `pages` `float` — `pages_per_month` `float` — `currency_code` USD | EUR | GBP | CAD | AUD | INR `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "print-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → print_type (str) bw color bw | color black_cartridge_price (float) black_page_yield (float) color_cartridge_price (float) color_page_yield (float) paper_price (float) sheets_per_ream (float) pages (float) pages_per_month (float) currency_code (str) USD EUR GBP CAD AUD INR USD | EUR | GBP | CAD | AUD | INR precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`print-cost-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/print-cost-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/print-cost-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/print-cost-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/print-cost-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/print-cost-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`print-cost-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/print-cost-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/print-cost-calculator/prompt.md`](/tools/print-cost-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Print Cost Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Print Cost Calculator** — Calculate ink, toner, paper, print job, monthly, and yearly printing costs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `print_type` | str | no | one of: bw, color — bw \| color (default `bw`) | | `black_cartridge_price` | float | no | (default `24.99`) | | `black_page_yield` | float | no | (default `250`) | | `color_cartridge_price` | float | no | (default `32.99`) | | `color_page_yield` | float | no | (default `200`) | | `paper_price` | float | no | (default `6.0`) | | `sheets_per_ream` | float | no | (default `500`) | | `pages` | float | no | (default `100`) | | `pages_per_month` | float | no | (default `200`) | | `currency_code` | str | no | one of: USD, EUR, GBP, CAD, AUD, INR — USD \| EUR \| GBP \| CAD \| AUD \| INR (default `USD`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "print-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "print_type": "bw", "currency_code": "USD", "black_cost_per_page": 0.09996, "color_cost_per_page": 0.0, "ink_cost_per_page": 0.09996, "paper_cost_per_page": 0.012, "total_cost_per_page": 0.11196, "pages": 100.0, "job_total": 11.196, "pages_per_month": 200.0, "monthly_total": 22.392, "yearly_total": 268.704, "pages_per_currency_unit": 8.931761, "chart_data": { "black_percent": 89.281886, "color_percent": 0.0, "paper_percent": 10.718114 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Print Cost Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Print Cost Calculator** — Calculate ink, toner, paper, print job, monthly, and yearly printing costs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `print_type` | str | no | one of: bw, color — bw \| color (default `bw`) | | `black_cartridge_price` | float | no | (default `24.99`) | | `black_page_yield` | float | no | (default `250`) | | `color_cartridge_price` | float | no | (default `32.99`) | | `color_page_yield` | float | no | (default `200`) | | `paper_price` | float | no | (default `6.0`) | | `sheets_per_ream` | float | no | (default `500`) | | `pages` | float | no | (default `100`) | | `pages_per_month` | float | no | (default `200`) | | `currency_code` | str | no | one of: USD, EUR, GBP, CAD, AUD, INR — USD \| EUR \| GBP \| CAD \| AUD \| INR (default `USD`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "print-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "print_type": "bw", "currency_code": "USD", "black_cost_per_page": 0.09996, "color_cost_per_page": 0.0, "ink_cost_per_page": 0.09996, "paper_cost_per_page": 0.012, "total_cost_per_page": 0.11196, "pages": 100.0, "job_total": 11.196, "pages_per_month": 200.0, "monthly_total": 22.392, "yearly_total": 268.704, "pages_per_currency_unit": 8.931761, "chart_data": { "black_percent": 89.281886, "color_percent": 0.0, "paper_percent": 10.718114 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-print-cost-calculator.mdc copy prompt ```text --- description: MiniWebtool Print Cost Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Print Cost Calculator API ## The API **Print Cost Calculator** — Calculate ink, toner, paper, print job, monthly, and yearly printing costs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/print-cost-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `print_type` | str | no | one of: bw, color — bw \| color (default `bw`) | | `black_cartridge_price` | float | no | (default `24.99`) | | `black_page_yield` | float | no | (default `250`) | | `color_cartridge_price` | float | no | (default `32.99`) | | `color_page_yield` | float | no | (default `200`) | | `paper_price` | float | no | (default `6.0`) | | `sheets_per_ream` | float | no | (default `500`) | | `pages` | float | no | (default `100`) | | `pages_per_month` | float | no | (default `200`) | | `currency_code` | str | no | one of: USD, EUR, GBP, CAD, AUD, INR — USD \| EUR \| GBP \| CAD \| AUD \| INR (default `USD`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "print-cost-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "print_type": "bw", "currency_code": "USD", "black_cost_per_page": 0.09996, "color_cost_per_page": 0.0, "ink_cost_per_page": 0.09996, "paper_cost_per_page": 0.012, "total_cost_per_page": 0.11196, "pages": 100.0, "job_total": 11.196, "pages_per_month": 200.0, "monthly_total": 22.392, "yearly_total": 268.704, "pages_per_currency_unit": 8.931761, "chart_data": { "black_percent": 89.281886, "color_percent": 0.0, "paper_percent": 10.718114 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `print-cost-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `print-cost-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call print-cost-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/print-cost-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Print Cost Calculator API do? + Calculate ink, toner, paper, print job, monthly, and yearly printing costs. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Print Cost Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Print Cost Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Print Cost Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Print Cost Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `print-cost-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`print-cost-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"print-cost-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Employee Cost Calculator True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipme… ](/tools/employee-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - CSAT Score Calculator API # CSAT Score Calculator API business 1 credit / call v2026-04-22 Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. One POST adds CSAT Score Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/run ``` ### Request body Field Type Req. `rating_1` count of 1-star responses `int` — `rating_2` count of 2-star responses `int` — `rating_3` count of 3-star responses `int` — `rating_4` count of 4-star responses `int` — `rating_5` count of 5-star responses `int` — `satisfied_threshold` 4 | 5 `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "csat-score-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → rating_1 (int) count of 1-star responses rating_2 (int) count of 2-star responses rating_3 (int) count of 3-star responses rating_4 (int) count of 4-star responses rating_5 (int) count of 5-star responses satisfied_threshold (str) 4 5 4 | 5 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`csat-score-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"rating_1":2,"rating_2":3,"rating_3":10,"rating_4":35,"rating_5":50,"satisfied_threshold":"4"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/csat-score-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'rating_1': 2, 'rating_2': 3, 'rating_3': 10, 'rating_4': 35, 'rating_5': 50, 'satisfied_threshold': '4'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/csat-score-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"rating_1":2,"rating_2":3,"rating_3":10,"rating_4":35,"rating_5":50,"satisfied_threshold":"4"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'rating_1' => 2, 'rating_2' => 3, 'rating_3' => 10, 'rating_4' => 35, 'rating_5' => 50, 'satisfied_threshold' => '4' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/csat-score-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'rating_1' => 2, 'rating_2' => 3, 'rating_3' => 10, 'rating_4' => 35, 'rating_5' => 50, 'satisfied_threshold' => '4' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "rating_1": 2, "rating_2": 3, "rating_3": 10, "rating_4": 35, "rating_5": 50, "satisfied_threshold": "4", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/csat-score-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/csat-score-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"rating_1\":2,\"rating_2\":3,\"rating_3\":10,\"rating_4\":35,\"rating_5\":50,\"satisfied_threshold\":\"4\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`csat-score-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/csat-score-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/csat-score-calculator/prompt.md`](/tools/csat-score-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool CSAT Score Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CSAT Score Calculator** — Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rating_1` | int | no | count of 1-star responses (default `2`) | | `rating_2` | int | no | count of 2-star responses (default `3`) | | `rating_3` | int | no | count of 3-star responses (default `10`) | | `rating_4` | int | no | count of 4-star responses (default `35`) | | `rating_5` | int | no | count of 5-star responses (default `50`) | | `satisfied_threshold` | str | no | one of: 4, 5 — 4 \| 5 (default `4`) | Example request body: ```json { "rating_1": 2, "rating_2": 3, "rating_3": 10, "rating_4": 35, "rating_5": 50, "satisfied_threshold": "4" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "csat-score-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "responses": 100, "satisfied_responses": 85, "satisfied_threshold": 4, "csat_percent": 85.0, "average_rating": 4.28, "rating_distribution_percent": { "1": 2.0, "2": 3.0, "3": 10.0, "4": 35.0, "5": 50.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool CSAT Score Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CSAT Score Calculator** — Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rating_1` | int | no | count of 1-star responses (default `2`) | | `rating_2` | int | no | count of 2-star responses (default `3`) | | `rating_3` | int | no | count of 3-star responses (default `10`) | | `rating_4` | int | no | count of 4-star responses (default `35`) | | `rating_5` | int | no | count of 5-star responses (default `50`) | | `satisfied_threshold` | str | no | one of: 4, 5 — 4 \| 5 (default `4`) | Example request body: ```json { "rating_1": 2, "rating_2": 3, "rating_3": 10, "rating_4": 35, "rating_5": 50, "satisfied_threshold": "4" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "csat-score-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "responses": 100, "satisfied_responses": 85, "satisfied_threshold": 4, "csat_percent": 85.0, "average_rating": 4.28, "rating_distribution_percent": { "1": 2.0, "2": 3.0, "3": 10.0, "4": 35.0, "5": 50.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-csat-score-calculator.mdc copy prompt ```text --- description: MiniWebtool CSAT Score Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool CSAT Score Calculator API ## The API **CSAT Score Calculator** — Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/csat-score-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rating_1` | int | no | count of 1-star responses (default `2`) | | `rating_2` | int | no | count of 2-star responses (default `3`) | | `rating_3` | int | no | count of 3-star responses (default `10`) | | `rating_4` | int | no | count of 4-star responses (default `35`) | | `rating_5` | int | no | count of 5-star responses (default `50`) | | `satisfied_threshold` | str | no | one of: 4, 5 — 4 \| 5 (default `4`) | Example request body: ```json { "rating_1": 2, "rating_2": 3, "rating_3": 10, "rating_4": 35, "rating_5": 50, "satisfied_threshold": "4" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "csat-score-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "responses": 100, "satisfied_responses": 85, "satisfied_threshold": 4, "csat_percent": 85.0, "average_rating": 4.28, "rating_distribution_percent": { "1": 2.0, "2": 3.0, "3": 10.0, "4": 35.0, "5": 50.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `csat-score-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `csat-score-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call csat-score-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/csat-score-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the CSAT Score Calculator API do? + Calculate customer satisfaction percentage, average rating and rating distribution from 1–5 response counts. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to CSAT Score Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the CSAT Score Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the CSAT Score Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the CSAT Score Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `csat-score-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`csat-score-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"csat-score-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Bradford Factor Calculator API # Bradford Factor Calculator API business 1 credit / call v2026-04-22 Calculate an attendance Bradford Factor from absence spells and total absent days. One POST adds Bradford Factor Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run ``` ### Request body Field Type Req. `absence_spells` number of separate absence spells `int` — `total_days_absent` total days absent `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "bradford-factor-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → absence_spells (int) number of separate absence spells total_days_absent (float) total days absent Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`bradford-factor-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"absence_spells":3,"total_days_absent":8}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'absence_spells': 3, 'total_days_absent': 8}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"absence_spells":3,"total_days_absent":8}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'absence_spells' => 3, 'total_days_absent' => 8 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'absence_spells' => 3, 'total_days_absent' => 8 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "absence_spells": 3, "total_days_absent": 8, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"absence_spells\":3,\"total_days_absent\":8}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`bradford-factor-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/bradford-factor-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/bradford-factor-calculator/prompt.md`](/tools/bradford-factor-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Bradford Factor Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bradford Factor Calculator** — Calculate an attendance Bradford Factor from absence spells and total absent days. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `absence_spells` | int | no | number of separate absence spells (default `3`) | | `total_days_absent` | float | no | total days absent (default `8`) | Example request body: ```json { "absence_spells": 3, "total_days_absent": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bradford-factor-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "absence_spells": 3, "total_days_absent": 8.0, "bradford_factor": 72.0, "illustrative_band": "moderate", "formula": "spells² × total days absent", "note": "Thresholds are illustrative; apply your organization's policy and review individual circumstances." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Bradford Factor Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bradford Factor Calculator** — Calculate an attendance Bradford Factor from absence spells and total absent days. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `absence_spells` | int | no | number of separate absence spells (default `3`) | | `total_days_absent` | float | no | total days absent (default `8`) | Example request body: ```json { "absence_spells": 3, "total_days_absent": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bradford-factor-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "absence_spells": 3, "total_days_absent": 8.0, "bradford_factor": 72.0, "illustrative_band": "moderate", "formula": "spells² × total days absent", "note": "Thresholds are illustrative; apply your organization's policy and review individual circumstances." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-bradford-factor-calculator.mdc copy prompt ```text --- description: MiniWebtool Bradford Factor Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Bradford Factor Calculator API ## The API **Bradford Factor Calculator** — Calculate an attendance Bradford Factor from absence spells and total absent days. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `absence_spells` | int | no | number of separate absence spells (default `3`) | | `total_days_absent` | float | no | total days absent (default `8`) | Example request body: ```json { "absence_spells": 3, "total_days_absent": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bradford-factor-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "absence_spells": 3, "total_days_absent": 8.0, "bradford_factor": 72.0, "illustrative_band": "moderate", "formula": "spells² × total days absent", "note": "Thresholds are illustrative; apply your organization's policy and review individual circumstances." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `bradford-factor-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `bradford-factor-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call bradford-factor-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/bradford-factor-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Bradford Factor Calculator API do? + Calculate an attendance Bradford Factor from absence spells and total absent days. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Bradford Factor Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Bradford Factor Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Bradford Factor Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Bradford Factor Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `bradford-factor-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`bradford-factor-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"bradford-factor-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Compa-Ratio Calculator API # Compa-Ratio Calculator API business 1 credit / call v2026-04-22 Compare salary with a pay-range midpoint and calculate range penetration. One POST adds Compa-Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run ``` ### Request body Field Type Req. `salary` current salary `float` — `midpoint` pay-range midpoint `float` — `range_min` pay-range minimum `float` — `range_max` pay-range maximum `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "compa-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → salary (float) current salary midpoint (float) pay-range midpoint range_min (float) pay-range minimum range_max (float) pay-range maximum Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`compa-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"salary":75000,"midpoint":80000,"range_min":60000,"range_max":100000}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'salary': 75000, 'midpoint': 80000, 'range_min': 60000, 'range_max': 100000}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"salary":75000,"midpoint":80000,"range_min":60000,"range_max":100000}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'salary' => 75000, 'midpoint' => 80000, 'range_min' => 60000, 'range_max' => 100000 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'salary' => 75000, 'midpoint' => 80000, 'range_min' => 60000, 'range_max' => 100000 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "salary": 75000, "midpoint": 80000, "range_min": 60000, "range_max": 100000, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"salary\":75000,\"midpoint\":80000,\"range_min\":60000,\"range_max\":100000}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`compa-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/compa-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/compa-ratio-calculator/prompt.md`](/tools/compa-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Compa-Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Compa-Ratio Calculator** — Compare salary with a pay-range midpoint and calculate range penetration. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `salary` | float | no | current salary (default `75000`) | | `midpoint` | float | no | pay-range midpoint (default `80000`) | | `range_min` | float | no | pay-range minimum (default `60000`) | | `range_max` | float | no | pay-range maximum (default `100000`) | Example request body: ```json { "salary": 75000, "midpoint": 80000, "range_min": 60000, "range_max": 100000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compa-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "compa_ratio": 0.9375, "compa_ratio_percent": 93.75, "range_penetration_percent": 37.5, "amount_to_midpoint": 5000.0, "position": "within range", "illustrative_band": "80% to below midpoint" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Compa-Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Compa-Ratio Calculator** — Compare salary with a pay-range midpoint and calculate range penetration. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `salary` | float | no | current salary (default `75000`) | | `midpoint` | float | no | pay-range midpoint (default `80000`) | | `range_min` | float | no | pay-range minimum (default `60000`) | | `range_max` | float | no | pay-range maximum (default `100000`) | Example request body: ```json { "salary": 75000, "midpoint": 80000, "range_min": 60000, "range_max": 100000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compa-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "compa_ratio": 0.9375, "compa_ratio_percent": 93.75, "range_penetration_percent": 37.5, "amount_to_midpoint": 5000.0, "position": "within range", "illustrative_band": "80% to below midpoint" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-compa-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Compa-Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Compa-Ratio Calculator API ## The API **Compa-Ratio Calculator** — Compare salary with a pay-range midpoint and calculate range penetration. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `salary` | float | no | current salary (default `75000`) | | `midpoint` | float | no | pay-range midpoint (default `80000`) | | `range_min` | float | no | pay-range minimum (default `60000`) | | `range_max` | float | no | pay-range maximum (default `100000`) | Example request body: ```json { "salary": 75000, "midpoint": 80000, "range_min": 60000, "range_max": 100000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compa-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "compa_ratio": 0.9375, "compa_ratio_percent": 93.75, "range_penetration_percent": 37.5, "amount_to_midpoint": 5000.0, "position": "within range", "illustrative_band": "80% to below midpoint" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `compa-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `compa-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call compa-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/compa-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Compa-Ratio Calculator API do? + Compare salary with a pay-range midpoint and calculate range penetration. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Compa-Ratio Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Compa-Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Compa-Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Compa-Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `compa-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`compa-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"compa-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Employee Turnover Rate Calculator API # Employee Turnover Rate Calculator API business 1 credit / call v2026-04-22 Calculate period and annualized employee turnover from average headcount and separations. One POST adds Employee Turnover Rate Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run ``` ### Request body Field Type Req. `beginning_employees` headcount at period start `float` — `ending_employees` headcount at period end `float` — `separations` employees who left in the period `float` — `voluntary_separations` optional voluntary separations `float` — `period_months` period length in months `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "employee-turnover-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → beginning_employees (float) headcount at period start ending_employees (float) headcount at period end separations (float) employees who left in the period voluntary_separations (float) optional voluntary separations period_months (float) period length in months Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`employee-turnover-rate-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"beginning_employees":100,"ending_employees":110,"separations":12,"voluntary_separations":8,"period_months":12}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'beginning_employees': 100, 'ending_employees': 110, 'separations': 12, 'voluntary_separations': 8, 'period_months': 12}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"beginning_employees":100,"ending_employees":110,"separations":12,"voluntary_separations":8,"period_months":12}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'beginning_employees' => 100, 'ending_employees' => 110, 'separations' => 12, 'voluntary_separations' => 8, 'period_months' => 12 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'beginning_employees' => 100, 'ending_employees' => 110, 'separations' => 12, 'voluntary_separations' => 8, 'period_months' => 12 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "beginning_employees": 100, "ending_employees": 110, "separations": 12, "voluntary_separations": 8, "period_months": 12, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"beginning_employees\":100,\"ending_employees\":110,\"separations\":12,\"voluntary_separations\":8,\"period_months\":12}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`employee-turnover-rate-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/employee-turnover-rate-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/employee-turnover-rate-calculator/prompt.md`](/tools/employee-turnover-rate-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Employee Turnover Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Employee Turnover Rate Calculator** — Calculate period and annualized employee turnover from average headcount and separations. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `beginning_employees` | float | no | headcount at period start (default `100`) | | `ending_employees` | float | no | headcount at period end (default `110`) | | `separations` | float | no | employees who left in the period (default `12`) | | `voluntary_separations` | float | no | optional voluntary separations (default `8`) | | `period_months` | float | no | period length in months (default `12`) | Example request body: ```json { "beginning_employees": 100, "ending_employees": 110, "separations": 12, "voluntary_separations": 8, "period_months": 12 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "employee-turnover-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "average_headcount": 105.0, "turnover_rate_percent": 11.428571, "annualized_turnover_percent": 11.428571, "voluntary_turnover_percent": 7.619048, "involuntary_turnover_percent": 3.809524, "retention_proxy_percent": 88.571429 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Employee Turnover Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Employee Turnover Rate Calculator** — Calculate period and annualized employee turnover from average headcount and separations. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `beginning_employees` | float | no | headcount at period start (default `100`) | | `ending_employees` | float | no | headcount at period end (default `110`) | | `separations` | float | no | employees who left in the period (default `12`) | | `voluntary_separations` | float | no | optional voluntary separations (default `8`) | | `period_months` | float | no | period length in months (default `12`) | Example request body: ```json { "beginning_employees": 100, "ending_employees": 110, "separations": 12, "voluntary_separations": 8, "period_months": 12 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "employee-turnover-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "average_headcount": 105.0, "turnover_rate_percent": 11.428571, "annualized_turnover_percent": 11.428571, "voluntary_turnover_percent": 7.619048, "involuntary_turnover_percent": 3.809524, "retention_proxy_percent": 88.571429 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-employee-turnover-rate-calculator.mdc copy prompt ```text --- description: MiniWebtool Employee Turnover Rate Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Employee Turnover Rate Calculator API ## The API **Employee Turnover Rate Calculator** — Calculate period and annualized employee turnover from average headcount and separations. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `beginning_employees` | float | no | headcount at period start (default `100`) | | `ending_employees` | float | no | headcount at period end (default `110`) | | `separations` | float | no | employees who left in the period (default `12`) | | `voluntary_separations` | float | no | optional voluntary separations (default `8`) | | `period_months` | float | no | period length in months (default `12`) | Example request body: ```json { "beginning_employees": 100, "ending_employees": 110, "separations": 12, "voluntary_separations": 8, "period_months": 12 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "employee-turnover-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "average_headcount": 105.0, "turnover_rate_percent": 11.428571, "annualized_turnover_percent": 11.428571, "voluntary_turnover_percent": 7.619048, "involuntary_turnover_percent": 3.809524, "retention_proxy_percent": 88.571429 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `employee-turnover-rate-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `employee-turnover-rate-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call employee-turnover-rate-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/employee-turnover-rate-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Employee Turnover Rate Calculator API do? + Calculate period and annualized employee turnover from average headcount and separations. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Employee Turnover Rate Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Employee Turnover Rate Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Employee Turnover Rate Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Employee Turnover Rate Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `employee-turnover-rate-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`employee-turnover-rate-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"employee-turnover-rate-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - FTE Calculator API # FTE Calculator API business 1 credit / call v2026-04-22 Convert full-time and part-time headcount and hours into full-time equivalents. One POST adds FTE Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/fte-calculator/run ``` ### Request body Field Type Req. `full_time_employees` full-time employee count `float` — `part_time_employees` part-time employee count `float` — `part_time_hours_each` average weekly hours for each part-time employee `float` — `standard_weekly_hours` weekly hours representing one FTE `float` — `weeks` weeks in the calculation period `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fte-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → full_time_employees (float) full-time employee count part_time_employees (float) part-time employee count part_time_hours_each (float) average weekly hours for each part-time employee standard_weekly_hours (float) weekly hours representing one FTE weeks (float) weeks in the calculation period Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fte-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fte-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"full_time_employees":5,"part_time_employees":4,"part_time_hours_each":20,"standard_weekly_hours":40,"weeks":52}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fte-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'full_time_employees': 5, 'part_time_employees': 4, 'part_time_hours_each': 20, 'standard_weekly_hours': 40, 'weeks': 52}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fte-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"full_time_employees":5,"part_time_employees":4,"part_time_hours_each":20,"standard_weekly_hours":40,"weeks":52}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'full_time_employees' => 5, 'part_time_employees' => 4, 'part_time_hours_each' => 20, 'standard_weekly_hours' => 40, 'weeks' => 52 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fte-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'full_time_employees' => 5, 'part_time_employees' => 4, 'part_time_hours_each' => 20, 'standard_weekly_hours' => 40, 'weeks' => 52 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "full_time_employees": 5, "part_time_employees": 4, "part_time_hours_each": 20, "standard_weekly_hours": 40, "weeks": 52, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fte-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fte-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"full_time_employees\":5,\"part_time_employees\":4,\"part_time_hours_each\":20,\"standard_weekly_hours\":40,\"weeks\":52}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fte-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fte-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/fte-calculator/prompt.md`](/tools/fte-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool FTE Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **FTE Calculator** — Convert full-time and part-time headcount and hours into full-time equivalents. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fte-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fte-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `full_time_employees` | float | no | full-time employee count (default `5`) | | `part_time_employees` | float | no | part-time employee count (default `4`) | | `part_time_hours_each` | float | no | average weekly hours for each part-time employee (default `20`) | | `standard_weekly_hours` | float | no | weekly hours representing one FTE (default `40`) | | `weeks` | float | no | weeks in the calculation period (default `52`) | Example request body: ```json { "full_time_employees": 5, "part_time_employees": 4, "part_time_hours_each": 20, "standard_weekly_hours": 40, "weeks": 52 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fte-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fte": 7.0, "headcount": 9.0, "full_time_fte": 5.0, "part_time_fte": 2.0, "total_hours": 14560.0, "hours_per_fte_for_period": 2080.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool FTE Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **FTE Calculator** — Convert full-time and part-time headcount and hours into full-time equivalents. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fte-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fte-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `full_time_employees` | float | no | full-time employee count (default `5`) | | `part_time_employees` | float | no | part-time employee count (default `4`) | | `part_time_hours_each` | float | no | average weekly hours for each part-time employee (default `20`) | | `standard_weekly_hours` | float | no | weekly hours representing one FTE (default `40`) | | `weeks` | float | no | weeks in the calculation period (default `52`) | Example request body: ```json { "full_time_employees": 5, "part_time_employees": 4, "part_time_hours_each": 20, "standard_weekly_hours": 40, "weeks": 52 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fte-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fte": 7.0, "headcount": 9.0, "full_time_fte": 5.0, "part_time_fte": 2.0, "total_hours": 14560.0, "hours_per_fte_for_period": 2080.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fte-calculator.mdc copy prompt ```text --- description: MiniWebtool FTE Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool FTE Calculator API ## The API **FTE Calculator** — Convert full-time and part-time headcount and hours into full-time equivalents. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fte-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fte-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `full_time_employees` | float | no | full-time employee count (default `5`) | | `part_time_employees` | float | no | part-time employee count (default `4`) | | `part_time_hours_each` | float | no | average weekly hours for each part-time employee (default `20`) | | `standard_weekly_hours` | float | no | weekly hours representing one FTE (default `40`) | | `weeks` | float | no | weeks in the calculation period (default `52`) | Example request body: ```json { "full_time_employees": 5, "part_time_employees": 4, "part_time_hours_each": 20, "standard_weekly_hours": 40, "weeks": 52 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fte-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fte": 7.0, "headcount": 9.0, "full_time_fte": 5.0, "part_time_fte": 2.0, "total_hours": 14560.0, "hours_per_fte_for_period": 2080.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fte-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fte-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fte-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fte-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the FTE Calculator API do? + Convert full-time and part-time headcount and hours into full-time equivalents. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to FTE Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the FTE Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the FTE Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the FTE Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fte-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fte-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fte-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Billable Utilization Calculator API # Billable Utilization Calculator API business 1 credit / call v2026-04-22 Calculate billable utilization, target gap, revenue and gross margin for a work period. One POST adds Billable Utilization Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run ``` ### Request body Field Type Req. `available_hours` total workable hours in the period `float` — `billable_hours` client-billable hours in the period `float` — `target_percent` target utilization percent `float` — `billing_rate` optional revenue per billable hour `float` — `labor_cost` optional labor cost per available hour `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "billable-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → available_hours (float) total workable hours in the period billable_hours (float) client-billable hours in the period target_percent (float) target utilization percent billing_rate (float) optional revenue per billable hour labor_cost (float) optional labor cost per available hour Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`billable-utilization-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"available_hours":160,"billable_hours":120,"target_percent":75,"billing_rate":150,"labor_cost":60}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'available_hours': 160, 'billable_hours': 120, 'target_percent': 75, 'billing_rate': 150, 'labor_cost': 60}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"available_hours":160,"billable_hours":120,"target_percent":75,"billing_rate":150,"labor_cost":60}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'available_hours' => 160, 'billable_hours' => 120, 'target_percent' => 75, 'billing_rate' => 150, 'labor_cost' => 60 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'available_hours' => 160, 'billable_hours' => 120, 'target_percent' => 75, 'billing_rate' => 150, 'labor_cost' => 60 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "available_hours": 160, "billable_hours": 120, "target_percent": 75, "billing_rate": 150, "labor_cost": 60, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"available_hours\":160,\"billable_hours\":120,\"target_percent\":75,\"billing_rate\":150,\"labor_cost\":60}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`billable-utilization-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/billable-utilization-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/billable-utilization-calculator/prompt.md`](/tools/billable-utilization-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Billable Utilization Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Billable Utilization Calculator** — Calculate billable utilization, target gap, revenue and gross margin for a work period. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `available_hours` | float | no | total workable hours in the period (default `160`) | | `billable_hours` | float | no | client-billable hours in the period (default `120`) | | `target_percent` | float | no | target utilization percent (default `75`) | | `billing_rate` | float | no | optional revenue per billable hour (default `0`) | | `labor_cost` | float | no | optional labor cost per available hour (default `0`) | Example request body: ```json { "available_hours": 160, "billable_hours": 120, "target_percent": 75, "billing_rate": 150, "labor_cost": 60 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "billable-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "utilization_percent": 75.0, "non_billable_hours": 40.0, "target_billable_hours": 120.0, "hours_to_target": 0.0, "target_status": "met", "billable_revenue": 18000.0, "labor_cost": 9600.0, "gross_margin": 8400.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Billable Utilization Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Billable Utilization Calculator** — Calculate billable utilization, target gap, revenue and gross margin for a work period. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `available_hours` | float | no | total workable hours in the period (default `160`) | | `billable_hours` | float | no | client-billable hours in the period (default `120`) | | `target_percent` | float | no | target utilization percent (default `75`) | | `billing_rate` | float | no | optional revenue per billable hour (default `0`) | | `labor_cost` | float | no | optional labor cost per available hour (default `0`) | Example request body: ```json { "available_hours": 160, "billable_hours": 120, "target_percent": 75, "billing_rate": 150, "labor_cost": 60 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "billable-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "utilization_percent": 75.0, "non_billable_hours": 40.0, "target_billable_hours": 120.0, "hours_to_target": 0.0, "target_status": "met", "billable_revenue": 18000.0, "labor_cost": 9600.0, "gross_margin": 8400.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-billable-utilization-calculator.mdc copy prompt ```text --- description: MiniWebtool Billable Utilization Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Billable Utilization Calculator API ## The API **Billable Utilization Calculator** — Calculate billable utilization, target gap, revenue and gross margin for a work period. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `available_hours` | float | no | total workable hours in the period (default `160`) | | `billable_hours` | float | no | client-billable hours in the period (default `120`) | | `target_percent` | float | no | target utilization percent (default `75`) | | `billing_rate` | float | no | optional revenue per billable hour (default `0`) | | `labor_cost` | float | no | optional labor cost per available hour (default `0`) | Example request body: ```json { "available_hours": 160, "billable_hours": 120, "target_percent": 75, "billing_rate": 150, "labor_cost": 60 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "billable-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "utilization_percent": 75.0, "non_billable_hours": 40.0, "target_billable_hours": 120.0, "hours_to_target": 0.0, "target_status": "met", "billable_revenue": 18000.0, "labor_cost": 9600.0, "gross_margin": 8400.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `billable-utilization-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `billable-utilization-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call billable-utilization-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/billable-utilization-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Billable Utilization Calculator API do? + Calculate billable utilization, target gap, revenue and gross margin for a work period. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Billable Utilization Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Billable Utilization Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Billable Utilization Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Billable Utilization Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `billable-utilization-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`billable-utilization-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"billable-utilization-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Revenue Per Employee Calculator API # Revenue Per Employee Calculator API business 1 credit / call v2026-04-22 Calculate revenue per employee for a period and annualized basis. One POST adds Revenue Per Employee Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Revenue Per Employee Calculator on miniwebtool.com →](https://miniwebtool.com/revenue-per-employee-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run ``` ### Request body Field Type Req. `total_revenue` `float` — `employees` `int` — `period_months` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "revenue-per-employee-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → total_revenue (float) employees (int) period_months (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`revenue-per-employee-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`revenue-per-employee-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/revenue-per-employee-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/revenue-per-employee-calculator/prompt.md`](/tools/revenue-per-employee-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Revenue Per Employee Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Revenue Per Employee Calculator** — Calculate revenue per employee for a period and annualized basis. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `total_revenue` | float | no | (default `2500000`) | | `employees` | int | no | (default `25`) | | `period_months` | float | no | (default `12`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "revenue-per-employee-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_revenue": 2500000.0, "employees": 25, "period_months": 12.0, "revenue_per_employee": 100000.0, "monthly_revenue_per_employee": 8333.33, "annualized_revenue_per_employee": 100000.0, "chart_data": { "comparison": [ { "label": "Period", "value": 100000.0 }, { "label": "Annualized", "value": 100000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Revenue Per Employee Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Revenue Per Employee Calculator** — Calculate revenue per employee for a period and annualized basis. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `total_revenue` | float | no | (default `2500000`) | | `employees` | int | no | (default `25`) | | `period_months` | float | no | (default `12`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "revenue-per-employee-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_revenue": 2500000.0, "employees": 25, "period_months": 12.0, "revenue_per_employee": 100000.0, "monthly_revenue_per_employee": 8333.33, "annualized_revenue_per_employee": 100000.0, "chart_data": { "comparison": [ { "label": "Period", "value": 100000.0 }, { "label": "Annualized", "value": 100000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-revenue-per-employee-calculator.mdc copy prompt ```text --- description: MiniWebtool Revenue Per Employee Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Revenue Per Employee Calculator API ## The API **Revenue Per Employee Calculator** — Calculate revenue per employee for a period and annualized basis. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `total_revenue` | float | no | (default `2500000`) | | `employees` | int | no | (default `25`) | | `period_months` | float | no | (default `12`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "revenue-per-employee-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_revenue": 2500000.0, "employees": 25, "period_months": 12.0, "revenue_per_employee": 100000.0, "monthly_revenue_per_employee": 8333.33, "annualized_revenue_per_employee": 100000.0, "chart_data": { "comparison": [ { "label": "Period", "value": 100000.0 }, { "label": "Annualized", "value": 100000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `revenue-per-employee-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `revenue-per-employee-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call revenue-per-employee-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/revenue-per-employee-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Revenue Per Employee Calculator API do? + Calculate revenue per employee for a period and annualized basis. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Revenue Per Employee Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Revenue Per Employee Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Revenue Per Employee Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Revenue Per Employee Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `revenue-per-employee-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`revenue-per-employee-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"revenue-per-employee-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) [ Employee Cost Calculator True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipme… ](/tools/employee-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Contribution Margin Calculator API # Contribution Margin Calculator API business 1 credit / call v2026-04-22 Calculate unit and total contribution margin, ratio, profit, and break-even units. One POST adds Contribution Margin Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Contribution Margin Calculator on miniwebtool.com →](https://miniwebtool.com/contribution-margin-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run ``` ### Request body Field Type Req. `selling_price` `float` — `variable_cost` `float` — `units_sold` `float` — `fixed_costs` `float` — `currency` USD | EUR | GBP | CAD | AUD | INR `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "contribution-margin-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → selling_price (float) variable_cost (float) units_sold (float) fixed_costs (float) currency (str) USD EUR GBP CAD AUD INR USD | EUR | GBP | CAD | AUD | INR precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`contribution-margin-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`contribution-margin-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/contribution-margin-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/contribution-margin-calculator/prompt.md`](/tools/contribution-margin-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Contribution Margin Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Contribution Margin Calculator** — Calculate unit and total contribution margin, ratio, profit, and break-even units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `selling_price` | float | no | (default `50`) | | `variable_cost` | float | no | (default `30`) | | `units_sold` | float | no | (default `1000`) | | `fixed_costs` | float | no | (default `12000`) | | `currency` | str | no | one of: USD, EUR, GBP, CAD, AUD, INR — USD \| EUR \| GBP \| CAD \| AUD \| INR (default `USD`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "contribution-margin-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "currency": "USD", "unit_contribution_margin": 20.0, "contribution_margin_ratio_percent": 40.0, "revenue": 50000.0, "total_variable_cost": 30000.0, "total_contribution_margin": 20000.0, "fixed_costs": 12000.0, "operating_profit": 8000.0, "break_even_units": 600.0, "break_even_sales": 30000.0, "chart_data": { "per_unit": [ { "label": "Variable cost", "value": 30.0 }, { "label": "Contribution margin", "value": 20.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Contribution Margin Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Contribution Margin Calculator** — Calculate unit and total contribution margin, ratio, profit, and break-even units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `selling_price` | float | no | (default `50`) | | `variable_cost` | float | no | (default `30`) | | `units_sold` | float | no | (default `1000`) | | `fixed_costs` | float | no | (default `12000`) | | `currency` | str | no | one of: USD, EUR, GBP, CAD, AUD, INR — USD \| EUR \| GBP \| CAD \| AUD \| INR (default `USD`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "contribution-margin-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "currency": "USD", "unit_contribution_margin": 20.0, "contribution_margin_ratio_percent": 40.0, "revenue": 50000.0, "total_variable_cost": 30000.0, "total_contribution_margin": 20000.0, "fixed_costs": 12000.0, "operating_profit": 8000.0, "break_even_units": 600.0, "break_even_sales": 30000.0, "chart_data": { "per_unit": [ { "label": "Variable cost", "value": 30.0 }, { "label": "Contribution margin", "value": 20.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-contribution-margin-calculator.mdc copy prompt ```text --- description: MiniWebtool Contribution Margin Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Contribution Margin Calculator API ## The API **Contribution Margin Calculator** — Calculate unit and total contribution margin, ratio, profit, and break-even units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `selling_price` | float | no | (default `50`) | | `variable_cost` | float | no | (default `30`) | | `units_sold` | float | no | (default `1000`) | | `fixed_costs` | float | no | (default `12000`) | | `currency` | str | no | one of: USD, EUR, GBP, CAD, AUD, INR — USD \| EUR \| GBP \| CAD \| AUD \| INR (default `USD`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "contribution-margin-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "currency": "USD", "unit_contribution_margin": 20.0, "contribution_margin_ratio_percent": 40.0, "revenue": 50000.0, "total_variable_cost": 30000.0, "total_contribution_margin": 20000.0, "fixed_costs": 12000.0, "operating_profit": 8000.0, "break_even_units": 600.0, "break_even_sales": 30000.0, "chart_data": { "per_unit": [ { "label": "Variable cost", "value": 30.0 }, { "label": "Contribution margin", "value": 20.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `contribution-margin-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `contribution-margin-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call contribution-margin-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/contribution-margin-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Contribution Margin Calculator API do? + Calculate unit and total contribution margin, ratio, profit, and break-even units. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Contribution Margin Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Contribution Margin Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Contribution Margin Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Contribution Margin Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `contribution-margin-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`contribution-margin-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"contribution-margin-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) [ Employee Cost Calculator True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipme… ](/tools/employee-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - MTBF & MTTR Calculator API # MTBF & MTTR Calculator API business 1 credit / call v2026-04-22 Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. One POST adds MTBF & MTTR Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run ``` ### Request body Field Type Req. `mode` operational | direct `str` — `total_operating_time` aggregate operating time for operational mode `float` — `failures` failure count for operational mode `int` — `total_downtime` aggregate repair downtime for operational mode `float` — `mtbf` MTBF for direct mode `float` — `mttr` MTTR for direct mode `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "mtbf-mttr-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → mode (str) operational direct operational | direct total_operating_time (float) aggregate operating time for operational mode failures (int) failure count for operational mode total_downtime (float) aggregate repair downtime for operational mode mtbf (float) MTBF for direct mode mttr (float) MTTR for direct mode Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`mtbf-mttr-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"mode":"operational","total_operating_time":10000,"failures":10,"total_downtime":50,"mtbf":1000,"mttr":5}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'mode': 'operational', 'total_operating_time': 10000, 'failures': 10, 'total_downtime': 50, 'mtbf': 1000, 'mttr': 5}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"mode":"operational","total_operating_time":10000,"failures":10,"total_downtime":50,"mtbf":1000,"mttr":5}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'mode' => 'operational', 'total_operating_time' => 10000, 'failures' => 10, 'total_downtime' => 50, 'mtbf' => 1000, 'mttr' => 5 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'mode' => 'operational', 'total_operating_time' => 10000, 'failures' => 10, 'total_downtime' => 50, 'mtbf' => 1000, 'mttr' => 5 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "mode": "operational", "total_operating_time": 10000, "failures": 10, "total_downtime": 50, "mtbf": 1000, "mttr": 5, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"mode\":\"operational\",\"total_operating_time\":10000,\"failures\":10,\"total_downtime\":50,\"mtbf\":1000,\"mttr\":5}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`mtbf-mttr-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/mtbf-mttr-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/mtbf-mttr-calculator/prompt.md`](/tools/mtbf-mttr-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool MTBF & MTTR Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **MTBF & MTTR Calculator** — Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: operational, direct — operational \| direct (default `operational`) | | `total_operating_time` | float | no | aggregate operating time for operational mode (default `10000`) | | `failures` | int | no | failure count for operational mode (default `10`) | | `total_downtime` | float | no | aggregate repair downtime for operational mode (default `50`) | | `mtbf` | float | no | MTBF for direct mode (default `1000`) | | `mttr` | float | no | MTTR for direct mode (default `5`) | Example request body: ```json { "mode": "operational", "total_operating_time": 10000, "failures": 10, "total_downtime": 50, "mtbf": 1000, "mttr": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "mtbf-mttr-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "operational", "mtbf": 1000.0, "mttr": 5.0, "availability_percent": 99.502488, "unavailability_percent": 0.497512, "failure_rate_per_time_unit": 0.001, "expected_failures_per_1000_time_units": 1.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool MTBF & MTTR Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **MTBF & MTTR Calculator** — Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: operational, direct — operational \| direct (default `operational`) | | `total_operating_time` | float | no | aggregate operating time for operational mode (default `10000`) | | `failures` | int | no | failure count for operational mode (default `10`) | | `total_downtime` | float | no | aggregate repair downtime for operational mode (default `50`) | | `mtbf` | float | no | MTBF for direct mode (default `1000`) | | `mttr` | float | no | MTTR for direct mode (default `5`) | Example request body: ```json { "mode": "operational", "total_operating_time": 10000, "failures": 10, "total_downtime": 50, "mtbf": 1000, "mttr": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "mtbf-mttr-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "operational", "mtbf": 1000.0, "mttr": 5.0, "availability_percent": 99.502488, "unavailability_percent": 0.497512, "failure_rate_per_time_unit": 0.001, "expected_failures_per_1000_time_units": 1.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-mtbf-mttr-calculator.mdc copy prompt ```text --- description: MiniWebtool MTBF & MTTR Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool MTBF & MTTR Calculator API ## The API **MTBF & MTTR Calculator** — Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: operational, direct — operational \| direct (default `operational`) | | `total_operating_time` | float | no | aggregate operating time for operational mode (default `10000`) | | `failures` | int | no | failure count for operational mode (default `10`) | | `total_downtime` | float | no | aggregate repair downtime for operational mode (default `50`) | | `mtbf` | float | no | MTBF for direct mode (default `1000`) | | `mttr` | float | no | MTTR for direct mode (default `5`) | Example request body: ```json { "mode": "operational", "total_operating_time": 10000, "failures": 10, "total_downtime": 50, "mtbf": 1000, "mttr": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "mtbf-mttr-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "operational", "mtbf": 1000.0, "mttr": 5.0, "availability_percent": 99.502488, "unavailability_percent": 0.497512, "failure_rate_per_time_unit": 0.001, "expected_failures_per_1000_time_units": 1.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `mtbf-mttr-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `mtbf-mttr-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call mtbf-mttr-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/mtbf-mttr-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the MTBF & MTTR Calculator API do? + Calculate MTBF, MTTR, availability and failure rate from operational totals or direct metrics. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to MTBF & MTTR Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the MTBF & MTTR Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the MTBF & MTTR Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the MTBF & MTTR Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `mtbf-mttr-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`mtbf-mttr-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"mtbf-mttr-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Survey Response Rate Calculator API # Survey Response Rate Calculator API business 1 credit / call v2026-04-22 Calculate complete and overall survey response rates, completion rate and approximate margin of error. One POST adds Survey Response Rate Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run ``` ### Request body Field Type Req. `invitations` valid survey invitations `int` — `complete_responses` complete responses `int` — `partial_responses` partial responses `int` — `population` optional finite population; 0 means unknown `int` — `confidence` 95 | 80 | 90 | 98 | 99 `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "survey-response-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → invitations (int) valid survey invitations complete_responses (int) complete responses partial_responses (int) partial responses population (int) optional finite population; 0 means unknown confidence (str) 95 80 90 98 99 95 | 80 | 90 | 98 | 99 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`survey-response-rate-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"invitations":1000,"complete_responses":300,"partial_responses":25,"population":0,"confidence":"95"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'invitations': 1000, 'complete_responses': 300, 'partial_responses': 25, 'population': 0, 'confidence': '95'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"invitations":1000,"complete_responses":300,"partial_responses":25,"population":0,"confidence":"95"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'invitations' => 1000, 'complete_responses' => 300, 'partial_responses' => 25, 'population' => 0, 'confidence' => '95' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'invitations' => 1000, 'complete_responses' => 300, 'partial_responses' => 25, 'population' => 0, 'confidence' => '95' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "invitations": 1000, "complete_responses": 300, "partial_responses": 25, "population": 0, "confidence": "95", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"invitations\":1000,\"complete_responses\":300,\"partial_responses\":25,\"population\":0,\"confidence\":\"95\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`survey-response-rate-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/survey-response-rate-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/survey-response-rate-calculator/prompt.md`](/tools/survey-response-rate-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Survey Response Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Survey Response Rate Calculator** — Calculate complete and overall survey response rates, completion rate and approximate margin of error. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `invitations` | int | no | valid survey invitations (default `1000`) | | `complete_responses` | int | no | complete responses (default `300`) | | `partial_responses` | int | no | partial responses (default `25`) | | `population` | int | no | optional finite population; 0 means unknown (default `0`) | | `confidence` | str | no | one of: 95, 80, 90, 98, 99 — 95 \| 80 \| 90 \| 98 \| 99 (default `95`) | Example request body: ```json { "invitations": 1000, "complete_responses": 300, "partial_responses": 25, "population": 0, "confidence": "95" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "survey-response-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "complete_response_rate_percent": 30.0, "overall_response_rate_percent": 32.5, "completion_rate_percent": 92.307692, "nonresponse_count": 675, "margin_of_error_percent": 5.657929, "confidence_percent": 95 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Survey Response Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Survey Response Rate Calculator** — Calculate complete and overall survey response rates, completion rate and approximate margin of error. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `invitations` | int | no | valid survey invitations (default `1000`) | | `complete_responses` | int | no | complete responses (default `300`) | | `partial_responses` | int | no | partial responses (default `25`) | | `population` | int | no | optional finite population; 0 means unknown (default `0`) | | `confidence` | str | no | one of: 95, 80, 90, 98, 99 — 95 \| 80 \| 90 \| 98 \| 99 (default `95`) | Example request body: ```json { "invitations": 1000, "complete_responses": 300, "partial_responses": 25, "population": 0, "confidence": "95" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "survey-response-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "complete_response_rate_percent": 30.0, "overall_response_rate_percent": 32.5, "completion_rate_percent": 92.307692, "nonresponse_count": 675, "margin_of_error_percent": 5.657929, "confidence_percent": 95 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-survey-response-rate-calculator.mdc copy prompt ```text --- description: MiniWebtool Survey Response Rate Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Survey Response Rate Calculator API ## The API **Survey Response Rate Calculator** — Calculate complete and overall survey response rates, completion rate and approximate margin of error. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `invitations` | int | no | valid survey invitations (default `1000`) | | `complete_responses` | int | no | complete responses (default `300`) | | `partial_responses` | int | no | partial responses (default `25`) | | `population` | int | no | optional finite population; 0 means unknown (default `0`) | | `confidence` | str | no | one of: 95, 80, 90, 98, 99 — 95 \| 80 \| 90 \| 98 \| 99 (default `95`) | Example request body: ```json { "invitations": 1000, "complete_responses": 300, "partial_responses": 25, "population": 0, "confidence": "95" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "survey-response-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "complete_response_rate_percent": 30.0, "overall_response_rate_percent": 32.5, "completion_rate_percent": 92.307692, "nonresponse_count": 675, "margin_of_error_percent": 5.657929, "confidence_percent": 95 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `survey-response-rate-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `survey-response-rate-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call survey-response-rate-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/survey-response-rate-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Survey Response Rate Calculator API do? + Calculate complete and overall survey response rates, completion rate and approximate margin of error. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Survey Response Rate Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Survey Response Rate Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Survey Response Rate Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Survey Response Rate Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `survey-response-rate-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`survey-response-rate-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"survey-response-rate-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Lemonade Stand Calculator API # Lemonade Stand Calculator API business 1 credit / call v2026-04-22 Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. One POST adds Lemonade Stand Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Lemonade Stand Calculator on miniwebtool.com →](https://miniwebtool.com/lemonade-stand-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run ``` ### Request body Field Type Req. `cost_lemons` `float` — `cost_sugar` `float` — `cost_cups` `float` — `cost_ice` `float` — `cups_per_batch` `int` — `sale_price_per_cup` `float` — `cups_sold_per_day` `int` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "lemonade-stand-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cost_lemons (float) cost_sugar (float) cost_cups (float) cost_ice (float) cups_per_batch (int) sale_price_per_cup (float) cups_sold_per_day (int) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`lemonade-stand-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`lemonade-stand-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/lemonade-stand-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/lemonade-stand-calculator/prompt.md`](/tools/lemonade-stand-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Lemonade Stand Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Lemonade Stand Calculator** — Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cost_lemons` | float | no | (default `5.0`) | | `cost_sugar` | float | no | (default `2.0`) | | `cost_cups` | float | no | (default `3.0`) | | `cost_ice` | float | no | (default `1.5`) | | `cups_per_batch` | int | no | (default `20`) | | `sale_price_per_cup` | float | no | (default `1.5`) | | `cups_sold_per_day` | int | no | (default `50`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lemonade-stand-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_batch_cost": 11.5, "cost_per_cup": 0.575, "sale_price_per_cup": 1.5, "profit_per_cup": 0.925, "profit_margin_percent": 61.666667, "break_even_cups": 13, "cups_sold_per_day": 50, "batches_needed": 3, "daily_revenue": 75.0, "daily_variable_cost": 28.75, "daily_batch_cash_cost": 34.5, "daily_profit": 46.25, "weekly_profit": 323.75, "monthly_profit": 1387.5, "is_profitable": true, "chart_data": { "cost_breakdown": [ { "label": "lemons", "amount": 5.0, "percent": 43.478261 }, { "label": "sugar", "amount": 2.0, "percent": 17.391304 }, { "label": "cups", "amount": 3.0, "percent": 26.086957 }, { "label": "ice", "amount": 1.5, "percent": 13.043478 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Lemonade Stand Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Lemonade Stand Calculator** — Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cost_lemons` | float | no | (default `5.0`) | | `cost_sugar` | float | no | (default `2.0`) | | `cost_cups` | float | no | (default `3.0`) | | `cost_ice` | float | no | (default `1.5`) | | `cups_per_batch` | int | no | (default `20`) | | `sale_price_per_cup` | float | no | (default `1.5`) | | `cups_sold_per_day` | int | no | (default `50`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lemonade-stand-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_batch_cost": 11.5, "cost_per_cup": 0.575, "sale_price_per_cup": 1.5, "profit_per_cup": 0.925, "profit_margin_percent": 61.666667, "break_even_cups": 13, "cups_sold_per_day": 50, "batches_needed": 3, "daily_revenue": 75.0, "daily_variable_cost": 28.75, "daily_batch_cash_cost": 34.5, "daily_profit": 46.25, "weekly_profit": 323.75, "monthly_profit": 1387.5, "is_profitable": true, "chart_data": { "cost_breakdown": [ { "label": "lemons", "amount": 5.0, "percent": 43.478261 }, { "label": "sugar", "amount": 2.0, "percent": 17.391304 }, { "label": "cups", "amount": 3.0, "percent": 26.086957 }, { "label": "ice", "amount": 1.5, "percent": 13.043478 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-lemonade-stand-calculator.mdc copy prompt ```text --- description: MiniWebtool Lemonade Stand Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Lemonade Stand Calculator API ## The API **Lemonade Stand Calculator** — Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cost_lemons` | float | no | (default `5.0`) | | `cost_sugar` | float | no | (default `2.0`) | | `cost_cups` | float | no | (default `3.0`) | | `cost_ice` | float | no | (default `1.5`) | | `cups_per_batch` | int | no | (default `20`) | | `sale_price_per_cup` | float | no | (default `1.5`) | | `cups_sold_per_day` | int | no | (default `50`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lemonade-stand-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_batch_cost": 11.5, "cost_per_cup": 0.575, "sale_price_per_cup": 1.5, "profit_per_cup": 0.925, "profit_margin_percent": 61.666667, "break_even_cups": 13, "cups_sold_per_day": 50, "batches_needed": 3, "daily_revenue": 75.0, "daily_variable_cost": 28.75, "daily_batch_cash_cost": 34.5, "daily_profit": 46.25, "weekly_profit": 323.75, "monthly_profit": 1387.5, "is_profitable": true, "chart_data": { "cost_breakdown": [ { "label": "lemons", "amount": 5.0, "percent": 43.478261 }, { "label": "sugar", "amount": 2.0, "percent": 17.391304 }, { "label": "cups", "amount": 3.0, "percent": 26.086957 }, { "label": "ice", "amount": 1.5, "percent": 13.043478 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `lemonade-stand-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `lemonade-stand-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call lemonade-stand-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/lemonade-stand-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Lemonade Stand Calculator API do? + Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profit. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Lemonade Stand Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Lemonade Stand Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Lemonade Stand Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Lemonade Stand Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `lemonade-stand-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`lemonade-stand-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"lemonade-stand-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) [ Employee Cost Calculator True employer cost of a hire: salary plus payroll taxes, benefits, PTO, equipme… ](/tools/employee-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [business](/tools/#business) - / - Follower Growth Rate Calculator API # Follower Growth Rate Calculator API business 1 credit / call v2026-04-22 Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. One POST adds Follower Growth Rate Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run ``` ### Request body Field Type Req. `start_followers` followers at period start `float` — `end_followers` followers at period end `float` — `period_value` number of elapsed period units `float` — `period_unit` months | days | weeks | years `str` — `goal_followers` optional future follower goal `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "follower-growth-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → start_followers (float) followers at period start end_followers (float) followers at period end period_value (float) number of elapsed period units period_unit (str) months days weeks years months | days | weeks | years goal_followers (float) optional future follower goal Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`follower-growth-rate-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"start_followers":1000,"end_followers":1500,"period_value":6,"period_unit":"months","goal_followers":2000}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'start_followers': 1000, 'end_followers': 1500, 'period_value': 6, 'period_unit': 'months', 'goal_followers': 2000}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"start_followers":1000,"end_followers":1500,"period_value":6,"period_unit":"months","goal_followers":2000}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'start_followers' => 1000, 'end_followers' => 1500, 'period_value' => 6, 'period_unit' => 'months', 'goal_followers' => 2000 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'start_followers' => 1000, 'end_followers' => 1500, 'period_value' => 6, 'period_unit' => 'months', 'goal_followers' => 2000 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "start_followers": 1000, "end_followers": 1500, "period_value": 6, "period_unit": "months", "goal_followers": 2000, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"start_followers\":1000,\"end_followers\":1500,\"period_value\":6,\"period_unit\":\"months\",\"goal_followers\":2000}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`follower-growth-rate-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/follower-growth-rate-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/follower-growth-rate-calculator/prompt.md`](/tools/follower-growth-rate-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Follower Growth Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Follower Growth Rate Calculator** — Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `start_followers` | float | no | followers at period start (default `1000`) | | `end_followers` | float | no | followers at period end (default `1500`) | | `period_value` | float | no | number of elapsed period units (default `6`) | | `period_unit` | str | no | one of: months, days, weeks, years — months \| days \| weeks \| years (default `months`) | | `goal_followers` | float | no | optional future follower goal (default `2000`) | Example request body: ```json { "start_followers": 1000, "end_followers": 1500, "period_value": 6, "period_unit": "months", "goal_followers": 2000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "follower-growth-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "absolute_change": 500.0, "growth_percent": 50.0, "compound_growth_per_period_percent": 6.991319, "annualized_growth_percent": 125.0, "average_net_new_per_period": 83.333333, "periods_to_goal_at_compound_rate": 4.257068, "trend": "growth" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Follower Growth Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Follower Growth Rate Calculator** — Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `start_followers` | float | no | followers at period start (default `1000`) | | `end_followers` | float | no | followers at period end (default `1500`) | | `period_value` | float | no | number of elapsed period units (default `6`) | | `period_unit` | str | no | one of: months, days, weeks, years — months \| days \| weeks \| years (default `months`) | | `goal_followers` | float | no | optional future follower goal (default `2000`) | Example request body: ```json { "start_followers": 1000, "end_followers": 1500, "period_value": 6, "period_unit": "months", "goal_followers": 2000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "follower-growth-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "absolute_change": 500.0, "growth_percent": 50.0, "compound_growth_per_period_percent": 6.991319, "annualized_growth_percent": 125.0, "average_net_new_per_period": 83.333333, "periods_to_goal_at_compound_rate": 4.257068, "trend": "growth" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-follower-growth-rate-calculator.mdc copy prompt ```text --- description: MiniWebtool Follower Growth Rate Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Follower Growth Rate Calculator API ## The API **Follower Growth Rate Calculator** — Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `start_followers` | float | no | followers at period start (default `1000`) | | `end_followers` | float | no | followers at period end (default `1500`) | | `period_value` | float | no | number of elapsed period units (default `6`) | | `period_unit` | str | no | one of: months, days, weeks, years — months \| days \| weeks \| years (default `months`) | | `goal_followers` | float | no | optional future follower goal (default `2000`) | Example request body: ```json { "start_followers": 1000, "end_followers": 1500, "period_value": 6, "period_unit": "months", "goal_followers": 2000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "follower-growth-rate-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "absolute_change": 500.0, "growth_percent": 50.0, "compound_growth_per_period_percent": 6.991319, "annualized_growth_percent": 125.0, "average_net_new_per_period": 83.333333, "periods_to_goal_at_compound_rate": 4.257068, "trend": "growth" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `follower-growth-rate-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `follower-growth-rate-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call follower-growth-rate-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/follower-growth-rate-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Follower Growth Rate Calculator API do? + Measure absolute, percentage, compound and annualized follower growth and estimate time to a goal. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Follower Growth Rate Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Follower Growth Rate Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Follower Growth Rate Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Follower Growth Rate Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `follower-growth-rate-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`follower-growth-rate-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"follower-growth-rate-calculator"}}}' \ | jq.result.structuredContent ``` see-also related business tools [ Revenue Per Employee Calculator Calculate revenue per employee for a period and annualized basis. ](/tools/revenue-per-employee-calculator/) [ Contribution Margin Calculator Calculate unit and total contribution margin, ratio, profit, and break-even uni… ](/tools/contribution-margin-calculator/) [ Lemonade Stand Calculator Calculate batch cost, cup cost, break-even cups, and daily lemonade stand profi… ](/tools/lemonade-stand-calculator/) [ Print Cost Calculator Calculate ink, toner, paper, print job, monthly, and yearly printing costs. ](/tools/print-cost-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [color](/tools/#color) - / - Color Contrast Checker API # Color Contrast Checker API color 1 credit / call v2026-04-22 Check WCAG contrast ratio and AA/AAA compliance for two colors. One POST adds Color Contrast Checker to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Color Contrast Checker on miniwebtool.com →](https://miniwebtool.com/color-contrast-checker/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/run ``` ### Request body Field Type Req. `fg_color` `str` — `bg_color` `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "color-contrast-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → fg_color (str) #1e293b bg_color (str) #ffffff precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`color-contrast-checker`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"fg_color":"#1e293b","bg_color":"#ffffff","precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/color-contrast-checker/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'fg_color': '#1e293b', 'bg_color': '#ffffff', 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/color-contrast-checker/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"fg_color":"#1e293b","bg_color":"#ffffff","precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'fg_color' => '#1e293b', 'bg_color' => '#ffffff', 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/color-contrast-checker/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'fg_color' => '#1e293b', 'bg_color' => '#ffffff', 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "fg_color": "#1e293b", "bg_color": "#ffffff", "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/color-contrast-checker/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/color-contrast-checker/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"fg_color\":\"#1e293b\",\"bg_color\":\"#ffffff\",\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`color-contrast-checker`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/color-contrast-checker/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/color-contrast-checker/prompt.md`](/tools/color-contrast-checker/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Color Contrast Checker API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Contrast Checker** — Check WCAG contrast ratio and AA/AAA compliance for two colors. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `fg_color` | str | no | (default `#1e293b`) | | `bg_color` | str | no | (default `#ffffff`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "fg_color": "#1e293b", "bg_color": "#ffffff", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-contrast-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": { "foreground_hex": "#1E293B", "background_hex": "#FFFFFF", "foreground_rgb": { "r": 30, "g": 41, "b": 59 }, "background_rgb": { "r": 255, "g": 255, "b": 255 }, "ratio": 14.63, "ratio_string": "14.63:1", "compliance": { "aa_normal": true, "aa_large": true, "aaa_normal": true, "aaa_large": true, "aa_ui": true }, "grade": "AAA", "foreground_luminance": 0.0218, "background_luminance": 1.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Color Contrast Checker API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Contrast Checker** — Check WCAG contrast ratio and AA/AAA compliance for two colors. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `fg_color` | str | no | (default `#1e293b`) | | `bg_color` | str | no | (default `#ffffff`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "fg_color": "#1e293b", "bg_color": "#ffffff", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-contrast-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": { "foreground_hex": "#1E293B", "background_hex": "#FFFFFF", "foreground_rgb": { "r": 30, "g": 41, "b": 59 }, "background_rgb": { "r": 255, "g": 255, "b": 255 }, "ratio": 14.63, "ratio_string": "14.63:1", "compliance": { "aa_normal": true, "aa_large": true, "aaa_normal": true, "aaa_large": true, "aa_ui": true }, "grade": "AAA", "foreground_luminance": 0.0218, "background_luminance": 1.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-color-contrast-checker.mdc copy prompt ```text --- description: MiniWebtool Color Contrast Checker API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Color Contrast Checker API ## The API **Color Contrast Checker** — Check WCAG contrast ratio and AA/AAA compliance for two colors. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-contrast-checker/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `fg_color` | str | no | (default `#1e293b`) | | `bg_color` | str | no | (default `#ffffff`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "fg_color": "#1e293b", "bg_color": "#ffffff", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-contrast-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": { "foreground_hex": "#1E293B", "background_hex": "#FFFFFF", "foreground_rgb": { "r": 30, "g": 41, "b": 59 }, "background_rgb": { "r": 255, "g": 255, "b": 255 }, "ratio": 14.63, "ratio_string": "14.63:1", "compliance": { "aa_normal": true, "aa_large": true, "aaa_normal": true, "aaa_large": true, "aa_ui": true }, "grade": "AAA", "foreground_luminance": 0.0218, "background_luminance": 1.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `color-contrast-checker` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `color-contrast-checker` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call color-contrast-checker - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/color-contrast-checker/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Color Contrast Checker API do? + Check WCAG contrast ratio and AA/AAA compliance for two colors. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Color Contrast Checker cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Color Contrast Checker API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Color Contrast Checker API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Color Contrast Checker API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `color-contrast-checker` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`color-contrast-checker`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"color-contrast-checker"}}}' \ | jq.result.structuredContent ``` see-also related color tools [ Color Code Converter Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. ](/tools/color-code-converter-all-formats/) [ Color Scheme Generator Generate complementary, analogous, triadic, square, tetradic, and monochromatic… ](/tools/color-scheme-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [color](/tools/#color) - / - Color Code Converter API # Color Code Converter API color 1 credit / call v2026-04-22 Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. One POST adds Color Code Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Color Code Converter on miniwebtool.com →](https://miniwebtool.com/color-code-converter-all-formats/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run ``` ### Request body Field Type Req. `color_input` `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "color-code-converter-all-formats", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → color_input (str) #4f46e5 precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`color-code-converter-all-formats`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"color_input":"#4f46e5","precision":1}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'color_input': '#4f46e5', 'precision': 1}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"color_input":"#4f46e5","precision":1}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'color_input' => '#4f46e5', 'precision' => 1 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'color_input' => '#4f46e5', 'precision' => 1 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "color_input": "#4f46e5", "precision": 1, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"color_input\":\"#4f46e5\",\"precision\":1}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`color-code-converter-all-formats`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/color-code-converter-all-formats/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/color-code-converter-all-formats/prompt.md`](/tools/color-code-converter-all-formats/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Color Code Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Code Converter** — Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `color_input` | str | no | (default `#4f46e5`) | | `precision` | int | no | (default `1`) | Example request body: ```json { "color_input": "#4f46e5", "precision": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-code-converter-all-formats", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_value": "#4f46e5", "hex": "#4F46E5", "rgb": { "r": 79, "g": 70, "b": 229 }, "rgb_string": "rgb(79, 70, 229)", "hsl": { "h": 243.4, "s": 75.4, "l": 58.6 }, "hsv": { "h": 243.4, "s": 69.4, "v": 89.8 }, "cmyk": { "c": 65.5, "m": 69.4, "y": 0.0, "k": 10.2 }, "contrast_white": 6.29, "contrast_black": 3.34, "wcag_white": "AA", "wcag_black": "AA Large", "best_text": "#FFFFFF", "best_ratio": 6.29, "palette": { "complementary": { "hex": "#DCE546", "rgb": { "r": 220, "g": 229, "b": 70 } }, "triadic": [ { "hex": "#E54F46", "rgb": { "r": 229, "g": 79, "b": 70 } }, { "hex": "#46E54F", "rgb": { "r": 70, "g": 229, "b": 79 } } ], "analogous": [ { "hex": "#468DE5", "rgb": { "r": 70, "g": 141, "b": 229 } }, { "hex": "#9F46E5", "rgb": { "r": 159, "g": 70, "b": 229 } } ], "tints": [ { "hex": "#8F89EE", "rgb": { "r": 143, "g": 137, "b": 238 } }, { "hex": "#CFCCF8", "rgb": { "r": 207, "g": 204, "b": 248 } }, { "hex": "#FFFFFF", "rgb": { "r": 255, "g": 255, "b": 255 } } ], "shades": [ { "hex": "#251BC3", "rgb": { "r": 37, "g": 27, "b": 195 } }, { "hex": "#181280", "rgb": { "r": 24, "g": 18, "b": 128 } }, { "hex": "#0C093D", "rgb": { "r": 12, "g": 9, "b": 61 } } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Color Code Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Code Converter** — Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `color_input` | str | no | (default `#4f46e5`) | | `precision` | int | no | (default `1`) | Example request body: ```json { "color_input": "#4f46e5", "precision": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-code-converter-all-formats", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_value": "#4f46e5", "hex": "#4F46E5", "rgb": { "r": 79, "g": 70, "b": 229 }, "rgb_string": "rgb(79, 70, 229)", "hsl": { "h": 243.4, "s": 75.4, "l": 58.6 }, "hsv": { "h": 243.4, "s": 69.4, "v": 89.8 }, "cmyk": { "c": 65.5, "m": 69.4, "y": 0.0, "k": 10.2 }, "contrast_white": 6.29, "contrast_black": 3.34, "wcag_white": "AA", "wcag_black": "AA Large", "best_text": "#FFFFFF", "best_ratio": 6.29, "palette": { "complementary": { "hex": "#DCE546", "rgb": { "r": 220, "g": 229, "b": 70 } }, "triadic": [ { "hex": "#E54F46", "rgb": { "r": 229, "g": 79, "b": 70 } }, { "hex": "#46E54F", "rgb": { "r": 70, "g": 229, "b": 79 } } ], "analogous": [ { "hex": "#468DE5", "rgb": { "r": 70, "g": 141, "b": 229 } }, { "hex": "#9F46E5", "rgb": { "r": 159, "g": 70, "b": 229 } } ], "tints": [ { "hex": "#8F89EE", "rgb": { "r": 143, "g": 137, "b": 238 } }, { "hex": "#CFCCF8", "rgb": { "r": 207, "g": 204, "b": 248 } }, { "hex": "#FFFFFF", "rgb": { "r": 255, "g": 255, "b": 255 } } ], "shades": [ { "hex": "#251BC3", "rgb": { "r": 37, "g": 27, "b": 195 } }, { "hex": "#181280", "rgb": { "r": 24, "g": 18, "b": 128 } }, { "hex": "#0C093D", "rgb": { "r": 12, "g": 9, "b": 61 } } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-color-code-converter-all-formats.mdc copy prompt ```text --- description: MiniWebtool Color Code Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Color Code Converter API ## The API **Color Code Converter** — Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `color_input` | str | no | (default `#4f46e5`) | | `precision` | int | no | (default `1`) | Example request body: ```json { "color_input": "#4f46e5", "precision": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-code-converter-all-formats", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_value": "#4f46e5", "hex": "#4F46E5", "rgb": { "r": 79, "g": 70, "b": 229 }, "rgb_string": "rgb(79, 70, 229)", "hsl": { "h": 243.4, "s": 75.4, "l": 58.6 }, "hsv": { "h": 243.4, "s": 69.4, "v": 89.8 }, "cmyk": { "c": 65.5, "m": 69.4, "y": 0.0, "k": 10.2 }, "contrast_white": 6.29, "contrast_black": 3.34, "wcag_white": "AA", "wcag_black": "AA Large", "best_text": "#FFFFFF", "best_ratio": 6.29, "palette": { "complementary": { "hex": "#DCE546", "rgb": { "r": 220, "g": 229, "b": 70 } }, "triadic": [ { "hex": "#E54F46", "rgb": { "r": 229, "g": 79, "b": 70 } }, { "hex": "#46E54F", "rgb": { "r": 70, "g": 229, "b": 79 } } ], "analogous": [ { "hex": "#468DE5", "rgb": { "r": 70, "g": 141, "b": 229 } }, { "hex": "#9F46E5", "rgb": { "r": 159, "g": 70, "b": 229 } } ], "tints": [ { "hex": "#8F89EE", "rgb": { "r": 143, "g": 137, "b": 238 } }, { "hex": "#CFCCF8", "rgb": { "r": 207, "g": 204, "b": 248 } }, { "hex": "#FFFFFF", "rgb": { "r": 255, "g": 255, "b": 255 } } ], "shades": [ { "hex": "#251BC3", "rgb": { "r": 37, "g": 27, "b": 195 } }, { "hex": "#181280", "rgb": { "r": 24, "g": 18, "b": 128 } }, { "hex": "#0C093D", "rgb": { "r": 12, "g": 9, "b": 61 } } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `color-code-converter-all-formats` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `color-code-converter-all-formats` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call color-code-converter-all-formats - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/color-code-converter-all-formats/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Color Code Converter API do? + Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Color Code Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Color Code Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Color Code Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Color Code Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `color-code-converter-all-formats` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`color-code-converter-all-formats`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"color-code-converter-all-formats"}}}' \ | jq.result.structuredContent ``` see-also related color tools [ Color Contrast Checker Check WCAG contrast ratio and AA/AAA compliance for two colors. ](/tools/color-contrast-checker/) [ Color Scheme Generator Generate complementary, analogous, triadic, square, tetradic, and monochromatic… ](/tools/color-scheme-generator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [color](/tools/#color) - / - Color Scheme Generator API # Color Scheme Generator API color 1 credit / call v2026-04-22 Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. One POST adds Color Scheme Generator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Color Scheme Generator on miniwebtool.com →](https://miniwebtool.com/color-scheme-generator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/run ``` ### Request body Field Type Req. `base_color` `str` — `scheme` all | complementary | analogous | triadic | split_complementary | square | tetradic | monochromatic `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "color-scheme-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → base_color (str) #6366f1 scheme (str) all complementary analogous triadic split_complementary square tetradic monochromatic all | complementary | analogous | triadic | split_complementary | square | tetradic | monochromatic precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`color-scheme-generator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"base_color":"#6366f1","scheme":"all","precision":1}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/color-scheme-generator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'base_color': '#6366f1', 'scheme': 'all', 'precision': 1}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/color-scheme-generator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"base_color":"#6366f1","scheme":"all","precision":1}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'base_color' => '#6366f1', 'scheme' => 'all', 'precision' => 1 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/color-scheme-generator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'base_color' => '#6366f1', 'scheme' => 'all', 'precision' => 1 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "base_color": "#6366f1", "scheme": "all", "precision": 1, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/color-scheme-generator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/color-scheme-generator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"base_color\":\"#6366f1\",\"scheme\":\"all\",\"precision\":1}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`color-scheme-generator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/color-scheme-generator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/color-scheme-generator/prompt.md`](/tools/color-scheme-generator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Color Scheme Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Scheme Generator** — Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `base_color` | str | no | (default `#6366f1`) | | `scheme` | str | no | one of: all, complementary, analogous, triadic, split_complementary, square, tetradic, monochromatic — all \| complementary \| analogous \| triadic \| split_complementary \| square \| tetradic \| monochromatic (default `all`) | | `precision` | int | no | (default `1`) | Example request body: ```json { "base_color": "#6366f1", "scheme": "all", "precision": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-scheme-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "base_color": { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, "scheme": "all", "schemes": { "complementary": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 } ], "analogous": [ { "hex": "#63ADF1", "rgb": { "r": 99, "g": 173, "b": 241 }, "rgb_string": "rgb(99, 173, 241)", "hsl": { "h": 208.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 208.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 28.2, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.39, "contrast_black": 8.78 }, { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#A763F1", "rgb": { "r": 167, "g": 99, "b": 241 }, "rgb_string": "rgb(167, 99, 241)", "hsl": { "h": 268.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 268.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 30.7, "m": 58.9, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 3.69, "contrast_black": 5.7 } ], "triadic": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F16366", "rgb": { "r": 241, "g": 99, "b": 102 }, "rgb_string": "rgb(241, 99, 102)", "hsl": { "h": 358.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 358.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 58.9, "y": 57.7, "k": 5.5 }, "text_color": "#000000", "contrast_white": 3.13, "contrast_black": 6.72 }, { "hex": "#66F163", "rgb": { "r": 102, "g": 241, "b": 99 }, "rgb_string": "rgb(102, 241, 99)", "hsl": { "h": 118.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 118.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 57.7, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.47, "contrast_black": 14.33 } ], "split_complementary": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F1A763", "rgb": { "r": 241, "g": 167, "b": 99 }, "rgb_string": "rgb(241, 167, 99)", "hsl": { "h": 28.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 28.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 30.7, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.01, "contrast_black": 10.45 }, { "hex": "#ADF163", "rgb": { "r": 173, "g": 241, "b": 99 }, "rgb_string": "rgb(173, 241, 99)", "hsl": { "h": 88.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 88.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 28.2, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.35, "contrast_black": 15.54 } ], "square": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F163AD", "rgb": { "r": 241, "g": 99, "b": 173 }, "rgb_string": "rgb(241, 99, 173)", "hsl": { "h": 328.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 328.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 58.9, "y": 28.2, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.95, "contrast_black": 7.13 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 }, { "hex": "#63F1A7", "rgb": { "r": 99, "g": 241, "b": 167 }, "rgb_string": "rgb(99, 241, 167)", "hsl": { "h": 148.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 148.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 0.0, "y": 30.7, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.43, "contrast_black": 14.67 } ], "tetradic": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#EE63F1", "rgb": { "r": 238, "g": 99, "b": 241 }, "rgb_string": "rgb(238, 99, 241)", "hsl": { "h": 298.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 298.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 1.2, "m": 58.9, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.73, "contrast_black": 7.69 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 }, { "hex": "#66F163", "rgb": { "r": 102, "g": 241, "b": 99 }, "rgb_string": "rgb(102, 241, 99)", "hsl": { "h": 118.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 118.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 57.7, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.47, "contrast_black": 14.33 } ], "monochromatic": [ { "hex": "#EEEEF7", "rgb": { "r": 238, "g": 238, "b": 247 }, "rgb_string": "rgb(238, 238, 247)", "hsl": { "h": 240.0, "s": 36.0, "l": 95.1 }, "hsv": { "h": 240.0, "s": 3.6, "v": 96.9 }, "cmyk": { "c": 3.6, "m": 3.6, "y": 0.0, "k": 3.1 }, "text_color": "#000000", "contrast_white": 1.15, "contrast_black": 18.21 }, { "hex": "#AEAFEA", "rgb": { "r": 174, "g": 175, "b": 234 }, "rgb_string": "rgb(174, 175, 234)", "hsl": { "h": 239.0, "s": 58.8, "l": 80.0 }, "hsv": { "h": 239.0, "s": 25.6, "v": 91.8 }, "cmyk": { "c": 25.6, "m": 25.2, "y": 0.0, "k": 8.2 }, "text_color": "#000000", "contrast_white": 2.08, "contrast_black": 10.12 }, { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#0005EE", "rgb": { "r": 0, "g": 5, "b": 238 }, "rgb_string": "rgb(0, 5, 238)", "hsl": { "h": 238.7, "s": 100.0, "l": 46.7 }, "hsv": { "h": 238.7, "s": 100.0, "v": 93.3 }, "cmyk": { "c": 100.0, "m": 97.9, "y": 0.0, "k": 6.7 }, "text_color": "#FFFFFF", "contrast_white": 9.31, "contrast_black": 2.26 }, { "hex": "#070AA3", "rgb": { "r": 7, "g": 10, "b": 163 }, "rgb_string": "rgb(7, 10, 163)", "hsl": { "h": 238.8, "s": 91.8, "l": 33.3 }, "hsv": { "h": 238.8, "s": 95.7, "v": 63.9 }, "cmyk": { "c": 95.7, "m": 93.9, "y": 0.0, "k": 36.1 }, "text_color": "#FFFFFF", "contrast_white": 13.28, "contrast_black": 1.58 } ] }, "tints": [ { "hex": "#8587EE", "rgb": { "r": 133, "g": 135, "b": 238 }, "rgb_string": "rgb(133, 135, 238)", "hsl": { "h": 238.9, "s": 75.5, "l": 72.7 }, "hsv": { "h": 238.9, "s": 44.1, "v": 93.3 }, "cmyk": { "c": 44.1, "m": 43.3, "y": 0.0, "k": 6.7 }, "text_color": "#000000", "contrast_white": 3.14, "contrast_black": 6.7 }, { "hex": "#A4A6ED", "rgb": { "r": 164, "g": 166, "b": 237 }, "rgb_string": "rgb(164, 166, 237)", "hsl": { "h": 238.4, "s": 67.0, "l": 78.6 }, "hsv": { "h": 238.4, "s": 30.8, "v": 92.9 }, "cmyk": { "c": 30.8, "m": 30.0, "y": 0.0, "k": 7.1 }, "text_color": "#000000", "contrast_white": 2.27, "contrast_black": 9.26 }, { "hex": "#C1C2EF", "rgb": { "r": 193, "g": 194, "b": 239 }, "rgb_string": "rgb(193, 194, 239)", "hsl": { "h": 238.7, "s": 59.0, "l": 84.7 }, "hsv": { "h": 238.7, "s": 19.2, "v": 93.7 }, "cmyk": { "c": 19.2, "m": 18.8, "y": 0.0, "k": 6.3 }, "text_color": "#000000", "contrast_white": 1.72, "contrast_black": 12.23 }, { "hex": "#DBDCF3", "rgb": { "r": 219, "g": 220, "b": 243 }, "rgb_string": "rgb(219, 220, 243)", "hsl": { "h": 237.5, "s": 50.0, "l": 90.6 }, "hsv": { "h": 237.5, "s": 9.9, "v": 95.3 }, "cmyk": { "c": 9.9, "m": 9.5, "y": 0.0, "k": 4.7 }, "text_color": "#000000", "contrast_white": 1.35, "contrast_black": 15.54 }, { "hex": "#F3F3FA", "rgb": { "r": 243, "g": 243, "b": 250 }, "rgb_string": "rgb(243, 243, 250)", "hsl": { "h": 240.0, "s": 41.2, "l": 96.7 }, "hsv": { "h": 240.0, "s": 2.8, "v": 98.0 }, "cmyk": { "c": 2.8, "m": 2.8, "y": 0.0, "k": 2.0 }, "text_color": "#000000", "contrast_white": 1.1, "contrast_black": 19.01 } ], "shades": [ { "hex": "#262AF1", "rgb": { "r": 38, "g": 42, "b": 241 }, "rgb_string": "rgb(38, 42, 241)", "hsl": { "h": 238.8, "s": 87.9, "l": 54.7 }, "hsv": { "h": 238.8, "s": 84.2, "v": 94.5 }, "cmyk": { "c": 84.2, "m": 82.6, "y": 0.0, "k": 5.5 }, "text_color": "#FFFFFF", "contrast_white": 7.82, "contrast_black": 2.68 }, { "hex": "#090DD1", "rgb": { "r": 9, "g": 13, "b": 209 }, "rgb_string": "rgb(9, 13, 209)", "hsl": { "h": 238.8, "s": 91.7, "l": 42.7 }, "hsv": { "h": 238.8, "s": 95.7, "v": 82.0 }, "cmyk": { "c": 95.7, "m": 93.8, "y": 0.0, "k": 18.0 }, "text_color": "#FFFFFF", "contrast_white": 10.55, "contrast_black": 1.99 }, { "hex": "#030699", "rgb": { "r": 3, "g": 6, "b": 153 }, "rgb_string": "rgb(3, 6, 153)", "hsl": { "h": 238.8, "s": 96.2, "l": 30.6 }, "hsv": { "h": 238.8, "s": 98.0, "v": 60.0 }, "cmyk": { "c": 98.0, "m": 96.1, "y": 0.0, "k": 40.0 }, "text_color": "#FFFFFF", "contrast_white": 14.09, "contrast_black": 1.49 }, { "hex": "#00025F", "rgb": { "r": 0, "g": 2, "b": 95 }, "rgb_string": "rgb(0, 2, 95)", "hsl": { "h": 238.7, "s": 100.0, "l": 18.6 }, "hsv": { "h": 238.7, "s": 100.0, "v": 37.3 }, "cmyk": { "c": 100.0, "m": 97.9, "y": 0.0, "k": 62.7 }, "text_color": "#FFFFFF", "contrast_white": 17.89, "contrast_black": 1.17 }, { "hex": "#000122", "rgb": { "r": 0, "g": 1, "b": 34 }, "rgb_string": "rgb(0, 1, 34)", "hsl": { "h": 238.2, "s": 100.0, "l": 6.7 }, "hsv": { "h": 238.2, "s": 100.0, "v": 13.3 }, "cmyk": { "c": 100.0, "m": 97.1, "y": 0.0, "k": 86.7 }, "text_color": "#FFFFFF", "contrast_white": 20.44, "contrast_black": 1.03 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Color Scheme Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Scheme Generator** — Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `base_color` | str | no | (default `#6366f1`) | | `scheme` | str | no | one of: all, complementary, analogous, triadic, split_complementary, square, tetradic, monochromatic — all \| complementary \| analogous \| triadic \| split_complementary \| square \| tetradic \| monochromatic (default `all`) | | `precision` | int | no | (default `1`) | Example request body: ```json { "base_color": "#6366f1", "scheme": "all", "precision": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-scheme-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "base_color": { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, "scheme": "all", "schemes": { "complementary": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 } ], "analogous": [ { "hex": "#63ADF1", "rgb": { "r": 99, "g": 173, "b": 241 }, "rgb_string": "rgb(99, 173, 241)", "hsl": { "h": 208.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 208.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 28.2, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.39, "contrast_black": 8.78 }, { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#A763F1", "rgb": { "r": 167, "g": 99, "b": 241 }, "rgb_string": "rgb(167, 99, 241)", "hsl": { "h": 268.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 268.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 30.7, "m": 58.9, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 3.69, "contrast_black": 5.7 } ], "triadic": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F16366", "rgb": { "r": 241, "g": 99, "b": 102 }, "rgb_string": "rgb(241, 99, 102)", "hsl": { "h": 358.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 358.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 58.9, "y": 57.7, "k": 5.5 }, "text_color": "#000000", "contrast_white": 3.13, "contrast_black": 6.72 }, { "hex": "#66F163", "rgb": { "r": 102, "g": 241, "b": 99 }, "rgb_string": "rgb(102, 241, 99)", "hsl": { "h": 118.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 118.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 57.7, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.47, "contrast_black": 14.33 } ], "split_complementary": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F1A763", "rgb": { "r": 241, "g": 167, "b": 99 }, "rgb_string": "rgb(241, 167, 99)", "hsl": { "h": 28.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 28.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 30.7, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.01, "contrast_black": 10.45 }, { "hex": "#ADF163", "rgb": { "r": 173, "g": 241, "b": 99 }, "rgb_string": "rgb(173, 241, 99)", "hsl": { "h": 88.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 88.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 28.2, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.35, "contrast_black": 15.54 } ], "square": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F163AD", "rgb": { "r": 241, "g": 99, "b": 173 }, "rgb_string": "rgb(241, 99, 173)", "hsl": { "h": 328.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 328.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 58.9, "y": 28.2, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.95, "contrast_black": 7.13 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 }, { "hex": "#63F1A7", "rgb": { "r": 99, "g": 241, "b": 167 }, "rgb_string": "rgb(99, 241, 167)", "hsl": { "h": 148.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 148.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 0.0, "y": 30.7, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.43, "contrast_black": 14.67 } ], "tetradic": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#EE63F1", "rgb": { "r": 238, "g": 99, "b": 241 }, "rgb_string": "rgb(238, 99, 241)", "hsl": { "h": 298.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 298.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 1.2, "m": 58.9, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.73, "contrast_black": 7.69 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 }, { "hex": "#66F163", "rgb": { "r": 102, "g": 241, "b": 99 }, "rgb_string": "rgb(102, 241, 99)", "hsl": { "h": 118.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 118.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 57.7, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.47, "contrast_black": 14.33 } ], "monochromatic": [ { "hex": "#EEEEF7", "rgb": { "r": 238, "g": 238, "b": 247 }, "rgb_string": "rgb(238, 238, 247)", "hsl": { "h": 240.0, "s": 36.0, "l": 95.1 }, "hsv": { "h": 240.0, "s": 3.6, "v": 96.9 }, "cmyk": { "c": 3.6, "m": 3.6, "y": 0.0, "k": 3.1 }, "text_color": "#000000", "contrast_white": 1.15, "contrast_black": 18.21 }, { "hex": "#AEAFEA", "rgb": { "r": 174, "g": 175, "b": 234 }, "rgb_string": "rgb(174, 175, 234)", "hsl": { "h": 239.0, "s": 58.8, "l": 80.0 }, "hsv": { "h": 239.0, "s": 25.6, "v": 91.8 }, "cmyk": { "c": 25.6, "m": 25.2, "y": 0.0, "k": 8.2 }, "text_color": "#000000", "contrast_white": 2.08, "contrast_black": 10.12 }, { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#0005EE", "rgb": { "r": 0, "g": 5, "b": 238 }, "rgb_string": "rgb(0, 5, 238)", "hsl": { "h": 238.7, "s": 100.0, "l": 46.7 }, "hsv": { "h": 238.7, "s": 100.0, "v": 93.3 }, "cmyk": { "c": 100.0, "m": 97.9, "y": 0.0, "k": 6.7 }, "text_color": "#FFFFFF", "contrast_white": 9.31, "contrast_black": 2.26 }, { "hex": "#070AA3", "rgb": { "r": 7, "g": 10, "b": 163 }, "rgb_string": "rgb(7, 10, 163)", "hsl": { "h": 238.8, "s": 91.8, "l": 33.3 }, "hsv": { "h": 238.8, "s": 95.7, "v": 63.9 }, "cmyk": { "c": 95.7, "m": 93.9, "y": 0.0, "k": 36.1 }, "text_color": "#FFFFFF", "contrast_white": 13.28, "contrast_black": 1.58 } ] }, "tints": [ { "hex": "#8587EE", "rgb": { "r": 133, "g": 135, "b": 238 }, "rgb_string": "rgb(133, 135, 238)", "hsl": { "h": 238.9, "s": 75.5, "l": 72.7 }, "hsv": { "h": 238.9, "s": 44.1, "v": 93.3 }, "cmyk": { "c": 44.1, "m": 43.3, "y": 0.0, "k": 6.7 }, "text_color": "#000000", "contrast_white": 3.14, "contrast_black": 6.7 }, { "hex": "#A4A6ED", "rgb": { "r": 164, "g": 166, "b": 237 }, "rgb_string": "rgb(164, 166, 237)", "hsl": { "h": 238.4, "s": 67.0, "l": 78.6 }, "hsv": { "h": 238.4, "s": 30.8, "v": 92.9 }, "cmyk": { "c": 30.8, "m": 30.0, "y": 0.0, "k": 7.1 }, "text_color": "#000000", "contrast_white": 2.27, "contrast_black": 9.26 }, { "hex": "#C1C2EF", "rgb": { "r": 193, "g": 194, "b": 239 }, "rgb_string": "rgb(193, 194, 239)", "hsl": { "h": 238.7, "s": 59.0, "l": 84.7 }, "hsv": { "h": 238.7, "s": 19.2, "v": 93.7 }, "cmyk": { "c": 19.2, "m": 18.8, "y": 0.0, "k": 6.3 }, "text_color": "#000000", "contrast_white": 1.72, "contrast_black": 12.23 }, { "hex": "#DBDCF3", "rgb": { "r": 219, "g": 220, "b": 243 }, "rgb_string": "rgb(219, 220, 243)", "hsl": { "h": 237.5, "s": 50.0, "l": 90.6 }, "hsv": { "h": 237.5, "s": 9.9, "v": 95.3 }, "cmyk": { "c": 9.9, "m": 9.5, "y": 0.0, "k": 4.7 }, "text_color": "#000000", "contrast_white": 1.35, "contrast_black": 15.54 }, { "hex": "#F3F3FA", "rgb": { "r": 243, "g": 243, "b": 250 }, "rgb_string": "rgb(243, 243, 250)", "hsl": { "h": 240.0, "s": 41.2, "l": 96.7 }, "hsv": { "h": 240.0, "s": 2.8, "v": 98.0 }, "cmyk": { "c": 2.8, "m": 2.8, "y": 0.0, "k": 2.0 }, "text_color": "#000000", "contrast_white": 1.1, "contrast_black": 19.01 } ], "shades": [ { "hex": "#262AF1", "rgb": { "r": 38, "g": 42, "b": 241 }, "rgb_string": "rgb(38, 42, 241)", "hsl": { "h": 238.8, "s": 87.9, "l": 54.7 }, "hsv": { "h": 238.8, "s": 84.2, "v": 94.5 }, "cmyk": { "c": 84.2, "m": 82.6, "y": 0.0, "k": 5.5 }, "text_color": "#FFFFFF", "contrast_white": 7.82, "contrast_black": 2.68 }, { "hex": "#090DD1", "rgb": { "r": 9, "g": 13, "b": 209 }, "rgb_string": "rgb(9, 13, 209)", "hsl": { "h": 238.8, "s": 91.7, "l": 42.7 }, "hsv": { "h": 238.8, "s": 95.7, "v": 82.0 }, "cmyk": { "c": 95.7, "m": 93.8, "y": 0.0, "k": 18.0 }, "text_color": "#FFFFFF", "contrast_white": 10.55, "contrast_black": 1.99 }, { "hex": "#030699", "rgb": { "r": 3, "g": 6, "b": 153 }, "rgb_string": "rgb(3, 6, 153)", "hsl": { "h": 238.8, "s": 96.2, "l": 30.6 }, "hsv": { "h": 238.8, "s": 98.0, "v": 60.0 }, "cmyk": { "c": 98.0, "m": 96.1, "y": 0.0, "k": 40.0 }, "text_color": "#FFFFFF", "contrast_white": 14.09, "contrast_black": 1.49 }, { "hex": "#00025F", "rgb": { "r": 0, "g": 2, "b": 95 }, "rgb_string": "rgb(0, 2, 95)", "hsl": { "h": 238.7, "s": 100.0, "l": 18.6 }, "hsv": { "h": 238.7, "s": 100.0, "v": 37.3 }, "cmyk": { "c": 100.0, "m": 97.9, "y": 0.0, "k": 62.7 }, "text_color": "#FFFFFF", "contrast_white": 17.89, "contrast_black": 1.17 }, { "hex": "#000122", "rgb": { "r": 0, "g": 1, "b": 34 }, "rgb_string": "rgb(0, 1, 34)", "hsl": { "h": 238.2, "s": 100.0, "l": 6.7 }, "hsv": { "h": 238.2, "s": 100.0, "v": 13.3 }, "cmyk": { "c": 100.0, "m": 97.1, "y": 0.0, "k": 86.7 }, "text_color": "#FFFFFF", "contrast_white": 20.44, "contrast_black": 1.03 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-color-scheme-generator.mdc copy prompt ```text --- description: MiniWebtool Color Scheme Generator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Color Scheme Generator API ## The API **Color Scheme Generator** — Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-scheme-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `base_color` | str | no | (default `#6366f1`) | | `scheme` | str | no | one of: all, complementary, analogous, triadic, split_complementary, square, tetradic, monochromatic — all \| complementary \| analogous \| triadic \| split_complementary \| square \| tetradic \| monochromatic (default `all`) | | `precision` | int | no | (default `1`) | Example request body: ```json { "base_color": "#6366f1", "scheme": "all", "precision": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-scheme-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "base_color": { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, "scheme": "all", "schemes": { "complementary": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 } ], "analogous": [ { "hex": "#63ADF1", "rgb": { "r": 99, "g": 173, "b": 241 }, "rgb_string": "rgb(99, 173, 241)", "hsl": { "h": 208.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 208.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 28.2, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.39, "contrast_black": 8.78 }, { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#A763F1", "rgb": { "r": 167, "g": 99, "b": 241 }, "rgb_string": "rgb(167, 99, 241)", "hsl": { "h": 268.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 268.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 30.7, "m": 58.9, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 3.69, "contrast_black": 5.7 } ], "triadic": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F16366", "rgb": { "r": 241, "g": 99, "b": 102 }, "rgb_string": "rgb(241, 99, 102)", "hsl": { "h": 358.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 358.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 58.9, "y": 57.7, "k": 5.5 }, "text_color": "#000000", "contrast_white": 3.13, "contrast_black": 6.72 }, { "hex": "#66F163", "rgb": { "r": 102, "g": 241, "b": 99 }, "rgb_string": "rgb(102, 241, 99)", "hsl": { "h": 118.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 118.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 57.7, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.47, "contrast_black": 14.33 } ], "split_complementary": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F1A763", "rgb": { "r": 241, "g": 167, "b": 99 }, "rgb_string": "rgb(241, 167, 99)", "hsl": { "h": 28.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 28.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 30.7, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.01, "contrast_black": 10.45 }, { "hex": "#ADF163", "rgb": { "r": 173, "g": 241, "b": 99 }, "rgb_string": "rgb(173, 241, 99)", "hsl": { "h": 88.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 88.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 28.2, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.35, "contrast_black": 15.54 } ], "square": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#F163AD", "rgb": { "r": 241, "g": 99, "b": 173 }, "rgb_string": "rgb(241, 99, 173)", "hsl": { "h": 328.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 328.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 58.9, "y": 28.2, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.95, "contrast_black": 7.13 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 }, { "hex": "#63F1A7", "rgb": { "r": 99, "g": 241, "b": 167 }, "rgb_string": "rgb(99, 241, 167)", "hsl": { "h": 148.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 148.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 0.0, "y": 30.7, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.43, "contrast_black": 14.67 } ], "tetradic": [ { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#EE63F1", "rgb": { "r": 238, "g": 99, "b": 241 }, "rgb_string": "rgb(238, 99, 241)", "hsl": { "h": 298.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 298.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 1.2, "m": 58.9, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 2.73, "contrast_black": 7.69 }, { "hex": "#F1EE63", "rgb": { "r": 241, "g": 238, "b": 99 }, "rgb_string": "rgb(241, 238, 99)", "hsl": { "h": 58.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 58.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 0.0, "m": 1.2, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.22, "contrast_black": 17.15 }, { "hex": "#66F163", "rgb": { "r": 102, "g": 241, "b": 99 }, "rgb_string": "rgb(102, 241, 99)", "hsl": { "h": 118.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 118.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 57.7, "m": 0.0, "y": 58.9, "k": 5.5 }, "text_color": "#000000", "contrast_white": 1.47, "contrast_black": 14.33 } ], "monochromatic": [ { "hex": "#EEEEF7", "rgb": { "r": 238, "g": 238, "b": 247 }, "rgb_string": "rgb(238, 238, 247)", "hsl": { "h": 240.0, "s": 36.0, "l": 95.1 }, "hsv": { "h": 240.0, "s": 3.6, "v": 96.9 }, "cmyk": { "c": 3.6, "m": 3.6, "y": 0.0, "k": 3.1 }, "text_color": "#000000", "contrast_white": 1.15, "contrast_black": 18.21 }, { "hex": "#AEAFEA", "rgb": { "r": 174, "g": 175, "b": 234 }, "rgb_string": "rgb(174, 175, 234)", "hsl": { "h": 239.0, "s": 58.8, "l": 80.0 }, "hsv": { "h": 239.0, "s": 25.6, "v": 91.8 }, "cmyk": { "c": 25.6, "m": 25.2, "y": 0.0, "k": 8.2 }, "text_color": "#000000", "contrast_white": 2.08, "contrast_black": 10.12 }, { "hex": "#6366F1", "rgb": { "r": 99, "g": 102, "b": 241 }, "rgb_string": "rgb(99, 102, 241)", "hsl": { "h": 238.7, "s": 83.5, "l": 66.7 }, "hsv": { "h": 238.7, "s": 58.9, "v": 94.5 }, "cmyk": { "c": 58.9, "m": 57.7, "y": 0.0, "k": 5.5 }, "text_color": "#000000", "contrast_white": 4.47, "contrast_black": 4.7 }, { "hex": "#0005EE", "rgb": { "r": 0, "g": 5, "b": 238 }, "rgb_string": "rgb(0, 5, 238)", "hsl": { "h": 238.7, "s": 100.0, "l": 46.7 }, "hsv": { "h": 238.7, "s": 100.0, "v": 93.3 }, "cmyk": { "c": 100.0, "m": 97.9, "y": 0.0, "k": 6.7 }, "text_color": "#FFFFFF", "contrast_white": 9.31, "contrast_black": 2.26 }, { "hex": "#070AA3", "rgb": { "r": 7, "g": 10, "b": 163 }, "rgb_string": "rgb(7, 10, 163)", "hsl": { "h": 238.8, "s": 91.8, "l": 33.3 }, "hsv": { "h": 238.8, "s": 95.7, "v": 63.9 }, "cmyk": { "c": 95.7, "m": 93.9, "y": 0.0, "k": 36.1 }, "text_color": "#FFFFFF", "contrast_white": 13.28, "contrast_black": 1.58 } ] }, "tints": [ { "hex": "#8587EE", "rgb": { "r": 133, "g": 135, "b": 238 }, "rgb_string": "rgb(133, 135, 238)", "hsl": { "h": 238.9, "s": 75.5, "l": 72.7 }, "hsv": { "h": 238.9, "s": 44.1, "v": 93.3 }, "cmyk": { "c": 44.1, "m": 43.3, "y": 0.0, "k": 6.7 }, "text_color": "#000000", "contrast_white": 3.14, "contrast_black": 6.7 }, { "hex": "#A4A6ED", "rgb": { "r": 164, "g": 166, "b": 237 }, "rgb_string": "rgb(164, 166, 237)", "hsl": { "h": 238.4, "s": 67.0, "l": 78.6 }, "hsv": { "h": 238.4, "s": 30.8, "v": 92.9 }, "cmyk": { "c": 30.8, "m": 30.0, "y": 0.0, "k": 7.1 }, "text_color": "#000000", "contrast_white": 2.27, "contrast_black": 9.26 }, { "hex": "#C1C2EF", "rgb": { "r": 193, "g": 194, "b": 239 }, "rgb_string": "rgb(193, 194, 239)", "hsl": { "h": 238.7, "s": 59.0, "l": 84.7 }, "hsv": { "h": 238.7, "s": 19.2, "v": 93.7 }, "cmyk": { "c": 19.2, "m": 18.8, "y": 0.0, "k": 6.3 }, "text_color": "#000000", "contrast_white": 1.72, "contrast_black": 12.23 }, { "hex": "#DBDCF3", "rgb": { "r": 219, "g": 220, "b": 243 }, "rgb_string": "rgb(219, 220, 243)", "hsl": { "h": 237.5, "s": 50.0, "l": 90.6 }, "hsv": { "h": 237.5, "s": 9.9, "v": 95.3 }, "cmyk": { "c": 9.9, "m": 9.5, "y": 0.0, "k": 4.7 }, "text_color": "#000000", "contrast_white": 1.35, "contrast_black": 15.54 }, { "hex": "#F3F3FA", "rgb": { "r": 243, "g": 243, "b": 250 }, "rgb_string": "rgb(243, 243, 250)", "hsl": { "h": 240.0, "s": 41.2, "l": 96.7 }, "hsv": { "h": 240.0, "s": 2.8, "v": 98.0 }, "cmyk": { "c": 2.8, "m": 2.8, "y": 0.0, "k": 2.0 }, "text_color": "#000000", "contrast_white": 1.1, "contrast_black": 19.01 } ], "shades": [ { "hex": "#262AF1", "rgb": { "r": 38, "g": 42, "b": 241 }, "rgb_string": "rgb(38, 42, 241)", "hsl": { "h": 238.8, "s": 87.9, "l": 54.7 }, "hsv": { "h": 238.8, "s": 84.2, "v": 94.5 }, "cmyk": { "c": 84.2, "m": 82.6, "y": 0.0, "k": 5.5 }, "text_color": "#FFFFFF", "contrast_white": 7.82, "contrast_black": 2.68 }, { "hex": "#090DD1", "rgb": { "r": 9, "g": 13, "b": 209 }, "rgb_string": "rgb(9, 13, 209)", "hsl": { "h": 238.8, "s": 91.7, "l": 42.7 }, "hsv": { "h": 238.8, "s": 95.7, "v": 82.0 }, "cmyk": { "c": 95.7, "m": 93.8, "y": 0.0, "k": 18.0 }, "text_color": "#FFFFFF", "contrast_white": 10.55, "contrast_black": 1.99 }, { "hex": "#030699", "rgb": { "r": 3, "g": 6, "b": 153 }, "rgb_string": "rgb(3, 6, 153)", "hsl": { "h": 238.8, "s": 96.2, "l": 30.6 }, "hsv": { "h": 238.8, "s": 98.0, "v": 60.0 }, "cmyk": { "c": 98.0, "m": 96.1, "y": 0.0, "k": 40.0 }, "text_color": "#FFFFFF", "contrast_white": 14.09, "contrast_black": 1.49 }, { "hex": "#00025F", "rgb": { "r": 0, "g": 2, "b": 95 }, "rgb_string": "rgb(0, 2, 95)", "hsl": { "h": 238.7, "s": 100.0, "l": 18.6 }, "hsv": { "h": 238.7, "s": 100.0, "v": 37.3 }, "cmyk": { "c": 100.0, "m": 97.9, "y": 0.0, "k": 62.7 }, "text_color": "#FFFFFF", "contrast_white": 17.89, "contrast_black": 1.17 }, { "hex": "#000122", "rgb": { "r": 0, "g": 1, "b": 34 }, "rgb_string": "rgb(0, 1, 34)", "hsl": { "h": 238.2, "s": 100.0, "l": 6.7 }, "hsv": { "h": 238.2, "s": 100.0, "v": 13.3 }, "cmyk": { "c": 100.0, "m": 97.1, "y": 0.0, "k": 86.7 }, "text_color": "#FFFFFF", "contrast_white": 20.44, "contrast_black": 1.03 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `color-scheme-generator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `color-scheme-generator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call color-scheme-generator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/color-scheme-generator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Color Scheme Generator API do? + Generate complementary, analogous, triadic, square, tetradic, and monochromatic palettes. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Color Scheme Generator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Color Scheme Generator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Color Scheme Generator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Color Scheme Generator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `color-scheme-generator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`color-scheme-generator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"color-scheme-generator"}}}' \ | jq.result.structuredContent ``` see-also related color tools [ Color Code Converter Convert HEX, RGB, HSL, HSV, CMYK, and common CSS named colors. ](/tools/color-code-converter-all-formats/) [ Color Contrast Checker Check WCAG contrast ratio and AA/AAA compliance for two colors. ](/tools/color-contrast-checker/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Lumber Calculator API # Lumber Calculator API construction 1 credit / call v2026-04-22 Calculate board feet, coverage, waste, linear feet, and lumber cost. One POST adds Lumber Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Lumber Calculator on miniwebtool.com →](https://miniwebtool.com/lumber-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/lumber-calculator/run ``` ### Request body Field Type Req. `size_mode` nominal | custom `str` — `nominal_size` 1x2 | 1x3 | 1x4 | 1x6 | 1x8 | 1x10 | 1x12 | 2x2 | 2x3 | 2x4 | 2x6 | 2x8 | 2x10 | 2x12 | 4x4 | 4x6 | 6x6 `str` — `thickness_in` `float` — `width_in` `float` — `length_ft` `float` — `quantity` `int` — `price_per_board_foot` `float` — `waste_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "lumber-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → size_mode (str) nominal custom nominal | custom nominal_size (str) 1x2 1x3 1x4 1x6 1x8 1x10 1x12 2x2 2x3 2x4 2x6 2x8 2x10 2x12 4x4 4x6 6x6 1x2 | 1x3 | 1x4 | 1x6 | 1x8 | 1x10 | 1x12 | 2x2 | 2x3 | 2x4 | 2x6 | 2x8 | 2x10 | 2x12 | 4x4 | 4x6 | 6x6 thickness_in (float) width_in (float) length_ft (float) quantity (int) price_per_board_foot (float) waste_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`lumber-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/lumber-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/lumber-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/lumber-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/lumber-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/lumber-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/lumber-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`lumber-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/lumber-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/lumber-calculator/prompt.md`](/tools/lumber-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Lumber Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Lumber Calculator** — Calculate board feet, coverage, waste, linear feet, and lumber cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lumber-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lumber-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `size_mode` | str | no | one of: nominal, custom — nominal \| custom (default `nominal`) | | `nominal_size` | str | no | one of: 1x2, 1x3, 1x4, 1x6, 1x8, 1x10, 1x12, 2x2, 2x3, 2x4, 2x6, 2x8, 2x10, 2x12, 4x4, 4x6, 6x6 — 1x2 \| 1x3 \| 1x4 \| 1x6 \| 1x8 \| 1x10 \| 1x12 \| 2x2 \| 2x3 \| 2x4 \| 2x6 \| 2x8 \| 2x10 \| 2x12 \| 4x4 \| 4x6 \| 6x6 (default `2x4`) | | `thickness_in` | float | no | (default `1.5`) | | `width_in` | float | no | (default `3.5`) | | `length_ft` | float | no | (default `8`) | | `quantity` | int | no | (default `10`) | | `price_per_board_foot` | float | no | (default `3.5`) | | `waste_percent` | float | no | (default `10`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lumber-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "size_mode": "nominal", "size_label": "2x4", "nominal_thickness_in": 2.0, "nominal_width_in": 4.0, "actual_thickness_in": 1.5, "actual_width_in": 3.5, "length_ft": 8.0, "quantity": 10, "board_feet_per_board": 5.333333, "total_board_feet": 53.333333, "waste_percent": 10.0, "waste_board_feet": 5.333333, "board_feet_with_waste": 58.666667, "linear_feet_total": 80.0, "coverage_per_board_sqft": 2.333333, "total_coverage_sqft": 23.333333, "price_per_board_foot": 3.5, "cost_per_board": 18.666667, "cost_no_waste": 186.666667, "cost_with_waste": 205.333333, "chart_data": { "board_feet": 53.33333333333333, "waste_board_feet": 5.333333333333336 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Lumber Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Lumber Calculator** — Calculate board feet, coverage, waste, linear feet, and lumber cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lumber-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lumber-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `size_mode` | str | no | one of: nominal, custom — nominal \| custom (default `nominal`) | | `nominal_size` | str | no | one of: 1x2, 1x3, 1x4, 1x6, 1x8, 1x10, 1x12, 2x2, 2x3, 2x4, 2x6, 2x8, 2x10, 2x12, 4x4, 4x6, 6x6 — 1x2 \| 1x3 \| 1x4 \| 1x6 \| 1x8 \| 1x10 \| 1x12 \| 2x2 \| 2x3 \| 2x4 \| 2x6 \| 2x8 \| 2x10 \| 2x12 \| 4x4 \| 4x6 \| 6x6 (default `2x4`) | | `thickness_in` | float | no | (default `1.5`) | | `width_in` | float | no | (default `3.5`) | | `length_ft` | float | no | (default `8`) | | `quantity` | int | no | (default `10`) | | `price_per_board_foot` | float | no | (default `3.5`) | | `waste_percent` | float | no | (default `10`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lumber-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "size_mode": "nominal", "size_label": "2x4", "nominal_thickness_in": 2.0, "nominal_width_in": 4.0, "actual_thickness_in": 1.5, "actual_width_in": 3.5, "length_ft": 8.0, "quantity": 10, "board_feet_per_board": 5.333333, "total_board_feet": 53.333333, "waste_percent": 10.0, "waste_board_feet": 5.333333, "board_feet_with_waste": 58.666667, "linear_feet_total": 80.0, "coverage_per_board_sqft": 2.333333, "total_coverage_sqft": 23.333333, "price_per_board_foot": 3.5, "cost_per_board": 18.666667, "cost_no_waste": 186.666667, "cost_with_waste": 205.333333, "chart_data": { "board_feet": 53.33333333333333, "waste_board_feet": 5.333333333333336 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-lumber-calculator.mdc copy prompt ```text --- description: MiniWebtool Lumber Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Lumber Calculator API ## The API **Lumber Calculator** — Calculate board feet, coverage, waste, linear feet, and lumber cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lumber-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lumber-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `size_mode` | str | no | one of: nominal, custom — nominal \| custom (default `nominal`) | | `nominal_size` | str | no | one of: 1x2, 1x3, 1x4, 1x6, 1x8, 1x10, 1x12, 2x2, 2x3, 2x4, 2x6, 2x8, 2x10, 2x12, 4x4, 4x6, 6x6 — 1x2 \| 1x3 \| 1x4 \| 1x6 \| 1x8 \| 1x10 \| 1x12 \| 2x2 \| 2x3 \| 2x4 \| 2x6 \| 2x8 \| 2x10 \| 2x12 \| 4x4 \| 4x6 \| 6x6 (default `2x4`) | | `thickness_in` | float | no | (default `1.5`) | | `width_in` | float | no | (default `3.5`) | | `length_ft` | float | no | (default `8`) | | `quantity` | int | no | (default `10`) | | `price_per_board_foot` | float | no | (default `3.5`) | | `waste_percent` | float | no | (default `10`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lumber-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "size_mode": "nominal", "size_label": "2x4", "nominal_thickness_in": 2.0, "nominal_width_in": 4.0, "actual_thickness_in": 1.5, "actual_width_in": 3.5, "length_ft": 8.0, "quantity": 10, "board_feet_per_board": 5.333333, "total_board_feet": 53.333333, "waste_percent": 10.0, "waste_board_feet": 5.333333, "board_feet_with_waste": 58.666667, "linear_feet_total": 80.0, "coverage_per_board_sqft": 2.333333, "total_coverage_sqft": 23.333333, "price_per_board_foot": 3.5, "cost_per_board": 18.666667, "cost_no_waste": 186.666667, "cost_with_waste": 205.333333, "chart_data": { "board_feet": 53.33333333333333, "waste_board_feet": 5.333333333333336 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `lumber-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `lumber-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call lumber-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/lumber-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Lumber Calculator API do? + Calculate board feet, coverage, waste, linear feet, and lumber cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Lumber Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Lumber Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Lumber Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Lumber Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `lumber-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`lumber-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"lumber-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Miter Angle Calculator API # Miter Angle Calculator API construction 1 credit / call v2026-04-22 Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. One POST adds Miter Angle Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Miter Angle Calculator on miniwebtool.com →](https://miniwebtool.com/miter-angle-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run ``` ### Request body Field Type Req. `cut_type` flat | crown `str` — `corner_type` inside | outside `str` — `corner_angle` `float` — `spring_angle` Required for cut_type=crown, e.g. 38 or 45 `float | None` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "miter-angle-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cut_type (str) flat crown flat | crown corner_type (str) inside outside inside | outside corner_angle (float) spring_angle (float | None) Required for cut_type=crown, e.g. 38 or 45 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`miter-angle-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"cut_type":"flat","corner_type":"inside","corner_angle":90}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'cut_type': 'flat', 'corner_type': 'inside', 'corner_angle': 90}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"cut_type":"flat","corner_type":"inside","corner_angle":90}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'cut_type' => 'flat', 'corner_type' => 'inside', 'corner_angle' => 90 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'cut_type' => 'flat', 'corner_type' => 'inside', 'corner_angle' => 90 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "cut_type": "flat", "corner_type": "inside", "corner_angle": 90, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"cut_type\":\"flat\",\"corner_type\":\"inside\",\"corner_angle\":90}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`miter-angle-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/miter-angle-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/miter-angle-calculator/prompt.md`](/tools/miter-angle-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Miter Angle Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Miter Angle Calculator** — Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cut_type` | str | no | one of: flat, crown — flat \| crown (default `flat`) | | `corner_type` | str | no | one of: inside, outside — inside \| outside (default `inside`) | | `corner_angle` | float | no | (default `90`) | | `spring_angle` | float | None | no | Required for cut_type=crown, e.g. 38 or 45 | Example request body: ```json { "cut_type": "flat", "corner_type": "inside", "corner_angle": 90 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "miter-angle-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cut_type": "flat", "corner_type": "inside", "corner_angle": 90.0, "miter_angle_deg": 45.0, "bevel_angle_deg": 0.0, "saw_miter_setting_deg": 45.0, "saw_bevel_setting_deg": 0.0, "spring_angle": null, "formula": "miter = corner_angle / 2 (outside corners: saw miter = 90 - miter)" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Miter Angle Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Miter Angle Calculator** — Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cut_type` | str | no | one of: flat, crown — flat \| crown (default `flat`) | | `corner_type` | str | no | one of: inside, outside — inside \| outside (default `inside`) | | `corner_angle` | float | no | (default `90`) | | `spring_angle` | float | None | no | Required for cut_type=crown, e.g. 38 or 45 | Example request body: ```json { "cut_type": "flat", "corner_type": "inside", "corner_angle": 90 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "miter-angle-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cut_type": "flat", "corner_type": "inside", "corner_angle": 90.0, "miter_angle_deg": 45.0, "bevel_angle_deg": 0.0, "saw_miter_setting_deg": 45.0, "saw_bevel_setting_deg": 0.0, "spring_angle": null, "formula": "miter = corner_angle / 2 (outside corners: saw miter = 90 - miter)" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-miter-angle-calculator.mdc copy prompt ```text --- description: MiniWebtool Miter Angle Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Miter Angle Calculator API ## The API **Miter Angle Calculator** — Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/miter-angle-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cut_type` | str | no | one of: flat, crown — flat \| crown (default `flat`) | | `corner_type` | str | no | one of: inside, outside — inside \| outside (default `inside`) | | `corner_angle` | float | no | (default `90`) | | `spring_angle` | float | None | no | Required for cut_type=crown, e.g. 38 or 45 | Example request body: ```json { "cut_type": "flat", "corner_type": "inside", "corner_angle": 90 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "miter-angle-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cut_type": "flat", "corner_type": "inside", "corner_angle": 90.0, "miter_angle_deg": 45.0, "bevel_angle_deg": 0.0, "saw_miter_setting_deg": 45.0, "saw_bevel_setting_deg": 0.0, "spring_angle": null, "formula": "miter = corner_angle / 2 (outside corners: saw miter = 90 - miter)" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `miter-angle-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `miter-angle-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call miter-angle-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/miter-angle-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Miter Angle Calculator API do? + Miter and bevel saw angles for flat trim or compound crown-molding cuts, given the corner angle. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Miter Angle Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Miter Angle Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Miter Angle Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Miter Angle Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `miter-angle-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`miter-angle-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"miter-angle-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Squareness Checker API # Squareness Checker API construction 1 credit / call v2026-04-22 Check a corner against the Pythagorean 3-4-5 squareness rule. One POST adds Squareness Checker to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Squareness Checker on miniwebtool.com →](https://miniwebtool.com/squareness-checker/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/squareness-checker/run ``` ### Request body Field Type Req. `side_a` `float` — `side_b` `float` — `diagonal` `float` — `tolerance` `float` — `unit_system` customary | metric `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "squareness-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → side_a (float) side_b (float) diagonal (float) tolerance (float) unit_system (str) customary metric customary | metric precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`squareness-checker`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/squareness-checker/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/squareness-checker/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/squareness-checker/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/squareness-checker/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/squareness-checker/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/squareness-checker/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`squareness-checker`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/squareness-checker/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/squareness-checker/prompt.md`](/tools/squareness-checker/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Squareness Checker API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Squareness Checker** — Check a corner against the Pythagorean 3-4-5 squareness rule. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/squareness-checker/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/squareness-checker/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `side_a` | float | no | (default `3`) | | `side_b` | float | no | (default `4`) | | `diagonal` | float | no | (default `5`) | | `tolerance` | float | no | (default `0.125`) | | `unit_system` | str | no | one of: customary, metric — customary \| metric (default `customary`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "squareness-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "customary", "unit": "ft", "small_unit": "in", "side_a": 3.0, "side_b": 4.0, "diagonal_actual": 5.0, "diagonal_expected": 5.0, "deviation": 0.0, "absolute_deviation": 0.0, "absolute_deviation_small_unit": 0.0, "tolerance": 0.125, "is_square_within_tolerance": true, "angle_degrees": 90.0, "angle_deviation_degrees": 0.0, "percent_error": 0.0, "rating": "excellent", "adjustment": "none" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Squareness Checker API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Squareness Checker** — Check a corner against the Pythagorean 3-4-5 squareness rule. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/squareness-checker/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/squareness-checker/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `side_a` | float | no | (default `3`) | | `side_b` | float | no | (default `4`) | | `diagonal` | float | no | (default `5`) | | `tolerance` | float | no | (default `0.125`) | | `unit_system` | str | no | one of: customary, metric — customary \| metric (default `customary`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "squareness-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "customary", "unit": "ft", "small_unit": "in", "side_a": 3.0, "side_b": 4.0, "diagonal_actual": 5.0, "diagonal_expected": 5.0, "deviation": 0.0, "absolute_deviation": 0.0, "absolute_deviation_small_unit": 0.0, "tolerance": 0.125, "is_square_within_tolerance": true, "angle_degrees": 90.0, "angle_deviation_degrees": 0.0, "percent_error": 0.0, "rating": "excellent", "adjustment": "none" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-squareness-checker.mdc copy prompt ```text --- description: MiniWebtool Squareness Checker API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Squareness Checker API ## The API **Squareness Checker** — Check a corner against the Pythagorean 3-4-5 squareness rule. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/squareness-checker/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/squareness-checker/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `side_a` | float | no | (default `3`) | | `side_b` | float | no | (default `4`) | | `diagonal` | float | no | (default `5`) | | `tolerance` | float | no | (default `0.125`) | | `unit_system` | str | no | one of: customary, metric — customary \| metric (default `customary`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "squareness-checker", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "customary", "unit": "ft", "small_unit": "in", "side_a": 3.0, "side_b": 4.0, "diagonal_actual": 5.0, "diagonal_expected": 5.0, "deviation": 0.0, "absolute_deviation": 0.0, "absolute_deviation_small_unit": 0.0, "tolerance": 0.125, "is_square_within_tolerance": true, "angle_degrees": 90.0, "angle_deviation_degrees": 0.0, "percent_error": 0.0, "rating": "excellent", "adjustment": "none" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `squareness-checker` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `squareness-checker` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call squareness-checker - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/squareness-checker/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Squareness Checker API do? + Check a corner against the Pythagorean 3-4-5 squareness rule. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Squareness Checker cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Squareness Checker API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Squareness Checker API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Squareness Checker API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `squareness-checker` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`squareness-checker`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"squareness-checker"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Stair Calculator API # Stair Calculator API construction 1 credit / call v2026-04-22 visual chart data Estimate stair risers, treads, run, stringer length, slope, and step profile data. One POST adds Stair Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Stair Calculator on miniwebtool.com →](https://miniwebtool.com/stair-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/stair-calculator/run ``` ### Request body Field Type Req. `total_rise` `float` — `ideal_riser_height` `float` — `tread_depth` `float` — `nosing` `float` — `unit` in | cm `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "stair-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → total_rise (float) ideal_riser_height (float) tread_depth (float) nosing (float) unit (str) in cm in | cm precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`stair-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/stair-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/stair-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/stair-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/stair-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/stair-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/stair-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`stair-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/stair-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/stair-calculator/prompt.md`](/tools/stair-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Stair Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Stair Calculator** — Estimate stair risers, treads, run, stringer length, slope, and step profile data. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/stair-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/stair-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `total_rise` | float | no | (default `108`) | | `ideal_riser_height` | float | no | (default `7`) | | `tread_depth` | float | no | (default `10`) | | `nosing` | float | no | (default `1`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `precision` | int | no | (default `3`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "stair-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit": "in", "total_rise": 108.0, "ideal_riser_height": 7.0, "number_of_risers": 15, "number_of_treads": 14, "actual_riser_height": 7.2, "tread_depth": 10.0, "nosing": 1.0, "total_run": 140.0, "total_tread_run_with_nosing": 154.0, "stringer_length": 176.816, "slope_angle_degrees": 37.648, "chart_data": { "series": [ { "label": "Step 0", "x": 0.0, "value": 0.0 }, { "label": "Step 2", "x": 20.0, "value": 14.4 }, { "label": "Step 4", "x": 40.0, "value": 28.8 }, { "label": "Step 6", "x": 60.0, "value": 43.2 }, { "label": "Step 8", "x": 80.0, "value": 57.6 }, { "label": "Step 10", "x": 100.0, "value": 72.0 }, { "label": "Step 12", "x": 120.0, "value": 86.4 }, { "label": "Step 14", "x": 140.0, "value": 100.8 }, { "label": "Step 15", "x": 140.0, "value": 108.0 } ], "breakdown": [ { "label": "Total rise", "value": 108.0 }, { "label": "Total run", "value": 140.0 }, { "label": "Stringer", "value": 176.816 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Stair Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Stair Calculator** — Estimate stair risers, treads, run, stringer length, slope, and step profile data. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/stair-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/stair-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `total_rise` | float | no | (default `108`) | | `ideal_riser_height` | float | no | (default `7`) | | `tread_depth` | float | no | (default `10`) | | `nosing` | float | no | (default `1`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `precision` | int | no | (default `3`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "stair-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit": "in", "total_rise": 108.0, "ideal_riser_height": 7.0, "number_of_risers": 15, "number_of_treads": 14, "actual_riser_height": 7.2, "tread_depth": 10.0, "nosing": 1.0, "total_run": 140.0, "total_tread_run_with_nosing": 154.0, "stringer_length": 176.816, "slope_angle_degrees": 37.648, "chart_data": { "series": [ { "label": "Step 0", "x": 0.0, "value": 0.0 }, { "label": "Step 2", "x": 20.0, "value": 14.4 }, { "label": "Step 4", "x": 40.0, "value": 28.8 }, { "label": "Step 6", "x": 60.0, "value": 43.2 }, { "label": "Step 8", "x": 80.0, "value": 57.6 }, { "label": "Step 10", "x": 100.0, "value": 72.0 }, { "label": "Step 12", "x": 120.0, "value": 86.4 }, { "label": "Step 14", "x": 140.0, "value": 100.8 }, { "label": "Step 15", "x": 140.0, "value": 108.0 } ], "breakdown": [ { "label": "Total rise", "value": 108.0 }, { "label": "Total run", "value": 140.0 }, { "label": "Stringer", "value": 176.816 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-stair-calculator.mdc copy prompt ```text --- description: MiniWebtool Stair Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Stair Calculator API ## The API **Stair Calculator** — Estimate stair risers, treads, run, stringer length, slope, and step profile data. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/stair-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/stair-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `total_rise` | float | no | (default `108`) | | `ideal_riser_height` | float | no | (default `7`) | | `tread_depth` | float | no | (default `10`) | | `nosing` | float | no | (default `1`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `precision` | int | no | (default `3`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "stair-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit": "in", "total_rise": 108.0, "ideal_riser_height": 7.0, "number_of_risers": 15, "number_of_treads": 14, "actual_riser_height": 7.2, "tread_depth": 10.0, "nosing": 1.0, "total_run": 140.0, "total_tread_run_with_nosing": 154.0, "stringer_length": 176.816, "slope_angle_degrees": 37.648, "chart_data": { "series": [ { "label": "Step 0", "x": 0.0, "value": 0.0 }, { "label": "Step 2", "x": 20.0, "value": 14.4 }, { "label": "Step 4", "x": 40.0, "value": 28.8 }, { "label": "Step 6", "x": 60.0, "value": 43.2 }, { "label": "Step 8", "x": 80.0, "value": 57.6 }, { "label": "Step 10", "x": 100.0, "value": 72.0 }, { "label": "Step 12", "x": 120.0, "value": 86.4 }, { "label": "Step 14", "x": 140.0, "value": 100.8 }, { "label": "Step 15", "x": 140.0, "value": 108.0 } ], "breakdown": [ { "label": "Total rise", "value": 108.0 }, { "label": "Total run", "value": 140.0 }, { "label": "Stringer", "value": 176.816 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `stair-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `stair-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call stair-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/stair-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Stair Calculator API do? + Estimate stair risers, treads, run, stringer length, slope, and step profile data. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Stair Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Stair Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Stair Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Stair Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Stair Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `stair-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`stair-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"stair-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Board Foot Calculator API # Board Foot Calculator API construction 1 credit / call v2026-04-22 Calculate lumber volume in board feet, cubic volume, weight, and optional cost. One POST adds Board Foot Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Board Foot Calculator on miniwebtool.com →](https://miniwebtool.com/board-foot-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/run ``` ### Request body Field Type Req. `thickness_inches` `float` ✓ `width_inches` `float` ✓ `length_feet` `float` ✓ `pieces` `int` — `density_lbs_per_cubic_foot` `float` — `moisture_percent` `float` — `price_per_board_foot` `float | None` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "board-foot-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → thickness_inches (float) * width_inches (float) * length_feet (float) * pieces (int) density_lbs_per_cubic_foot (float) moisture_percent (float) price_per_board_foot (float | None) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`board-foot-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"thickness_inches":2,"width_inches":4,"length_feet":8,"pieces":10}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/board-foot-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'thickness_inches': 2, 'width_inches': 4, 'length_feet': 8, 'pieces': 10}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/board-foot-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"thickness_inches":2,"width_inches":4,"length_feet":8,"pieces":10}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'thickness_inches' => 2, 'width_inches' => 4, 'length_feet' => 8, 'pieces' => 10 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/board-foot-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'thickness_inches' => 2, 'width_inches' => 4, 'length_feet' => 8, 'pieces' => 10 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "thickness_inches": 2, "width_inches": 4, "length_feet": 8, "pieces": 10, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/board-foot-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/board-foot-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"thickness_inches\":2,\"width_inches\":4,\"length_feet\":8,\"pieces\":10}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`board-foot-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/board-foot-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/board-foot-calculator/prompt.md`](/tools/board-foot-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Board Foot Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Board Foot Calculator** — Calculate lumber volume in board feet, cubic volume, weight, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `thickness_inches` | float | yes | — | | `width_inches` | float | yes | — | | `length_feet` | float | yes | — | | `pieces` | int | no | (default `1`) | | `density_lbs_per_cubic_foot` | float | no | (default `25.0`) | | `moisture_percent` | float | no | (default `12.0`) | | `price_per_board_foot` | float | None | no | — | Example request body: ```json { "thickness_inches": 2, "width_inches": 4, "length_feet": 8, "pieces": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "board-foot-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "thickness_inches": 2.0, "width_inches": 4.0, "length_feet": 8.0, "pieces": 10, "board_feet_per_piece": 5.333333, "total_board_feet": 53.333333, "cubic_feet_per_piece": 0.444444, "total_cubic_feet": 4.444444, "adjusted_density_lbs_per_cubic_foot": 25.0, "estimated_weight_lbs": 111.1111, "estimated_weight_kg": 50.3991 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Board Foot Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Board Foot Calculator** — Calculate lumber volume in board feet, cubic volume, weight, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `thickness_inches` | float | yes | — | | `width_inches` | float | yes | — | | `length_feet` | float | yes | — | | `pieces` | int | no | (default `1`) | | `density_lbs_per_cubic_foot` | float | no | (default `25.0`) | | `moisture_percent` | float | no | (default `12.0`) | | `price_per_board_foot` | float | None | no | — | Example request body: ```json { "thickness_inches": 2, "width_inches": 4, "length_feet": 8, "pieces": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "board-foot-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "thickness_inches": 2.0, "width_inches": 4.0, "length_feet": 8.0, "pieces": 10, "board_feet_per_piece": 5.333333, "total_board_feet": 53.333333, "cubic_feet_per_piece": 0.444444, "total_cubic_feet": 4.444444, "adjusted_density_lbs_per_cubic_foot": 25.0, "estimated_weight_lbs": 111.1111, "estimated_weight_kg": 50.3991 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-board-foot-calculator.mdc copy prompt ```text --- description: MiniWebtool Board Foot Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Board Foot Calculator API ## The API **Board Foot Calculator** — Calculate lumber volume in board feet, cubic volume, weight, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/board-foot-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `thickness_inches` | float | yes | — | | `width_inches` | float | yes | — | | `length_feet` | float | yes | — | | `pieces` | int | no | (default `1`) | | `density_lbs_per_cubic_foot` | float | no | (default `25.0`) | | `moisture_percent` | float | no | (default `12.0`) | | `price_per_board_foot` | float | None | no | — | Example request body: ```json { "thickness_inches": 2, "width_inches": 4, "length_feet": 8, "pieces": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "board-foot-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "thickness_inches": 2.0, "width_inches": 4.0, "length_feet": 8.0, "pieces": 10, "board_feet_per_piece": 5.333333, "total_board_feet": 53.333333, "cubic_feet_per_piece": 0.444444, "total_cubic_feet": 4.444444, "adjusted_density_lbs_per_cubic_foot": 25.0, "estimated_weight_lbs": 111.1111, "estimated_weight_kg": 50.3991 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `board-foot-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `board-foot-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call board-foot-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`thickness_inches`,`width_inches`,`length_feet`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/board-foot-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Board Foot Calculator API do? + Calculate lumber volume in board feet, cubic volume, weight, and optional cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Board Foot Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Board Foot Calculator API require? + Required fields: thickness_inches, width_inches, length_feet. Full schema at /v1/openapi.json. Is the Board Foot Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Board Foot Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `board-foot-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`board-foot-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"board-foot-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Asphalt Calculator API # Asphalt Calculator API construction 1 credit / call v2026-04-22 Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. One POST adds Asphalt Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Asphalt Calculator on miniwebtool.com →](https://miniwebtool.com/asphalt-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/run ``` ### Request body Field Type Req. `shape` rectangle | circle | triangle `str` — `dim_unit` ft | yd | in | m | cm `str` — `length` `float | None` — `width` `float | None` — `diameter` `float | None` — `base` `float | None` — `tri_height` `float | None` — `thickness` `float` — `thickness_unit` in | cm | mm | ft `str` — `density_preset` hma | dense | porous | millings | custom `str` — `custom_density` `float | None` — `density_unit` lbft3 | tm3 `str` — `quantity` `int` — `waste` `float` — `price_per_ton` `float | None` — `truck_tons` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "asphalt-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → shape (str) rectangle circle triangle rectangle | circle | triangle dim_unit (str) ft yd in m cm ft | yd | in | m | cm length (float | None) width (float | None) diameter (float | None) base (float | None) tri_height (float | None) thickness (float) thickness_unit (str) in cm mm ft in | cm | mm | ft density_preset (str) hma dense porous millings custom hma | dense | porous | millings | custom custom_density (float | None) density_unit (str) lbft3 tm3 lbft3 | tm3 quantity (int) waste (float) price_per_ton (float | None) truck_tons (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`asphalt-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"shape":"rectangle","dim_unit":"ft","length":40,"width":20,"thickness":3,"thickness_unit":"in"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/asphalt-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'shape': 'rectangle', 'dim_unit': 'ft', 'length': 40, 'width': 20, 'thickness': 3, 'thickness_unit': 'in'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/asphalt-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"shape":"rectangle","dim_unit":"ft","length":40,"width":20,"thickness":3,"thickness_unit":"in"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'shape' => 'rectangle', 'dim_unit' => 'ft', 'length' => 40, 'width' => 20, 'thickness' => 3, 'thickness_unit' => 'in' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/asphalt-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'shape' => 'rectangle', 'dim_unit' => 'ft', 'length' => 40, 'width' => 20, 'thickness' => 3, 'thickness_unit' => 'in' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "shape": "rectangle", "dim_unit": "ft", "length": 40, "width": 20, "thickness": 3, "thickness_unit": "in", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/asphalt-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/asphalt-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"shape\":\"rectangle\",\"dim_unit\":\"ft\",\"length\":40,\"width\":20,\"thickness\":3,\"thickness_unit\":\"in\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`asphalt-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/asphalt-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/asphalt-calculator/prompt.md`](/tools/asphalt-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Asphalt Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Asphalt Calculator** — Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `shape` | str | no | one of: rectangle, circle, triangle — rectangle \| circle \| triangle (default `rectangle`) | | `dim_unit` | str | no | one of: ft, yd, in, m, cm — ft \| yd \| in \| m \| cm (default `ft`) | | `length` | float | None | no | — | | `width` | float | None | no | — | | `diameter` | float | None | no | — | | `base` | float | None | no | — | | `tri_height` | float | None | no | — | | `thickness` | float | no | (default `3.0`) | | `thickness_unit` | str | no | one of: in, cm, mm, ft — in \| cm \| mm \| ft (default `in`) | | `density_preset` | str | no | one of: hma, dense, porous, millings, custom — hma \| dense \| porous \| millings \| custom (default `hma`) | | `custom_density` | float | None | no | — | | `density_unit` | str | no | one of: lbft3, tm3 — lbft3 \| tm3 (default `lbft3`) | | `quantity` | int | no | (default `1`) | | `waste` | float | no | (default `5.0`) | | `price_per_ton` | float | None | no | — | | `truck_tons` | float | no | (default `20.0`) | Example request body: ```json { "shape": "rectangle", "dim_unit": "ft", "length": 40, "width": 20, "thickness": 3, "thickness_unit": "in" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "asphalt-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "shape": "rectangle", "dimension_unit": "ft", "thickness_unit": "in", "density_preset": "hma", "area_square_feet": 800.0, "thickness_feet": 0.25, "density_lb_per_cubic_foot": 145.0, "volume_cubic_feet": 200.0, "volume_cubic_yards": 7.40740741, "volume_cubic_meters": 5.66336932, "tons_without_waste": 14.5, "waste_tons": 0.725, "tons_to_order": 15.225, "metric_tonnes_to_order": 13.81188767, "truckloads": 1, "estimated_cost": null, "chart_data": { "labels": [ "base material", "waste buffer", "order total" ], "tons": [ 14.5, 0.725, 15.225 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Asphalt Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Asphalt Calculator** — Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `shape` | str | no | one of: rectangle, circle, triangle — rectangle \| circle \| triangle (default `rectangle`) | | `dim_unit` | str | no | one of: ft, yd, in, m, cm — ft \| yd \| in \| m \| cm (default `ft`) | | `length` | float | None | no | — | | `width` | float | None | no | — | | `diameter` | float | None | no | — | | `base` | float | None | no | — | | `tri_height` | float | None | no | — | | `thickness` | float | no | (default `3.0`) | | `thickness_unit` | str | no | one of: in, cm, mm, ft — in \| cm \| mm \| ft (default `in`) | | `density_preset` | str | no | one of: hma, dense, porous, millings, custom — hma \| dense \| porous \| millings \| custom (default `hma`) | | `custom_density` | float | None | no | — | | `density_unit` | str | no | one of: lbft3, tm3 — lbft3 \| tm3 (default `lbft3`) | | `quantity` | int | no | (default `1`) | | `waste` | float | no | (default `5.0`) | | `price_per_ton` | float | None | no | — | | `truck_tons` | float | no | (default `20.0`) | Example request body: ```json { "shape": "rectangle", "dim_unit": "ft", "length": 40, "width": 20, "thickness": 3, "thickness_unit": "in" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "asphalt-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "shape": "rectangle", "dimension_unit": "ft", "thickness_unit": "in", "density_preset": "hma", "area_square_feet": 800.0, "thickness_feet": 0.25, "density_lb_per_cubic_foot": 145.0, "volume_cubic_feet": 200.0, "volume_cubic_yards": 7.40740741, "volume_cubic_meters": 5.66336932, "tons_without_waste": 14.5, "waste_tons": 0.725, "tons_to_order": 15.225, "metric_tonnes_to_order": 13.81188767, "truckloads": 1, "estimated_cost": null, "chart_data": { "labels": [ "base material", "waste buffer", "order total" ], "tons": [ 14.5, 0.725, 15.225 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-asphalt-calculator.mdc copy prompt ```text --- description: MiniWebtool Asphalt Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Asphalt Calculator API ## The API **Asphalt Calculator** — Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/asphalt-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `shape` | str | no | one of: rectangle, circle, triangle — rectangle \| circle \| triangle (default `rectangle`) | | `dim_unit` | str | no | one of: ft, yd, in, m, cm — ft \| yd \| in \| m \| cm (default `ft`) | | `length` | float | None | no | — | | `width` | float | None | no | — | | `diameter` | float | None | no | — | | `base` | float | None | no | — | | `tri_height` | float | None | no | — | | `thickness` | float | no | (default `3.0`) | | `thickness_unit` | str | no | one of: in, cm, mm, ft — in \| cm \| mm \| ft (default `in`) | | `density_preset` | str | no | one of: hma, dense, porous, millings, custom — hma \| dense \| porous \| millings \| custom (default `hma`) | | `custom_density` | float | None | no | — | | `density_unit` | str | no | one of: lbft3, tm3 — lbft3 \| tm3 (default `lbft3`) | | `quantity` | int | no | (default `1`) | | `waste` | float | no | (default `5.0`) | | `price_per_ton` | float | None | no | — | | `truck_tons` | float | no | (default `20.0`) | Example request body: ```json { "shape": "rectangle", "dim_unit": "ft", "length": 40, "width": 20, "thickness": 3, "thickness_unit": "in" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "asphalt-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "shape": "rectangle", "dimension_unit": "ft", "thickness_unit": "in", "density_preset": "hma", "area_square_feet": 800.0, "thickness_feet": 0.25, "density_lb_per_cubic_foot": 145.0, "volume_cubic_feet": 200.0, "volume_cubic_yards": 7.40740741, "volume_cubic_meters": 5.66336932, "tons_without_waste": 14.5, "waste_tons": 0.725, "tons_to_order": 15.225, "metric_tonnes_to_order": 13.81188767, "truckloads": 1, "estimated_cost": null, "chart_data": { "labels": [ "base material", "waste buffer", "order total" ], "tons": [ 14.5, 0.725, 15.225 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `asphalt-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `asphalt-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call asphalt-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/asphalt-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Asphalt Calculator API do? + Estimate asphalt volume, tonnage, waste buffer, truckloads, and material cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Asphalt Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Asphalt Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Asphalt Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Asphalt Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `asphalt-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`asphalt-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"asphalt-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Brick and Mortar Calculator API # Brick and Mortar Calculator API construction 1 credit / call v2026-04-22 Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. One POST adds Brick and Mortar Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Brick and Mortar Calculator on miniwebtool.com →](https://miniwebtool.com/brick-and-mortar-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run ``` ### Request body Field Type Req. `unit_system` imperial | metric `str` — `wall_type` single | double `str` — `brick_type` standard_us | modular_us | jumbo_us | queen_us | standard_metric | modular_metric | large_metric `str` — `wall_length` `float` — `wall_height` `float` — `openings_area` `float` — `mortar_joint` `float | None` — `waste_percent` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "brick-and-mortar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unit_system (str) imperial metric imperial | metric wall_type (str) single double single | double brick_type (str) standard_us modular_us jumbo_us queen_us standard_metric modular_metric large_metric standard_us | modular_us | jumbo_us | queen_us | standard_metric | modular_metric | large_metric wall_length (float) wall_height (float) openings_area (float) mortar_joint (float | None) waste_percent (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`brick-and-mortar-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"unit_system":"imperial","wall_type":"single","brick_type":"standard_us","wall_length":20,"wall_height":8}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'unit_system': 'imperial', 'wall_type': 'single', 'brick_type': 'standard_us', 'wall_length': 20, 'wall_height': 8}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"unit_system":"imperial","wall_type":"single","brick_type":"standard_us","wall_length":20,"wall_height":8}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'unit_system' => 'imperial', 'wall_type' => 'single', 'brick_type' => 'standard_us', 'wall_length' => 20, 'wall_height' => 8 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'unit_system' => 'imperial', 'wall_type' => 'single', 'brick_type' => 'standard_us', 'wall_length' => 20, 'wall_height' => 8 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20, "wall_height": 8, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"unit_system\":\"imperial\",\"wall_type\":\"single\",\"brick_type\":\"standard_us\",\"wall_length\":20,\"wall_height\":8}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`brick-and-mortar-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/brick-and-mortar-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/brick-and-mortar-calculator/prompt.md`](/tools/brick-and-mortar-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Brick and Mortar Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Brick and Mortar Calculator** — Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `wall_type` | str | no | one of: single, double — single \| double (default `single`) | | `brick_type` | str | no | one of: standard_us, modular_us, jumbo_us, queen_us, standard_metric, modular_metric, large_metric — standard_us \| modular_us \| jumbo_us \| queen_us \| standard_metric \| modular_metric \| large_metric (default `standard_us`) | | `wall_length` | float | no | (default `10`) | | `wall_height` | float | no | (default `8`) | | `openings_area` | float | no | (default `0`) | | `mortar_joint` | float | None | no | — | | `waste_percent` | float | no | (default `10`) | Example request body: ```json { "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20, "wall_height": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "brick-and-mortar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20.0, "wall_height": 8.0, "gross_area": 160.0, "openings_area": 0.0, "net_area": 160.0, "mortar_joint": 0.375, "bricks_per_area_unit": 6.5501, "base_brick_count": 1049, "waste_percent": 10.0, "waste_bricks": 105, "total_bricks_needed": 1154, "area_unit": "sq ft", "mortar_volume_cuft": 16.0, "mortar_volume_cuyd": 0.5926, "mortar_bags": { "80lb_bags": 13, "60lb_bags": 17, "40lb_bags": 25 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Brick and Mortar Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Brick and Mortar Calculator** — Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `wall_type` | str | no | one of: single, double — single \| double (default `single`) | | `brick_type` | str | no | one of: standard_us, modular_us, jumbo_us, queen_us, standard_metric, modular_metric, large_metric — standard_us \| modular_us \| jumbo_us \| queen_us \| standard_metric \| modular_metric \| large_metric (default `standard_us`) | | `wall_length` | float | no | (default `10`) | | `wall_height` | float | no | (default `8`) | | `openings_area` | float | no | (default `0`) | | `mortar_joint` | float | None | no | — | | `waste_percent` | float | no | (default `10`) | Example request body: ```json { "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20, "wall_height": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "brick-and-mortar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20.0, "wall_height": 8.0, "gross_area": 160.0, "openings_area": 0.0, "net_area": 160.0, "mortar_joint": 0.375, "bricks_per_area_unit": 6.5501, "base_brick_count": 1049, "waste_percent": 10.0, "waste_bricks": 105, "total_bricks_needed": 1154, "area_unit": "sq ft", "mortar_volume_cuft": 16.0, "mortar_volume_cuyd": 0.5926, "mortar_bags": { "80lb_bags": 13, "60lb_bags": 17, "40lb_bags": 25 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-brick-and-mortar-calculator.mdc copy prompt ```text --- description: MiniWebtool Brick and Mortar Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Brick and Mortar Calculator API ## The API **Brick and Mortar Calculator** — Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `wall_type` | str | no | one of: single, double — single \| double (default `single`) | | `brick_type` | str | no | one of: standard_us, modular_us, jumbo_us, queen_us, standard_metric, modular_metric, large_metric — standard_us \| modular_us \| jumbo_us \| queen_us \| standard_metric \| modular_metric \| large_metric (default `standard_us`) | | `wall_length` | float | no | (default `10`) | | `wall_height` | float | no | (default `8`) | | `openings_area` | float | no | (default `0`) | | `mortar_joint` | float | None | no | — | | `waste_percent` | float | no | (default `10`) | Example request body: ```json { "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20, "wall_height": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "brick-and-mortar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "wall_type": "single", "brick_type": "standard_us", "wall_length": 20.0, "wall_height": 8.0, "gross_area": 160.0, "openings_area": 0.0, "net_area": 160.0, "mortar_joint": 0.375, "bricks_per_area_unit": 6.5501, "base_brick_count": 1049, "waste_percent": 10.0, "waste_bricks": 105, "total_bricks_needed": 1154, "area_unit": "sq ft", "mortar_volume_cuft": 16.0, "mortar_volume_cuyd": 0.5926, "mortar_bags": { "80lb_bags": 13, "60lb_bags": 17, "40lb_bags": 25 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `brick-and-mortar-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `brick-and-mortar-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call brick-and-mortar-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/brick-and-mortar-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Brick and Mortar Calculator API do? + Brick count and mortar volume/bag estimate for a wall, by brick type, bond thickness, and waste allowance. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Brick and Mortar Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Brick and Mortar Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Brick and Mortar Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Brick and Mortar Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `brick-and-mortar-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`brick-and-mortar-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"brick-and-mortar-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Carpet Calculator API # Carpet Calculator API construction 1 credit / call v2026-04-22 Estimate carpet area, waste, roll length, padding, installation, and cost. One POST adds Carpet Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Carpet Calculator on miniwebtool.com →](https://miniwebtool.com/carpet-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/carpet-calculator/run ``` ### Request body Field Type Req. `room_shape` rectangle | l_shape `str` — `unit` ft | in | m | cm `str` — `length` `float | None` — `width` `float | None` — `l1` `float | None` — `w1` `float | None` — `l2` `float | None` — `w2` `float | None` — `carpet_grade` budget | mid | premium | luxury | custom `str` — `custom_price_per_sqft` `float | None` — `padding` none | basic | standard | premium | luxury `str` — `roll_width_ft` `float` — `waste_percent` `float` — `install_cost_per_sqft` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "carpet-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → room_shape (str) rectangle l_shape rectangle | l_shape unit (str) ft in m cm ft | in | m | cm length (float | None) width (float | None) l1 (float | None) w1 (float | None) l2 (float | None) w2 (float | None) carpet_grade (str) budget mid premium luxury custom budget | mid | premium | luxury | custom custom_price_per_sqft (float | None) padding (str) none basic standard premium luxury none | basic | standard | premium | luxury roll_width_ft (float) waste_percent (float) install_cost_per_sqft (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`carpet-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/carpet-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"room_shape":"rectangle","unit":"ft","length":12,"width":10,"carpet_grade":"mid","padding":"standard","roll_width_ft":12,"waste_percent":10,"install_cost_per_sqft":1.5,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/carpet-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'room_shape': 'rectangle', 'unit': 'ft', 'length': 12, 'width': 10, 'carpet_grade': 'mid', 'padding': 'standard', 'roll_width_ft': 12, 'waste_percent': 10, 'install_cost_per_sqft': 1.5, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/carpet-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"room_shape":"rectangle","unit":"ft","length":12,"width":10,"carpet_grade":"mid","padding":"standard","roll_width_ft":12,"waste_percent":10,"install_cost_per_sqft":1.5,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'room_shape' => 'rectangle', 'unit' => 'ft', 'length' => 12, 'width' => 10, 'carpet_grade' => 'mid', 'padding' => 'standard', 'roll_width_ft' => 12, 'waste_percent' => 10, 'install_cost_per_sqft' => 1.5, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/carpet-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'room_shape' => 'rectangle', 'unit' => 'ft', 'length' => 12, 'width' => 10, 'carpet_grade' => 'mid', 'padding' => 'standard', 'roll_width_ft' => 12, 'waste_percent' => 10, 'install_cost_per_sqft' => 1.5, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "room_shape": "rectangle", "unit": "ft", "length": 12, "width": 10, "carpet_grade": "mid", "padding": "standard", "roll_width_ft": 12, "waste_percent": 10, "install_cost_per_sqft": 1.5, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/carpet-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/carpet-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"room_shape\":\"rectangle\",\"unit\":\"ft\",\"length\":12,\"width\":10,\"carpet_grade\":\"mid\",\"padding\":\"standard\",\"roll_width_ft\":12,\"waste_percent\":10,\"install_cost_per_sqft\":1.5,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`carpet-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/carpet-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/carpet-calculator/prompt.md`](/tools/carpet-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Carpet Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Carpet Calculator** — Estimate carpet area, waste, roll length, padding, installation, and cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/carpet-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/carpet-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `room_shape` | str | no | one of: rectangle, l_shape — rectangle \| l_shape (default `rectangle`) | | `unit` | str | no | one of: ft, in, m, cm — ft \| in \| m \| cm (default `ft`) | | `length` | float | None | no | (default `12.0`) | | `width` | float | None | no | (default `10.0`) | | `l1` | float | None | no | — | | `w1` | float | None | no | — | | `l2` | float | None | no | — | | `w2` | float | None | no | — | | `carpet_grade` | str | no | one of: budget, mid, premium, luxury, custom — budget \| mid \| premium \| luxury \| custom (default `mid`) | | `custom_price_per_sqft` | float | None | no | — | | `padding` | str | no | one of: none, basic, standard, premium, luxury — none \| basic \| standard \| premium \| luxury (default `standard`) | | `roll_width_ft` | float | no | (default `12.0`) | | `waste_percent` | float | no | (default `10.0`) | | `install_cost_per_sqft` | float | no | (default `1.5`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "room_shape": "rectangle", "unit": "ft", "length": 12, "width": 10, "carpet_grade": "mid", "padding": "standard", "roll_width_ft": 12, "waste_percent": 10, "install_cost_per_sqft": 1.5, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "carpet-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "room_shape": "rectangle", "unit": "ft", "total_area_sqft": 120.0, "total_area_sqyd": 13.33, "waste_percent": 10.0, "waste_area_sqft": 12.0, "carpet_needed_sqft": 132.0, "carpet_needed_sqyd": 14.67, "roll_width_ft": 12.0, "total_roll_length_ft": 13.2, "total_roll_length_yd": 4.4, "roll_layouts": [ { "name": "Room", "strips": 1, "seams": 0, "carpet_run_ft": 12.0, "linear_feet_with_waste": 13.2 } ], "carpet_grade": "mid", "carpet_price_per_sqft": { "low": 2.0, "high": 4.0 }, "padding": "standard", "carpet_cost_low": 264.0, "carpet_cost_high": 528.0, "padding_cost": 66.0, "installation_cost": 198.0, "total_cost_low": 528.0, "total_cost_high": 792.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Carpet Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Carpet Calculator** — Estimate carpet area, waste, roll length, padding, installation, and cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/carpet-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/carpet-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `room_shape` | str | no | one of: rectangle, l_shape — rectangle \| l_shape (default `rectangle`) | | `unit` | str | no | one of: ft, in, m, cm — ft \| in \| m \| cm (default `ft`) | | `length` | float | None | no | (default `12.0`) | | `width` | float | None | no | (default `10.0`) | | `l1` | float | None | no | — | | `w1` | float | None | no | — | | `l2` | float | None | no | — | | `w2` | float | None | no | — | | `carpet_grade` | str | no | one of: budget, mid, premium, luxury, custom — budget \| mid \| premium \| luxury \| custom (default `mid`) | | `custom_price_per_sqft` | float | None | no | — | | `padding` | str | no | one of: none, basic, standard, premium, luxury — none \| basic \| standard \| premium \| luxury (default `standard`) | | `roll_width_ft` | float | no | (default `12.0`) | | `waste_percent` | float | no | (default `10.0`) | | `install_cost_per_sqft` | float | no | (default `1.5`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "room_shape": "rectangle", "unit": "ft", "length": 12, "width": 10, "carpet_grade": "mid", "padding": "standard", "roll_width_ft": 12, "waste_percent": 10, "install_cost_per_sqft": 1.5, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "carpet-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "room_shape": "rectangle", "unit": "ft", "total_area_sqft": 120.0, "total_area_sqyd": 13.33, "waste_percent": 10.0, "waste_area_sqft": 12.0, "carpet_needed_sqft": 132.0, "carpet_needed_sqyd": 14.67, "roll_width_ft": 12.0, "total_roll_length_ft": 13.2, "total_roll_length_yd": 4.4, "roll_layouts": [ { "name": "Room", "strips": 1, "seams": 0, "carpet_run_ft": 12.0, "linear_feet_with_waste": 13.2 } ], "carpet_grade": "mid", "carpet_price_per_sqft": { "low": 2.0, "high": 4.0 }, "padding": "standard", "carpet_cost_low": 264.0, "carpet_cost_high": 528.0, "padding_cost": 66.0, "installation_cost": 198.0, "total_cost_low": 528.0, "total_cost_high": 792.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-carpet-calculator.mdc copy prompt ```text --- description: MiniWebtool Carpet Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Carpet Calculator API ## The API **Carpet Calculator** — Estimate carpet area, waste, roll length, padding, installation, and cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/carpet-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/carpet-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `room_shape` | str | no | one of: rectangle, l_shape — rectangle \| l_shape (default `rectangle`) | | `unit` | str | no | one of: ft, in, m, cm — ft \| in \| m \| cm (default `ft`) | | `length` | float | None | no | (default `12.0`) | | `width` | float | None | no | (default `10.0`) | | `l1` | float | None | no | — | | `w1` | float | None | no | — | | `l2` | float | None | no | — | | `w2` | float | None | no | — | | `carpet_grade` | str | no | one of: budget, mid, premium, luxury, custom — budget \| mid \| premium \| luxury \| custom (default `mid`) | | `custom_price_per_sqft` | float | None | no | — | | `padding` | str | no | one of: none, basic, standard, premium, luxury — none \| basic \| standard \| premium \| luxury (default `standard`) | | `roll_width_ft` | float | no | (default `12.0`) | | `waste_percent` | float | no | (default `10.0`) | | `install_cost_per_sqft` | float | no | (default `1.5`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "room_shape": "rectangle", "unit": "ft", "length": 12, "width": 10, "carpet_grade": "mid", "padding": "standard", "roll_width_ft": 12, "waste_percent": 10, "install_cost_per_sqft": 1.5, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "carpet-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "room_shape": "rectangle", "unit": "ft", "total_area_sqft": 120.0, "total_area_sqyd": 13.33, "waste_percent": 10.0, "waste_area_sqft": 12.0, "carpet_needed_sqft": 132.0, "carpet_needed_sqyd": 14.67, "roll_width_ft": 12.0, "total_roll_length_ft": 13.2, "total_roll_length_yd": 4.4, "roll_layouts": [ { "name": "Room", "strips": 1, "seams": 0, "carpet_run_ft": 12.0, "linear_feet_with_waste": 13.2 } ], "carpet_grade": "mid", "carpet_price_per_sqft": { "low": 2.0, "high": 4.0 }, "padding": "standard", "carpet_cost_low": 264.0, "carpet_cost_high": 528.0, "padding_cost": 66.0, "installation_cost": 198.0, "total_cost_low": 528.0, "total_cost_high": 792.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `carpet-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `carpet-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call carpet-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/carpet-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Carpet Calculator API do? + Estimate carpet area, waste, roll length, padding, installation, and cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Carpet Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Carpet Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Carpet Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Carpet Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `carpet-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`carpet-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"carpet-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) [ Board Foot Calculator Calculate lumber volume in board feet, cubic volume, weight, and optional cost. ](/tools/board-foot-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Concrete Calculator API # Concrete Calculator API construction 1 credit / call v2026-04-22 Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. One POST adds Concrete Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Concrete Calculator on miniwebtool.com →](https://miniwebtool.com/concrete-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/concrete-calculator/run ``` ### Request body Field Type Req. `project_type` slab | footing | column | stairs `str` — `unit_system` imperial | metric `str` — `length` length, or tread run for stairs `float` — `width` width, or stair width for stairs `float` — `thickness` thickness/depth, or riser height for stairs `float` — `diameter` column diameter (column projects only) `float` — `column_count` `int` — `step_count` `int` — `waste_pct` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "concrete-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → project_type (str) slab footing column stairs slab | footing | column | stairs unit_system (str) imperial metric imperial | metric length (float) length, or tread run for stairs width (float) width, or stair width for stairs thickness (float) thickness/depth, or riser height for stairs diameter (float) column diameter (column projects only) column_count (int) step_count (int) waste_pct (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`concrete-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/concrete-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"project_type":"slab","unit_system":"imperial","length":12,"width":10,"thickness":4,"waste_pct":10}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/concrete-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'project_type': 'slab', 'unit_system': 'imperial', 'length': 12, 'width': 10, 'thickness': 4, 'waste_pct': 10}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/concrete-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"project_type":"slab","unit_system":"imperial","length":12,"width":10,"thickness":4,"waste_pct":10}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'project_type' => 'slab', 'unit_system' => 'imperial', 'length' => 12, 'width' => 10, 'thickness' => 4, 'waste_pct' => 10 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/concrete-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'project_type' => 'slab', 'unit_system' => 'imperial', 'length' => 12, 'width' => 10, 'thickness' => 4, 'waste_pct' => 10 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "project_type": "slab", "unit_system": "imperial", "length": 12, "width": 10, "thickness": 4, "waste_pct": 10, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/concrete-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/concrete-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"project_type\":\"slab\",\"unit_system\":\"imperial\",\"length\":12,\"width\":10,\"thickness\":4,\"waste_pct\":10}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`concrete-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/concrete-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/concrete-calculator/prompt.md`](/tools/concrete-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Concrete Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Concrete Calculator** — Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/concrete-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/concrete-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `project_type` | str | no | one of: slab, footing, column, stairs — slab \| footing \| column \| stairs (default `slab`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `length` | float | no | length, or tread run for stairs (default `12.0`) | | `width` | float | no | width, or stair width for stairs (default `10.0`) | | `thickness` | float | no | thickness/depth, or riser height for stairs (default `4.0`) | | `diameter` | float | no | column diameter (column projects only) (default `12.0`) | | `column_count` | int | no | (default `1`) | | `step_count` | int | no | (default `5`) | | `waste_pct` | float | no | (default `10.0`) | Example request body: ```json { "project_type": "slab", "unit_system": "imperial", "length": 12, "width": 10, "thickness": 4, "waste_pct": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "concrete-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "project_type": "slab", "unit_system": "imperial", "volume_cuft": 40.0, "volume_cuyd": 1.481, "volume_m3": 1.1327, "waste_pct": 10.0, "volume_cuft_with_waste": 44.0, "volume_cuyd_with_waste": 1.63, "volume_m3_with_waste": 1.2459, "bags_60lb_needed": 98, "bags_25kg_needed": 104, "recommendation": "bags or ready-mix" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Concrete Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Concrete Calculator** — Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/concrete-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/concrete-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `project_type` | str | no | one of: slab, footing, column, stairs — slab \| footing \| column \| stairs (default `slab`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `length` | float | no | length, or tread run for stairs (default `12.0`) | | `width` | float | no | width, or stair width for stairs (default `10.0`) | | `thickness` | float | no | thickness/depth, or riser height for stairs (default `4.0`) | | `diameter` | float | no | column diameter (column projects only) (default `12.0`) | | `column_count` | int | no | (default `1`) | | `step_count` | int | no | (default `5`) | | `waste_pct` | float | no | (default `10.0`) | Example request body: ```json { "project_type": "slab", "unit_system": "imperial", "length": 12, "width": 10, "thickness": 4, "waste_pct": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "concrete-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "project_type": "slab", "unit_system": "imperial", "volume_cuft": 40.0, "volume_cuyd": 1.481, "volume_m3": 1.1327, "waste_pct": 10.0, "volume_cuft_with_waste": 44.0, "volume_cuyd_with_waste": 1.63, "volume_m3_with_waste": 1.2459, "bags_60lb_needed": 98, "bags_25kg_needed": 104, "recommendation": "bags or ready-mix" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-concrete-calculator.mdc copy prompt ```text --- description: MiniWebtool Concrete Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Concrete Calculator API ## The API **Concrete Calculator** — Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/concrete-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/concrete-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `project_type` | str | no | one of: slab, footing, column, stairs — slab \| footing \| column \| stairs (default `slab`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `length` | float | no | length, or tread run for stairs (default `12.0`) | | `width` | float | no | width, or stair width for stairs (default `10.0`) | | `thickness` | float | no | thickness/depth, or riser height for stairs (default `4.0`) | | `diameter` | float | no | column diameter (column projects only) (default `12.0`) | | `column_count` | int | no | (default `1`) | | `step_count` | int | no | (default `5`) | | `waste_pct` | float | no | (default `10.0`) | Example request body: ```json { "project_type": "slab", "unit_system": "imperial", "length": 12, "width": 10, "thickness": 4, "waste_pct": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "concrete-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "project_type": "slab", "unit_system": "imperial", "volume_cuft": 40.0, "volume_cuyd": 1.481, "volume_m3": 1.1327, "waste_pct": 10.0, "volume_cuft_with_waste": 44.0, "volume_cuyd_with_waste": 1.63, "volume_m3_with_waste": 1.2459, "bags_60lb_needed": 98, "bags_25kg_needed": 104, "recommendation": "bags or ready-mix" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `concrete-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `concrete-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call concrete-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/concrete-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Concrete Calculator API do? + Concrete volume in cubic feet/yards/meters plus pre-mix bag counts for slabs, footings, round columns, and staircases. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Concrete Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Concrete Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Concrete Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Concrete Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `concrete-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`concrete-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"concrete-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Decking Calculator API # Decking Calculator API construction 1 credit / call v2026-04-22 Estimate decking boards, joists, beams, posts, fasteners, and waste. One POST adds Decking Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Decking Calculator on miniwebtool.com →](https://miniwebtool.com/decking-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/decking-calculator/run ``` ### Request body Field Type Req. `unit_system` customary | metric `str` — `deck_length` `float` — `deck_width` `float` — `board_width` `float` — `board_length` `float` — `board_gap` `float` — `joist_spacing` `float` — `beam_spacing` `float` — `waste_factor` `float` — `fasteners_per_sqft` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "decking-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unit_system (str) customary metric customary | metric deck_length (float) deck_width (float) board_width (float) board_length (float) board_gap (float) joist_spacing (float) beam_spacing (float) waste_factor (float) fasteners_per_sqft (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`decking-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/decking-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"unit_system":"customary","deck_length":12,"deck_width":10,"board_width":5.5,"board_length":12,"board_gap":0.125,"joist_spacing":16,"beam_spacing":8,"waste_factor":10,"fasteners_per_sqft":3.5,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/decking-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'unit_system': 'customary', 'deck_length': 12, 'deck_width': 10, 'board_width': 5.5, 'board_length': 12, 'board_gap': 0.125, 'joist_spacing': 16, 'beam_spacing': 8, 'waste_factor': 10, 'fasteners_per_sqft': 3.5, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/decking-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"unit_system":"customary","deck_length":12,"deck_width":10,"board_width":5.5,"board_length":12,"board_gap":0.125,"joist_spacing":16,"beam_spacing":8,"waste_factor":10,"fasteners_per_sqft":3.5,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'unit_system' => 'customary', 'deck_length' => 12, 'deck_width' => 10, 'board_width' => 5.5, 'board_length' => 12, 'board_gap' => 0.125, 'joist_spacing' => 16, 'beam_spacing' => 8, 'waste_factor' => 10, 'fasteners_per_sqft' => 3.5, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/decking-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'unit_system' => 'customary', 'deck_length' => 12, 'deck_width' => 10, 'board_width' => 5.5, 'board_length' => 12, 'board_gap' => 0.125, 'joist_spacing' => 16, 'beam_spacing' => 8, 'waste_factor' => 10, 'fasteners_per_sqft' => 3.5, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "unit_system": "customary", "deck_length": 12, "deck_width": 10, "board_width": 5.5, "board_length": 12, "board_gap": 0.125, "joist_spacing": 16, "beam_spacing": 8, "waste_factor": 10, "fasteners_per_sqft": 3.5, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/decking-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/decking-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"unit_system\":\"customary\",\"deck_length\":12,\"deck_width\":10,\"board_width\":5.5,\"board_length\":12,\"board_gap\":0.125,\"joist_spacing\":16,\"beam_spacing\":8,\"waste_factor\":10,\"fasteners_per_sqft\":3.5,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`decking-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/decking-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/decking-calculator/prompt.md`](/tools/decking-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Decking Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Decking Calculator** — Estimate decking boards, joists, beams, posts, fasteners, and waste. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/decking-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/decking-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: customary, metric — customary \| metric (default `customary`) | | `deck_length` | float | no | (default `12.0`) | | `deck_width` | float | no | (default `10.0`) | | `board_width` | float | no | (default `5.5`) | | `board_length` | float | no | (default `12.0`) | | `board_gap` | float | no | (default `0.125`) | | `joist_spacing` | float | no | (default `16.0`) | | `beam_spacing` | float | no | (default `8.0`) | | `waste_factor` | float | no | (default `10.0`) | | `fasteners_per_sqft` | float | no | (default `3.5`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "unit_system": "customary", "deck_length": 12, "deck_width": 10, "board_width": 5.5, "board_length": 12, "board_gap": 0.125, "joist_spacing": 16, "beam_spacing": 8, "waste_factor": 10, "fasteners_per_sqft": 3.5, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "decking-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "customary", "length_unit": "ft", "area_sqft": 120.0, "area_sqm": 11.15, "num_boards_width": 22, "boards_per_length": 1, "total_boards": 22, "total_boards_with_waste": 25, "waste_boards": 3, "num_joists": 9, "joist_length": 12.0, "total_joist_length": 108.0, "num_beams": 3, "beam_length": 10.0, "total_beam_length": 30.0, "num_posts": 6, "total_fasteners": 463, "joist_hangers": 18, "waste_percent": 10.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Decking Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Decking Calculator** — Estimate decking boards, joists, beams, posts, fasteners, and waste. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/decking-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/decking-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: customary, metric — customary \| metric (default `customary`) | | `deck_length` | float | no | (default `12.0`) | | `deck_width` | float | no | (default `10.0`) | | `board_width` | float | no | (default `5.5`) | | `board_length` | float | no | (default `12.0`) | | `board_gap` | float | no | (default `0.125`) | | `joist_spacing` | float | no | (default `16.0`) | | `beam_spacing` | float | no | (default `8.0`) | | `waste_factor` | float | no | (default `10.0`) | | `fasteners_per_sqft` | float | no | (default `3.5`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "unit_system": "customary", "deck_length": 12, "deck_width": 10, "board_width": 5.5, "board_length": 12, "board_gap": 0.125, "joist_spacing": 16, "beam_spacing": 8, "waste_factor": 10, "fasteners_per_sqft": 3.5, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "decking-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "customary", "length_unit": "ft", "area_sqft": 120.0, "area_sqm": 11.15, "num_boards_width": 22, "boards_per_length": 1, "total_boards": 22, "total_boards_with_waste": 25, "waste_boards": 3, "num_joists": 9, "joist_length": 12.0, "total_joist_length": 108.0, "num_beams": 3, "beam_length": 10.0, "total_beam_length": 30.0, "num_posts": 6, "total_fasteners": 463, "joist_hangers": 18, "waste_percent": 10.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-decking-calculator.mdc copy prompt ```text --- description: MiniWebtool Decking Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Decking Calculator API ## The API **Decking Calculator** — Estimate decking boards, joists, beams, posts, fasteners, and waste. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/decking-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/decking-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: customary, metric — customary \| metric (default `customary`) | | `deck_length` | float | no | (default `12.0`) | | `deck_width` | float | no | (default `10.0`) | | `board_width` | float | no | (default `5.5`) | | `board_length` | float | no | (default `12.0`) | | `board_gap` | float | no | (default `0.125`) | | `joist_spacing` | float | no | (default `16.0`) | | `beam_spacing` | float | no | (default `8.0`) | | `waste_factor` | float | no | (default `10.0`) | | `fasteners_per_sqft` | float | no | (default `3.5`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "unit_system": "customary", "deck_length": 12, "deck_width": 10, "board_width": 5.5, "board_length": 12, "board_gap": 0.125, "joist_spacing": 16, "beam_spacing": 8, "waste_factor": 10, "fasteners_per_sqft": 3.5, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "decking-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "customary", "length_unit": "ft", "area_sqft": 120.0, "area_sqm": 11.15, "num_boards_width": 22, "boards_per_length": 1, "total_boards": 22, "total_boards_with_waste": 25, "waste_boards": 3, "num_joists": 9, "joist_length": 12.0, "total_joist_length": 108.0, "num_beams": 3, "beam_length": 10.0, "total_beam_length": 30.0, "num_posts": 6, "total_fasteners": 463, "joist_hangers": 18, "waste_percent": 10.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `decking-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `decking-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call decking-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/decking-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Decking Calculator API do? + Estimate decking boards, joists, beams, posts, fasteners, and waste. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Decking Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Decking Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Decking Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Decking Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `decking-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`decking-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"decking-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) [ Board Foot Calculator Calculate lumber volume in board feet, cubic volume, weight, and optional cost. ](/tools/board-foot-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Drywall Calculator API # Drywall Calculator API construction 1 credit / call v2026-04-22 Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. One POST adds Drywall Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Drywall Calculator on miniwebtool.com →](https://miniwebtool.com/drywall-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/drywall-calculator/run ``` ### Request body Field Type Req. `unit_system` imperial | metric `str` — `sheet_size` 4x8 | 4x10 | 4x12 | 1.2x2.4 | 1.2x3.0 `str` — `wall_area` Total wall area (sq ft or sq m) `float` — `ceiling_area` `float` — `waste_percent` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "drywall-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unit_system (str) imperial metric imperial | metric sheet_size (str) 4x8 4x10 4x12 1.2x2.4 1.2x3.0 4x8 | 4x10 | 4x12 | 1.2x2.4 | 1.2x3.0 wall_area (float) Total wall area (sq ft or sq m) ceiling_area (float) waste_percent (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`drywall-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/drywall-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"unit_system":"imperial","sheet_size":"4x8","wall_area":352,"ceiling_area":120,"waste_percent":10}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/drywall-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'unit_system': 'imperial', 'sheet_size': '4x8', 'wall_area': 352, 'ceiling_area': 120, 'waste_percent': 10}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/drywall-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"unit_system":"imperial","sheet_size":"4x8","wall_area":352,"ceiling_area":120,"waste_percent":10}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'unit_system' => 'imperial', 'sheet_size' => '4x8', 'wall_area' => 352, 'ceiling_area' => 120, 'waste_percent' => 10 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/drywall-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'unit_system' => 'imperial', 'sheet_size' => '4x8', 'wall_area' => 352, 'ceiling_area' => 120, 'waste_percent' => 10 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "unit_system": "imperial", "sheet_size": "4x8", "wall_area": 352, "ceiling_area": 120, "waste_percent": 10, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/drywall-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/drywall-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"unit_system\":\"imperial\",\"sheet_size\":\"4x8\",\"wall_area\":352,\"ceiling_area\":120,\"waste_percent\":10}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`drywall-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/drywall-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/drywall-calculator/prompt.md`](/tools/drywall-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Drywall Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Drywall Calculator** — Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/drywall-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/drywall-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `sheet_size` | str | no | one of: 4x8, 4x10, 4x12, 1.2x2.4, 1.2x3.0 — 4x8 \| 4x10 \| 4x12 \| 1.2x2.4 \| 1.2x3.0 (default `4x8`) | | `wall_area` | float | no | Total wall area (sq ft or sq m) (default `352.0`) | | `ceiling_area` | float | no | (default `0.0`) | | `waste_percent` | float | no | (default `10.0`) | Example request body: ```json { "unit_system": "imperial", "sheet_size": "4x8", "wall_area": 352, "ceiling_area": 120, "waste_percent": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "drywall-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "sheet_size": "4x8", "sheet_area": 32.0, "area_unit": "sq ft", "wall_area": 352.0, "ceiling_area": 120.0, "total_area": 472.0, "waste_percent": 10.0, "area_with_waste": 519.2, "sheets_needed": 17, "wall_sheets": 13, "ceiling_sheets": 5, "joint_compound_gallons": 1.77, "joint_compound_lbs": 22.1, "joint_tape_length": 424.8, "screws_needed": 596, "screw_boxes_1lb": 3, "screw_boxes_5lb": 1, "assumptions": "3.75 gal compound per 1000 sq ft (14 L per 1000 sq m), 0.9 linear units of tape per area unit, 32 screws per wall sheet and 36 per ceiling sheet" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Drywall Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Drywall Calculator** — Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/drywall-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/drywall-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `sheet_size` | str | no | one of: 4x8, 4x10, 4x12, 1.2x2.4, 1.2x3.0 — 4x8 \| 4x10 \| 4x12 \| 1.2x2.4 \| 1.2x3.0 (default `4x8`) | | `wall_area` | float | no | Total wall area (sq ft or sq m) (default `352.0`) | | `ceiling_area` | float | no | (default `0.0`) | | `waste_percent` | float | no | (default `10.0`) | Example request body: ```json { "unit_system": "imperial", "sheet_size": "4x8", "wall_area": 352, "ceiling_area": 120, "waste_percent": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "drywall-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "sheet_size": "4x8", "sheet_area": 32.0, "area_unit": "sq ft", "wall_area": 352.0, "ceiling_area": 120.0, "total_area": 472.0, "waste_percent": 10.0, "area_with_waste": 519.2, "sheets_needed": 17, "wall_sheets": 13, "ceiling_sheets": 5, "joint_compound_gallons": 1.77, "joint_compound_lbs": 22.1, "joint_tape_length": 424.8, "screws_needed": 596, "screw_boxes_1lb": 3, "screw_boxes_5lb": 1, "assumptions": "3.75 gal compound per 1000 sq ft (14 L per 1000 sq m), 0.9 linear units of tape per area unit, 32 screws per wall sheet and 36 per ceiling sheet" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-drywall-calculator.mdc copy prompt ```text --- description: MiniWebtool Drywall Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Drywall Calculator API ## The API **Drywall Calculator** — Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/drywall-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/drywall-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `sheet_size` | str | no | one of: 4x8, 4x10, 4x12, 1.2x2.4, 1.2x3.0 — 4x8 \| 4x10 \| 4x12 \| 1.2x2.4 \| 1.2x3.0 (default `4x8`) | | `wall_area` | float | no | Total wall area (sq ft or sq m) (default `352.0`) | | `ceiling_area` | float | no | (default `0.0`) | | `waste_percent` | float | no | (default `10.0`) | Example request body: ```json { "unit_system": "imperial", "sheet_size": "4x8", "wall_area": 352, "ceiling_area": 120, "waste_percent": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "drywall-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "sheet_size": "4x8", "sheet_area": 32.0, "area_unit": "sq ft", "wall_area": 352.0, "ceiling_area": 120.0, "total_area": 472.0, "waste_percent": 10.0, "area_with_waste": 519.2, "sheets_needed": 17, "wall_sheets": 13, "ceiling_sheets": 5, "joint_compound_gallons": 1.77, "joint_compound_lbs": 22.1, "joint_tape_length": 424.8, "screws_needed": 596, "screw_boxes_1lb": 3, "screw_boxes_5lb": 1, "assumptions": "3.75 gal compound per 1000 sq ft (14 L per 1000 sq m), 0.9 linear units of tape per area unit, 32 screws per wall sheet and 36 per ceiling sheet" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `drywall-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `drywall-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call drywall-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/drywall-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Drywall Calculator API do? + Drywall sheets, joint compound, tape, and screws needed for walls and ceilings with a waste allowance. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Drywall Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Drywall Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Drywall Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Drywall Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `drywall-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`drywall-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"drywall-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Fence Calculator API # Fence Calculator API construction 1 credit / call v2026-04-22 Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. One POST adds Fence Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Fence Calculator on miniwebtool.com →](https://miniwebtool.com/fence-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/fence-calculator/run ``` ### Request body Field Type Req. `fence_style` privacy | picket | post_rail | panel `str` — `unit_system` imperial | metric `str` — `fence_length` `float` — `fence_height` `float` — `post_spacing` `float` — `rail_count` `int` — `picket_width` `float` — `picket_spacing` `float` — `panel_width` `float` — `num_gates` `int` — `gate_width` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fence-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → fence_style (str) privacy picket post_rail panel privacy | picket | post_rail | panel unit_system (str) imperial metric imperial | metric fence_length (float) fence_height (float) post_spacing (float) rail_count (int) picket_width (float) picket_spacing (float) panel_width (float) num_gates (int) gate_width (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fence-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fence-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"fence_style":"privacy","unit_system":"imperial","fence_length":100,"fence_height":6,"post_spacing":8,"rail_count":3,"picket_width":5.5}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fence-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'fence_style': 'privacy', 'unit_system': 'imperial', 'fence_length': 100, 'fence_height': 6, 'post_spacing': 8, 'rail_count': 3, 'picket_width': 5.5}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fence-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"fence_style":"privacy","unit_system":"imperial","fence_length":100,"fence_height":6,"post_spacing":8,"rail_count":3,"picket_width":5.5}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'fence_style' => 'privacy', 'unit_system' => 'imperial', 'fence_length' => 100, 'fence_height' => 6, 'post_spacing' => 8, 'rail_count' => 3, 'picket_width' => 5.5 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fence-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'fence_style' => 'privacy', 'unit_system' => 'imperial', 'fence_length' => 100, 'fence_height' => 6, 'post_spacing' => 8, 'rail_count' => 3, 'picket_width' => 5.5 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "fence_style": "privacy", "unit_system": "imperial", "fence_length": 100, "fence_height": 6, "post_spacing": 8, "rail_count": 3, "picket_width": 5.5, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fence-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fence-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"fence_style\":\"privacy\",\"unit_system\":\"imperial\",\"fence_length\":100,\"fence_height\":6,\"post_spacing\":8,\"rail_count\":3,\"picket_width\":5.5}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fence-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fence-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/fence-calculator/prompt.md`](/tools/fence-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Fence Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fence Calculator** — Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fence-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fence-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `fence_style` | str | no | one of: privacy, picket, post_rail, panel — privacy \| picket \| post_rail \| panel (default `privacy`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `fence_length` | float | no | (default `100.0`) | | `fence_height` | float | no | (default `6.0`) | | `post_spacing` | float | no | (default `8.0`) | | `rail_count` | int | no | (default `3`) | | `picket_width` | float | no | (default `5.5`) | | `picket_spacing` | float | no | (default `0.0`) | | `panel_width` | float | no | (default `0.0`) | | `num_gates` | int | no | (default `1`) | | `gate_width` | float | no | (default `4.0`) | Example request body: ```json { "fence_style": "privacy", "unit_system": "imperial", "fence_length": 100, "fence_height": 6, "post_spacing": 8, "rail_count": 3, "picket_width": 5.5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fence-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fence_style": "privacy", "unit_system": "imperial", "length_unit": "ft", "effective_fence_length": 96.0, "num_sections": 12, "num_fence_posts": 13, "num_gate_posts": 2, "total_posts": 15, "post_length": 8.5, "post_below_ground": 2.5, "total_rails": 36, "total_rail_length": 288.0, "num_pickets": 210, "num_panels": 0, "num_gates": 1, "concrete_bags": 60, "bags_per_post": 4 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Fence Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fence Calculator** — Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fence-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fence-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `fence_style` | str | no | one of: privacy, picket, post_rail, panel — privacy \| picket \| post_rail \| panel (default `privacy`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `fence_length` | float | no | (default `100.0`) | | `fence_height` | float | no | (default `6.0`) | | `post_spacing` | float | no | (default `8.0`) | | `rail_count` | int | no | (default `3`) | | `picket_width` | float | no | (default `5.5`) | | `picket_spacing` | float | no | (default `0.0`) | | `panel_width` | float | no | (default `0.0`) | | `num_gates` | int | no | (default `1`) | | `gate_width` | float | no | (default `4.0`) | Example request body: ```json { "fence_style": "privacy", "unit_system": "imperial", "fence_length": 100, "fence_height": 6, "post_spacing": 8, "rail_count": 3, "picket_width": 5.5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fence-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fence_style": "privacy", "unit_system": "imperial", "length_unit": "ft", "effective_fence_length": 96.0, "num_sections": 12, "num_fence_posts": 13, "num_gate_posts": 2, "total_posts": 15, "post_length": 8.5, "post_below_ground": 2.5, "total_rails": 36, "total_rail_length": 288.0, "num_pickets": 210, "num_panels": 0, "num_gates": 1, "concrete_bags": 60, "bags_per_post": 4 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fence-calculator.mdc copy prompt ```text --- description: MiniWebtool Fence Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Fence Calculator API ## The API **Fence Calculator** — Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fence-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fence-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `fence_style` | str | no | one of: privacy, picket, post_rail, panel — privacy \| picket \| post_rail \| panel (default `privacy`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `fence_length` | float | no | (default `100.0`) | | `fence_height` | float | no | (default `6.0`) | | `post_spacing` | float | no | (default `8.0`) | | `rail_count` | int | no | (default `3`) | | `picket_width` | float | no | (default `5.5`) | | `picket_spacing` | float | no | (default `0.0`) | | `panel_width` | float | no | (default `0.0`) | | `num_gates` | int | no | (default `1`) | | `gate_width` | float | no | (default `4.0`) | Example request body: ```json { "fence_style": "privacy", "unit_system": "imperial", "fence_length": 100, "fence_height": 6, "post_spacing": 8, "rail_count": 3, "picket_width": 5.5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fence-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fence_style": "privacy", "unit_system": "imperial", "length_unit": "ft", "effective_fence_length": 96.0, "num_sections": 12, "num_fence_posts": 13, "num_gate_posts": 2, "total_posts": 15, "post_length": 8.5, "post_below_ground": 2.5, "total_rails": 36, "total_rail_length": 288.0, "num_pickets": 210, "num_panels": 0, "num_gates": 1, "concrete_bags": 60, "bags_per_post": 4 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fence-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fence-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fence-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fence-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Fence Calculator API do? + Fence posts, rails, pickets or panels, concrete, and gate hardware for privacy, picket, post-and-rail, or panel fence styles. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Fence Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Fence Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Fence Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Fence Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fence-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fence-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fence-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Paint Calculator API # Paint Calculator API construction 1 credit / call v2026-04-22 Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. One POST adds Paint Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Paint Calculator on miniwebtool.com →](https://miniwebtool.com/paint-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/paint-calculator/run ``` ### Request body Field Type Req. `unit_system` imperial | metric `str` — `length` `float` — `width` `float` — `height` `float` — `num_doors` `int` — `num_windows` `int` — `num_coats` `int` — `include_ceiling` `bool` — `include_trim` `bool` — `surface_type` smooth | light | medium | heavy `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "paint-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unit_system (str) imperial metric imperial | metric length (float) width (float) height (float) num_doors (int) num_windows (int) num_coats (int) include_ceiling (bool) false true include_trim (bool) false true surface_type (str) smooth light medium heavy smooth | light | medium | heavy Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`paint-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/paint-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"unit_system":"imperial","length":12,"width":10,"height":8,"num_doors":1,"num_windows":2,"num_coats":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/paint-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'unit_system': 'imperial', 'length': 12, 'width': 10, 'height': 8, 'num_doors': 1, 'num_windows': 2, 'num_coats': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/paint-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"unit_system":"imperial","length":12,"width":10,"height":8,"num_doors":1,"num_windows":2,"num_coats":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'unit_system' => 'imperial', 'length' => 12, 'width' => 10, 'height' => 8, 'num_doors' => 1, 'num_windows' => 2, 'num_coats' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/paint-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'unit_system' => 'imperial', 'length' => 12, 'width' => 10, 'height' => 8, 'num_doors' => 1, 'num_windows' => 2, 'num_coats' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "unit_system": "imperial", "length": 12, "width": 10, "height": 8, "num_doors": 1, "num_windows": 2, "num_coats": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/paint-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/paint-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"unit_system\":\"imperial\",\"length\":12,\"width\":10,\"height\":8,\"num_doors\":1,\"num_windows\":2,\"num_coats\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`paint-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/paint-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/paint-calculator/prompt.md`](/tools/paint-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Paint Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Paint Calculator** — Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/paint-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/paint-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `length` | float | no | (default `12.0`) | | `width` | float | no | (default `10.0`) | | `height` | float | no | (default `8.0`) | | `num_doors` | int | no | (default `1`) | | `num_windows` | int | no | (default `2`) | | `num_coats` | int | no | (default `2`) | | `include_ceiling` | bool | no | (default `False`) | | `include_trim` | bool | no | (default `False`) | | `surface_type` | str | no | one of: smooth, light, medium, heavy — smooth \| light \| medium \| heavy (default `smooth`) | Example request body: ```json { "unit_system": "imperial", "length": 12, "width": 10, "height": 8, "num_doors": 1, "num_windows": 2, "num_coats": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "paint-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "perimeter": 44.0, "gross_wall_area": 352.0, "doors_area": 20.0, "windows_area": 30.0, "net_wall_area": 302.0, "ceiling_area": 0.0, "total_paintable_area": 302.0, "texture_factor": 1.0, "adjusted_area": 302.0, "total_area_with_coats": 604.0, "paint_needed": 1.726, "trim_length": 0.0, "trim_paint": 0.0, "total_paint_needed": 1.726, "volume_unit": "gallons", "recommended_cans": { "1unit": 2 }, "extra_paint_10pct_buffer": 0.173 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Paint Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Paint Calculator** — Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/paint-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/paint-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `length` | float | no | (default `12.0`) | | `width` | float | no | (default `10.0`) | | `height` | float | no | (default `8.0`) | | `num_doors` | int | no | (default `1`) | | `num_windows` | int | no | (default `2`) | | `num_coats` | int | no | (default `2`) | | `include_ceiling` | bool | no | (default `False`) | | `include_trim` | bool | no | (default `False`) | | `surface_type` | str | no | one of: smooth, light, medium, heavy — smooth \| light \| medium \| heavy (default `smooth`) | Example request body: ```json { "unit_system": "imperial", "length": 12, "width": 10, "height": 8, "num_doors": 1, "num_windows": 2, "num_coats": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "paint-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "perimeter": 44.0, "gross_wall_area": 352.0, "doors_area": 20.0, "windows_area": 30.0, "net_wall_area": 302.0, "ceiling_area": 0.0, "total_paintable_area": 302.0, "texture_factor": 1.0, "adjusted_area": 302.0, "total_area_with_coats": 604.0, "paint_needed": 1.726, "trim_length": 0.0, "trim_paint": 0.0, "total_paint_needed": 1.726, "volume_unit": "gallons", "recommended_cans": { "1unit": 2 }, "extra_paint_10pct_buffer": 0.173 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-paint-calculator.mdc copy prompt ```text --- description: MiniWebtool Paint Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Paint Calculator API ## The API **Paint Calculator** — Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/paint-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/paint-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `length` | float | no | (default `12.0`) | | `width` | float | no | (default `10.0`) | | `height` | float | no | (default `8.0`) | | `num_doors` | int | no | (default `1`) | | `num_windows` | int | no | (default `2`) | | `num_coats` | int | no | (default `2`) | | `include_ceiling` | bool | no | (default `False`) | | `include_trim` | bool | no | (default `False`) | | `surface_type` | str | no | one of: smooth, light, medium, heavy — smooth \| light \| medium \| heavy (default `smooth`) | Example request body: ```json { "unit_system": "imperial", "length": 12, "width": 10, "height": 8, "num_doors": 1, "num_windows": 2, "num_coats": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "paint-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "perimeter": 44.0, "gross_wall_area": 352.0, "doors_area": 20.0, "windows_area": 30.0, "net_wall_area": 302.0, "ceiling_area": 0.0, "total_paintable_area": 302.0, "texture_factor": 1.0, "adjusted_area": 302.0, "total_area_with_coats": 604.0, "paint_needed": 1.726, "trim_length": 0.0, "trim_paint": 0.0, "total_paint_needed": 1.726, "volume_unit": "gallons", "recommended_cans": { "1unit": 2 }, "extra_paint_10pct_buffer": 0.173 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `paint-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `paint-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call paint-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/paint-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Paint Calculator API do? + Paint quantity for walls, ceiling, and trim with door/window deductions, texture adjustment, and multi-coat coverage. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Paint Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Paint Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Paint Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Paint Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `paint-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`paint-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"paint-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Steel Weight Calculator API # Steel Weight Calculator API construction 1 credit / call v2026-04-22 Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. One POST adds Steel Weight Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Steel Weight Calculator on miniwebtool.com →](https://miniwebtool.com/steel-weight-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run ``` ### Request body Field Type Req. `shape` round_bar | square_bar | hex_bar | flat_bar | plate | round_pipe | square_tube | rect_tube | angle `str` — `material` mild_steel | stainless_304 | stainless_316 | alloy_steel | tool_steel | galvanized_steel | cast_iron | aluminum | brass | copper | custom `str` — `custom_density` Density in kg/m^3 (material=custom) `float | None` — `dim_a` Primary dimension in mm: diameter, side, across-flats, or width `float` — `dim_b` Second dimension in mm (rect_tube, angle) `float | None` — `thickness` Thickness or wall in mm (flat_bar, plate, pipes, tubes, angle) `float | None` — `length_m` Length per piece in meters `float` — `quantity` `int` — `price_per_kg` `float | None` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "steel-weight-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → shape (str) round_bar square_bar hex_bar flat_bar plate round_pipe square_tube rect_tube angle round_bar | square_bar | hex_bar | flat_bar | plate | round_pipe | square_tube | rect_tube | angle material (str) mild_steel stainless_304 stainless_316 alloy_steel tool_steel galvanized_steel cast_iron aluminum brass copper custom mild_steel | stainless_304 | stainless_316 | alloy_steel | tool_steel | galvanized_steel | cast_iron | aluminum | brass | copper | custom custom_density (float | None) Density in kg/m^3 (material=custom) dim_a (float) Primary dimension in mm: diameter, side, across-flats, or width dim_b (float | None) Second dimension in mm (rect_tube, angle) thickness (float | None) Thickness or wall in mm (flat_bar, plate, pipes, tubes, angle) length_m (float) Length per piece in meters quantity (int) price_per_kg (float | None) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`steel-weight-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"shape":"round_bar","material":"mild_steel","dim_a":20,"length_m":6,"quantity":10}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'shape': 'round_bar', 'material': 'mild_steel', 'dim_a': 20, 'length_m': 6, 'quantity': 10}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"shape":"round_bar","material":"mild_steel","dim_a":20,"length_m":6,"quantity":10}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'shape' => 'round_bar', 'material' => 'mild_steel', 'dim_a' => 20, 'length_m' => 6, 'quantity' => 10 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'shape' => 'round_bar', 'material' => 'mild_steel', 'dim_a' => 20, 'length_m' => 6, 'quantity' => 10 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "shape": "round_bar", "material": "mild_steel", "dim_a": 20, "length_m": 6, "quantity": 10, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"shape\":\"round_bar\",\"material\":\"mild_steel\",\"dim_a\":20,\"length_m\":6,\"quantity\":10}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`steel-weight-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/steel-weight-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/steel-weight-calculator/prompt.md`](/tools/steel-weight-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Steel Weight Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Steel Weight Calculator** — Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `shape` | str | no | one of: round_bar, square_bar, hex_bar, flat_bar, plate, round_pipe, square_tube, rect_tube, angle — round_bar \| square_bar \| hex_bar \| flat_bar \| plate \| round_pipe \| square_tube \| rect_tube \| angle (default `round_bar`) | | `material` | str | no | one of: mild_steel, stainless_304, stainless_316, alloy_steel, tool_steel, galvanized_steel, cast_iron, aluminum, brass, copper, custom — mild_steel \| stainless_304 \| stainless_316 \| alloy_steel \| tool_steel \| galvanized_steel \| cast_iron \| aluminum \| brass \| copper \| custom (default `mild_steel`) | | `custom_density` | float | None | no | Density in kg/m^3 (material=custom) | | `dim_a` | float | no | Primary dimension in mm: diameter, side, across-flats, or width (default `20.0`) | | `dim_b` | float | None | no | Second dimension in mm (rect_tube, angle) | | `thickness` | float | None | no | Thickness or wall in mm (flat_bar, plate, pipes, tubes, angle) | | `length_m` | float | no | Length per piece in meters (default `6.0`) | | `quantity` | int | no | (default `1`) | | `price_per_kg` | float | None | no | — | Example request body: ```json { "shape": "round_bar", "material": "mild_steel", "dim_a": 20, "length_m": 6, "quantity": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "steel-weight-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "shape": "round_bar", "material": "mild_steel", "density_kg_m3": 7850.0, "cross_section_mm2": 314.1593, "cross_section_formula": "A = pi*d^2/4 (dim_a = diameter)", "length_m": 6.0, "volume_per_piece_m3": 0.00188496, "mass_per_piece_kg": 14.7969, "mass_per_piece_lb": 32.6216, "mass_per_meter_kg": 2.4662, "quantity": 10, "total_mass_kg": 147.969, "total_mass_lb": 326.216, "total_mass_tonnes": 0.14797, "formula": "mass = density x cross-section area x length" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Steel Weight Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Steel Weight Calculator** — Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `shape` | str | no | one of: round_bar, square_bar, hex_bar, flat_bar, plate, round_pipe, square_tube, rect_tube, angle — round_bar \| square_bar \| hex_bar \| flat_bar \| plate \| round_pipe \| square_tube \| rect_tube \| angle (default `round_bar`) | | `material` | str | no | one of: mild_steel, stainless_304, stainless_316, alloy_steel, tool_steel, galvanized_steel, cast_iron, aluminum, brass, copper, custom — mild_steel \| stainless_304 \| stainless_316 \| alloy_steel \| tool_steel \| galvanized_steel \| cast_iron \| aluminum \| brass \| copper \| custom (default `mild_steel`) | | `custom_density` | float | None | no | Density in kg/m^3 (material=custom) | | `dim_a` | float | no | Primary dimension in mm: diameter, side, across-flats, or width (default `20.0`) | | `dim_b` | float | None | no | Second dimension in mm (rect_tube, angle) | | `thickness` | float | None | no | Thickness or wall in mm (flat_bar, plate, pipes, tubes, angle) | | `length_m` | float | no | Length per piece in meters (default `6.0`) | | `quantity` | int | no | (default `1`) | | `price_per_kg` | float | None | no | — | Example request body: ```json { "shape": "round_bar", "material": "mild_steel", "dim_a": 20, "length_m": 6, "quantity": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "steel-weight-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "shape": "round_bar", "material": "mild_steel", "density_kg_m3": 7850.0, "cross_section_mm2": 314.1593, "cross_section_formula": "A = pi*d^2/4 (dim_a = diameter)", "length_m": 6.0, "volume_per_piece_m3": 0.00188496, "mass_per_piece_kg": 14.7969, "mass_per_piece_lb": 32.6216, "mass_per_meter_kg": 2.4662, "quantity": 10, "total_mass_kg": 147.969, "total_mass_lb": 326.216, "total_mass_tonnes": 0.14797, "formula": "mass = density x cross-section area x length" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-steel-weight-calculator.mdc copy prompt ```text --- description: MiniWebtool Steel Weight Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Steel Weight Calculator API ## The API **Steel Weight Calculator** — Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/steel-weight-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `shape` | str | no | one of: round_bar, square_bar, hex_bar, flat_bar, plate, round_pipe, square_tube, rect_tube, angle — round_bar \| square_bar \| hex_bar \| flat_bar \| plate \| round_pipe \| square_tube \| rect_tube \| angle (default `round_bar`) | | `material` | str | no | one of: mild_steel, stainless_304, stainless_316, alloy_steel, tool_steel, galvanized_steel, cast_iron, aluminum, brass, copper, custom — mild_steel \| stainless_304 \| stainless_316 \| alloy_steel \| tool_steel \| galvanized_steel \| cast_iron \| aluminum \| brass \| copper \| custom (default `mild_steel`) | | `custom_density` | float | None | no | Density in kg/m^3 (material=custom) | | `dim_a` | float | no | Primary dimension in mm: diameter, side, across-flats, or width (default `20.0`) | | `dim_b` | float | None | no | Second dimension in mm (rect_tube, angle) | | `thickness` | float | None | no | Thickness or wall in mm (flat_bar, plate, pipes, tubes, angle) | | `length_m` | float | no | Length per piece in meters (default `6.0`) | | `quantity` | int | no | (default `1`) | | `price_per_kg` | float | None | no | — | Example request body: ```json { "shape": "round_bar", "material": "mild_steel", "dim_a": 20, "length_m": 6, "quantity": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "steel-weight-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "shape": "round_bar", "material": "mild_steel", "density_kg_m3": 7850.0, "cross_section_mm2": 314.1593, "cross_section_formula": "A = pi*d^2/4 (dim_a = diameter)", "length_m": 6.0, "volume_per_piece_m3": 0.00188496, "mass_per_piece_kg": 14.7969, "mass_per_piece_lb": 32.6216, "mass_per_meter_kg": 2.4662, "quantity": 10, "total_mass_kg": 147.969, "total_mass_lb": 326.216, "total_mass_tonnes": 0.14797, "formula": "mass = density x cross-section area x length" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `steel-weight-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `steel-weight-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call steel-weight-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/steel-weight-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Steel Weight Calculator API do? + Weight of steel and other metal bars, plates, pipes, tubes, and angles from shape dimensions, density, and quantity. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Steel Weight Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Steel Weight Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Steel Weight Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Steel Weight Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `steel-weight-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`steel-weight-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"steel-weight-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Tile Calculator API # Tile Calculator API construction 1 credit / call v2026-04-22 Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. One POST adds Tile Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Tile Calculator on miniwebtool.com →](https://miniwebtool.com/tile-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/tile-calculator/run ``` ### Request body Field Type Req. `project_type` floor | wall `str` — `unit_system` imperial | metric `str` — `layout_pattern` straight | brick | diagonal | herringbone `str` — `room_length` `float` — `room_width` `float | None` — `wall_height` `float | None` — `tile_length` `float` — `tile_width` `float` — `grout_width` `float` — `waste_percentage` `float` — `tiles_per_box` `int` — `tile_price` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "tile-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → project_type (str) floor wall floor | wall unit_system (str) imperial metric imperial | metric layout_pattern (str) straight brick diagonal herringbone straight | brick | diagonal | herringbone room_length (float) room_width (float | None) wall_height (float | None) tile_length (float) tile_width (float) grout_width (float) waste_percentage (float) tiles_per_box (int) tile_price (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`tile-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/tile-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"project_type":"floor","unit_system":"imperial","layout_pattern":"straight","room_length":12,"room_width":10,"tile_length":12,"tile_width":12,"grout_width":0.125,"waste_percentage":10,"tiles_per_box":10,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/tile-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'project_type': 'floor', 'unit_system': 'imperial', 'layout_pattern': 'straight', 'room_length': 12, 'room_width': 10, 'tile_length': 12, 'tile_width': 12, 'grout_width': 0.125, 'waste_percentage': 10, 'tiles_per_box': 10, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/tile-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"project_type":"floor","unit_system":"imperial","layout_pattern":"straight","room_length":12,"room_width":10,"tile_length":12,"tile_width":12,"grout_width":0.125,"waste_percentage":10,"tiles_per_box":10,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'project_type' => 'floor', 'unit_system' => 'imperial', 'layout_pattern' => 'straight', 'room_length' => 12, 'room_width' => 10, 'tile_length' => 12, 'tile_width' => 12, 'grout_width' => 0.125, 'waste_percentage' => 10, 'tiles_per_box' => 10, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/tile-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'project_type' => 'floor', 'unit_system' => 'imperial', 'layout_pattern' => 'straight', 'room_length' => 12, 'room_width' => 10, 'tile_length' => 12, 'tile_width' => 12, 'grout_width' => 0.125, 'waste_percentage' => 10, 'tiles_per_box' => 10, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "room_length": 12, "room_width": 10, "tile_length": 12, "tile_width": 12, "grout_width": 0.125, "waste_percentage": 10, "tiles_per_box": 10, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/tile-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/tile-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"project_type\":\"floor\",\"unit_system\":\"imperial\",\"layout_pattern\":\"straight\",\"room_length\":12,\"room_width\":10,\"tile_length\":12,\"tile_width\":12,\"grout_width\":0.125,\"waste_percentage\":10,\"tiles_per_box\":10,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`tile-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/tile-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/tile-calculator/prompt.md`](/tools/tile-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Tile Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Tile Calculator** — Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/tile-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/tile-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `project_type` | str | no | one of: floor, wall — floor \| wall (default `floor`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `layout_pattern` | str | no | one of: straight, brick, diagonal, herringbone — straight \| brick \| diagonal \| herringbone (default `straight`) | | `room_length` | float | no | (default `12.0`) | | `room_width` | float | None | no | (default `10.0`) | | `wall_height` | float | None | no | — | | `tile_length` | float | no | (default `12.0`) | | `tile_width` | float | no | (default `12.0`) | | `grout_width` | float | no | (default `0.125`) | | `waste_percentage` | float | no | (default `10.0`) | | `tiles_per_box` | int | no | (default `10`) | | `tile_price` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "room_length": 12, "room_width": 10, "tile_length": 12, "tile_width": 12, "grout_width": 0.125, "waste_percentage": 10, "tiles_per_box": 10, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "tile-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "total_area_sqft": 120.0, "total_area_sqm": 11.15, "tile_area_sqft": 1.0, "tiles_needed_exact": 120.0, "base_waste_percent": 10.0, "pattern_extra_waste_percent": 0.0, "total_waste_percent": 10.0, "tiles_to_order": 132, "waste_tiles": 12, "boxes_needed": 14, "tiles_per_box": 10, "total_cost": null, "grout_lbs": 1, "grout_kg": 0.5, "adhesive_type": "Thinset Mortar", "adhesive_bags": 2, "sealer_oz": 16, "sealer_ml": 473.0, "recommended_extra_tiles": 3 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Tile Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Tile Calculator** — Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/tile-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/tile-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `project_type` | str | no | one of: floor, wall — floor \| wall (default `floor`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `layout_pattern` | str | no | one of: straight, brick, diagonal, herringbone — straight \| brick \| diagonal \| herringbone (default `straight`) | | `room_length` | float | no | (default `12.0`) | | `room_width` | float | None | no | (default `10.0`) | | `wall_height` | float | None | no | — | | `tile_length` | float | no | (default `12.0`) | | `tile_width` | float | no | (default `12.0`) | | `grout_width` | float | no | (default `0.125`) | | `waste_percentage` | float | no | (default `10.0`) | | `tiles_per_box` | int | no | (default `10`) | | `tile_price` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "room_length": 12, "room_width": 10, "tile_length": 12, "tile_width": 12, "grout_width": 0.125, "waste_percentage": 10, "tiles_per_box": 10, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "tile-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "total_area_sqft": 120.0, "total_area_sqm": 11.15, "tile_area_sqft": 1.0, "tiles_needed_exact": 120.0, "base_waste_percent": 10.0, "pattern_extra_waste_percent": 0.0, "total_waste_percent": 10.0, "tiles_to_order": 132, "waste_tiles": 12, "boxes_needed": 14, "tiles_per_box": 10, "total_cost": null, "grout_lbs": 1, "grout_kg": 0.5, "adhesive_type": "Thinset Mortar", "adhesive_bags": 2, "sealer_oz": 16, "sealer_ml": 473.0, "recommended_extra_tiles": 3 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-tile-calculator.mdc copy prompt ```text --- description: MiniWebtool Tile Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Tile Calculator API ## The API **Tile Calculator** — Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/tile-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/tile-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `project_type` | str | no | one of: floor, wall — floor \| wall (default `floor`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `layout_pattern` | str | no | one of: straight, brick, diagonal, herringbone — straight \| brick \| diagonal \| herringbone (default `straight`) | | `room_length` | float | no | (default `12.0`) | | `room_width` | float | None | no | (default `10.0`) | | `wall_height` | float | None | no | — | | `tile_length` | float | no | (default `12.0`) | | `tile_width` | float | no | (default `12.0`) | | `grout_width` | float | no | (default `0.125`) | | `waste_percentage` | float | no | (default `10.0`) | | `tiles_per_box` | int | no | (default `10`) | | `tile_price` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "room_length": 12, "room_width": 10, "tile_length": 12, "tile_width": 12, "grout_width": 0.125, "waste_percentage": 10, "tiles_per_box": 10, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "tile-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "project_type": "floor", "unit_system": "imperial", "layout_pattern": "straight", "total_area_sqft": 120.0, "total_area_sqm": 11.15, "tile_area_sqft": 1.0, "tiles_needed_exact": 120.0, "base_waste_percent": 10.0, "pattern_extra_waste_percent": 0.0, "total_waste_percent": 10.0, "tiles_to_order": 132, "waste_tiles": 12, "boxes_needed": 14, "tiles_per_box": 10, "total_cost": null, "grout_lbs": 1, "grout_kg": 0.5, "adhesive_type": "Thinset Mortar", "adhesive_bags": 2, "sealer_oz": 16, "sealer_ml": 473.0, "recommended_extra_tiles": 3 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `tile-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `tile-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call tile-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/tile-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Tile Calculator API do? + Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Tile Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Tile Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Tile Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Tile Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `tile-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`tile-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"tile-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) [ Board Foot Calculator Calculate lumber volume in board feet, cubic volume, weight, and optional cost. ](/tools/board-foot-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Wallpaper Calculator API # Wallpaper Calculator API construction 1 credit / call v2026-04-22 Estimate wallpaper drops, rolls, waste, coverage, and optional cost. One POST adds Wallpaper Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Wallpaper Calculator on miniwebtool.com →](https://miniwebtool.com/wallpaper-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run ``` ### Request body Field Type Req. `unit_system` imperial | metric `str` — `wall_height` `float` — `total_width` `float` — `door_window_area` `float` — `roll_width` `float` — `roll_length` `float` — `pattern_repeat` `float` — `waste_factor` `float` — `price_per_roll` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "wallpaper-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unit_system (str) imperial metric imperial | metric wall_height (float) total_width (float) door_window_area (float) roll_width (float) roll_length (float) pattern_repeat (float) waste_factor (float) price_per_roll (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`wallpaper-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"unit_system":"imperial","wall_height":8,"total_width":40,"door_window_area":20,"roll_width":20.5,"roll_length":33,"pattern_repeat":0,"waste_factor":10,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'unit_system': 'imperial', 'wall_height': 8, 'total_width': 40, 'door_window_area': 20, 'roll_width': 20.5, 'roll_length': 33, 'pattern_repeat': 0, 'waste_factor': 10, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"unit_system":"imperial","wall_height":8,"total_width":40,"door_window_area":20,"roll_width":20.5,"roll_length":33,"pattern_repeat":0,"waste_factor":10,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'unit_system' => 'imperial', 'wall_height' => 8, 'total_width' => 40, 'door_window_area' => 20, 'roll_width' => 20.5, 'roll_length' => 33, 'pattern_repeat' => 0, 'waste_factor' => 10, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'unit_system' => 'imperial', 'wall_height' => 8, 'total_width' => 40, 'door_window_area' => 20, 'roll_width' => 20.5, 'roll_length' => 33, 'pattern_repeat' => 0, 'waste_factor' => 10, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "unit_system": "imperial", "wall_height": 8, "total_width": 40, "door_window_area": 20, "roll_width": 20.5, "roll_length": 33, "pattern_repeat": 0, "waste_factor": 10, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"unit_system\":\"imperial\",\"wall_height\":8,\"total_width\":40,\"door_window_area\":20,\"roll_width\":20.5,\"roll_length\":33,\"pattern_repeat\":0,\"waste_factor\":10,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`wallpaper-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/wallpaper-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/wallpaper-calculator/prompt.md`](/tools/wallpaper-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Wallpaper Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Wallpaper Calculator** — Estimate wallpaper drops, rolls, waste, coverage, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `wall_height` | float | no | (default `8.0`) | | `total_width` | float | no | (default `40.0`) | | `door_window_area` | float | no | (default `20.0`) | | `roll_width` | float | no | (default `20.5`) | | `roll_length` | float | no | (default `33.0`) | | `pattern_repeat` | float | no | (default `0.0`) | | `waste_factor` | float | no | (default `10.0`) | | `price_per_roll` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "unit_system": "imperial", "wall_height": 8, "total_width": 40, "door_window_area": 20, "roll_width": 20.5, "roll_length": 33, "pattern_repeat": 0, "waste_factor": 10, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wallpaper-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "area_unit": "sqft", "total_area": 320.0, "net_area": 300.0, "door_window_area": 20.0, "roll_width_linear": 1.71, "roll_length": 33.0, "pattern_repeat_linear": 0.0, "coverage_per_roll": 56.38, "drops_needed": 24, "drops_per_roll": 4, "rolls_needed": 6, "rolls_with_waste": 7, "waste_percent": 10.0, "has_pattern": false, "total_cost": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Wallpaper Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Wallpaper Calculator** — Estimate wallpaper drops, rolls, waste, coverage, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `wall_height` | float | no | (default `8.0`) | | `total_width` | float | no | (default `40.0`) | | `door_window_area` | float | no | (default `20.0`) | | `roll_width` | float | no | (default `20.5`) | | `roll_length` | float | no | (default `33.0`) | | `pattern_repeat` | float | no | (default `0.0`) | | `waste_factor` | float | no | (default `10.0`) | | `price_per_roll` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "unit_system": "imperial", "wall_height": 8, "total_width": 40, "door_window_area": 20, "roll_width": 20.5, "roll_length": 33, "pattern_repeat": 0, "waste_factor": 10, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wallpaper-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "area_unit": "sqft", "total_area": 320.0, "net_area": 300.0, "door_window_area": 20.0, "roll_width_linear": 1.71, "roll_length": 33.0, "pattern_repeat_linear": 0.0, "coverage_per_roll": 56.38, "drops_needed": 24, "drops_per_roll": 4, "rolls_needed": 6, "rolls_with_waste": 7, "waste_percent": 10.0, "has_pattern": false, "total_cost": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-wallpaper-calculator.mdc copy prompt ```text --- description: MiniWebtool Wallpaper Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Wallpaper Calculator API ## The API **Wallpaper Calculator** — Estimate wallpaper drops, rolls, waste, coverage, and optional cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wallpaper-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `wall_height` | float | no | (default `8.0`) | | `total_width` | float | no | (default `40.0`) | | `door_window_area` | float | no | (default `20.0`) | | `roll_width` | float | no | (default `20.5`) | | `roll_length` | float | no | (default `33.0`) | | `pattern_repeat` | float | no | (default `0.0`) | | `waste_factor` | float | no | (default `10.0`) | | `price_per_roll` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "unit_system": "imperial", "wall_height": 8, "total_width": 40, "door_window_area": 20, "roll_width": 20.5, "roll_length": 33, "pattern_repeat": 0, "waste_factor": 10, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wallpaper-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "area_unit": "sqft", "total_area": 320.0, "net_area": 300.0, "door_window_area": 20.0, "roll_width_linear": 1.71, "roll_length": 33.0, "pattern_repeat_linear": 0.0, "coverage_per_roll": 56.38, "drops_needed": 24, "drops_per_roll": 4, "rolls_needed": 6, "rolls_with_waste": 7, "waste_percent": 10.0, "has_pattern": false, "total_cost": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `wallpaper-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `wallpaper-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call wallpaper-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/wallpaper-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Wallpaper Calculator API do? + Estimate wallpaper drops, rolls, waste, coverage, and optional cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Wallpaper Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Wallpaper Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Wallpaper Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Wallpaper Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `wallpaper-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`wallpaper-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"wallpaper-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Board Foot Calculator Calculate lumber volume in board feet, cubic volume, weight, and optional cost. ](/tools/board-foot-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Roof Pitch Calculator API # Roof Pitch Calculator API construction 1 credit / call v2026-04-22 Calculate roof pitch, angle, slope percent, and rafter multiplier. One POST adds Roof Pitch Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Roof Pitch Calculator on miniwebtool.com →](https://miniwebtool.com/roof-pitch-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run ``` ### Request body Field Type Req. `rise` `float` — `run` `float` — `unit` `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "roof-pitch-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → rise (float) run (float) unit (str) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`roof-pitch-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`roof-pitch-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/roof-pitch-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/roof-pitch-calculator/prompt.md`](/tools/roof-pitch-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Roof Pitch Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Roof Pitch Calculator** — Calculate roof pitch, angle, slope percent, and rafter multiplier. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rise` | float | no | (default `6`) | | `run` | float | no | (default `12`) | | `unit` | str | no | (default `in`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "roof-pitch-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "rise": 6.0, "run": 12.0, "unit": "in", "pitch_per_12": 6.0, "pitch_ratio": "6:12", "angle_degrees": 26.5651, "slope_percent": 50.0, "rafter_length_per_run": 1.118, "chart_data": { "triangle": [ { "label": "Run", "value": 12.0 }, { "label": "Rise", "value": 6.0 }, { "label": "Rafter", "value": 13.4164 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Roof Pitch Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Roof Pitch Calculator** — Calculate roof pitch, angle, slope percent, and rafter multiplier. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rise` | float | no | (default `6`) | | `run` | float | no | (default `12`) | | `unit` | str | no | (default `in`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "roof-pitch-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "rise": 6.0, "run": 12.0, "unit": "in", "pitch_per_12": 6.0, "pitch_ratio": "6:12", "angle_degrees": 26.5651, "slope_percent": 50.0, "rafter_length_per_run": 1.118, "chart_data": { "triangle": [ { "label": "Run", "value": 12.0 }, { "label": "Rise", "value": 6.0 }, { "label": "Rafter", "value": 13.4164 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-roof-pitch-calculator.mdc copy prompt ```text --- description: MiniWebtool Roof Pitch Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Roof Pitch Calculator API ## The API **Roof Pitch Calculator** — Calculate roof pitch, angle, slope percent, and rafter multiplier. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rise` | float | no | (default `6`) | | `run` | float | no | (default `12`) | | `unit` | str | no | (default `in`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "roof-pitch-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "rise": 6.0, "run": 12.0, "unit": "in", "pitch_per_12": 6.0, "pitch_ratio": "6:12", "angle_degrees": 26.5651, "slope_percent": 50.0, "rafter_length_per_run": 1.118, "chart_data": { "triangle": [ { "label": "Run", "value": 12.0 }, { "label": "Rise", "value": 6.0 }, { "label": "Rafter", "value": 13.4164 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `roof-pitch-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `roof-pitch-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call roof-pitch-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/roof-pitch-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Roof Pitch Calculator API do? + Calculate roof pitch, angle, slope percent, and rafter multiplier. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Roof Pitch Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Roof Pitch Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Roof Pitch Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Roof Pitch Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `roof-pitch-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`roof-pitch-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"roof-pitch-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Beam Load Calculator API # Beam Load Calculator API construction 1 credit / call v2026-04-22 Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. One POST adds Beam Load Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Beam Load Calculator on miniwebtool.com →](https://miniwebtool.com/beam-load-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/run ``` ### Request body Field Type Req. `config` ss_udl | ss_center | ss_two_thirds | cant_udl | cant_end | fix_udl | fix_center `str` — `span_m` `float` — `udl_kn_m` Uniform load in kN/m (UDL configs) `float | None` — `point_load_kn` Point load in kN (point-load configs) `float | None` — `elastic_modulus_gpa` E, e.g. steel 200, aluminum 69, timber ~11 `float` — `moment_of_inertia_cm4` `float` — `section_modulus_cm3` `float` — `allowable_stress_mpa` `float` — `deflection_limit` Span/ratio serviceability limit, e.g. 360 for L/360 `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "beam-load-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → config (str) ss_udl ss_center ss_two_thirds cant_udl cant_end fix_udl fix_center ss_udl | ss_center | ss_two_thirds | cant_udl | cant_end | fix_udl | fix_center span_m (float) udl_kn_m (float | None) Uniform load in kN/m (UDL configs) point_load_kn (float | None) Point load in kN (point-load configs) elastic_modulus_gpa (float) E, e.g. steel 200, aluminum 69, timber ~11 moment_of_inertia_cm4 (float) section_modulus_cm3 (float) allowable_stress_mpa (float) deflection_limit (int) Span/ratio serviceability limit, e.g. 360 for L/360 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`beam-load-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"config":"ss_udl","span_m":4,"udl_kn_m":5,"moment_of_inertia_cm4":3540,"section_modulus_cm3":354}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/beam-load-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'config': 'ss_udl', 'span_m': 4, 'udl_kn_m': 5, 'moment_of_inertia_cm4': 3540, 'section_modulus_cm3': 354}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/beam-load-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"config":"ss_udl","span_m":4,"udl_kn_m":5,"moment_of_inertia_cm4":3540,"section_modulus_cm3":354}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'config' => 'ss_udl', 'span_m' => 4, 'udl_kn_m' => 5, 'moment_of_inertia_cm4' => 3540, 'section_modulus_cm3' => 354 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/beam-load-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'config' => 'ss_udl', 'span_m' => 4, 'udl_kn_m' => 5, 'moment_of_inertia_cm4' => 3540, 'section_modulus_cm3' => 354 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "config": "ss_udl", "span_m": 4, "udl_kn_m": 5, "moment_of_inertia_cm4": 3540, "section_modulus_cm3": 354, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/beam-load-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/beam-load-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"config\":\"ss_udl\",\"span_m\":4,\"udl_kn_m\":5,\"moment_of_inertia_cm4\":3540,\"section_modulus_cm3\":354}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`beam-load-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/beam-load-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/beam-load-calculator/prompt.md`](/tools/beam-load-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Beam Load Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Beam Load Calculator** — Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `config` | str | no | one of: ss_udl, ss_center, ss_two_thirds, cant_udl, cant_end, fix_udl, fix_center — ss_udl \| ss_center \| ss_two_thirds \| cant_udl \| cant_end \| fix_udl \| fix_center (default `ss_udl`) | | `span_m` | float | no | (default `4.0`) | | `udl_kn_m` | float | None | no | Uniform load in kN/m (UDL configs) (default `5.0`) | | `point_load_kn` | float | None | no | Point load in kN (point-load configs) | | `elastic_modulus_gpa` | float | no | E, e.g. steel 200, aluminum 69, timber ~11 (default `200.0`) | | `moment_of_inertia_cm4` | float | no | (default `3540.0`) | | `section_modulus_cm3` | float | no | (default `354.0`) | | `allowable_stress_mpa` | float | no | (default `165.0`) | | `deflection_limit` | int | no | Span/ratio serviceability limit, e.g. 360 for L/360 (default `360`) | Example request body: ```json { "config": "ss_udl", "span_m": 4, "udl_kn_m": 5, "moment_of_inertia_cm4": 3540, "section_modulus_cm3": 354 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "beam-load-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "config": "ss_udl", "config_label": "Simply supported - uniform load", "span_m": 4.0, "udl_kn_m": 5.0, "elastic_modulus_gpa": 200.0, "moment_of_inertia_cm4": 3540.0, "section_modulus_cm3": 354.0, "max_bending_moment_kn_m": 10.0, "max_shear_kn": 10.0, "max_deflection_mm": 2.354, "allowable_deflection_mm": 11.1111, "bending_stress_mpa": 28.2486, "allowable_stress_mpa": 165.0, "stress_utilization": 0.1712, "deflection_utilization": 0.2119, "governing_check": "deflection", "passes": true, "allowable_load": { "max_udl_by_strength_kn_m": 29.205, "max_udl_by_deflection_kn_m": 23.6, "max_udl_kn_m": 23.6 }, "formulas": "UDL: M=kM*w*L^2, d=kd*w*L^4/(EI); point: M=kM*P*L, d=kd*P*L^3/(EI) (AISC Table 3-23 coefficients)" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Beam Load Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Beam Load Calculator** — Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `config` | str | no | one of: ss_udl, ss_center, ss_two_thirds, cant_udl, cant_end, fix_udl, fix_center — ss_udl \| ss_center \| ss_two_thirds \| cant_udl \| cant_end \| fix_udl \| fix_center (default `ss_udl`) | | `span_m` | float | no | (default `4.0`) | | `udl_kn_m` | float | None | no | Uniform load in kN/m (UDL configs) (default `5.0`) | | `point_load_kn` | float | None | no | Point load in kN (point-load configs) | | `elastic_modulus_gpa` | float | no | E, e.g. steel 200, aluminum 69, timber ~11 (default `200.0`) | | `moment_of_inertia_cm4` | float | no | (default `3540.0`) | | `section_modulus_cm3` | float | no | (default `354.0`) | | `allowable_stress_mpa` | float | no | (default `165.0`) | | `deflection_limit` | int | no | Span/ratio serviceability limit, e.g. 360 for L/360 (default `360`) | Example request body: ```json { "config": "ss_udl", "span_m": 4, "udl_kn_m": 5, "moment_of_inertia_cm4": 3540, "section_modulus_cm3": 354 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "beam-load-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "config": "ss_udl", "config_label": "Simply supported - uniform load", "span_m": 4.0, "udl_kn_m": 5.0, "elastic_modulus_gpa": 200.0, "moment_of_inertia_cm4": 3540.0, "section_modulus_cm3": 354.0, "max_bending_moment_kn_m": 10.0, "max_shear_kn": 10.0, "max_deflection_mm": 2.354, "allowable_deflection_mm": 11.1111, "bending_stress_mpa": 28.2486, "allowable_stress_mpa": 165.0, "stress_utilization": 0.1712, "deflection_utilization": 0.2119, "governing_check": "deflection", "passes": true, "allowable_load": { "max_udl_by_strength_kn_m": 29.205, "max_udl_by_deflection_kn_m": 23.6, "max_udl_kn_m": 23.6 }, "formulas": "UDL: M=kM*w*L^2, d=kd*w*L^4/(EI); point: M=kM*P*L, d=kd*P*L^3/(EI) (AISC Table 3-23 coefficients)" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-beam-load-calculator.mdc copy prompt ```text --- description: MiniWebtool Beam Load Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Beam Load Calculator API ## The API **Beam Load Calculator** — Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/beam-load-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `config` | str | no | one of: ss_udl, ss_center, ss_two_thirds, cant_udl, cant_end, fix_udl, fix_center — ss_udl \| ss_center \| ss_two_thirds \| cant_udl \| cant_end \| fix_udl \| fix_center (default `ss_udl`) | | `span_m` | float | no | (default `4.0`) | | `udl_kn_m` | float | None | no | Uniform load in kN/m (UDL configs) (default `5.0`) | | `point_load_kn` | float | None | no | Point load in kN (point-load configs) | | `elastic_modulus_gpa` | float | no | E, e.g. steel 200, aluminum 69, timber ~11 (default `200.0`) | | `moment_of_inertia_cm4` | float | no | (default `3540.0`) | | `section_modulus_cm3` | float | no | (default `354.0`) | | `allowable_stress_mpa` | float | no | (default `165.0`) | | `deflection_limit` | int | no | Span/ratio serviceability limit, e.g. 360 for L/360 (default `360`) | Example request body: ```json { "config": "ss_udl", "span_m": 4, "udl_kn_m": 5, "moment_of_inertia_cm4": 3540, "section_modulus_cm3": 354 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "beam-load-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "config": "ss_udl", "config_label": "Simply supported - uniform load", "span_m": 4.0, "udl_kn_m": 5.0, "elastic_modulus_gpa": 200.0, "moment_of_inertia_cm4": 3540.0, "section_modulus_cm3": 354.0, "max_bending_moment_kn_m": 10.0, "max_shear_kn": 10.0, "max_deflection_mm": 2.354, "allowable_deflection_mm": 11.1111, "bending_stress_mpa": 28.2486, "allowable_stress_mpa": 165.0, "stress_utilization": 0.1712, "deflection_utilization": 0.2119, "governing_check": "deflection", "passes": true, "allowable_load": { "max_udl_by_strength_kn_m": 29.205, "max_udl_by_deflection_kn_m": 23.6, "max_udl_kn_m": 23.6 }, "formulas": "UDL: M=kM*w*L^2, d=kd*w*L^4/(EI); point: M=kM*P*L, d=kd*P*L^3/(EI) (AISC Table 3-23 coefficients)" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `beam-load-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `beam-load-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call beam-load-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/beam-load-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Beam Load Calculator API do? + Beam bending moment, shear, stress, and deflection for common support/load cases with strength and serviceability checks. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Beam Load Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Beam Load Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Beam Load Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Beam Load Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `beam-load-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`beam-load-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"beam-load-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [construction](/tools/#construction) - / - Rebar Calculator API # Rebar Calculator API construction 1 credit / call v2026-04-22 Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. One POST adds Rebar Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Rebar Calculator on miniwebtool.com →](https://miniwebtool.com/rebar-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/rebar-calculator/run ``` ### Request body Field Type Req. `slab_length` `float` ✓ `slab_width` `float` ✓ `rebar_size` 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 `str` — `unit_system` imperial | metric `str` — `spacing` `float` — `cover` `float` — `bar_length` `float` — `direction` both | length | width `str` — `waste_pct` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "rebar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → slab_length (float) * slab_width (float) * rebar_size (str) 3 4 5 6 7 8 9 10 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 unit_system (str) imperial metric imperial | metric spacing (float) cover (float) bar_length (float) direction (str) both length width both | length | width waste_pct (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`rebar-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/rebar-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"slab_length":20,"slab_width":15,"rebar_size":"4","unit_system":"imperial","spacing":12,"cover":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/rebar-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'slab_length': 20, 'slab_width': 15, 'rebar_size': '4', 'unit_system': 'imperial', 'spacing': 12, 'cover': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/rebar-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"slab_length":20,"slab_width":15,"rebar_size":"4","unit_system":"imperial","spacing":12,"cover":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'slab_length' => 20, 'slab_width' => 15, 'rebar_size' => '4', 'unit_system' => 'imperial', 'spacing' => 12, 'cover' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/rebar-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'slab_length' => 20, 'slab_width' => 15, 'rebar_size' => '4', 'unit_system' => 'imperial', 'spacing' => 12, 'cover' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "slab_length": 20, "slab_width": 15, "rebar_size": "4", "unit_system": "imperial", "spacing": 12, "cover": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/rebar-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/rebar-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"slab_length\":20,\"slab_width\":15,\"rebar_size\":\"4\",\"unit_system\":\"imperial\",\"spacing\":12,\"cover\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`rebar-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/rebar-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/rebar-calculator/prompt.md`](/tools/rebar-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Rebar Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Rebar Calculator** — Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rebar-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rebar-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `slab_length` | float | yes | — | | `slab_width` | float | yes | — | | `rebar_size` | str | no | one of: 3, 4, 5, 6, 7, 8, 9, 10 — 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 (default `4`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `spacing` | float | no | (default `12.0`) | | `cover` | float | no | (default `2.0`) | | `bar_length` | float | no | (default `20.0`) | | `direction` | str | no | one of: both, length, width — both \| length \| width (default `both`) | | `waste_pct` | float | no | (default `10.0`) | Example request body: ```json { "slab_length": 20, "slab_width": 15, "rebar_size": "4", "unit_system": "imperial", "spacing": 12, "cover": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rebar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "rebar_size": "#4", "direction": "both", "n_long": 15, "n_short": 20, "total_bars": 35, "total_linear": 588.33, "lap_splices": 0, "total_with_waste": 647.17, "linear_unit": "ft", "std_bars_needed": 33, "total_weight": 432.31, "weight_unit": "lbs" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Rebar Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Rebar Calculator** — Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rebar-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rebar-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `slab_length` | float | yes | — | | `slab_width` | float | yes | — | | `rebar_size` | str | no | one of: 3, 4, 5, 6, 7, 8, 9, 10 — 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 (default `4`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `spacing` | float | no | (default `12.0`) | | `cover` | float | no | (default `2.0`) | | `bar_length` | float | no | (default `20.0`) | | `direction` | str | no | one of: both, length, width — both \| length \| width (default `both`) | | `waste_pct` | float | no | (default `10.0`) | Example request body: ```json { "slab_length": 20, "slab_width": 15, "rebar_size": "4", "unit_system": "imperial", "spacing": 12, "cover": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rebar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "rebar_size": "#4", "direction": "both", "n_long": 15, "n_short": 20, "total_bars": 35, "total_linear": 588.33, "lap_splices": 0, "total_with_waste": 647.17, "linear_unit": "ft", "std_bars_needed": 33, "total_weight": 432.31, "weight_unit": "lbs" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-rebar-calculator.mdc copy prompt ```text --- description: MiniWebtool Rebar Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Rebar Calculator API ## The API **Rebar Calculator** — Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rebar-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rebar-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `slab_length` | float | yes | — | | `slab_width` | float | yes | — | | `rebar_size` | str | no | one of: 3, 4, 5, 6, 7, 8, 9, 10 — 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 (default `4`) | | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `spacing` | float | no | (default `12.0`) | | `cover` | float | no | (default `2.0`) | | `bar_length` | float | no | (default `20.0`) | | `direction` | str | no | one of: both, length, width — both \| length \| width (default `both`) | | `waste_pct` | float | no | (default `10.0`) | Example request body: ```json { "slab_length": 20, "slab_width": 15, "rebar_size": "4", "unit_system": "imperial", "spacing": 12, "cover": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rebar-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "rebar_size": "#4", "direction": "both", "n_long": 15, "n_short": 20, "total_bars": 35, "total_linear": 588.33, "lap_splices": 0, "total_with_waste": 647.17, "linear_unit": "ft", "std_bars_needed": 33, "total_weight": 432.31, "weight_unit": "lbs" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `rebar-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `rebar-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call rebar-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`slab_length`,`slab_width`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/rebar-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Rebar Calculator API do? + Rebar bar count, total linear footage, and weight for a concrete slab grid, sizes #3-#10 with cover and waste allowance. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Rebar Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Rebar Calculator API require? + Required fields: slab_length, slab_width. Full schema at /v1/openapi.json. Is the Rebar Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Rebar Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `rebar-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`rebar-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"rebar-calculator"}}}' \ | jq.result.structuredContent ``` see-also related construction tools [ Carpet Calculator Estimate carpet area, waste, roll length, padding, installation, and cost. ](/tools/carpet-calculator/) [ Decking Calculator Estimate decking boards, joists, beams, posts, fasteners, and waste. ](/tools/decking-calculator/) [ Tile Calculator Estimate tile count, boxes, grout, adhesive, sealer, waste, and optional cost. ](/tools/tile-calculator/) [ Wallpaper Calculator Estimate wallpaper drops, rolls, waste, coverage, and optional cost. ](/tools/wallpaper-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Square Feet to Square Meters Converter API # Square Feet to Square Meters Converter API conversion 1 credit / call v2026-04-22 Convert square feet and square meters with exact international-foot conversion. One POST adds Square Feet to Square Meters Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Square Feet to Square Meters Converter on miniwebtool.com →](https://miniwebtool.com/square-feet-to-square-meters/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run ``` ### Request body Field Type Req. `direction` ft2_to_m2 | m2_to_ft2 `str` — `area` area to convert `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "square-feet-to-square-meters", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) ft2_to_m2 m2_to_ft2 ft2_to_m2 | m2_to_ft2 area (float) area to convert Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`square-feet-to-square-meters`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"ft2_to_m2","area":100}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'ft2_to_m2', 'area': 100}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"ft2_to_m2","area":100}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'ft2_to_m2', 'area' => 100 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'ft2_to_m2', 'area' => 100 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "ft2_to_m2", "area": 100, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"ft2_to_m2\",\"area\":100}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`square-feet-to-square-meters`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/square-feet-to-square-meters/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/square-feet-to-square-meters/prompt.md`](/tools/square-feet-to-square-meters/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Square Feet to Square Meters Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Square Feet to Square Meters Converter** — Convert square feet and square meters with exact international-foot conversion. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: ft2_to_m2, m2_to_ft2 — ft2_to_m2 \| m2_to_ft2 (default `ft2_to_m2`) | | `area` | float | no | area to convert (default `100`) | Example request body: ```json { "direction": "ft2_to_m2", "area": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "square-feet-to-square-meters", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "ft2_to_m2", "input_area": 100.0, "output_area": 9.290304, "output_unit": "m²", "square_feet": 100.0, "square_meters": 9.290304 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Square Feet to Square Meters Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Square Feet to Square Meters Converter** — Convert square feet and square meters with exact international-foot conversion. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: ft2_to_m2, m2_to_ft2 — ft2_to_m2 \| m2_to_ft2 (default `ft2_to_m2`) | | `area` | float | no | area to convert (default `100`) | Example request body: ```json { "direction": "ft2_to_m2", "area": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "square-feet-to-square-meters", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "ft2_to_m2", "input_area": 100.0, "output_area": 9.290304, "output_unit": "m²", "square_feet": 100.0, "square_meters": 9.290304 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-square-feet-to-square-meters.mdc copy prompt ```text --- description: MiniWebtool Square Feet to Square Meters Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Square Feet to Square Meters Converter API ## The API **Square Feet to Square Meters Converter** — Convert square feet and square meters with exact international-foot conversion. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: ft2_to_m2, m2_to_ft2 — ft2_to_m2 \| m2_to_ft2 (default `ft2_to_m2`) | | `area` | float | no | area to convert (default `100`) | Example request body: ```json { "direction": "ft2_to_m2", "area": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "square-feet-to-square-meters", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "ft2_to_m2", "input_area": 100.0, "output_area": 9.290304, "output_unit": "m²", "square_feet": 100.0, "square_meters": 9.290304 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `square-feet-to-square-meters` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `square-feet-to-square-meters` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call square-feet-to-square-meters - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/square-feet-to-square-meters/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Square Feet to Square Meters Converter API do? + Convert square feet and square meters with exact international-foot conversion. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Square Feet to Square Meters Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Square Feet to Square Meters Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Square Feet to Square Meters Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Square Feet to Square Meters Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `square-feet-to-square-meters` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`square-feet-to-square-meters`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"square-feet-to-square-meters"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Quarts to Cups Converter API # Quarts to Cups Converter API conversion 1 credit / call v2026-04-22 Convert US customary quarts and cups in either direction. One POST adds Quarts to Cups Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Quarts to Cups Converter on miniwebtool.com →](https://miniwebtool.com/quarts-to-cups-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run ``` ### Request body Field Type Req. `direction` quarts_to_cups | cups_to_quarts `str` — `volume` volume to convert `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "quarts-to-cups-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) quarts_to_cups cups_to_quarts quarts_to_cups | cups_to_quarts volume (float) volume to convert Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`quarts-to-cups-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"quarts_to_cups","volume":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'quarts_to_cups', 'volume': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"quarts_to_cups","volume":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'quarts_to_cups', 'volume' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'quarts_to_cups', 'volume' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "quarts_to_cups", "volume": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"quarts_to_cups\",\"volume\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`quarts-to-cups-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/quarts-to-cups-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/quarts-to-cups-converter/prompt.md`](/tools/quarts-to-cups-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Quarts to Cups Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Quarts to Cups Converter** — Convert US customary quarts and cups in either direction. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: quarts_to_cups, cups_to_quarts — quarts_to_cups \| cups_to_quarts (default `quarts_to_cups`) | | `volume` | float | no | volume to convert (default `2`) | Example request body: ```json { "direction": "quarts_to_cups", "volume": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "quarts-to-cups-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "quarts_to_cups", "input_volume": 2.0, "output_volume": 8.0, "output_unit": "cups", "quarts": 2.0, "cups": 8.0, "system": "US customary" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Quarts to Cups Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Quarts to Cups Converter** — Convert US customary quarts and cups in either direction. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: quarts_to_cups, cups_to_quarts — quarts_to_cups \| cups_to_quarts (default `quarts_to_cups`) | | `volume` | float | no | volume to convert (default `2`) | Example request body: ```json { "direction": "quarts_to_cups", "volume": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "quarts-to-cups-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "quarts_to_cups", "input_volume": 2.0, "output_volume": 8.0, "output_unit": "cups", "quarts": 2.0, "cups": 8.0, "system": "US customary" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-quarts-to-cups-converter.mdc copy prompt ```text --- description: MiniWebtool Quarts to Cups Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Quarts to Cups Converter API ## The API **Quarts to Cups Converter** — Convert US customary quarts and cups in either direction. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: quarts_to_cups, cups_to_quarts — quarts_to_cups \| cups_to_quarts (default `quarts_to_cups`) | | `volume` | float | no | volume to convert (default `2`) | Example request body: ```json { "direction": "quarts_to_cups", "volume": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "quarts-to-cups-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "quarts_to_cups", "input_volume": 2.0, "output_volume": 8.0, "output_unit": "cups", "quarts": 2.0, "cups": 8.0, "system": "US customary" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `quarts-to-cups-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `quarts-to-cups-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call quarts-to-cups-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/quarts-to-cups-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Quarts to Cups Converter API do? + Convert US customary quarts and cups in either direction. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Quarts to Cups Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Quarts to Cups Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Quarts to Cups Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Quarts to Cups Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `quarts-to-cups-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`quarts-to-cups-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"quarts-to-cups-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Fuel Efficiency Converter API # Fuel Efficiency Converter API conversion 1 credit / call v2026-04-22 Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. One POST adds Fuel Efficiency Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Fuel Efficiency Converter on miniwebtool.com →](https://miniwebtool.com/fuel-efficiency-converter-mpg-l-100km-km-l/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run ``` ### Request body Field Type Req. `value` `float` — `from_unit` mpg_us | mpg_uk | l_100km | km_l | mi_l `str` — `tank_size_l` `float | None` — `fuel_price_per_l` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fuel-efficiency-converter-mpg-l-100km-km-l", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) from_unit (str) mpg_us mpg_uk l_100km km_l mi_l mpg_us | mpg_uk | l_100km | km_l | mi_l tank_size_l (float | None) fuel_price_per_l (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fuel-efficiency-converter-mpg-l-100km-km-l`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"value":30,"from_unit":"mpg_us","tank_size_l":50,"fuel_price_per_l":1.5,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'value': 30, 'from_unit': 'mpg_us', 'tank_size_l': 50, 'fuel_price_per_l': 1.5, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"value":30,"from_unit":"mpg_us","tank_size_l":50,"fuel_price_per_l":1.5,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'value' => 30, 'from_unit' => 'mpg_us', 'tank_size_l' => 50, 'fuel_price_per_l' => 1.5, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'value' => 30, 'from_unit' => 'mpg_us', 'tank_size_l' => 50, 'fuel_price_per_l' => 1.5, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "value": 30, "from_unit": "mpg_us", "tank_size_l": 50, "fuel_price_per_l": 1.5, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"value\":30,\"from_unit\":\"mpg_us\",\"tank_size_l\":50,\"fuel_price_per_l\":1.5,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fuel-efficiency-converter-mpg-l-100km-km-l`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/fuel-efficiency-converter-mpg-l-100km-km-l/prompt.md`](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Fuel Efficiency Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fuel Efficiency Converter** — Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `30.0`) | | `from_unit` | str | no | one of: mpg_us, mpg_uk, l_100km, km_l, mi_l — mpg_us \| mpg_uk \| l_100km \| km_l \| mi_l (default `mpg_us`) | | `tank_size_l` | float | None | no | — | | `fuel_price_per_l` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "value": 30, "from_unit": "mpg_us", "tank_size_l": 50, "fuel_price_per_l": 1.5, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fuel-efficiency-converter-mpg-l-100km-km-l", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_value": 30.0, "input_unit": "mpg_us", "l_per_100km": 7.8405, "conversions": { "km_l": 12.7543, "l_100km": 7.8405, "mi_l": 7.9252, "mpg_uk": 36.0285, "mpg_us": 30.0 }, "efficiency_tier": "good", "co2_per_100km_kg": 18.1115, "co2_per_km_g": 181.1152, "tank_size_l": 50.0, "range_km": 637.7156, "range_miles": 396.2581, "fuel_price_per_l": 1.5, "cost_per_100km": 11.7607, "cost_per_km": 0.1176, "cost_per_mile": 0.1893, "cost_per_tank": 75.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Fuel Efficiency Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fuel Efficiency Converter** — Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `30.0`) | | `from_unit` | str | no | one of: mpg_us, mpg_uk, l_100km, km_l, mi_l — mpg_us \| mpg_uk \| l_100km \| km_l \| mi_l (default `mpg_us`) | | `tank_size_l` | float | None | no | — | | `fuel_price_per_l` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "value": 30, "from_unit": "mpg_us", "tank_size_l": 50, "fuel_price_per_l": 1.5, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fuel-efficiency-converter-mpg-l-100km-km-l", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_value": 30.0, "input_unit": "mpg_us", "l_per_100km": 7.8405, "conversions": { "km_l": 12.7543, "l_100km": 7.8405, "mi_l": 7.9252, "mpg_uk": 36.0285, "mpg_us": 30.0 }, "efficiency_tier": "good", "co2_per_100km_kg": 18.1115, "co2_per_km_g": 181.1152, "tank_size_l": 50.0, "range_km": 637.7156, "range_miles": 396.2581, "fuel_price_per_l": 1.5, "cost_per_100km": 11.7607, "cost_per_km": 0.1176, "cost_per_mile": 0.1893, "cost_per_tank": 75.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fuel-efficiency-converter-mpg-l-100km-km-l.mdc copy prompt ```text --- description: MiniWebtool Fuel Efficiency Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Fuel Efficiency Converter API ## The API **Fuel Efficiency Converter** — Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `30.0`) | | `from_unit` | str | no | one of: mpg_us, mpg_uk, l_100km, km_l, mi_l — mpg_us \| mpg_uk \| l_100km \| km_l \| mi_l (default `mpg_us`) | | `tank_size_l` | float | None | no | — | | `fuel_price_per_l` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "value": 30, "from_unit": "mpg_us", "tank_size_l": 50, "fuel_price_per_l": 1.5, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fuel-efficiency-converter-mpg-l-100km-km-l", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_value": 30.0, "input_unit": "mpg_us", "l_per_100km": 7.8405, "conversions": { "km_l": 12.7543, "l_100km": 7.8405, "mi_l": 7.9252, "mpg_uk": 36.0285, "mpg_us": 30.0 }, "efficiency_tier": "good", "co2_per_100km_kg": 18.1115, "co2_per_km_g": 181.1152, "tank_size_l": 50.0, "range_km": 637.7156, "range_miles": 396.2581, "fuel_price_per_l": 1.5, "cost_per_100km": 11.7607, "cost_per_km": 0.1176, "cost_per_mile": 0.1893, "cost_per_tank": 75.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fuel-efficiency-converter-mpg-l-100km-km-l` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fuel-efficiency-converter-mpg-l-100km-km-l` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fuel-efficiency-converter-mpg-l-100km-km-l - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fuel-efficiency-converter-mpg-l-100km-km-l/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Fuel Efficiency Converter API do? + Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Fuel Efficiency Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Fuel Efficiency Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Fuel Efficiency Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Fuel Efficiency Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fuel-efficiency-converter-mpg-l-100km-km-l` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fuel-efficiency-converter-mpg-l-100km-km-l`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fuel-efficiency-converter-mpg-l-100km-km-l"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) [ Square Feet to Square Meters Converter Convert square feet and square meters with exact international-foot conversion. ](/tools/square-feet-to-square-meters/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Centimeters to Feet and Inches Converter API # Centimeters to Feet and Inches Converter API conversion 1 credit / call v2026-04-22 Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. One POST adds Centimeters to Feet and Inches Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Centimeters to Feet and Inches Converter on miniwebtool.com →](https://miniwebtool.com/cm-to-feet-and-inches-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run ``` ### Request body Field Type Req. `direction` cm_to_ft_in | ft_in_to_cm `str` — `centimeters` centimeters for cm_to_ft_in `float` — `feet` feet for ft_in_to_cm `float` — `inches` remaining inches for ft_in_to_cm `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cm-to-feet-and-inches-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) cm_to_ft_in ft_in_to_cm cm_to_ft_in | ft_in_to_cm centimeters (float) centimeters for cm_to_ft_in feet (float) feet for ft_in_to_cm inches (float) remaining inches for ft_in_to_cm Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cm-to-feet-and-inches-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"cm_to_ft_in","centimeters":180}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'cm_to_ft_in', 'centimeters': 180}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"cm_to_ft_in","centimeters":180}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'cm_to_ft_in', 'centimeters' => 180 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'cm_to_ft_in', 'centimeters' => 180 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "cm_to_ft_in", "centimeters": 180, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"cm_to_ft_in\",\"centimeters\":180}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cm-to-feet-and-inches-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cm-to-feet-and-inches-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cm-to-feet-and-inches-converter/prompt.md`](/tools/cm-to-feet-and-inches-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Centimeters to Feet and Inches Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Centimeters to Feet and Inches Converter** — Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: cm_to_ft_in, ft_in_to_cm — cm_to_ft_in \| ft_in_to_cm (default `cm_to_ft_in`) | | `centimeters` | float | no | centimeters for cm_to_ft_in (default `180`) | | `feet` | float | no | feet for ft_in_to_cm (default `5`) | | `inches` | float | no | remaining inches for ft_in_to_cm (default `10.8661`) | Example request body: ```json { "direction": "cm_to_ft_in", "centimeters": 180 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cm-to-feet-and-inches-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "cm_to_ft_in", "centimeters": 180.0, "feet": 5, "inches": 10.866141732, "total_inches": 70.866141732 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Centimeters to Feet and Inches Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Centimeters to Feet and Inches Converter** — Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: cm_to_ft_in, ft_in_to_cm — cm_to_ft_in \| ft_in_to_cm (default `cm_to_ft_in`) | | `centimeters` | float | no | centimeters for cm_to_ft_in (default `180`) | | `feet` | float | no | feet for ft_in_to_cm (default `5`) | | `inches` | float | no | remaining inches for ft_in_to_cm (default `10.8661`) | Example request body: ```json { "direction": "cm_to_ft_in", "centimeters": 180 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cm-to-feet-and-inches-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "cm_to_ft_in", "centimeters": 180.0, "feet": 5, "inches": 10.866141732, "total_inches": 70.866141732 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cm-to-feet-and-inches-converter.mdc copy prompt ```text --- description: MiniWebtool Centimeters to Feet and Inches Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Centimeters to Feet and Inches Converter API ## The API **Centimeters to Feet and Inches Converter** — Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: cm_to_ft_in, ft_in_to_cm — cm_to_ft_in \| ft_in_to_cm (default `cm_to_ft_in`) | | `centimeters` | float | no | centimeters for cm_to_ft_in (default `180`) | | `feet` | float | no | feet for ft_in_to_cm (default `5`) | | `inches` | float | no | remaining inches for ft_in_to_cm (default `10.8661`) | Example request body: ```json { "direction": "cm_to_ft_in", "centimeters": 180 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cm-to-feet-and-inches-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "cm_to_ft_in", "centimeters": 180.0, "feet": 5, "inches": 10.866141732, "total_inches": 70.866141732 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cm-to-feet-and-inches-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cm-to-feet-and-inches-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cm-to-feet-and-inches-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cm-to-feet-and-inches-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Centimeters to Feet and Inches Converter API do? + Convert centimeters to normalized feet and inches, or convert feet and inches to centimeters. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Centimeters to Feet and Inches Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Centimeters to Feet and Inches Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Centimeters to Feet and Inches Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Centimeters to Feet and Inches Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cm-to-feet-and-inches-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cm-to-feet-and-inches-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cm-to-feet-and-inches-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - FPS Converter API # FPS Converter API conversion 1 credit / call v2026-04-22 Convert between frame counts, duration and timecode at a given frame rate. One POST adds FPS Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the FPS Converter on miniwebtool.com →](https://miniwebtool.com/fps-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/fps-converter/run ``` ### Request body Field Type Req. `frames` `int | None` — `seconds` `float | None` — `fps` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fps-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → frames (int | None) seconds (float | None) fps (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fps-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fps-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"frames":240,"fps":24}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fps-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'frames': 240, 'fps': 24}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fps-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"frames":240,"fps":24}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'frames' => 240, 'fps' => 24 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fps-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'frames' => 240, 'fps' => 24 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "frames": 240, "fps": 24, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fps-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fps-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"frames\":240,\"fps\":24}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fps-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fps-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/fps-converter/prompt.md`](/tools/fps-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool FPS Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **FPS Converter** — Convert between frame counts, duration and timecode at a given frame rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fps-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fps-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `frames` | int | None | no | (default `240`) | | `seconds` | float | None | no | — | | `fps` | float | no | (default `24`) | Example request body: ```json { "frames": 240, "fps": 24 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fps-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fps": 24.0, "frames": 240, "seconds": 10.0, "timecode": "00:00:10:00", "minutes": 0.166667 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool FPS Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **FPS Converter** — Convert between frame counts, duration and timecode at a given frame rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fps-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fps-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `frames` | int | None | no | (default `240`) | | `seconds` | float | None | no | — | | `fps` | float | no | (default `24`) | Example request body: ```json { "frames": 240, "fps": 24 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fps-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fps": 24.0, "frames": 240, "seconds": 10.0, "timecode": "00:00:10:00", "minutes": 0.166667 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fps-converter.mdc copy prompt ```text --- description: MiniWebtool FPS Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool FPS Converter API ## The API **FPS Converter** — Convert between frame counts, duration and timecode at a given frame rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fps-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fps-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `frames` | int | None | no | (default `240`) | | `seconds` | float | None | no | — | | `fps` | float | no | (default `24`) | Example request body: ```json { "frames": 240, "fps": 24 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fps-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "fps": 24.0, "frames": 240, "seconds": 10.0, "timecode": "00:00:10:00", "minutes": 0.166667 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fps-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fps-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fps-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fps-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the FPS Converter API do? + Convert between frame counts, duration and timecode at a given frame rate. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to FPS Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the FPS Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the FPS Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the FPS Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fps-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fps-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fps-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Pressure Converter API # Pressure Converter API conversion 1 credit / call v2026-04-22 Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. One POST adds Pressure Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Pressure Converter on miniwebtool.com →](https://miniwebtool.com/pressure-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/pressure-converter/run ``` ### Request body Field Type Req. `value` pressure value `float` — `from_unit` pa | kpa | mpa | bar | psi | atm `str` — `to_unit` pa | kpa | mpa | bar | psi | atm `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "pressure-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) pressure value from_unit (str) pa kpa mpa bar psi atm pa | kpa | mpa | bar | psi | atm to_unit (str) pa kpa mpa bar psi atm pa | kpa | mpa | bar | psi | atm Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`pressure-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/pressure-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"value":1,"from_unit":"bar","to_unit":"psi"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/pressure-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'value': 1, 'from_unit': 'bar', 'to_unit': 'psi'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/pressure-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"value":1,"from_unit":"bar","to_unit":"psi"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'value' => 1, 'from_unit' => 'bar', 'to_unit' => 'psi' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/pressure-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'value' => 1, 'from_unit' => 'bar', 'to_unit' => 'psi' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "value": 1, "from_unit": "bar", "to_unit": "psi", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/pressure-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/pressure-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"value\":1,\"from_unit\":\"bar\",\"to_unit\":\"psi\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`pressure-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/pressure-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/pressure-converter/prompt.md`](/tools/pressure-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Pressure Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pressure Converter** — Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pressure-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pressure-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | pressure value (default `1`) | | `from_unit` | str | no | one of: pa, kpa, mpa, bar, psi, atm — pa \| kpa \| mpa \| bar \| psi \| atm (default `bar`) | | `to_unit` | str | no | one of: pa, kpa, mpa, bar, psi, atm — pa \| kpa \| mpa \| bar \| psi \| atm (default `psi`) | Example request body: ```json { "value": 1, "from_unit": "bar", "to_unit": "psi" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pressure-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 1.0, "from_unit": "bar", "to_unit": "psi", "converted_value": 14.503773773, "pascals": 100000.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Pressure Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pressure Converter** — Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pressure-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pressure-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | pressure value (default `1`) | | `from_unit` | str | no | one of: pa, kpa, mpa, bar, psi, atm — pa \| kpa \| mpa \| bar \| psi \| atm (default `bar`) | | `to_unit` | str | no | one of: pa, kpa, mpa, bar, psi, atm — pa \| kpa \| mpa \| bar \| psi \| atm (default `psi`) | Example request body: ```json { "value": 1, "from_unit": "bar", "to_unit": "psi" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pressure-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 1.0, "from_unit": "bar", "to_unit": "psi", "converted_value": 14.503773773, "pascals": 100000.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-pressure-converter.mdc copy prompt ```text --- description: MiniWebtool Pressure Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Pressure Converter API ## The API **Pressure Converter** — Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pressure-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pressure-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | pressure value (default `1`) | | `from_unit` | str | no | one of: pa, kpa, mpa, bar, psi, atm — pa \| kpa \| mpa \| bar \| psi \| atm (default `bar`) | | `to_unit` | str | no | one of: pa, kpa, mpa, bar, psi, atm — pa \| kpa \| mpa \| bar \| psi \| atm (default `psi`) | Example request body: ```json { "value": 1, "from_unit": "bar", "to_unit": "psi" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pressure-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 1.0, "from_unit": "bar", "to_unit": "psi", "converted_value": 14.503773773, "pascals": 100000.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `pressure-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `pressure-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call pressure-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/pressure-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Pressure Converter API do? + Convert pressure among pascals, kilopascals, megapascals, bar, PSI and standard atmospheres. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Pressure Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Pressure Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Pressure Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Pressure Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `pressure-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`pressure-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"pressure-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - PSI to Bar Converter API # PSI to Bar Converter API conversion 1 credit / call v2026-04-22 Convert pressure between pounds per square inch and bar. One POST adds PSI to Bar Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the PSI to Bar Converter on miniwebtool.com →](https://miniwebtool.com/psi-to-bar-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run ``` ### Request body Field Type Req. `direction` psi_to_bar | bar_to_psi `str` — `pressure` pressure to convert `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "psi-to-bar-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) psi_to_bar bar_to_psi psi_to_bar | bar_to_psi pressure (float) pressure to convert Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`psi-to-bar-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"psi_to_bar","pressure":30}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'psi_to_bar', 'pressure': 30}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"psi_to_bar","pressure":30}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'psi_to_bar', 'pressure' => 30 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'psi_to_bar', 'pressure' => 30 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "psi_to_bar", "pressure": 30, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"psi_to_bar\",\"pressure\":30}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`psi-to-bar-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/psi-to-bar-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/psi-to-bar-converter/prompt.md`](/tools/psi-to-bar-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool PSI to Bar Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **PSI to Bar Converter** — Convert pressure between pounds per square inch and bar. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: psi_to_bar, bar_to_psi — psi_to_bar \| bar_to_psi (default `psi_to_bar`) | | `pressure` | float | no | pressure to convert (default `30`) | Example request body: ```json { "direction": "psi_to_bar", "pressure": 30 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "psi-to-bar-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "psi_to_bar", "input_pressure": 30.0, "output_pressure": 2.068427187, "output_unit": "bar", "psi": 30.0, "bar": 2.068427187 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool PSI to Bar Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **PSI to Bar Converter** — Convert pressure between pounds per square inch and bar. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: psi_to_bar, bar_to_psi — psi_to_bar \| bar_to_psi (default `psi_to_bar`) | | `pressure` | float | no | pressure to convert (default `30`) | Example request body: ```json { "direction": "psi_to_bar", "pressure": 30 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "psi-to-bar-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "psi_to_bar", "input_pressure": 30.0, "output_pressure": 2.068427187, "output_unit": "bar", "psi": 30.0, "bar": 2.068427187 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-psi-to-bar-converter.mdc copy prompt ```text --- description: MiniWebtool PSI to Bar Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool PSI to Bar Converter API ## The API **PSI to Bar Converter** — Convert pressure between pounds per square inch and bar. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: psi_to_bar, bar_to_psi — psi_to_bar \| bar_to_psi (default `psi_to_bar`) | | `pressure` | float | no | pressure to convert (default `30`) | Example request body: ```json { "direction": "psi_to_bar", "pressure": 30 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "psi-to-bar-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "psi_to_bar", "input_pressure": 30.0, "output_pressure": 2.068427187, "output_unit": "bar", "psi": 30.0, "bar": 2.068427187 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `psi-to-bar-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `psi-to-bar-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call psi-to-bar-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/psi-to-bar-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the PSI to Bar Converter API do? + Convert pressure between pounds per square inch and bar. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to PSI to Bar Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the PSI to Bar Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the PSI to Bar Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the PSI to Bar Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `psi-to-bar-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`psi-to-bar-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"psi-to-bar-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Scale Model Conversion Calculator API # Scale Model Conversion Calculator API conversion 1 credit / call v2026-04-22 Convert a length from one model scale to another. One POST adds Scale Model Conversion Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Scale Model Conversion Calculator on miniwebtool.com →](https://miniwebtool.com/scale-model-conversion-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run ``` ### Request body Field Type Req. `input_length` `float` — `input_scale_denominator` `float` — `output_scale_denominator` `float` — `unit` `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "scale-model-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → input_length (float) input_scale_denominator (float) output_scale_denominator (float) unit (str) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`scale-model-conversion-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`scale-model-conversion-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/scale-model-conversion-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/scale-model-conversion-calculator/prompt.md`](/tools/scale-model-conversion-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Scale Model Conversion Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Scale Model Conversion Calculator** — Convert a length from one model scale to another. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `input_length` | float | no | (default `240`) | | `input_scale_denominator` | float | no | (default `1`) | | `output_scale_denominator` | float | no | (default `24`) | | `unit` | str | no | (default `cm`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "scale-model-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_length": 240.0, "input_scale": "1:1", "output_scale": "1:24", "unit": "cm", "real_length": 240.0, "output_length": 10.0, "conversion_factor": 0.041667, "chart_data": { "comparison": [ { "label": "Input", "value": 240.0 }, { "label": "Real", "value": 240.0 }, { "label": "Output", "value": 10.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Scale Model Conversion Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Scale Model Conversion Calculator** — Convert a length from one model scale to another. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `input_length` | float | no | (default `240`) | | `input_scale_denominator` | float | no | (default `1`) | | `output_scale_denominator` | float | no | (default `24`) | | `unit` | str | no | (default `cm`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "scale-model-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_length": 240.0, "input_scale": "1:1", "output_scale": "1:24", "unit": "cm", "real_length": 240.0, "output_length": 10.0, "conversion_factor": 0.041667, "chart_data": { "comparison": [ { "label": "Input", "value": 240.0 }, { "label": "Real", "value": 240.0 }, { "label": "Output", "value": 10.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-scale-model-conversion-calculator.mdc copy prompt ```text --- description: MiniWebtool Scale Model Conversion Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Scale Model Conversion Calculator API ## The API **Scale Model Conversion Calculator** — Convert a length from one model scale to another. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `input_length` | float | no | (default `240`) | | `input_scale_denominator` | float | no | (default `1`) | | `output_scale_denominator` | float | no | (default `24`) | | `unit` | str | no | (default `cm`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "scale-model-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_length": 240.0, "input_scale": "1:1", "output_scale": "1:24", "unit": "cm", "real_length": 240.0, "output_length": 10.0, "conversion_factor": 0.041667, "chart_data": { "comparison": [ { "label": "Input", "value": 240.0 }, { "label": "Real", "value": 240.0 }, { "label": "Output", "value": 10.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `scale-model-conversion-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `scale-model-conversion-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call scale-model-conversion-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/scale-model-conversion-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Scale Model Conversion Calculator API do? + Convert a length from one model scale to another. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Scale Model Conversion Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Scale Model Conversion Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Scale Model Conversion Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Scale Model Conversion Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `scale-model-conversion-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`scale-model-conversion-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"scale-model-conversion-calculator"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) [ Square Feet to Square Meters Converter Convert square feet and square meters with exact international-foot conversion. ](/tools/square-feet-to-square-meters/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Shoe Size Converter API # Shoe Size Converter API conversion 1 credit / call v2026-04-22 Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. One POST adds Shoe Size Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Shoe Size Converter on miniwebtool.com →](https://miniwebtool.com/shoe-size-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/run ``` ### Request body Field Type Req. `size` shoe size `float` — `from_system` us_men | us_women | uk | eu | cm `str` — `to_system` us_men | us_women | uk | eu | cm `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "shoe-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → size (float) shoe size from_system (str) us_men us_women uk eu cm us_men | us_women | uk | eu | cm to_system (str) us_men us_women uk eu cm us_men | us_women | uk | eu | cm Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`shoe-size-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"size":10,"from_system":"us_men","to_system":"eu"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/shoe-size-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'size': 10, 'from_system': 'us_men', 'to_system': 'eu'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/shoe-size-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"size":10,"from_system":"us_men","to_system":"eu"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'size' => 10, 'from_system' => 'us_men', 'to_system' => 'eu' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/shoe-size-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'size' => 10, 'from_system' => 'us_men', 'to_system' => 'eu' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "size": 10, "from_system": "us_men", "to_system": "eu", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/shoe-size-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/shoe-size-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"size\":10,\"from_system\":\"us_men\",\"to_system\":\"eu\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`shoe-size-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/shoe-size-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/shoe-size-converter/prompt.md`](/tools/shoe-size-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Shoe Size Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Shoe Size Converter** — Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `size` | float | no | shoe size (default `10`) | | `from_system` | str | no | one of: us_men, us_women, uk, eu, cm — us_men \| us_women \| uk \| eu \| cm (default `us_men`) | | `to_system` | str | no | one of: us_men, us_women, uk, eu, cm — us_men \| us_women \| uk \| eu \| cm (default `eu`) | Example request body: ```json { "size": 10, "from_system": "us_men", "to_system": "eu" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "shoe-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "size": 10.0, "from_system": "us_men", "to_system": "eu", "converted_size": 44.0, "estimated_foot_length_cm": 28.0, "chart": "men", "note": "Regional shoe sizes are approximate; use foot length when fit is critical." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Shoe Size Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Shoe Size Converter** — Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `size` | float | no | shoe size (default `10`) | | `from_system` | str | no | one of: us_men, us_women, uk, eu, cm — us_men \| us_women \| uk \| eu \| cm (default `us_men`) | | `to_system` | str | no | one of: us_men, us_women, uk, eu, cm — us_men \| us_women \| uk \| eu \| cm (default `eu`) | Example request body: ```json { "size": 10, "from_system": "us_men", "to_system": "eu" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "shoe-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "size": 10.0, "from_system": "us_men", "to_system": "eu", "converted_size": 44.0, "estimated_foot_length_cm": 28.0, "chart": "men", "note": "Regional shoe sizes are approximate; use foot length when fit is critical." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-shoe-size-converter.mdc copy prompt ```text --- description: MiniWebtool Shoe Size Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Shoe Size Converter API ## The API **Shoe Size Converter** — Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/shoe-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `size` | float | no | shoe size (default `10`) | | `from_system` | str | no | one of: us_men, us_women, uk, eu, cm — us_men \| us_women \| uk \| eu \| cm (default `us_men`) | | `to_system` | str | no | one of: us_men, us_women, uk, eu, cm — us_men \| us_women \| uk \| eu \| cm (default `eu`) | Example request body: ```json { "size": 10, "from_system": "us_men", "to_system": "eu" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "shoe-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "size": 10.0, "from_system": "us_men", "to_system": "eu", "converted_size": 44.0, "estimated_foot_length_cm": 28.0, "chart": "men", "note": "Regional shoe sizes are approximate; use foot length when fit is critical." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `shoe-size-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `shoe-size-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call shoe-size-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/shoe-size-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Shoe Size Converter API do? + Estimate equivalent shoe sizes across US men's, US women's, UK, EU and centimeter systems. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Shoe Size Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Shoe Size Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Shoe Size Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Shoe Size Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `shoe-size-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`shoe-size-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"shoe-size-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Knots to MPH Converter API # Knots to MPH Converter API conversion 1 credit / call v2026-04-22 Convert speed between nautical knots and miles per hour. One POST adds Knots to MPH Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Knots to MPH Converter on miniwebtool.com →](https://miniwebtool.com/knots-to-mph-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run ``` ### Request body Field Type Req. `direction` knots_to_mph | mph_to_knots `str` — `speed` speed to convert `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "knots-to-mph-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) knots_to_mph mph_to_knots knots_to_mph | mph_to_knots speed (float) speed to convert Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`knots-to-mph-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"knots_to_mph","speed":20}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'knots_to_mph', 'speed': 20}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"knots_to_mph","speed":20}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'knots_to_mph', 'speed' => 20 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'knots_to_mph', 'speed' => 20 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "knots_to_mph", "speed": 20, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"knots_to_mph\",\"speed\":20}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`knots-to-mph-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/knots-to-mph-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/knots-to-mph-converter/prompt.md`](/tools/knots-to-mph-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Knots to MPH Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Knots to MPH Converter** — Convert speed between nautical knots and miles per hour. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: knots_to_mph, mph_to_knots — knots_to_mph \| mph_to_knots (default `knots_to_mph`) | | `speed` | float | no | speed to convert (default `10`) | Example request body: ```json { "direction": "knots_to_mph", "speed": 20 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "knots-to-mph-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "knots_to_mph", "input_speed": 20.0, "output_speed": 23.01558896, "output_unit": "mph", "knots": 20.0, "miles_per_hour": 23.01558896 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Knots to MPH Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Knots to MPH Converter** — Convert speed between nautical knots and miles per hour. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: knots_to_mph, mph_to_knots — knots_to_mph \| mph_to_knots (default `knots_to_mph`) | | `speed` | float | no | speed to convert (default `10`) | Example request body: ```json { "direction": "knots_to_mph", "speed": 20 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "knots-to-mph-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "knots_to_mph", "input_speed": 20.0, "output_speed": 23.01558896, "output_unit": "mph", "knots": 20.0, "miles_per_hour": 23.01558896 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-knots-to-mph-converter.mdc copy prompt ```text --- description: MiniWebtool Knots to MPH Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Knots to MPH Converter API ## The API **Knots to MPH Converter** — Convert speed between nautical knots and miles per hour. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: knots_to_mph, mph_to_knots — knots_to_mph \| mph_to_knots (default `knots_to_mph`) | | `speed` | float | no | speed to convert (default `10`) | Example request body: ```json { "direction": "knots_to_mph", "speed": 20 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "knots-to-mph-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "knots_to_mph", "input_speed": 20.0, "output_speed": 23.01558896, "output_unit": "mph", "knots": 20.0, "miles_per_hour": 23.01558896 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `knots-to-mph-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `knots-to-mph-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call knots-to-mph-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/knots-to-mph-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Knots to MPH Converter API do? + Convert speed between nautical knots and miles per hour. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Knots to MPH Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Knots to MPH Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Knots to MPH Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Knots to MPH Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `knots-to-mph-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`knots-to-mph-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"knots-to-mph-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - MPH to KMH Converter API # MPH to KMH Converter API conversion 1 credit / call v2026-04-22 Convert miles per hour and kilometers per hour in either direction. One POST adds MPH to KMH Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the MPH to KMH Converter on miniwebtool.com →](https://miniwebtool.com/mph-to-kmh-kmh-to-mph/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run ``` ### Request body Field Type Req. `direction` mph_to_kmh | kmh_to_mph `str` — `speed` speed to convert `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "mph-to-kmh-kmh-to-mph", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) mph_to_kmh kmh_to_mph mph_to_kmh | kmh_to_mph speed (float) speed to convert Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`mph-to-kmh-kmh-to-mph`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"mph_to_kmh","speed":60}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'mph_to_kmh', 'speed': 60}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"mph_to_kmh","speed":60}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'mph_to_kmh', 'speed' => 60 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'mph_to_kmh', 'speed' => 60 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "mph_to_kmh", "speed": 60, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"mph_to_kmh\",\"speed\":60}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`mph-to-kmh-kmh-to-mph`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/mph-to-kmh-kmh-to-mph/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/mph-to-kmh-kmh-to-mph/prompt.md`](/tools/mph-to-kmh-kmh-to-mph/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool MPH to KMH Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **MPH to KMH Converter** — Convert miles per hour and kilometers per hour in either direction. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: mph_to_kmh, kmh_to_mph — mph_to_kmh \| kmh_to_mph (default `mph_to_kmh`) | | `speed` | float | no | speed to convert (default `60`) | Example request body: ```json { "direction": "mph_to_kmh", "speed": 60 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "mph-to-kmh-kmh-to-mph", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "mph_to_kmh", "input_speed": 60.0, "output_speed": 96.56064, "output_unit": "km/h", "miles_per_hour": 60.0, "kilometers_per_hour": 96.56064 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool MPH to KMH Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **MPH to KMH Converter** — Convert miles per hour and kilometers per hour in either direction. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: mph_to_kmh, kmh_to_mph — mph_to_kmh \| kmh_to_mph (default `mph_to_kmh`) | | `speed` | float | no | speed to convert (default `60`) | Example request body: ```json { "direction": "mph_to_kmh", "speed": 60 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "mph-to-kmh-kmh-to-mph", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "mph_to_kmh", "input_speed": 60.0, "output_speed": 96.56064, "output_unit": "km/h", "miles_per_hour": 60.0, "kilometers_per_hour": 96.56064 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-mph-to-kmh-kmh-to-mph.mdc copy prompt ```text --- description: MiniWebtool MPH to KMH Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool MPH to KMH Converter API ## The API **MPH to KMH Converter** — Convert miles per hour and kilometers per hour in either direction. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: mph_to_kmh, kmh_to_mph — mph_to_kmh \| kmh_to_mph (default `mph_to_kmh`) | | `speed` | float | no | speed to convert (default `60`) | Example request body: ```json { "direction": "mph_to_kmh", "speed": 60 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "mph-to-kmh-kmh-to-mph", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "mph_to_kmh", "input_speed": 60.0, "output_speed": 96.56064, "output_unit": "km/h", "miles_per_hour": 60.0, "kilometers_per_hour": 96.56064 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `mph-to-kmh-kmh-to-mph` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `mph-to-kmh-kmh-to-mph` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call mph-to-kmh-kmh-to-mph - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/mph-to-kmh-kmh-to-mph/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the MPH to KMH Converter API do? + Convert miles per hour and kilometers per hour in either direction. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to MPH to KMH Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the MPH to KMH Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the MPH to KMH Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the MPH to KMH Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `mph-to-kmh-kmh-to-mph` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`mph-to-kmh-kmh-to-mph`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"mph-to-kmh-kmh-to-mph"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Speed Converter API # Speed Converter API conversion 1 credit / call v2026-04-22 Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. One POST adds Speed Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Speed Converter on miniwebtool.com →](https://miniwebtool.com/speed-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/speed-converter/run ``` ### Request body Field Type Req. `value` speed value `float` — `from_unit` mps | kmh | mph | knots | fps `str` — `to_unit` mps | kmh | mph | knots | fps `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "speed-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) speed value from_unit (str) mps kmh mph knots fps mps | kmh | mph | knots | fps to_unit (str) mps kmh mph knots fps mps | kmh | mph | knots | fps Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`speed-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/speed-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"value":60,"from_unit":"mph","to_unit":"kmh"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/speed-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'value': 60, 'from_unit': 'mph', 'to_unit': 'kmh'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/speed-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"value":60,"from_unit":"mph","to_unit":"kmh"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'value' => 60, 'from_unit' => 'mph', 'to_unit' => 'kmh' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/speed-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'value' => 60, 'from_unit' => 'mph', 'to_unit' => 'kmh' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "value": 60, "from_unit": "mph", "to_unit": "kmh", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/speed-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/speed-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"value\":60,\"from_unit\":\"mph\",\"to_unit\":\"kmh\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`speed-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/speed-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/speed-converter/prompt.md`](/tools/speed-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Speed Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Speed Converter** — Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/speed-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/speed-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | speed value (default `60`) | | `from_unit` | str | no | one of: mps, kmh, mph, knots, fps — mps \| kmh \| mph \| knots \| fps (default `mph`) | | `to_unit` | str | no | one of: mps, kmh, mph, knots, fps — mps \| kmh \| mph \| knots \| fps (default `kmh`) | Example request body: ```json { "value": 60, "from_unit": "mph", "to_unit": "kmh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "speed-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 60.0, "from_unit": "mph", "to_unit": "kmh", "converted_value": 96.56064, "meters_per_second": 26.8224 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Speed Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Speed Converter** — Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/speed-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/speed-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | speed value (default `60`) | | `from_unit` | str | no | one of: mps, kmh, mph, knots, fps — mps \| kmh \| mph \| knots \| fps (default `mph`) | | `to_unit` | str | no | one of: mps, kmh, mph, knots, fps — mps \| kmh \| mph \| knots \| fps (default `kmh`) | Example request body: ```json { "value": 60, "from_unit": "mph", "to_unit": "kmh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "speed-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 60.0, "from_unit": "mph", "to_unit": "kmh", "converted_value": 96.56064, "meters_per_second": 26.8224 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-speed-converter.mdc copy prompt ```text --- description: MiniWebtool Speed Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Speed Converter API ## The API **Speed Converter** — Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/speed-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/speed-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | speed value (default `60`) | | `from_unit` | str | no | one of: mps, kmh, mph, knots, fps — mps \| kmh \| mph \| knots \| fps (default `mph`) | | `to_unit` | str | no | one of: mps, kmh, mph, knots, fps — mps \| kmh \| mph \| knots \| fps (default `kmh`) | Example request body: ```json { "value": 60, "from_unit": "mph", "to_unit": "kmh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "speed-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 60.0, "from_unit": "mph", "to_unit": "kmh", "converted_value": 96.56064, "meters_per_second": 26.8224 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `speed-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `speed-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call speed-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/speed-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Speed Converter API do? + Convert speed among meters per second, kilometers per hour, miles per hour, knots and feet per second. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Speed Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Speed Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Speed Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Speed Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `speed-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`speed-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"speed-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Temperature Converter API # Temperature Converter API conversion 1 credit / call v2026-04-22 Convert temperatures among Celsius, Fahrenheit and Kelvin. One POST adds Temperature Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Temperature Converter on miniwebtool.com →](https://miniwebtool.com/temperature-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/temperature-converter/run ``` ### Request body Field Type Req. `value` temperature value `float` — `from_unit` c | f | k `str` — `to_unit` c | f | k `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "temperature-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) temperature value from_unit (str) c f k c | f | k to_unit (str) c f k c | f | k Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`temperature-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/temperature-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"value":20,"from_unit":"c","to_unit":"f"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/temperature-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'value': 20, 'from_unit': 'c', 'to_unit': 'f'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/temperature-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"value":20,"from_unit":"c","to_unit":"f"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'value' => 20, 'from_unit' => 'c', 'to_unit' => 'f' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/temperature-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'value' => 20, 'from_unit' => 'c', 'to_unit' => 'f' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "value": 20, "from_unit": "c", "to_unit": "f", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/temperature-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/temperature-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"value\":20,\"from_unit\":\"c\",\"to_unit\":\"f\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`temperature-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/temperature-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/temperature-converter/prompt.md`](/tools/temperature-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Temperature Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Temperature Converter** — Convert temperatures among Celsius, Fahrenheit and Kelvin. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/temperature-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/temperature-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | temperature value (default `20`) | | `from_unit` | str | no | one of: c, f, k — c \| f \| k (default `c`) | | `to_unit` | str | no | one of: c, f, k — c \| f \| k (default `f`) | Example request body: ```json { "value": 20, "from_unit": "c", "to_unit": "f" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "temperature-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 20.0, "from_unit": "c", "to_unit": "f", "converted_value": 68.0, "celsius": 20.0, "fahrenheit": 68.0, "kelvin": 293.15 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Temperature Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Temperature Converter** — Convert temperatures among Celsius, Fahrenheit and Kelvin. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/temperature-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/temperature-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | temperature value (default `20`) | | `from_unit` | str | no | one of: c, f, k — c \| f \| k (default `c`) | | `to_unit` | str | no | one of: c, f, k — c \| f \| k (default `f`) | Example request body: ```json { "value": 20, "from_unit": "c", "to_unit": "f" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "temperature-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 20.0, "from_unit": "c", "to_unit": "f", "converted_value": 68.0, "celsius": 20.0, "fahrenheit": 68.0, "kelvin": 293.15 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-temperature-converter.mdc copy prompt ```text --- description: MiniWebtool Temperature Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Temperature Converter API ## The API **Temperature Converter** — Convert temperatures among Celsius, Fahrenheit and Kelvin. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/temperature-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/temperature-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | temperature value (default `20`) | | `from_unit` | str | no | one of: c, f, k — c \| f \| k (default `c`) | | `to_unit` | str | no | one of: c, f, k — c \| f \| k (default `f`) | Example request body: ```json { "value": 20, "from_unit": "c", "to_unit": "f" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "temperature-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 20.0, "from_unit": "c", "to_unit": "f", "converted_value": 68.0, "celsius": 20.0, "fahrenheit": 68.0, "kelvin": 293.15 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `temperature-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `temperature-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call temperature-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/temperature-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Temperature Converter API do? + Convert temperatures among Celsius, Fahrenheit and Kelvin. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Temperature Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Temperature Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Temperature Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Temperature Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `temperature-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`temperature-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"temperature-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Volume Converter API # Volume Converter API conversion 1 credit / call v2026-04-22 Convert volume among metric, US customary, cooking, and cubic units. One POST adds Volume Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Volume Converter on miniwebtool.com →](https://miniwebtool.com/volume-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/volume-converter/run ``` ### Request body Field Type Req. `value` `float` — `from_unit` liter | milliliter | cubicmeter | cubiccentimeter | cubicfoot | cubicinch | gallon | quart | pint | cup | floz | tbsp | tsp `str` — `to_unit` liter | milliliter | cubicmeter | cubiccentimeter | cubicfoot | cubicinch | gallon | quart | pint | cup | floz | tbsp | tsp `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "volume-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) from_unit (str) liter milliliter cubicmeter cubiccentimeter cubicfoot cubicinch gallon quart pint cup floz tbsp tsp liter | milliliter | cubicmeter | cubiccentimeter | cubicfoot | cubicinch | gallon | quart | pint | cup | floz | tbsp | tsp to_unit (str) liter milliliter cubicmeter cubiccentimeter cubicfoot cubicinch gallon quart pint cup floz tbsp tsp liter | milliliter | cubicmeter | cubiccentimeter | cubicfoot | cubicinch | gallon | quart | pint | cup | floz | tbsp | tsp precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`volume-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/volume-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/volume-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/volume-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/volume-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/volume-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/volume-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`volume-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/volume-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/volume-converter/prompt.md`](/tools/volume-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Volume Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Volume Converter** — Convert volume among metric, US customary, cooking, and cubic units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/volume-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/volume-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `1`) | | `from_unit` | str | no | one of: liter, milliliter, cubicmeter, cubiccentimeter, cubicfoot, cubicinch, gallon, quart, pint, cup, floz, tbsp, tsp — liter \| milliliter \| cubicmeter \| cubiccentimeter \| cubicfoot \| cubicinch \| gallon \| quart \| pint \| cup \| floz \| tbsp \| tsp (default `liter`) | | `to_unit` | str | no | one of: liter, milliliter, cubicmeter, cubiccentimeter, cubicfoot, cubicinch, gallon, quart, pint, cup, floz, tbsp, tsp — liter \| milliliter \| cubicmeter \| cubiccentimeter \| cubicfoot \| cubicinch \| gallon \| quart \| pint \| cup \| floz \| tbsp \| tsp (default `gallon`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "volume-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 1.0, "from_unit": "liter", "to_unit": "gallon", "from_symbol": "L", "to_symbol": "gal", "base_liters": 1.0, "result_value": 0.264172, "conversions": { "liter": 1.0, "milliliter": 1000.0, "cubicmeter": 0.001, "cubiccentimeter": 1000.0, "cubicfoot": 0.035315, "cubicinch": 61.02361, "gallon": 0.264172, "quart": 1.056688, "pint": 2.113379, "cup": 4.226757, "floz": 33.814057, "tbsp": 67.627884, "tsp": 202.884202 }, "formula": "1.0 L * 1.0 L/L / 3.78541" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Volume Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Volume Converter** — Convert volume among metric, US customary, cooking, and cubic units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/volume-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/volume-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `1`) | | `from_unit` | str | no | one of: liter, milliliter, cubicmeter, cubiccentimeter, cubicfoot, cubicinch, gallon, quart, pint, cup, floz, tbsp, tsp — liter \| milliliter \| cubicmeter \| cubiccentimeter \| cubicfoot \| cubicinch \| gallon \| quart \| pint \| cup \| floz \| tbsp \| tsp (default `liter`) | | `to_unit` | str | no | one of: liter, milliliter, cubicmeter, cubiccentimeter, cubicfoot, cubicinch, gallon, quart, pint, cup, floz, tbsp, tsp — liter \| milliliter \| cubicmeter \| cubiccentimeter \| cubicfoot \| cubicinch \| gallon \| quart \| pint \| cup \| floz \| tbsp \| tsp (default `gallon`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "volume-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 1.0, "from_unit": "liter", "to_unit": "gallon", "from_symbol": "L", "to_symbol": "gal", "base_liters": 1.0, "result_value": 0.264172, "conversions": { "liter": 1.0, "milliliter": 1000.0, "cubicmeter": 0.001, "cubiccentimeter": 1000.0, "cubicfoot": 0.035315, "cubicinch": 61.02361, "gallon": 0.264172, "quart": 1.056688, "pint": 2.113379, "cup": 4.226757, "floz": 33.814057, "tbsp": 67.627884, "tsp": 202.884202 }, "formula": "1.0 L * 1.0 L/L / 3.78541" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-volume-converter.mdc copy prompt ```text --- description: MiniWebtool Volume Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Volume Converter API ## The API **Volume Converter** — Convert volume among metric, US customary, cooking, and cubic units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/volume-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/volume-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `1`) | | `from_unit` | str | no | one of: liter, milliliter, cubicmeter, cubiccentimeter, cubicfoot, cubicinch, gallon, quart, pint, cup, floz, tbsp, tsp — liter \| milliliter \| cubicmeter \| cubiccentimeter \| cubicfoot \| cubicinch \| gallon \| quart \| pint \| cup \| floz \| tbsp \| tsp (default `liter`) | | `to_unit` | str | no | one of: liter, milliliter, cubicmeter, cubiccentimeter, cubicfoot, cubicinch, gallon, quart, pint, cup, floz, tbsp, tsp — liter \| milliliter \| cubicmeter \| cubiccentimeter \| cubicfoot \| cubicinch \| gallon \| quart \| pint \| cup \| floz \| tbsp \| tsp (default `gallon`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "volume-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 1.0, "from_unit": "liter", "to_unit": "gallon", "from_symbol": "L", "to_symbol": "gal", "base_liters": 1.0, "result_value": 0.264172, "conversions": { "liter": 1.0, "milliliter": 1000.0, "cubicmeter": 0.001, "cubiccentimeter": 1000.0, "cubicfoot": 0.035315, "cubicinch": 61.02361, "gallon": 0.264172, "quart": 1.056688, "pint": 2.113379, "cup": 4.226757, "floz": 33.814057, "tbsp": 67.627884, "tsp": 202.884202 }, "formula": "1.0 L * 1.0 L/L / 3.78541" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `volume-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `volume-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call volume-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/volume-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Volume Converter API do? + Convert volume among metric, US customary, cooking, and cubic units. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Volume Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Volume Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Volume Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Volume Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `volume-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`volume-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"volume-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) [ Square Feet to Square Meters Converter Convert square feet and square meters with exact international-foot conversion. ](/tools/square-feet-to-square-meters/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Weight (Mass) Converter API # Weight (Mass) Converter API conversion 1 credit / call v2026-04-22 Convert mass among metric, imperial, ton, stone, and carat units. One POST adds Weight (Mass) Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Weight (Mass) Converter on miniwebtool.com →](https://miniwebtool.com/weight-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/weight-converter/run ``` ### Request body Field Type Req. `value` `float` — `from_unit` kg | g | mg | mcg | lb | oz | st | t | ton | longton | ct `str` — `to_unit` kg | g | mg | mcg | lb | oz | st | t | ton | longton | ct `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "weight-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) from_unit (str) kg g mg mcg lb oz st t ton longton ct kg | g | mg | mcg | lb | oz | st | t | ton | longton | ct to_unit (str) kg g mg mcg lb oz st t ton longton ct kg | g | mg | mcg | lb | oz | st | t | ton | longton | ct precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`weight-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/weight-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/weight-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/weight-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/weight-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/weight-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/weight-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`weight-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/weight-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/weight-converter/prompt.md`](/tools/weight-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Weight (Mass) Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Weight (Mass) Converter** — Convert mass among metric, imperial, ton, stone, and carat units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/weight-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/weight-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `150`) | | `from_unit` | str | no | one of: kg, g, mg, mcg, lb, oz, st, t, ton, longton, ct — kg \| g \| mg \| mcg \| lb \| oz \| st \| t \| ton \| longton \| ct (default `lb`) | | `to_unit` | str | no | one of: kg, g, mg, mcg, lb, oz, st, t, ton, longton, ct — kg \| g \| mg \| mcg \| lb \| oz \| st \| t \| ton \| longton \| ct (default `kg`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "weight-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 150.0, "from_unit": "lb", "to_unit": "kg", "from_symbol": "lb", "to_symbol": "kg", "base_kg": 68.038855, "result_value": 68.038855, "conversions": { "kg": 68.038855, "g": 68038.8555, "mg": 68038855.5, "mcg": 68038855499.99999, "lb": 150.0, "oz": 2400.000002, "st": 10.714286, "t": 0.068039, "ton": 0.075, "longton": 0.066964, "ct": 340194.2775 }, "formula": "150.0 lb * 0.45359237 kg/lb / 1.0" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Weight (Mass) Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Weight (Mass) Converter** — Convert mass among metric, imperial, ton, stone, and carat units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/weight-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/weight-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `150`) | | `from_unit` | str | no | one of: kg, g, mg, mcg, lb, oz, st, t, ton, longton, ct — kg \| g \| mg \| mcg \| lb \| oz \| st \| t \| ton \| longton \| ct (default `lb`) | | `to_unit` | str | no | one of: kg, g, mg, mcg, lb, oz, st, t, ton, longton, ct — kg \| g \| mg \| mcg \| lb \| oz \| st \| t \| ton \| longton \| ct (default `kg`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "weight-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 150.0, "from_unit": "lb", "to_unit": "kg", "from_symbol": "lb", "to_symbol": "kg", "base_kg": 68.038855, "result_value": 68.038855, "conversions": { "kg": 68.038855, "g": 68038.8555, "mg": 68038855.5, "mcg": 68038855499.99999, "lb": 150.0, "oz": 2400.000002, "st": 10.714286, "t": 0.068039, "ton": 0.075, "longton": 0.066964, "ct": 340194.2775 }, "formula": "150.0 lb * 0.45359237 kg/lb / 1.0" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-weight-converter.mdc copy prompt ```text --- description: MiniWebtool Weight (Mass) Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Weight (Mass) Converter API ## The API **Weight (Mass) Converter** — Convert mass among metric, imperial, ton, stone, and carat units. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/weight-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/weight-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `150`) | | `from_unit` | str | no | one of: kg, g, mg, mcg, lb, oz, st, t, ton, longton, ct — kg \| g \| mg \| mcg \| lb \| oz \| st \| t \| ton \| longton \| ct (default `lb`) | | `to_unit` | str | no | one of: kg, g, mg, mcg, lb, oz, st, t, ton, longton, ct — kg \| g \| mg \| mcg \| lb \| oz \| st \| t \| ton \| longton \| ct (default `kg`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "weight-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "value": 150.0, "from_unit": "lb", "to_unit": "kg", "from_symbol": "lb", "to_symbol": "kg", "base_kg": 68.038855, "result_value": 68.038855, "conversions": { "kg": 68.038855, "g": 68038.8555, "mg": 68038855.5, "mcg": 68038855499.99999, "lb": 150.0, "oz": 2400.000002, "st": 10.714286, "t": 0.068039, "ton": 0.075, "longton": 0.066964, "ct": 340194.2775 }, "formula": "150.0 lb * 0.45359237 kg/lb / 1.0" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `weight-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `weight-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call weight-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/weight-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Weight (Mass) Converter API do? + Convert mass among metric, imperial, ton, stone, and carat units. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Weight (Mass) Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Weight (Mass) Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Weight (Mass) Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Weight (Mass) Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `weight-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`weight-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"weight-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Square Feet to Square Meters Converter Convert square feet and square meters with exact international-foot conversion. ](/tools/square-feet-to-square-meters/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Cubic Feet to Cubic Yards Converter API # Cubic Feet to Cubic Yards Converter API conversion 1 credit / call v2026-04-22 Convert cubic feet and cubic yards and optionally add material waste and order rounding. One POST adds Cubic Feet to Cubic Yards Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Cubic Feet to Cubic Yards Converter on miniwebtool.com →](https://miniwebtool.com/cubic-feet-to-cubic-yards/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run ``` ### Request body Field Type Req. `direction` ft3_to_yd3 | yd3_to_ft3 `str` — `amount` volume to convert `float` — `waste_percent` optional overage percentage `float` — `purchase_increment` none | quarter | half | whole; round the order upward `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cubic-feet-to-cubic-yards", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) ft3_to_yd3 yd3_to_ft3 ft3_to_yd3 | yd3_to_ft3 amount (float) volume to convert waste_percent (float) optional overage percentage purchase_increment (str) none quarter half whole; round the order upward none | quarter | half | whole; round the order upward Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cubic-feet-to-cubic-yards`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"ft3_to_yd3","amount":150,"waste_percent":10,"purchase_increment":"half"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'ft3_to_yd3', 'amount': 150, 'waste_percent': 10, 'purchase_increment': 'half'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"ft3_to_yd3","amount":150,"waste_percent":10,"purchase_increment":"half"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'ft3_to_yd3', 'amount' => 150, 'waste_percent' => 10, 'purchase_increment' => 'half' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'ft3_to_yd3', 'amount' => 150, 'waste_percent' => 10, 'purchase_increment' => 'half' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "ft3_to_yd3", "amount": 150, "waste_percent": 10, "purchase_increment": "half", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"ft3_to_yd3\",\"amount\":150,\"waste_percent\":10,\"purchase_increment\":\"half\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cubic-feet-to-cubic-yards`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cubic-feet-to-cubic-yards/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cubic-feet-to-cubic-yards/prompt.md`](/tools/cubic-feet-to-cubic-yards/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Cubic Feet to Cubic Yards Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cubic Feet to Cubic Yards Converter** — Convert cubic feet and cubic yards and optionally add material waste and order rounding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: ft3_to_yd3, yd3_to_ft3 — ft3_to_yd3 \| yd3_to_ft3 (default `ft3_to_yd3`) | | `amount` | float | no | volume to convert (default `27`) | | `waste_percent` | float | no | optional overage percentage (default `0`) | | `purchase_increment` | str | no | one of: none, quarter, half, whole; round the order upward — none \| quarter \| half \| whole; round the order upward (default `half`) | Example request body: ```json { "direction": "ft3_to_yd3", "amount": 150, "waste_percent": 10, "purchase_increment": "half" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cubic-feet-to-cubic-yards", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "ft3_to_yd3", "input_amount": 150.0, "cubic_feet": 150.0, "cubic_yards": 5.555555556, "waste_percent": 10.0, "adjusted_cubic_yards": 6.111111111, "purchase_increment": "half", "recommended_order_yards": 6.5 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Cubic Feet to Cubic Yards Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cubic Feet to Cubic Yards Converter** — Convert cubic feet and cubic yards and optionally add material waste and order rounding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: ft3_to_yd3, yd3_to_ft3 — ft3_to_yd3 \| yd3_to_ft3 (default `ft3_to_yd3`) | | `amount` | float | no | volume to convert (default `27`) | | `waste_percent` | float | no | optional overage percentage (default `0`) | | `purchase_increment` | str | no | one of: none, quarter, half, whole; round the order upward — none \| quarter \| half \| whole; round the order upward (default `half`) | Example request body: ```json { "direction": "ft3_to_yd3", "amount": 150, "waste_percent": 10, "purchase_increment": "half" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cubic-feet-to-cubic-yards", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "ft3_to_yd3", "input_amount": 150.0, "cubic_feet": 150.0, "cubic_yards": 5.555555556, "waste_percent": 10.0, "adjusted_cubic_yards": 6.111111111, "purchase_increment": "half", "recommended_order_yards": 6.5 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cubic-feet-to-cubic-yards.mdc copy prompt ```text --- description: MiniWebtool Cubic Feet to Cubic Yards Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Cubic Feet to Cubic Yards Converter API ## The API **Cubic Feet to Cubic Yards Converter** — Convert cubic feet and cubic yards and optionally add material waste and order rounding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: ft3_to_yd3, yd3_to_ft3 — ft3_to_yd3 \| yd3_to_ft3 (default `ft3_to_yd3`) | | `amount` | float | no | volume to convert (default `27`) | | `waste_percent` | float | no | optional overage percentage (default `0`) | | `purchase_increment` | str | no | one of: none, quarter, half, whole; round the order upward — none \| quarter \| half \| whole; round the order upward (default `half`) | Example request body: ```json { "direction": "ft3_to_yd3", "amount": 150, "waste_percent": 10, "purchase_increment": "half" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cubic-feet-to-cubic-yards", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "ft3_to_yd3", "input_amount": 150.0, "cubic_feet": 150.0, "cubic_yards": 5.555555556, "waste_percent": 10.0, "adjusted_cubic_yards": 6.111111111, "purchase_increment": "half", "recommended_order_yards": 6.5 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cubic-feet-to-cubic-yards` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cubic-feet-to-cubic-yards` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cubic-feet-to-cubic-yards - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cubic-feet-to-cubic-yards/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Cubic Feet to Cubic Yards Converter API do? + Convert cubic feet and cubic yards and optionally add material waste and order rounding. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Cubic Feet to Cubic Yards Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Cubic Feet to Cubic Yards Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Cubic Feet to Cubic Yards Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Cubic Feet to Cubic Yards Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cubic-feet-to-cubic-yards` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cubic-feet-to-cubic-yards`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cubic-feet-to-cubic-yards"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [conversion](/tools/#conversion) - / - Pounds to Kilograms Converter API # Pounds to Kilograms Converter API conversion 1 credit / call v2026-04-22 Convert mass between pounds and kilograms using the international avoirdupois pound. One POST adds Pounds to Kilograms Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Pounds to Kilograms Converter on miniwebtool.com →](https://miniwebtool.com/lbs-to-kg-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run ``` ### Request body Field Type Req. `direction` lb_to_kg | kg_to_lb `str` — `mass` mass to convert `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "lbs-to-kg-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → direction (str) lb_to_kg kg_to_lb lb_to_kg | kg_to_lb mass (float) mass to convert Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`lbs-to-kg-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"direction":"lb_to_kg","mass":150}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'direction': 'lb_to_kg', 'mass': 150}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"direction":"lb_to_kg","mass":150}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'direction' => 'lb_to_kg', 'mass' => 150 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'direction' => 'lb_to_kg', 'mass' => 150 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "direction": "lb_to_kg", "mass": 150, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"direction\":\"lb_to_kg\",\"mass\":150}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`lbs-to-kg-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/lbs-to-kg-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/lbs-to-kg-converter/prompt.md`](/tools/lbs-to-kg-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Pounds to Kilograms Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pounds to Kilograms Converter** — Convert mass between pounds and kilograms using the international avoirdupois pound. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: lb_to_kg, kg_to_lb — lb_to_kg \| kg_to_lb (default `lb_to_kg`) | | `mass` | float | no | mass to convert (default `150`) | Example request body: ```json { "direction": "lb_to_kg", "mass": 150 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lbs-to-kg-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "lb_to_kg", "input_mass": 150.0, "output_mass": 68.0388555, "output_unit": "kg", "pounds": 150.0, "kilograms": 68.0388555 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Pounds to Kilograms Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pounds to Kilograms Converter** — Convert mass between pounds and kilograms using the international avoirdupois pound. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: lb_to_kg, kg_to_lb — lb_to_kg \| kg_to_lb (default `lb_to_kg`) | | `mass` | float | no | mass to convert (default `150`) | Example request body: ```json { "direction": "lb_to_kg", "mass": 150 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lbs-to-kg-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "lb_to_kg", "input_mass": 150.0, "output_mass": 68.0388555, "output_unit": "kg", "pounds": 150.0, "kilograms": 68.0388555 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-lbs-to-kg-converter.mdc copy prompt ```text --- description: MiniWebtool Pounds to Kilograms Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Pounds to Kilograms Converter API ## The API **Pounds to Kilograms Converter** — Convert mass between pounds and kilograms using the international avoirdupois pound. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `direction` | str | no | one of: lb_to_kg, kg_to_lb — lb_to_kg \| kg_to_lb (default `lb_to_kg`) | | `mass` | float | no | mass to convert (default `150`) | Example request body: ```json { "direction": "lb_to_kg", "mass": 150 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "lbs-to-kg-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "direction": "lb_to_kg", "input_mass": 150.0, "output_mass": 68.0388555, "output_unit": "kg", "pounds": 150.0, "kilograms": 68.0388555 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `lbs-to-kg-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `lbs-to-kg-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call lbs-to-kg-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/lbs-to-kg-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Pounds to Kilograms Converter API do? + Convert mass between pounds and kilograms using the international avoirdupois pound. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Pounds to Kilograms Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Pounds to Kilograms Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Pounds to Kilograms Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Pounds to Kilograms Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `lbs-to-kg-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`lbs-to-kg-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"lbs-to-kg-converter"}}}' \ | jq.result.structuredContent ``` see-also related conversion tools [ Fuel Efficiency Converter Convert MPG, L/100km, km/L, and miles/L fuel-efficiency values. ](/tools/fuel-efficiency-converter-mpg-l-100km-km-l/) [ Scale Model Conversion Calculator Convert a length from one model scale to another. ](/tools/scale-model-conversion-calculator/) [ Volume Converter Convert volume among metric, US customary, cooking, and cubic units. ](/tools/volume-converter/) [ Weight (Mass) Converter Convert mass among metric, imperial, ton, stone, and carat units. ](/tools/weight-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [converters](/tools/#converters) - / - Torque Converter API # Torque Converter API converters 1 credit / call v2026-04-22 Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. One POST adds Torque Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Torque Converter on miniwebtool.com →](https://miniwebtool.com/torque-converter-nm-ft-lb-kgf-cm/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run ``` ### Request body Field Type Req. `value` `float` — `from_unit` nm | ftlb | inlb | kgfcm | kgfm | dyncm | ozin | ozft `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "torque-converter-nm-ft-lb-kgf-cm", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (float) from_unit (str) nm ftlb inlb kgfcm kgfm dyncm ozin ozft nm | ftlb | inlb | kgfcm | kgfm | dyncm | ozin | ozft precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`torque-converter-nm-ft-lb-kgf-cm`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"value":1,"from_unit":"nm","precision":8}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'value': 1, 'from_unit': 'nm', 'precision': 8}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"value":1,"from_unit":"nm","precision":8}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'value' => 1, 'from_unit' => 'nm', 'precision' => 8 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'value' => 1, 'from_unit' => 'nm', 'precision' => 8 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "value": 1, "from_unit": "nm", "precision": 8, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"value\":1,\"from_unit\":\"nm\",\"precision\":8}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`torque-converter-nm-ft-lb-kgf-cm`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/torque-converter-nm-ft-lb-kgf-cm/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/torque-converter-nm-ft-lb-kgf-cm/prompt.md`](/tools/torque-converter-nm-ft-lb-kgf-cm/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Torque Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Torque Converter** — Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `1.0`) | | `from_unit` | str | no | one of: nm, ftlb, inlb, kgfcm, kgfm, dyncm, ozin, ozft — nm \| ftlb \| inlb \| kgfcm \| kgfm \| dyncm \| ozin \| ozft (default `nm`) | | `precision` | int | no | (default `8`) | Example request body: ```json { "value": 1, "from_unit": "nm", "precision": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "torque-converter-nm-ft-lb-kgf-cm", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input": { "value": 1.0, "unit": "nm" }, "newton_meters": 1.0, "foot_pounds": 0.73756215, "inch_pounds": 8.85074579, "kilogram_force_centimeters": 10.19716213, "kilogram_force_meters": 0.10197162, "dyne_centimeters": 10000000.0, "ounce_inches": 141.61193275, "ounce_feet": 11.80099438, "conversions": { "nm": 1.0, "ftlb": 0.73756215, "inlb": 8.85074579, "kgfcm": 10.19716213, "kgfm": 0.10197162, "dyncm": 10000000.0, "ozin": 141.61193275, "ozft": 11.80099438 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Torque Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Torque Converter** — Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `1.0`) | | `from_unit` | str | no | one of: nm, ftlb, inlb, kgfcm, kgfm, dyncm, ozin, ozft — nm \| ftlb \| inlb \| kgfcm \| kgfm \| dyncm \| ozin \| ozft (default `nm`) | | `precision` | int | no | (default `8`) | Example request body: ```json { "value": 1, "from_unit": "nm", "precision": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "torque-converter-nm-ft-lb-kgf-cm", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input": { "value": 1.0, "unit": "nm" }, "newton_meters": 1.0, "foot_pounds": 0.73756215, "inch_pounds": 8.85074579, "kilogram_force_centimeters": 10.19716213, "kilogram_force_meters": 0.10197162, "dyne_centimeters": 10000000.0, "ounce_inches": 141.61193275, "ounce_feet": 11.80099438, "conversions": { "nm": 1.0, "ftlb": 0.73756215, "inlb": 8.85074579, "kgfcm": 10.19716213, "kgfm": 0.10197162, "dyncm": 10000000.0, "ozin": 141.61193275, "ozft": 11.80099438 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-torque-converter-nm-ft-lb-kgf-cm.mdc copy prompt ```text --- description: MiniWebtool Torque Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Torque Converter API ## The API **Torque Converter** — Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | float | no | (default `1.0`) | | `from_unit` | str | no | one of: nm, ftlb, inlb, kgfcm, kgfm, dyncm, ozin, ozft — nm \| ftlb \| inlb \| kgfcm \| kgfm \| dyncm \| ozin \| ozft (default `nm`) | | `precision` | int | no | (default `8`) | Example request body: ```json { "value": 1, "from_unit": "nm", "precision": 8 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "torque-converter-nm-ft-lb-kgf-cm", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input": { "value": 1.0, "unit": "nm" }, "newton_meters": 1.0, "foot_pounds": 0.73756215, "inch_pounds": 8.85074579, "kilogram_force_centimeters": 10.19716213, "kilogram_force_meters": 0.10197162, "dyne_centimeters": 10000000.0, "ounce_inches": 141.61193275, "ounce_feet": 11.80099438, "conversions": { "nm": 1.0, "ftlb": 0.73756215, "inlb": 8.85074579, "kgfcm": 10.19716213, "kgfm": 0.10197162, "dyncm": 10000000.0, "ozin": 141.61193275, "ozft": 11.80099438 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `torque-converter-nm-ft-lb-kgf-cm` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `torque-converter-nm-ft-lb-kgf-cm` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call torque-converter-nm-ft-lb-kgf-cm - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/torque-converter-nm-ft-lb-kgf-cm/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Torque Converter API do? + Convert torque between Nm, ft-lb, in-lb, kgf-cm, kgf-m, dyn-cm, oz-in, and oz-ft. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Torque Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Torque Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Torque Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Torque Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `torque-converter-nm-ft-lb-kgf-cm` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`torque-converter-nm-ft-lb-kgf-cm`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"torque-converter-nm-ft-lb-kgf-cm"}}}' \ | jq.result.structuredContent ``` API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Baking Pan Size Converter API # Baking Pan Size Converter API cooking 1 credit / call v2026-04-22 Scale a recipe when switching between common baking pan sizes. One POST adds Baking Pan Size Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Baking Pan Size Converter on miniwebtool.com →](https://miniwebtool.com/baking-pan-size-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run ``` ### Request body Field Type Req. `original_pan_type` round | square | rectangle | springform | bundt | loaf | tube `str` — `new_pan_type` round | square | rectangle | springform | bundt | loaf | tube `str` — `unit` in | cm `str` — `original_diameter` `float | None` — `original_length` `float | None` — `original_width` `float | None` — `original_depth` `float | None` — `new_diameter` `float | None` — `new_length` `float | None` — `new_width` `float | None` — `new_depth` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "baking-pan-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → original_pan_type (str) round square rectangle springform bundt loaf tube round | square | rectangle | springform | bundt | loaf | tube new_pan_type (str) round square rectangle springform bundt loaf tube round | square | rectangle | springform | bundt | loaf | tube unit (str) in cm in | cm original_diameter (float | None) original_length (float | None) original_width (float | None) original_depth (float | None) new_diameter (float | None) new_length (float | None) new_width (float | None) new_depth (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`baking-pan-size-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"original_pan_type":"rectangle","new_pan_type":"round","unit":"in","original_length":13,"original_width":9,"new_diameter":9,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'original_pan_type': 'rectangle', 'new_pan_type': 'round', 'unit': 'in', 'original_length': 13, 'original_width': 9, 'new_diameter': 9, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"original_pan_type":"rectangle","new_pan_type":"round","unit":"in","original_length":13,"original_width":9,"new_diameter":9,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'original_pan_type' => 'rectangle', 'new_pan_type' => 'round', 'unit' => 'in', 'original_length' => 13, 'original_width' => 9, 'new_diameter' => 9, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'original_pan_type' => 'rectangle', 'new_pan_type' => 'round', 'unit' => 'in', 'original_length' => 13, 'original_width' => 9, 'new_diameter' => 9, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_length": 13, "original_width": 9, "new_diameter": 9, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"original_pan_type\":\"rectangle\",\"new_pan_type\":\"round\",\"unit\":\"in\",\"original_length\":13,\"original_width\":9,\"new_diameter\":9,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`baking-pan-size-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/baking-pan-size-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/baking-pan-size-converter/prompt.md`](/tools/baking-pan-size-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Baking Pan Size Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Baking Pan Size Converter** — Scale a recipe when switching between common baking pan sizes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_pan_type` | str | no | one of: round, square, rectangle, springform, bundt, loaf, tube — round \| square \| rectangle \| springform \| bundt \| loaf \| tube (default `rectangle`) | | `new_pan_type` | str | no | one of: round, square, rectangle, springform, bundt, loaf, tube — round \| square \| rectangle \| springform \| bundt \| loaf \| tube (default `round`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `original_diameter` | float | None | no | — | | `original_length` | float | None | no | (default `13.0`) | | `original_width` | float | None | no | (default `9.0`) | | `original_depth` | float | None | no | — | | `new_diameter` | float | None | no | (default `9.0`) | | `new_length` | float | None | no | — | | `new_width` | float | None | no | — | | `new_depth` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_length": 13, "original_width": 9, "new_diameter": 9, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "baking-pan-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_area": 117.0, "new_area": 63.6173, "area_scale_factor": 0.5437, "area_scale_percent": 54.3737, "original_volume": null, "new_volume": null, "volume_scale_factor": null, "volume_scale_percent": null, "use_volume": false, "final_scale_factor": 0.5437, "percent_change": 45.6263, "direction": "decrease" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Baking Pan Size Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Baking Pan Size Converter** — Scale a recipe when switching between common baking pan sizes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_pan_type` | str | no | one of: round, square, rectangle, springform, bundt, loaf, tube — round \| square \| rectangle \| springform \| bundt \| loaf \| tube (default `rectangle`) | | `new_pan_type` | str | no | one of: round, square, rectangle, springform, bundt, loaf, tube — round \| square \| rectangle \| springform \| bundt \| loaf \| tube (default `round`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `original_diameter` | float | None | no | — | | `original_length` | float | None | no | (default `13.0`) | | `original_width` | float | None | no | (default `9.0`) | | `original_depth` | float | None | no | — | | `new_diameter` | float | None | no | (default `9.0`) | | `new_length` | float | None | no | — | | `new_width` | float | None | no | — | | `new_depth` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_length": 13, "original_width": 9, "new_diameter": 9, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "baking-pan-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_area": 117.0, "new_area": 63.6173, "area_scale_factor": 0.5437, "area_scale_percent": 54.3737, "original_volume": null, "new_volume": null, "volume_scale_factor": null, "volume_scale_percent": null, "use_volume": false, "final_scale_factor": 0.5437, "percent_change": 45.6263, "direction": "decrease" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-baking-pan-size-converter.mdc copy prompt ```text --- description: MiniWebtool Baking Pan Size Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Baking Pan Size Converter API ## The API **Baking Pan Size Converter** — Scale a recipe when switching between common baking pan sizes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_pan_type` | str | no | one of: round, square, rectangle, springform, bundt, loaf, tube — round \| square \| rectangle \| springform \| bundt \| loaf \| tube (default `rectangle`) | | `new_pan_type` | str | no | one of: round, square, rectangle, springform, bundt, loaf, tube — round \| square \| rectangle \| springform \| bundt \| loaf \| tube (default `round`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `original_diameter` | float | None | no | — | | `original_length` | float | None | no | (default `13.0`) | | `original_width` | float | None | no | (default `9.0`) | | `original_depth` | float | None | no | — | | `new_diameter` | float | None | no | (default `9.0`) | | `new_length` | float | None | no | — | | `new_width` | float | None | no | — | | `new_depth` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_length": 13, "original_width": 9, "new_diameter": 9, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "baking-pan-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_pan_type": "rectangle", "new_pan_type": "round", "unit": "in", "original_area": 117.0, "new_area": 63.6173, "area_scale_factor": 0.5437, "area_scale_percent": 54.3737, "original_volume": null, "new_volume": null, "volume_scale_factor": null, "volume_scale_percent": null, "use_volume": false, "final_scale_factor": 0.5437, "percent_change": 45.6263, "direction": "decrease" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `baking-pan-size-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `baking-pan-size-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call baking-pan-size-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/baking-pan-size-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Baking Pan Size Converter API do? + Scale a recipe when switching between common baking pan sizes. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Baking Pan Size Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Baking Pan Size Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Baking Pan Size Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Baking Pan Size Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `baking-pan-size-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`baking-pan-size-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"baking-pan-size-converter"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Dough Hydration Calculator API # Dough Hydration Calculator API cooking 1 credit / call v2026-04-22 Calculate dough hydration, required water, or a simple baker's percentage recipe. One POST adds Dough Hydration Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Dough Hydration Calculator on miniwebtool.com →](https://miniwebtool.com/dough-hydration-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run ``` ### Request body Field Type Req. `mode` hydration | water | recipe `str` — `flour_weight` `float` — `water_weight` `float | None` — `target_hydration` `float` — `salt_percent` `float` — `yeast_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "dough-hydration-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → mode (str) hydration water recipe hydration | water | recipe flour_weight (float) water_weight (float | None) target_hydration (float) salt_percent (float) yeast_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`dough-hydration-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"mode":"recipe","flour_weight":500,"target_hydration":70,"salt_percent":2,"yeast_percent":1,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'mode': 'recipe', 'flour_weight': 500, 'target_hydration': 70, 'salt_percent': 2, 'yeast_percent': 1, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"mode":"recipe","flour_weight":500,"target_hydration":70,"salt_percent":2,"yeast_percent":1,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'mode' => 'recipe', 'flour_weight' => 500, 'target_hydration' => 70, 'salt_percent' => 2, 'yeast_percent' => 1, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'mode' => 'recipe', 'flour_weight' => 500, 'target_hydration' => 70, 'salt_percent' => 2, 'yeast_percent' => 1, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "mode": "recipe", "flour_weight": 500, "target_hydration": 70, "salt_percent": 2, "yeast_percent": 1, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"mode\":\"recipe\",\"flour_weight\":500,\"target_hydration\":70,\"salt_percent\":2,\"yeast_percent\":1,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`dough-hydration-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/dough-hydration-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/dough-hydration-calculator/prompt.md`](/tools/dough-hydration-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Dough Hydration Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Dough Hydration Calculator** — Calculate dough hydration, required water, or a simple baker's percentage recipe. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: hydration, water, recipe — hydration \| water \| recipe (default `hydration`) | | `flour_weight` | float | no | (default `500.0`) | | `water_weight` | float | None | no | (default `350.0`) | | `target_hydration` | float | no | (default `70.0`) | | `salt_percent` | float | no | (default `2.0`) | | `yeast_percent` | float | no | (default `1.0`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "mode": "recipe", "flour_weight": 500, "target_hydration": 70, "salt_percent": 2, "yeast_percent": 1, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "dough-hydration-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "recipe", "flour_weight": 500.0, "target_hydration_percent": 70.0, "water_weight": 350.0, "salt_weight": 10.0, "yeast_weight": 5.0, "total_dough_weight": 865.0, "description": { "level": "medium", "texture": "soft_slightly_sticky", "typical_uses": "pizza_focaccia_artisan_breads" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Dough Hydration Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Dough Hydration Calculator** — Calculate dough hydration, required water, or a simple baker's percentage recipe. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: hydration, water, recipe — hydration \| water \| recipe (default `hydration`) | | `flour_weight` | float | no | (default `500.0`) | | `water_weight` | float | None | no | (default `350.0`) | | `target_hydration` | float | no | (default `70.0`) | | `salt_percent` | float | no | (default `2.0`) | | `yeast_percent` | float | no | (default `1.0`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "mode": "recipe", "flour_weight": 500, "target_hydration": 70, "salt_percent": 2, "yeast_percent": 1, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "dough-hydration-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "recipe", "flour_weight": 500.0, "target_hydration_percent": 70.0, "water_weight": 350.0, "salt_weight": 10.0, "yeast_weight": 5.0, "total_dough_weight": 865.0, "description": { "level": "medium", "texture": "soft_slightly_sticky", "typical_uses": "pizza_focaccia_artisan_breads" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-dough-hydration-calculator.mdc copy prompt ```text --- description: MiniWebtool Dough Hydration Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Dough Hydration Calculator API ## The API **Dough Hydration Calculator** — Calculate dough hydration, required water, or a simple baker's percentage recipe. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: hydration, water, recipe — hydration \| water \| recipe (default `hydration`) | | `flour_weight` | float | no | (default `500.0`) | | `water_weight` | float | None | no | (default `350.0`) | | `target_hydration` | float | no | (default `70.0`) | | `salt_percent` | float | no | (default `2.0`) | | `yeast_percent` | float | no | (default `1.0`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "mode": "recipe", "flour_weight": 500, "target_hydration": 70, "salt_percent": 2, "yeast_percent": 1, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "dough-hydration-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "recipe", "flour_weight": 500.0, "target_hydration_percent": 70.0, "water_weight": 350.0, "salt_weight": 10.0, "yeast_weight": 5.0, "total_dough_weight": 865.0, "description": { "level": "medium", "texture": "soft_slightly_sticky", "typical_uses": "pizza_focaccia_artisan_breads" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `dough-hydration-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `dough-hydration-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call dough-hydration-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/dough-hydration-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Dough Hydration Calculator API do? + Calculate dough hydration, required water, or a simple baker's percentage recipe. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Dough Hydration Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Dough Hydration Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Dough Hydration Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Dough Hydration Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `dough-hydration-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`dough-hydration-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"dough-hydration-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) [ Sourdough Calculator Calculate sourdough flour, water, starter, salt, and dough weight. ](/tools/sourdough-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Sourdough Calculator API # Sourdough Calculator API cooking 1 credit / call v2026-04-22 Calculate sourdough flour, water, starter, salt, and dough weight. One POST adds Sourdough Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Sourdough Calculator on miniwebtool.com →](https://miniwebtool.com/sourdough-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/run ``` ### Request body Field Type Req. `flour_grams` `float` — `hydration_percent` `float` — `starter_percent` `float` — `salt_percent` `float` — `starter_hydration_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "sourdough-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → flour_grams (float) hydration_percent (float) starter_percent (float) salt_percent (float) starter_hydration_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`sourdough-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/sourdough-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/sourdough-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/sourdough-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/sourdough-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/sourdough-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`sourdough-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/sourdough-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/sourdough-calculator/prompt.md`](/tools/sourdough-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Sourdough Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Sourdough Calculator** — Calculate sourdough flour, water, starter, salt, and dough weight. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `flour_grams` | float | no | (default `500`) | | `hydration_percent` | float | no | (default `75`) | | `starter_percent` | float | no | (default `20`) | | `salt_percent` | float | no | (default `2`) | | `starter_hydration_percent` | float | no | (default `100`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sourdough-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_flour_grams": 500.0, "hydration_percent": 75.0, "starter_percent": 20.0, "salt_percent": 2.0, "starter_hydration_percent": 100.0, "starter_grams": 100.0, "starter_flour_grams": 50.0, "starter_water_grams": 50.0, "added_flour_grams": 450.0, "added_water_grams": 325.0, "salt_grams": 10.0, "total_dough_grams": 885.0, "chart_data": { "breakdown": [ { "label": "Added flour", "value": 450.0 }, { "label": "Added water", "value": 325.0 }, { "label": "Starter", "value": 100.0 }, { "label": "Salt", "value": 10.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Sourdough Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Sourdough Calculator** — Calculate sourdough flour, water, starter, salt, and dough weight. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `flour_grams` | float | no | (default `500`) | | `hydration_percent` | float | no | (default `75`) | | `starter_percent` | float | no | (default `20`) | | `salt_percent` | float | no | (default `2`) | | `starter_hydration_percent` | float | no | (default `100`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sourdough-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_flour_grams": 500.0, "hydration_percent": 75.0, "starter_percent": 20.0, "salt_percent": 2.0, "starter_hydration_percent": 100.0, "starter_grams": 100.0, "starter_flour_grams": 50.0, "starter_water_grams": 50.0, "added_flour_grams": 450.0, "added_water_grams": 325.0, "salt_grams": 10.0, "total_dough_grams": 885.0, "chart_data": { "breakdown": [ { "label": "Added flour", "value": 450.0 }, { "label": "Added water", "value": 325.0 }, { "label": "Starter", "value": 100.0 }, { "label": "Salt", "value": 10.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-sourdough-calculator.mdc copy prompt ```text --- description: MiniWebtool Sourdough Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Sourdough Calculator API ## The API **Sourdough Calculator** — Calculate sourdough flour, water, starter, salt, and dough weight. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sourdough-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `flour_grams` | float | no | (default `500`) | | `hydration_percent` | float | no | (default `75`) | | `starter_percent` | float | no | (default `20`) | | `salt_percent` | float | no | (default `2`) | | `starter_hydration_percent` | float | no | (default `100`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sourdough-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "total_flour_grams": 500.0, "hydration_percent": 75.0, "starter_percent": 20.0, "salt_percent": 2.0, "starter_hydration_percent": 100.0, "starter_grams": 100.0, "starter_flour_grams": 50.0, "starter_water_grams": 50.0, "added_flour_grams": 450.0, "added_water_grams": 325.0, "salt_grams": 10.0, "total_dough_grams": 885.0, "chart_data": { "breakdown": [ { "label": "Added flour", "value": 450.0 }, { "label": "Added water", "value": 325.0 }, { "label": "Starter", "value": 100.0 }, { "label": "Salt", "value": 10.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `sourdough-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `sourdough-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call sourdough-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/sourdough-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Sourdough Calculator API do? + Calculate sourdough flour, water, starter, salt, and dough weight. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Sourdough Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Sourdough Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Sourdough Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Sourdough Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `sourdough-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`sourdough-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"sourdough-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Coffee Brew Ratio Calculator API # Coffee Brew Ratio Calculator API cooking 1 credit / call v2026-04-22 Calculate coffee and water amounts for common brewing methods and strengths. One POST adds Coffee Brew Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Coffee Brew Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/coffee-brew-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run ``` ### Request body Field Type Req. `method` pour_over | espresso | french_press | cold_brew | aeropress | moka_pot | drip `str` — `solve_for` water | coffee `str` — `amount_grams` `float` — `strength` `int` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "coffee-brew-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → method (str) pour_over espresso french_press cold_brew aeropress moka_pot drip pour_over | espresso | french_press | cold_brew | aeropress | moka_pot | drip solve_for (str) water coffee water | coffee amount_grams (float) strength (int) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`coffee-brew-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"method":"pour_over","solve_for":"water","amount_grams":18,"strength":1,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'method': 'pour_over', 'solve_for': 'water', 'amount_grams': 18, 'strength': 1, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"method":"pour_over","solve_for":"water","amount_grams":18,"strength":1,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'method' => 'pour_over', 'solve_for' => 'water', 'amount_grams' => 18, 'strength' => 1, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'method' => 'pour_over', 'solve_for' => 'water', 'amount_grams' => 18, 'strength' => 1, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "method": "pour_over", "solve_for": "water", "amount_grams": 18, "strength": 1, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"method\":\"pour_over\",\"solve_for\":\"water\",\"amount_grams\":18,\"strength\":1,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`coffee-brew-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/coffee-brew-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/coffee-brew-ratio-calculator/prompt.md`](/tools/coffee-brew-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Coffee Brew Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Coffee Brew Ratio Calculator** — Calculate coffee and water amounts for common brewing methods and strengths. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `method` | str | no | one of: pour_over, espresso, french_press, cold_brew, aeropress, moka_pot, drip — pour_over \| espresso \| french_press \| cold_brew \| aeropress \| moka_pot \| drip (default `pour_over`) | | `solve_for` | str | no | one of: water, coffee — water \| coffee (default `water`) | | `amount_grams` | float | no | (default `18.0`) | | `strength` | int | no | (default `1`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "method": "pour_over", "solve_for": "water", "amount_grams": 18, "strength": 1, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "coffee-brew-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "method": "pour_over", "method_name": "Pour Over", "solve_for": "water", "strength": 1, "strength_name": "medium", "ratio": 16.0, "ratio_display": "1:16", "coffee_grams": 18.0, "coffee_ounces": 0.63, "coffee_tablespoons": 3.6, "water_grams": 288.0, "water_ounces": 10.16, "water_ml": 288.0, "water_cups": 1.22, "yield_ml": 253.44, "yield_cups": 1.07, "grind_size": "Medium-fine", "water_temp": "195-205 F", "brew_time": "2:30 - 4:00 min" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Coffee Brew Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Coffee Brew Ratio Calculator** — Calculate coffee and water amounts for common brewing methods and strengths. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `method` | str | no | one of: pour_over, espresso, french_press, cold_brew, aeropress, moka_pot, drip — pour_over \| espresso \| french_press \| cold_brew \| aeropress \| moka_pot \| drip (default `pour_over`) | | `solve_for` | str | no | one of: water, coffee — water \| coffee (default `water`) | | `amount_grams` | float | no | (default `18.0`) | | `strength` | int | no | (default `1`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "method": "pour_over", "solve_for": "water", "amount_grams": 18, "strength": 1, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "coffee-brew-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "method": "pour_over", "method_name": "Pour Over", "solve_for": "water", "strength": 1, "strength_name": "medium", "ratio": 16.0, "ratio_display": "1:16", "coffee_grams": 18.0, "coffee_ounces": 0.63, "coffee_tablespoons": 3.6, "water_grams": 288.0, "water_ounces": 10.16, "water_ml": 288.0, "water_cups": 1.22, "yield_ml": 253.44, "yield_cups": 1.07, "grind_size": "Medium-fine", "water_temp": "195-205 F", "brew_time": "2:30 - 4:00 min" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-coffee-brew-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Coffee Brew Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Coffee Brew Ratio Calculator API ## The API **Coffee Brew Ratio Calculator** — Calculate coffee and water amounts for common brewing methods and strengths. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `method` | str | no | one of: pour_over, espresso, french_press, cold_brew, aeropress, moka_pot, drip — pour_over \| espresso \| french_press \| cold_brew \| aeropress \| moka_pot \| drip (default `pour_over`) | | `solve_for` | str | no | one of: water, coffee — water \| coffee (default `water`) | | `amount_grams` | float | no | (default `18.0`) | | `strength` | int | no | (default `1`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "method": "pour_over", "solve_for": "water", "amount_grams": 18, "strength": 1, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "coffee-brew-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "method": "pour_over", "method_name": "Pour Over", "solve_for": "water", "strength": 1, "strength_name": "medium", "ratio": 16.0, "ratio_display": "1:16", "coffee_grams": 18.0, "coffee_ounces": 0.63, "coffee_tablespoons": 3.6, "water_grams": 288.0, "water_ounces": 10.16, "water_ml": 288.0, "water_cups": 1.22, "yield_ml": 253.44, "yield_cups": 1.07, "grind_size": "Medium-fine", "water_temp": "195-205 F", "brew_time": "2:30 - 4:00 min" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `coffee-brew-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `coffee-brew-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call coffee-brew-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/coffee-brew-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Coffee Brew Ratio Calculator API do? + Calculate coffee and water amounts for common brewing methods and strengths. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Coffee Brew Ratio Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Coffee Brew Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Coffee Brew Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Coffee Brew Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `coffee-brew-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`coffee-brew-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"coffee-brew-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Cooking Unit Converter API # Cooking Unit Converter API cooking 1 credit / call v2026-04-22 Convert cooking volume and weight units using ingredient density. One POST adds Cooking Unit Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Cooking Unit Converter on miniwebtool.com →](https://miniwebtool.com/cooking-unit-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run ``` ### Request body Field Type Req. `amount` `float` — `from_unit` teaspoon | tablespoon | cup | fluid_ounce | pint | quart | gallon | milliliter | liter | gram | kilogram | ounce | pound `str` — `to_unit` teaspoon | tablespoon | cup | fluid_ounce | pint | quart | gallon | milliliter | liter | gram | kilogram | ounce | pound `str` — `ingredient` water | all_purpose_flour | bread_flour | granulated_sugar | brown_sugar | butter | milk | oil | honey | rice | salt `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cooking-unit-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → amount (float) from_unit (str) teaspoon tablespoon cup fluid_ounce pint quart gallon milliliter liter gram kilogram ounce pound teaspoon | tablespoon | cup | fluid_ounce | pint | quart | gallon | milliliter | liter | gram | kilogram | ounce | pound to_unit (str) teaspoon tablespoon cup fluid_ounce pint quart gallon milliliter liter gram kilogram ounce pound teaspoon | tablespoon | cup | fluid_ounce | pint | quart | gallon | milliliter | liter | gram | kilogram | ounce | pound ingredient (str) water all_purpose_flour bread_flour granulated_sugar brown_sugar butter milk oil honey rice salt water | all_purpose_flour | bread_flour | granulated_sugar | brown_sugar | butter | milk | oil | honey | rice | salt precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cooking-unit-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"amount":1,"from_unit":"cup","to_unit":"gram","ingredient":"all_purpose_flour","precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'amount': 1, 'from_unit': 'cup', 'to_unit': 'gram', 'ingredient': 'all_purpose_flour', 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"amount":1,"from_unit":"cup","to_unit":"gram","ingredient":"all_purpose_flour","precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'amount' => 1, 'from_unit' => 'cup', 'to_unit' => 'gram', 'ingredient' => 'all_purpose_flour', 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'amount' => 1, 'from_unit' => 'cup', 'to_unit' => 'gram', 'ingredient' => 'all_purpose_flour', 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "amount": 1, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"amount\":1,\"from_unit\":\"cup\",\"to_unit\":\"gram\",\"ingredient\":\"all_purpose_flour\",\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cooking-unit-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cooking-unit-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cooking-unit-converter/prompt.md`](/tools/cooking-unit-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Cooking Unit Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cooking Unit Converter** — Convert cooking volume and weight units using ingredient density. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount` | float | no | (default `1.0`) | | `from_unit` | str | no | one of: teaspoon, tablespoon, cup, fluid_ounce, pint, quart, gallon, milliliter, liter, gram, kilogram, ounce, pound — teaspoon \| tablespoon \| cup \| fluid_ounce \| pint \| quart \| gallon \| milliliter \| liter \| gram \| kilogram \| ounce \| pound (default `cup`) | | `to_unit` | str | no | one of: teaspoon, tablespoon, cup, fluid_ounce, pint, quart, gallon, milliliter, liter, gram, kilogram, ounce, pound — teaspoon \| tablespoon \| cup \| fluid_ounce \| pint \| quart \| gallon \| milliliter \| liter \| gram \| kilogram \| ounce \| pound (default `gram`) | | `ingredient` | str | no | one of: water, all_purpose_flour, bread_flour, granulated_sugar, brown_sugar, butter, milk, oil, honey, rice, salt — water \| all_purpose_flour \| bread_flour \| granulated_sugar \| brown_sugar \| butter \| milk \| oil \| honey \| rice \| salt (default `all_purpose_flour`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "amount": 1, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cooking-unit-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount": 1.0, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "converted_value": 120.0, "grams": 120.0, "milliliters_equivalent": 236.5882, "grams_per_cup": 120.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Cooking Unit Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cooking Unit Converter** — Convert cooking volume and weight units using ingredient density. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount` | float | no | (default `1.0`) | | `from_unit` | str | no | one of: teaspoon, tablespoon, cup, fluid_ounce, pint, quart, gallon, milliliter, liter, gram, kilogram, ounce, pound — teaspoon \| tablespoon \| cup \| fluid_ounce \| pint \| quart \| gallon \| milliliter \| liter \| gram \| kilogram \| ounce \| pound (default `cup`) | | `to_unit` | str | no | one of: teaspoon, tablespoon, cup, fluid_ounce, pint, quart, gallon, milliliter, liter, gram, kilogram, ounce, pound — teaspoon \| tablespoon \| cup \| fluid_ounce \| pint \| quart \| gallon \| milliliter \| liter \| gram \| kilogram \| ounce \| pound (default `gram`) | | `ingredient` | str | no | one of: water, all_purpose_flour, bread_flour, granulated_sugar, brown_sugar, butter, milk, oil, honey, rice, salt — water \| all_purpose_flour \| bread_flour \| granulated_sugar \| brown_sugar \| butter \| milk \| oil \| honey \| rice \| salt (default `all_purpose_flour`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "amount": 1, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cooking-unit-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount": 1.0, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "converted_value": 120.0, "grams": 120.0, "milliliters_equivalent": 236.5882, "grams_per_cup": 120.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cooking-unit-converter.mdc copy prompt ```text --- description: MiniWebtool Cooking Unit Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Cooking Unit Converter API ## The API **Cooking Unit Converter** — Convert cooking volume and weight units using ingredient density. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cooking-unit-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount` | float | no | (default `1.0`) | | `from_unit` | str | no | one of: teaspoon, tablespoon, cup, fluid_ounce, pint, quart, gallon, milliliter, liter, gram, kilogram, ounce, pound — teaspoon \| tablespoon \| cup \| fluid_ounce \| pint \| quart \| gallon \| milliliter \| liter \| gram \| kilogram \| ounce \| pound (default `cup`) | | `to_unit` | str | no | one of: teaspoon, tablespoon, cup, fluid_ounce, pint, quart, gallon, milliliter, liter, gram, kilogram, ounce, pound — teaspoon \| tablespoon \| cup \| fluid_ounce \| pint \| quart \| gallon \| milliliter \| liter \| gram \| kilogram \| ounce \| pound (default `gram`) | | `ingredient` | str | no | one of: water, all_purpose_flour, bread_flour, granulated_sugar, brown_sugar, butter, milk, oil, honey, rice, salt — water \| all_purpose_flour \| bread_flour \| granulated_sugar \| brown_sugar \| butter \| milk \| oil \| honey \| rice \| salt (default `all_purpose_flour`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "amount": 1, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cooking-unit-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount": 1.0, "from_unit": "cup", "to_unit": "gram", "ingredient": "all_purpose_flour", "converted_value": 120.0, "grams": 120.0, "milliliters_equivalent": 236.5882, "grams_per_cup": 120.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cooking-unit-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cooking-unit-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cooking-unit-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cooking-unit-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Cooking Unit Converter API do? + Convert cooking volume and weight units using ingredient density. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Cooking Unit Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Cooking Unit Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Cooking Unit Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Cooking Unit Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cooking-unit-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cooking-unit-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cooking-unit-converter"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Cups to Grams Converter API # Cups to Grams Converter API cooking 1 credit / call v2026-04-22 Convert cups to grams for common cooking ingredients. One POST adds Cups to Grams Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Cups to Grams Converter on miniwebtool.com →](https://miniwebtool.com/cups-to-grams-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run ``` ### Request body Field Type Req. `amount_cups` `float` — `ingredient` water | all_purpose_flour | bread_flour | cake_flour | granulated_sugar | brown_sugar | powdered_sugar | butter | honey | milk | oil | cocoa_powder | rice | rolled_oats | salt `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cups-to-grams-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → amount_cups (float) ingredient (str) water all_purpose_flour bread_flour cake_flour granulated_sugar brown_sugar powdered_sugar butter honey milk oil cocoa_powder rice rolled_oats salt water | all_purpose_flour | bread_flour | cake_flour | granulated_sugar | brown_sugar | powdered_sugar | butter | honey | milk | oil | cocoa_powder | rice | rolled_oats | salt precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cups-to-grams-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"amount_cups":2,"ingredient":"all_purpose_flour","precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'amount_cups': 2, 'ingredient': 'all_purpose_flour', 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"amount_cups":2,"ingredient":"all_purpose_flour","precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'amount_cups' => 2, 'ingredient' => 'all_purpose_flour', 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'amount_cups' => 2, 'ingredient' => 'all_purpose_flour', 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "amount_cups": 2, "ingredient": "all_purpose_flour", "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"amount_cups\":2,\"ingredient\":\"all_purpose_flour\",\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cups-to-grams-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cups-to-grams-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cups-to-grams-converter/prompt.md`](/tools/cups-to-grams-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Cups to Grams Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cups to Grams Converter** — Convert cups to grams for common cooking ingredients. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount_cups` | float | no | (default `1.0`) | | `ingredient` | str | no | one of: water, all_purpose_flour, bread_flour, cake_flour, granulated_sugar, brown_sugar, powdered_sugar, butter, honey, milk, oil, cocoa_powder, rice, rolled_oats, salt — water \| all_purpose_flour \| bread_flour \| cake_flour \| granulated_sugar \| brown_sugar \| powdered_sugar \| butter \| honey \| milk \| oil \| cocoa_powder \| rice \| rolled_oats \| salt (default `all_purpose_flour`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "amount_cups": 2, "ingredient": "all_purpose_flour", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cups-to-grams-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount_cups": 2.0, "ingredient": "all_purpose_flour", "grams_per_cup": 120.0, "grams": 240.0, "ounces": 8.47, "tablespoons": 32.0, "teaspoons": 96.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Cups to Grams Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cups to Grams Converter** — Convert cups to grams for common cooking ingredients. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount_cups` | float | no | (default `1.0`) | | `ingredient` | str | no | one of: water, all_purpose_flour, bread_flour, cake_flour, granulated_sugar, brown_sugar, powdered_sugar, butter, honey, milk, oil, cocoa_powder, rice, rolled_oats, salt — water \| all_purpose_flour \| bread_flour \| cake_flour \| granulated_sugar \| brown_sugar \| powdered_sugar \| butter \| honey \| milk \| oil \| cocoa_powder \| rice \| rolled_oats \| salt (default `all_purpose_flour`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "amount_cups": 2, "ingredient": "all_purpose_flour", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cups-to-grams-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount_cups": 2.0, "ingredient": "all_purpose_flour", "grams_per_cup": 120.0, "grams": 240.0, "ounces": 8.47, "tablespoons": 32.0, "teaspoons": 96.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cups-to-grams-converter.mdc copy prompt ```text --- description: MiniWebtool Cups to Grams Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Cups to Grams Converter API ## The API **Cups to Grams Converter** — Convert cups to grams for common cooking ingredients. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount_cups` | float | no | (default `1.0`) | | `ingredient` | str | no | one of: water, all_purpose_flour, bread_flour, cake_flour, granulated_sugar, brown_sugar, powdered_sugar, butter, honey, milk, oil, cocoa_powder, rice, rolled_oats, salt — water \| all_purpose_flour \| bread_flour \| cake_flour \| granulated_sugar \| brown_sugar \| powdered_sugar \| butter \| honey \| milk \| oil \| cocoa_powder \| rice \| rolled_oats \| salt (default `all_purpose_flour`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "amount_cups": 2, "ingredient": "all_purpose_flour", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cups-to-grams-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount_cups": 2.0, "ingredient": "all_purpose_flour", "grams_per_cup": 120.0, "grams": 240.0, "ounces": 8.47, "tablespoons": 32.0, "teaspoons": 96.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cups-to-grams-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cups-to-grams-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cups-to-grams-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cups-to-grams-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Cups to Grams Converter API do? + Convert cups to grams for common cooking ingredients. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Cups to Grams Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Cups to Grams Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Cups to Grams Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Cups to Grams Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cups-to-grams-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cups-to-grams-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cups-to-grams-converter"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) [ Sourdough Calculator Calculate sourdough flour, water, starter, salt, and dough weight. ](/tools/sourdough-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Yeast Conversion Calculator API # Yeast Conversion Calculator API cooking 1 credit / call v2026-04-22 Convert fresh, active dry, and instant yeast amounts. One POST adds Yeast Conversion Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Yeast Conversion Calculator on miniwebtool.com →](https://miniwebtool.com/yeast-conversion-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run ``` ### Request body Field Type Req. `amount` `float` — `unit` g | oz | tsp | tbsp `str` — `from_type` fresh | active_dry | instant `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "yeast-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → amount (float) unit (str) g oz tsp tbsp g | oz | tsp | tbsp from_type (str) fresh active_dry instant fresh | active_dry | instant Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`yeast-conversion-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"amount":21,"unit":"g","from_type":"fresh"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'amount': 21, 'unit': 'g', 'from_type': 'fresh'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"amount":21,"unit":"g","from_type":"fresh"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'amount' => 21, 'unit' => 'g', 'from_type' => 'fresh' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'amount' => 21, 'unit' => 'g', 'from_type' => 'fresh' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "amount": 21, "unit": "g", "from_type": "fresh", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"amount\":21,\"unit\":\"g\",\"from_type\":\"fresh\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`yeast-conversion-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/yeast-conversion-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/yeast-conversion-calculator/prompt.md`](/tools/yeast-conversion-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Yeast Conversion Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Yeast Conversion Calculator** — Convert fresh, active dry, and instant yeast amounts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount` | float | no | (default `21`) | | `unit` | str | no | one of: g, oz, tsp, tbsp — g \| oz \| tsp \| tbsp (default `g`) | | `from_type` | str | no | one of: fresh, active_dry, instant — fresh \| active_dry \| instant (default `fresh`) | Example request body: ```json { "amount": 21, "unit": "g", "from_type": "fresh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "yeast-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount": 21.0, "unit": "g", "from_type": "fresh", "conversions": { "fresh": { "amount": 21.0, "display": "21", "unit": "g", "grams": 21.0 }, "active_dry": { "amount": 8.4, "display": "8.4", "unit": "g", "grams": 8.4 }, "instant": { "amount": 6.999993, "display": "7", "unit": "g", "grams": 6.999993 } } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Yeast Conversion Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Yeast Conversion Calculator** — Convert fresh, active dry, and instant yeast amounts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount` | float | no | (default `21`) | | `unit` | str | no | one of: g, oz, tsp, tbsp — g \| oz \| tsp \| tbsp (default `g`) | | `from_type` | str | no | one of: fresh, active_dry, instant — fresh \| active_dry \| instant (default `fresh`) | Example request body: ```json { "amount": 21, "unit": "g", "from_type": "fresh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "yeast-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount": 21.0, "unit": "g", "from_type": "fresh", "conversions": { "fresh": { "amount": 21.0, "display": "21", "unit": "g", "grams": 21.0 }, "active_dry": { "amount": 8.4, "display": "8.4", "unit": "g", "grams": 8.4 }, "instant": { "amount": 6.999993, "display": "7", "unit": "g", "grams": 6.999993 } } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-yeast-conversion-calculator.mdc copy prompt ```text --- description: MiniWebtool Yeast Conversion Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Yeast Conversion Calculator API ## The API **Yeast Conversion Calculator** — Convert fresh, active dry, and instant yeast amounts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `amount` | float | no | (default `21`) | | `unit` | str | no | one of: g, oz, tsp, tbsp — g \| oz \| tsp \| tbsp (default `g`) | | `from_type` | str | no | one of: fresh, active_dry, instant — fresh \| active_dry \| instant (default `fresh`) | Example request body: ```json { "amount": 21, "unit": "g", "from_type": "fresh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "yeast-conversion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "amount": 21.0, "unit": "g", "from_type": "fresh", "conversions": { "fresh": { "amount": 21.0, "display": "21", "unit": "g", "grams": 21.0 }, "active_dry": { "amount": 8.4, "display": "8.4", "unit": "g", "grams": 8.4 }, "instant": { "amount": 6.999993, "display": "7", "unit": "g", "grams": 6.999993 } } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `yeast-conversion-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `yeast-conversion-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call yeast-conversion-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/yeast-conversion-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Yeast Conversion Calculator API do? + Convert fresh, active dry, and instant yeast amounts. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Yeast Conversion Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Yeast Conversion Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Yeast Conversion Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Yeast Conversion Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `yeast-conversion-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`yeast-conversion-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"yeast-conversion-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Brine and Salinity Calculator API # Brine and Salinity Calculator API cooking 1 credit / call v2026-04-22 Calculate salt, water, or salinity for brines and fermentation recipes. One POST adds Brine and Salinity Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Brine and Salinity Calculator on miniwebtool.com →](https://miniwebtool.com/brine-and-salinity-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run ``` ### Request body Field Type Req. `calculation_type` salt_needed | salinity_check | water_needed `str` — `preset` custom | vegetable_pickle | sauerkraut | kimchi | meat_brine | turkey_brine | fish_cure | olives | fermented_hot_sauce | mild_pickle `str` — `water_amount` `float | None` — `water_unit` cups | liters | ml | gallons | quarts `str` — `salt_amount` `float | None` — `salt_unit` tbsp | tsp | grams | ounces | cups `str` — `salt_type` table | kosher_morton | kosher_diamond | sea_coarse | sea_fine | pickling | himalayan `str` — `target_salinity` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "brine-and-salinity-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → calculation_type (str) salt_needed salinity_check water_needed salt_needed | salinity_check | water_needed preset (str) custom vegetable_pickle sauerkraut kimchi meat_brine turkey_brine fish_cure olives fermented_hot_sauce mild_pickle custom | vegetable_pickle | sauerkraut | kimchi | meat_brine | turkey_brine | fish_cure | olives | fermented_hot_sauce | mild_pickle water_amount (float | None) water_unit (str) cups liters ml gallons quarts cups | liters | ml | gallons | quarts salt_amount (float | None) salt_unit (str) tbsp tsp grams ounces cups tbsp | tsp | grams | ounces | cups salt_type (str) table kosher_morton kosher_diamond sea_coarse sea_fine pickling himalayan table | kosher_morton | kosher_diamond | sea_coarse | sea_fine | pickling | himalayan target_salinity (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`brine-and-salinity-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"calculation_type":"salt_needed","preset":"custom","water_amount":4,"water_unit":"cups","salt_unit":"tbsp","salt_type":"table","target_salinity":3.5,"precision":3}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'calculation_type': 'salt_needed', 'preset': 'custom', 'water_amount': 4, 'water_unit': 'cups', 'salt_unit': 'tbsp', 'salt_type': 'table', 'target_salinity': 3.5, 'precision': 3}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"calculation_type":"salt_needed","preset":"custom","water_amount":4,"water_unit":"cups","salt_unit":"tbsp","salt_type":"table","target_salinity":3.5,"precision":3}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'calculation_type' => 'salt_needed', 'preset' => 'custom', 'water_amount' => 4, 'water_unit' => 'cups', 'salt_unit' => 'tbsp', 'salt_type' => 'table', 'target_salinity' => 3.5, 'precision' => 3 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'calculation_type' => 'salt_needed', 'preset' => 'custom', 'water_amount' => 4, 'water_unit' => 'cups', 'salt_unit' => 'tbsp', 'salt_type' => 'table', 'target_salinity' => 3.5, 'precision' => 3 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "calculation_type": "salt_needed", "preset": "custom", "water_amount": 4, "water_unit": "cups", "salt_unit": "tbsp", "salt_type": "table", "target_salinity": 3.5, "precision": 3, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"calculation_type\":\"salt_needed\",\"preset\":\"custom\",\"water_amount\":4,\"water_unit\":\"cups\",\"salt_unit\":\"tbsp\",\"salt_type\":\"table\",\"target_salinity\":3.5,\"precision\":3}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`brine-and-salinity-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/brine-and-salinity-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/brine-and-salinity-calculator/prompt.md`](/tools/brine-and-salinity-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Brine and Salinity Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Brine and Salinity Calculator** — Calculate salt, water, or salinity for brines and fermentation recipes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calculation_type` | str | no | one of: salt_needed, salinity_check, water_needed — salt_needed \| salinity_check \| water_needed (default `salt_needed`) | | `preset` | str | no | one of: custom, vegetable_pickle, sauerkraut, kimchi, meat_brine, turkey_brine, fish_cure, olives, fermented_hot_sauce, mild_pickle — custom \| vegetable_pickle \| sauerkraut \| kimchi \| meat_brine \| turkey_brine \| fish_cure \| olives \| fermented_hot_sauce \| mild_pickle (default `custom`) | | `water_amount` | float | None | no | (default `4.0`) | | `water_unit` | str | no | one of: cups, liters, ml, gallons, quarts — cups \| liters \| ml \| gallons \| quarts (default `cups`) | | `salt_amount` | float | None | no | — | | `salt_unit` | str | no | one of: tbsp, tsp, grams, ounces, cups — tbsp \| tsp \| grams \| ounces \| cups (default `tbsp`) | | `salt_type` | str | no | one of: table, kosher_morton, kosher_diamond, sea_coarse, sea_fine, pickling, himalayan — table \| kosher_morton \| kosher_diamond \| sea_coarse \| sea_fine \| pickling \| himalayan (default `table`) | | `target_salinity` | float | None | no | (default `3.5`) | | `precision` | int | no | (default `3`) | Example request body: ```json { "calculation_type": "salt_needed", "preset": "custom", "water_amount": 4, "water_unit": "cups", "salt_unit": "tbsp", "salt_type": "table", "target_salinity": 3.5, "precision": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "brine-and-salinity-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calculation_type": "salt_needed", "preset": "custom", "salt_type": "table", "water_ml": 946.352, "water_cups": 4.0, "water_liters": 0.946, "water_quarts": 1.0, "water_gallons": 0.25, "salt_grams": 34.324, "salt_ounces": 1.211, "salt_tablespoons": 1.907, "salt_teaspoons": 5.721, "salt_cups": 0.119, "salinity_percent": 3.5, "strength": "light" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Brine and Salinity Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Brine and Salinity Calculator** — Calculate salt, water, or salinity for brines and fermentation recipes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calculation_type` | str | no | one of: salt_needed, salinity_check, water_needed — salt_needed \| salinity_check \| water_needed (default `salt_needed`) | | `preset` | str | no | one of: custom, vegetable_pickle, sauerkraut, kimchi, meat_brine, turkey_brine, fish_cure, olives, fermented_hot_sauce, mild_pickle — custom \| vegetable_pickle \| sauerkraut \| kimchi \| meat_brine \| turkey_brine \| fish_cure \| olives \| fermented_hot_sauce \| mild_pickle (default `custom`) | | `water_amount` | float | None | no | (default `4.0`) | | `water_unit` | str | no | one of: cups, liters, ml, gallons, quarts — cups \| liters \| ml \| gallons \| quarts (default `cups`) | | `salt_amount` | float | None | no | — | | `salt_unit` | str | no | one of: tbsp, tsp, grams, ounces, cups — tbsp \| tsp \| grams \| ounces \| cups (default `tbsp`) | | `salt_type` | str | no | one of: table, kosher_morton, kosher_diamond, sea_coarse, sea_fine, pickling, himalayan — table \| kosher_morton \| kosher_diamond \| sea_coarse \| sea_fine \| pickling \| himalayan (default `table`) | | `target_salinity` | float | None | no | (default `3.5`) | | `precision` | int | no | (default `3`) | Example request body: ```json { "calculation_type": "salt_needed", "preset": "custom", "water_amount": 4, "water_unit": "cups", "salt_unit": "tbsp", "salt_type": "table", "target_salinity": 3.5, "precision": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "brine-and-salinity-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calculation_type": "salt_needed", "preset": "custom", "salt_type": "table", "water_ml": 946.352, "water_cups": 4.0, "water_liters": 0.946, "water_quarts": 1.0, "water_gallons": 0.25, "salt_grams": 34.324, "salt_ounces": 1.211, "salt_tablespoons": 1.907, "salt_teaspoons": 5.721, "salt_cups": 0.119, "salinity_percent": 3.5, "strength": "light" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-brine-and-salinity-calculator.mdc copy prompt ```text --- description: MiniWebtool Brine and Salinity Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Brine and Salinity Calculator API ## The API **Brine and Salinity Calculator** — Calculate salt, water, or salinity for brines and fermentation recipes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calculation_type` | str | no | one of: salt_needed, salinity_check, water_needed — salt_needed \| salinity_check \| water_needed (default `salt_needed`) | | `preset` | str | no | one of: custom, vegetable_pickle, sauerkraut, kimchi, meat_brine, turkey_brine, fish_cure, olives, fermented_hot_sauce, mild_pickle — custom \| vegetable_pickle \| sauerkraut \| kimchi \| meat_brine \| turkey_brine \| fish_cure \| olives \| fermented_hot_sauce \| mild_pickle (default `custom`) | | `water_amount` | float | None | no | (default `4.0`) | | `water_unit` | str | no | one of: cups, liters, ml, gallons, quarts — cups \| liters \| ml \| gallons \| quarts (default `cups`) | | `salt_amount` | float | None | no | — | | `salt_unit` | str | no | one of: tbsp, tsp, grams, ounces, cups — tbsp \| tsp \| grams \| ounces \| cups (default `tbsp`) | | `salt_type` | str | no | one of: table, kosher_morton, kosher_diamond, sea_coarse, sea_fine, pickling, himalayan — table \| kosher_morton \| kosher_diamond \| sea_coarse \| sea_fine \| pickling \| himalayan (default `table`) | | `target_salinity` | float | None | no | (default `3.5`) | | `precision` | int | no | (default `3`) | Example request body: ```json { "calculation_type": "salt_needed", "preset": "custom", "water_amount": 4, "water_unit": "cups", "salt_unit": "tbsp", "salt_type": "table", "target_salinity": 3.5, "precision": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "brine-and-salinity-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calculation_type": "salt_needed", "preset": "custom", "salt_type": "table", "water_ml": 946.352, "water_cups": 4.0, "water_liters": 0.946, "water_quarts": 1.0, "water_gallons": 0.25, "salt_grams": 34.324, "salt_ounces": 1.211, "salt_tablespoons": 1.907, "salt_teaspoons": 5.721, "salt_cups": 0.119, "salinity_percent": 3.5, "strength": "light" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `brine-and-salinity-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `brine-and-salinity-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call brine-and-salinity-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/brine-and-salinity-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Brine and Salinity Calculator API do? + Calculate salt, water, or salinity for brines and fermentation recipes. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Brine and Salinity Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Brine and Salinity Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Brine and Salinity Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Brine and Salinity Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `brine-and-salinity-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`brine-and-salinity-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"brine-and-salinity-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Fermentation Time Calculator API # Fermentation Time Calculator API cooking 1 credit / call v2026-04-22 Estimate fermentation time using a Q10 temperature adjustment model. One POST adds Fermentation Time Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Fermentation Time Calculator on miniwebtool.com →](https://miniwebtool.com/fermentation-time-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run ``` ### Request body Field Type Req. `ferment_type` sourdough_starter | sourdough_bulk | yeast_dough | kombucha | yogurt | sauerkraut | custom `str` — `temperature` `float` — `unit` c | f `str` — `custom_ref_time_hours` `float | None` — `custom_ref_temp` `float | None` — `custom_q10` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fermentation-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → ferment_type (str) sourdough_starter sourdough_bulk yeast_dough kombucha yogurt sauerkraut custom sourdough_starter | sourdough_bulk | yeast_dough | kombucha | yogurt | sauerkraut | custom temperature (float) unit (str) c f c | f custom_ref_time_hours (float | None) custom_ref_temp (float | None) custom_q10 (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fermentation-time-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fermentation-time-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fermentation-time-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/fermentation-time-calculator/prompt.md`](/tools/fermentation-time-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Fermentation Time Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fermentation Time Calculator** — Estimate fermentation time using a Q10 temperature adjustment model. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ferment_type` | str | no | one of: sourdough_starter, sourdough_bulk, yeast_dough, kombucha, yogurt, sauerkraut, custom — sourdough_starter \| sourdough_bulk \| yeast_dough \| kombucha \| yogurt \| sauerkraut \| custom (default `sourdough_starter`) | | `temperature` | float | no | (default `22`) | | `unit` | str | no | one of: c, f — c \| f (default `c`) | | `custom_ref_time_hours` | float | None | no | — | | `custom_ref_temp` | float | None | no | — | | `custom_q10` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fermentation-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "ferment_type": "sourdough_starter", "temperature_c": 22.0, "reference_time_hours": 8.0, "reference_temp_c": 24.0, "q10": 2.4, "estimated_hours": 9.53, "estimated_days": 0.4, "status": "ideal", "ideal_range_c": [ 21.0, 27.0 ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Fermentation Time Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fermentation Time Calculator** — Estimate fermentation time using a Q10 temperature adjustment model. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ferment_type` | str | no | one of: sourdough_starter, sourdough_bulk, yeast_dough, kombucha, yogurt, sauerkraut, custom — sourdough_starter \| sourdough_bulk \| yeast_dough \| kombucha \| yogurt \| sauerkraut \| custom (default `sourdough_starter`) | | `temperature` | float | no | (default `22`) | | `unit` | str | no | one of: c, f — c \| f (default `c`) | | `custom_ref_time_hours` | float | None | no | — | | `custom_ref_temp` | float | None | no | — | | `custom_q10` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fermentation-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "ferment_type": "sourdough_starter", "temperature_c": 22.0, "reference_time_hours": 8.0, "reference_temp_c": 24.0, "q10": 2.4, "estimated_hours": 9.53, "estimated_days": 0.4, "status": "ideal", "ideal_range_c": [ 21.0, 27.0 ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fermentation-time-calculator.mdc copy prompt ```text --- description: MiniWebtool Fermentation Time Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Fermentation Time Calculator API ## The API **Fermentation Time Calculator** — Estimate fermentation time using a Q10 temperature adjustment model. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ferment_type` | str | no | one of: sourdough_starter, sourdough_bulk, yeast_dough, kombucha, yogurt, sauerkraut, custom — sourdough_starter \| sourdough_bulk \| yeast_dough \| kombucha \| yogurt \| sauerkraut \| custom (default `sourdough_starter`) | | `temperature` | float | no | (default `22`) | | `unit` | str | no | one of: c, f — c \| f (default `c`) | | `custom_ref_time_hours` | float | None | no | — | | `custom_ref_temp` | float | None | no | — | | `custom_q10` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fermentation-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "ferment_type": "sourdough_starter", "temperature_c": 22.0, "reference_time_hours": 8.0, "reference_temp_c": 24.0, "q10": 2.4, "estimated_hours": 9.53, "estimated_days": 0.4, "status": "ideal", "ideal_range_c": [ 21.0, 27.0 ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fermentation-time-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fermentation-time-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fermentation-time-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fermentation-time-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Fermentation Time Calculator API do? + Estimate fermentation time using a Q10 temperature adjustment model. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Fermentation Time Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Fermentation Time Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Fermentation Time Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Fermentation Time Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fermentation-time-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fermentation-time-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fermentation-time-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Spaghetti Portion Calculator API # Spaghetti Portion Calculator API cooking 1 credit / call v2026-04-22 Calculate dry and cooked spaghetti portions for a serving count. One POST adds Spaghetti Portion Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Spaghetti Portion Calculator on miniwebtool.com →](https://miniwebtool.com/spaghetti-portion-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run ``` ### Request body Field Type Req. `servings` `int` — `portion_grams_per_person` `float` — `appetite` `str` — `dry_to_cooked_multiplier` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "spaghetti-portion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → servings (int) portion_grams_per_person (float) appetite (str) dry_to_cooked_multiplier (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`spaghetti-portion-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`spaghetti-portion-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/spaghetti-portion-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/spaghetti-portion-calculator/prompt.md`](/tools/spaghetti-portion-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Spaghetti Portion Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Spaghetti Portion Calculator** — Calculate dry and cooked spaghetti portions for a serving count. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `servings` | int | no | (default `4`) | | `portion_grams_per_person` | float | no | (default `85`) | | `appetite` | str | no | (default `standard`) | | `dry_to_cooked_multiplier` | float | no | (default `2.4`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "spaghetti-portion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "servings": 4, "appetite": "standard", "portion_grams_per_person": 85.0, "adjusted_dry_grams_per_person": 85.0, "dry_grams": 340.0, "dry_ounces": 11.99, "cooked_grams": 816.0, "cooked_ounces": 28.78, "chart_data": { "comparison": [ { "label": "Dry", "value": 340.0 }, { "label": "Cooked", "value": 816.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Spaghetti Portion Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Spaghetti Portion Calculator** — Calculate dry and cooked spaghetti portions for a serving count. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `servings` | int | no | (default `4`) | | `portion_grams_per_person` | float | no | (default `85`) | | `appetite` | str | no | (default `standard`) | | `dry_to_cooked_multiplier` | float | no | (default `2.4`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "spaghetti-portion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "servings": 4, "appetite": "standard", "portion_grams_per_person": 85.0, "adjusted_dry_grams_per_person": 85.0, "dry_grams": 340.0, "dry_ounces": 11.99, "cooked_grams": 816.0, "cooked_ounces": 28.78, "chart_data": { "comparison": [ { "label": "Dry", "value": 340.0 }, { "label": "Cooked", "value": 816.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-spaghetti-portion-calculator.mdc copy prompt ```text --- description: MiniWebtool Spaghetti Portion Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Spaghetti Portion Calculator API ## The API **Spaghetti Portion Calculator** — Calculate dry and cooked spaghetti portions for a serving count. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `servings` | int | no | (default `4`) | | `portion_grams_per_person` | float | no | (default `85`) | | `appetite` | str | no | (default `standard`) | | `dry_to_cooked_multiplier` | float | no | (default `2.4`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "spaghetti-portion-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "servings": 4, "appetite": "standard", "portion_grams_per_person": 85.0, "adjusted_dry_grams_per_person": 85.0, "dry_grams": 340.0, "dry_ounces": 11.99, "cooked_grams": 816.0, "cooked_ounces": 28.78, "chart_data": { "comparison": [ { "label": "Dry", "value": 340.0 }, { "label": "Cooked", "value": 816.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `spaghetti-portion-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `spaghetti-portion-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call spaghetti-portion-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/spaghetti-portion-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Spaghetti Portion Calculator API do? + Calculate dry and cooked spaghetti portions for a serving count. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Spaghetti Portion Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Spaghetti Portion Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Spaghetti Portion Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Spaghetti Portion Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `spaghetti-portion-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`spaghetti-portion-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"spaghetti-portion-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Baker's Percentage Calculator API # Baker's Percentage Calculator API cooking 1 credit / call v2026-04-22 Scale bread ingredients from flour weight and baker's percentages. One POST adds Baker's Percentage Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Baker's Percentage Calculator on miniwebtool.com →](https://miniwebtool.com/baker-s-percentage-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run ``` ### Request body Field Type Req. `flour_weight` `float` ✓ `water_percent` `float` — `salt_percent` `float` — `yeast_percent` `float` — `sugar_percent` `float` — `fat_percent` `float` — `milk_percent` `float` — `eggs_percent` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "baker-s-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → flour_weight (float) * water_percent (float) salt_percent (float) yeast_percent (float) sugar_percent (float) fat_percent (float) milk_percent (float) eggs_percent (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`baker-s-percentage-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"flour_weight":1000,"water_percent":65,"salt_percent":2,"yeast_percent":1}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'flour_weight': 1000, 'water_percent': 65, 'salt_percent': 2, 'yeast_percent': 1}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"flour_weight":1000,"water_percent":65,"salt_percent":2,"yeast_percent":1}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'flour_weight' => 1000, 'water_percent' => 65, 'salt_percent' => 2, 'yeast_percent' => 1 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'flour_weight' => 1000, 'water_percent' => 65, 'salt_percent' => 2, 'yeast_percent' => 1 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "flour_weight": 1000, "water_percent": 65, "salt_percent": 2, "yeast_percent": 1, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"flour_weight\":1000,\"water_percent\":65,\"salt_percent\":2,\"yeast_percent\":1}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`baker-s-percentage-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/baker-s-percentage-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/baker-s-percentage-calculator/prompt.md`](/tools/baker-s-percentage-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Baker's Percentage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Baker's Percentage Calculator** — Scale bread ingredients from flour weight and baker's percentages. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `flour_weight` | float | yes | — | | `water_percent` | float | no | (default `65.0`) | | `salt_percent` | float | no | (default `2.0`) | | `yeast_percent` | float | no | (default `1.0`) | | `sugar_percent` | float | no | (default `0.0`) | | `fat_percent` | float | no | (default `0.0`) | | `milk_percent` | float | no | (default `0.0`) | | `eggs_percent` | float | no | (default `0.0`) | Example request body: ```json { "flour_weight": 1000, "water_percent": 65, "salt_percent": 2, "yeast_percent": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "baker-s-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "flour_weight": 1000.0, "ingredients": [ { "name": "flour", "percent": 100.0, "weight": 1000.0 }, { "name": "water", "percent": 65.0, "weight": 650.0 }, { "name": "salt", "percent": 2.0, "weight": 20.0 }, { "name": "yeast", "percent": 1.0, "weight": 10.0 } ], "ingredient_count": 4, "total_weight": 1680.0, "dough_yield_percent": 168.0, "hydration_percent": 65.0, "hydration_level": "medium" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Baker's Percentage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Baker's Percentage Calculator** — Scale bread ingredients from flour weight and baker's percentages. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `flour_weight` | float | yes | — | | `water_percent` | float | no | (default `65.0`) | | `salt_percent` | float | no | (default `2.0`) | | `yeast_percent` | float | no | (default `1.0`) | | `sugar_percent` | float | no | (default `0.0`) | | `fat_percent` | float | no | (default `0.0`) | | `milk_percent` | float | no | (default `0.0`) | | `eggs_percent` | float | no | (default `0.0`) | Example request body: ```json { "flour_weight": 1000, "water_percent": 65, "salt_percent": 2, "yeast_percent": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "baker-s-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "flour_weight": 1000.0, "ingredients": [ { "name": "flour", "percent": 100.0, "weight": 1000.0 }, { "name": "water", "percent": 65.0, "weight": 650.0 }, { "name": "salt", "percent": 2.0, "weight": 20.0 }, { "name": "yeast", "percent": 1.0, "weight": 10.0 } ], "ingredient_count": 4, "total_weight": 1680.0, "dough_yield_percent": 168.0, "hydration_percent": 65.0, "hydration_level": "medium" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-baker-s-percentage-calculator.mdc copy prompt ```text --- description: MiniWebtool Baker's Percentage Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Baker's Percentage Calculator API ## The API **Baker's Percentage Calculator** — Scale bread ingredients from flour weight and baker's percentages. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `flour_weight` | float | yes | — | | `water_percent` | float | no | (default `65.0`) | | `salt_percent` | float | no | (default `2.0`) | | `yeast_percent` | float | no | (default `1.0`) | | `sugar_percent` | float | no | (default `0.0`) | | `fat_percent` | float | no | (default `0.0`) | | `milk_percent` | float | no | (default `0.0`) | | `eggs_percent` | float | no | (default `0.0`) | Example request body: ```json { "flour_weight": 1000, "water_percent": 65, "salt_percent": 2, "yeast_percent": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "baker-s-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "flour_weight": 1000.0, "ingredients": [ { "name": "flour", "percent": 100.0, "weight": 1000.0 }, { "name": "water", "percent": 65.0, "weight": 650.0 }, { "name": "salt", "percent": 2.0, "weight": 20.0 }, { "name": "yeast", "percent": 1.0, "weight": 10.0 } ], "ingredient_count": 4, "total_weight": 1680.0, "dough_yield_percent": 168.0, "hydration_percent": 65.0, "hydration_level": "medium" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `baker-s-percentage-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `baker-s-percentage-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call baker-s-percentage-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`flour_weight`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/baker-s-percentage-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Baker's Percentage Calculator API do? + Scale bread ingredients from flour weight and baker's percentages. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Baker's Percentage Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Baker's Percentage Calculator API require? + Required fields: flour_weight. Full schema at /v1/openapi.json. Is the Baker's Percentage Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Baker's Percentage Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `baker-s-percentage-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`baker-s-percentage-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"baker-s-percentage-calculator"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Recipe Scaler Scale ingredient quantities from one serving count to another. ](/tools/recipe-scaler/) [ Sourdough Calculator Calculate sourdough flour, water, starter, salt, and dough weight. ](/tools/sourdough-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [cooking](/tools/#cooking) - / - Recipe Scaler API # Recipe Scaler API cooking 1 credit / call v2026-04-22 Scale ingredient quantities from one serving count to another. One POST adds Recipe Scaler to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Recipe Scaler on miniwebtool.com →](https://miniwebtool.com/recipe-scaler/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/recipe-scaler/run ``` ### Request body Field Type Req. `ingredients` `str` — `original_servings` `float` — `target_servings` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "recipe-scaler", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → ingredients (str) original_servings (float) target_servings (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`recipe-scaler`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/recipe-scaler/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/recipe-scaler/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/recipe-scaler/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/recipe-scaler/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/recipe-scaler/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/recipe-scaler/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`recipe-scaler`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/recipe-scaler/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/recipe-scaler/prompt.md`](/tools/recipe-scaler/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Recipe Scaler API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Recipe Scaler** — Scale ingredient quantities from one serving count to another. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/recipe-scaler/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/recipe-scaler/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ingredients` | str | no | (default `2 cups flour 1 cup sugar 1/2 tsp salt`) | | `original_servings` | float | no | (default `4`) | | `target_servings` | float | no | (default `10`) | | `precision` | int | no | (default `3`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "recipe-scaler", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_servings": 4.0, "target_servings": 10.0, "scale_factor": 2.5, "ingredient_count": 3, "ingredients": [ { "original_line": "2 cups flour", "item": "cups flour", "original_quantity": 2.0, "scaled_quantity": 5.0, "scaled_line": "5 cups flour" }, { "original_line": "1 cup sugar", "item": "cup sugar", "original_quantity": 1.0, "scaled_quantity": 2.5, "scaled_line": "2.5 cup sugar" }, { "original_line": "1/2 tsp salt", "item": "tsp salt", "original_quantity": 0.5, "scaled_quantity": 1.25, "scaled_line": "1.25 tsp salt" } ], "scaled_text": "5 cups flour\n2.5 cup sugar\n1.25 tsp salt" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Recipe Scaler API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Recipe Scaler** — Scale ingredient quantities from one serving count to another. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/recipe-scaler/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/recipe-scaler/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ingredients` | str | no | (default `2 cups flour 1 cup sugar 1/2 tsp salt`) | | `original_servings` | float | no | (default `4`) | | `target_servings` | float | no | (default `10`) | | `precision` | int | no | (default `3`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "recipe-scaler", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_servings": 4.0, "target_servings": 10.0, "scale_factor": 2.5, "ingredient_count": 3, "ingredients": [ { "original_line": "2 cups flour", "item": "cups flour", "original_quantity": 2.0, "scaled_quantity": 5.0, "scaled_line": "5 cups flour" }, { "original_line": "1 cup sugar", "item": "cup sugar", "original_quantity": 1.0, "scaled_quantity": 2.5, "scaled_line": "2.5 cup sugar" }, { "original_line": "1/2 tsp salt", "item": "tsp salt", "original_quantity": 0.5, "scaled_quantity": 1.25, "scaled_line": "1.25 tsp salt" } ], "scaled_text": "5 cups flour\n2.5 cup sugar\n1.25 tsp salt" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-recipe-scaler.mdc copy prompt ```text --- description: MiniWebtool Recipe Scaler API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Recipe Scaler API ## The API **Recipe Scaler** — Scale ingredient quantities from one serving count to another. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/recipe-scaler/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/recipe-scaler/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ingredients` | str | no | (default `2 cups flour 1 cup sugar 1/2 tsp salt`) | | `original_servings` | float | no | (default `4`) | | `target_servings` | float | no | (default `10`) | | `precision` | int | no | (default `3`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "recipe-scaler", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_servings": 4.0, "target_servings": 10.0, "scale_factor": 2.5, "ingredient_count": 3, "ingredients": [ { "original_line": "2 cups flour", "item": "cups flour", "original_quantity": 2.0, "scaled_quantity": 5.0, "scaled_line": "5 cups flour" }, { "original_line": "1 cup sugar", "item": "cup sugar", "original_quantity": 1.0, "scaled_quantity": 2.5, "scaled_line": "2.5 cup sugar" }, { "original_line": "1/2 tsp salt", "item": "tsp salt", "original_quantity": 0.5, "scaled_quantity": 1.25, "scaled_line": "1.25 tsp salt" } ], "scaled_text": "5 cups flour\n2.5 cup sugar\n1.25 tsp salt" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `recipe-scaler` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `recipe-scaler` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call recipe-scaler - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/recipe-scaler/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Recipe Scaler API do? + Scale ingredient quantities from one serving count to another. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Recipe Scaler cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Recipe Scaler API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Recipe Scaler API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Recipe Scaler API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `recipe-scaler` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`recipe-scaler`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"recipe-scaler"}}}' \ | jq.result.structuredContent ``` see-also related cooking tools [ Cups to Grams Converter Convert cups to grams for common cooking ingredients. ](/tools/cups-to-grams-converter/) [ Dough Hydration Calculator Calculate dough hydration, required water, or a simple baker's percentage recip… ](/tools/dough-hydration-calculator/) [ Baker's Percentage Calculator Scale bread ingredients from flour weight and baker's percentages. ](/tools/baker-s-percentage-calculator/) [ Sourdough Calculator Calculate sourdough flour, water, starter, salt, and dough weight. ](/tools/sourdough-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [craft](/tools/#craft) - / - Knitting Needle Size Converter API # Knitting Needle Size Converter API craft 1 credit / call v2026-04-22 Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. One POST adds Knitting Needle Size Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Knitting Needle Size Converter on miniwebtool.com →](https://miniwebtool.com/knitting-needle-size-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run ``` ### Request body Field Type Req. `from_system` mm | us | uk | jp `str` — `size_label` `str` — `size_mm` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "knitting-needle-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → from_system (str) mm us uk jp mm | us | uk | jp size_label (str) size_mm (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`knitting-needle-size-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`knitting-needle-size-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/knitting-needle-size-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/knitting-needle-size-converter/prompt.md`](/tools/knitting-needle-size-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Knitting Needle Size Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Knitting Needle Size Converter** — Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `from_system` | str | no | one of: mm, us, uk, jp — mm \| us \| uk \| jp (default `us`) | | `size_label` | str | no | (default `6`) | | `size_mm` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "knitting-needle-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "from_system": "us", "requested_mm": 4.0, "mm": 4.0, "us_size": "6", "uk_size": "8", "jp_size": null, "exact_match": true, "nearest_delta_mm": 0.0, "yarn_weight": "Light / DK (3)", "yarn_uses": "DK sweaters, hats, and everyday knits", "needle_visual_width_px": 24.0, "chart_data": { "pointer_percent": 16.0, "mm": 4.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Knitting Needle Size Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Knitting Needle Size Converter** — Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `from_system` | str | no | one of: mm, us, uk, jp — mm \| us \| uk \| jp (default `us`) | | `size_label` | str | no | (default `6`) | | `size_mm` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "knitting-needle-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "from_system": "us", "requested_mm": 4.0, "mm": 4.0, "us_size": "6", "uk_size": "8", "jp_size": null, "exact_match": true, "nearest_delta_mm": 0.0, "yarn_weight": "Light / DK (3)", "yarn_uses": "DK sweaters, hats, and everyday knits", "needle_visual_width_px": 24.0, "chart_data": { "pointer_percent": 16.0, "mm": 4.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-knitting-needle-size-converter.mdc copy prompt ```text --- description: MiniWebtool Knitting Needle Size Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Knitting Needle Size Converter API ## The API **Knitting Needle Size Converter** — Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `from_system` | str | no | one of: mm, us, uk, jp — mm \| us \| uk \| jp (default `us`) | | `size_label` | str | no | (default `6`) | | `size_mm` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "knitting-needle-size-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "from_system": "us", "requested_mm": 4.0, "mm": 4.0, "us_size": "6", "uk_size": "8", "jp_size": null, "exact_match": true, "nearest_delta_mm": 0.0, "yarn_weight": "Light / DK (3)", "yarn_uses": "DK sweaters, hats, and everyday knits", "needle_visual_width_px": 24.0, "chart_data": { "pointer_percent": 16.0, "mm": 4.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `knitting-needle-size-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `knitting-needle-size-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call knitting-needle-size-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/knitting-needle-size-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Knitting Needle Size Converter API do? + Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Knitting Needle Size Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Knitting Needle Size Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Knitting Needle Size Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Knitting Needle Size Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `knitting-needle-size-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`knitting-needle-size-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"knitting-needle-size-converter"}}}' \ | jq.result.structuredContent ``` see-also related craft tools [ Pottery Clay Shrinkage Calculator Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. ](/tools/pottery-clay-shrinkage-calculator/) [ Quilt Binding Calculator Calculate quilt binding length, strip count, finished width, and fabric yardage. ](/tools/quilt-binding-calculator/) [ Origami Paper Size Calculator Calculate paper square size from target origami model size and model ratio. ](/tools/origami-paper-size-calculator/) [ Cross-Stitch Size Calculator Calculate finished cross-stitch design and fabric sizes from stitch and fabric … ](/tools/cross-stitch-size-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [craft](/tools/#craft) - / - Origami Paper Size Calculator API # Origami Paper Size Calculator API craft 1 credit / call v2026-04-22 Calculate paper square size from target origami model size and model ratio. One POST adds Origami Paper Size Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Origami Paper Size Calculator on miniwebtool.com →](https://miniwebtool.com/origami-paper-size-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run ``` ### Request body Field Type Req. `calc_mode` preset | testfold `str` — `model_preset` crane | masu | waterbomb | lily | frog | butterfly | heart | samurai_helmet | custom `str` — `target_size` `float` — `unit` cm | mm | in `str` — `custom_ratio` `float | None` — `test_paper` `float | None` — `test_model` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "origami-paper-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → calc_mode (str) preset testfold preset | testfold model_preset (str) crane masu waterbomb lily frog butterfly heart samurai_helmet custom crane | masu | waterbomb | lily | frog | butterfly | heart | samurai_helmet | custom target_size (float) unit (str) cm mm in cm | mm | in custom_ratio (float | None) test_paper (float | None) test_model (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`origami-paper-size-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`origami-paper-size-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/origami-paper-size-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/origami-paper-size-calculator/prompt.md`](/tools/origami-paper-size-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Origami Paper Size Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Origami Paper Size Calculator** — Calculate paper square size from target origami model size and model ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: preset, testfold — preset \| testfold (default `preset`) | | `model_preset` | str | no | one of: crane, masu, waterbomb, lily, frog, butterfly, heart, samurai_helmet, custom — crane \| masu \| waterbomb \| lily \| frog \| butterfly \| heart \| samurai_helmet \| custom (default `crane`) | | `target_size` | float | no | (default `10`) | | `unit` | str | no | one of: cm, mm, in — cm \| mm \| in (default `cm`) | | `custom_ratio` | float | None | no | — | | `test_paper` | float | None | no | — | | `test_model` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "origami-paper-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calc_mode": "preset", "model": "crane", "model_name": "Traditional Crane", "dimension": "wingspan", "unit": "cm", "target_size": 10.0, "target_cm": 10.0, "ratio": 0.45, "ratio_exact": false, "paper_side_cm": 22.222222, "paper_side_user_unit": 22.222222, "model_percent_of_paper": 45.0, "closest_standard_label": "24 cm", "closest_standard_cm": 24.0, "closest_deviation_percent": 8.0, "chart_data": { "standard_sizes": [ { "label": "5 cm", "paper_cm": 5.0, "finished_model_cm": 2.25, "deviation_percent": -77.5 }, { "label": "7.5 cm", "paper_cm": 7.5, "finished_model_cm": 3.375, "deviation_percent": -66.25 }, { "label": "3 in", "paper_cm": 7.62, "finished_model_cm": 3.429, "deviation_percent": -65.71 }, { "label": "9 cm", "paper_cm": 9.0, "finished_model_cm": 4.05, "deviation_percent": -59.5 }, { "label": "15 cm", "paper_cm": 15.0, "finished_model_cm": 6.75, "deviation_percent": -32.5 }, { "label": "17.5 cm", "paper_cm": 17.5, "finished_model_cm": 7.875, "deviation_percent": -21.25 }, { "label": "20 cm", "paper_cm": 20.0, "finished_model_cm": 9.0, "deviation_percent": -10.0 }, { "label": "24 cm", "paper_cm": 24.0, "finished_model_cm": 10.8, "deviation_percent": 8.0 }, { "label": "10 in", "paper_cm": 25.4, "finished_model_cm": 11.43, "deviation_percent": 14.3 }, { "label": "35 cm", "paper_cm": 35.0, "finished_model_cm": 15.75, "deviation_percent": 57.5 } ], "model_percent": 45.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Origami Paper Size Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Origami Paper Size Calculator** — Calculate paper square size from target origami model size and model ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: preset, testfold — preset \| testfold (default `preset`) | | `model_preset` | str | no | one of: crane, masu, waterbomb, lily, frog, butterfly, heart, samurai_helmet, custom — crane \| masu \| waterbomb \| lily \| frog \| butterfly \| heart \| samurai_helmet \| custom (default `crane`) | | `target_size` | float | no | (default `10`) | | `unit` | str | no | one of: cm, mm, in — cm \| mm \| in (default `cm`) | | `custom_ratio` | float | None | no | — | | `test_paper` | float | None | no | — | | `test_model` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "origami-paper-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calc_mode": "preset", "model": "crane", "model_name": "Traditional Crane", "dimension": "wingspan", "unit": "cm", "target_size": 10.0, "target_cm": 10.0, "ratio": 0.45, "ratio_exact": false, "paper_side_cm": 22.222222, "paper_side_user_unit": 22.222222, "model_percent_of_paper": 45.0, "closest_standard_label": "24 cm", "closest_standard_cm": 24.0, "closest_deviation_percent": 8.0, "chart_data": { "standard_sizes": [ { "label": "5 cm", "paper_cm": 5.0, "finished_model_cm": 2.25, "deviation_percent": -77.5 }, { "label": "7.5 cm", "paper_cm": 7.5, "finished_model_cm": 3.375, "deviation_percent": -66.25 }, { "label": "3 in", "paper_cm": 7.62, "finished_model_cm": 3.429, "deviation_percent": -65.71 }, { "label": "9 cm", "paper_cm": 9.0, "finished_model_cm": 4.05, "deviation_percent": -59.5 }, { "label": "15 cm", "paper_cm": 15.0, "finished_model_cm": 6.75, "deviation_percent": -32.5 }, { "label": "17.5 cm", "paper_cm": 17.5, "finished_model_cm": 7.875, "deviation_percent": -21.25 }, { "label": "20 cm", "paper_cm": 20.0, "finished_model_cm": 9.0, "deviation_percent": -10.0 }, { "label": "24 cm", "paper_cm": 24.0, "finished_model_cm": 10.8, "deviation_percent": 8.0 }, { "label": "10 in", "paper_cm": 25.4, "finished_model_cm": 11.43, "deviation_percent": 14.3 }, { "label": "35 cm", "paper_cm": 35.0, "finished_model_cm": 15.75, "deviation_percent": 57.5 } ], "model_percent": 45.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-origami-paper-size-calculator.mdc copy prompt ```text --- description: MiniWebtool Origami Paper Size Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Origami Paper Size Calculator API ## The API **Origami Paper Size Calculator** — Calculate paper square size from target origami model size and model ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: preset, testfold — preset \| testfold (default `preset`) | | `model_preset` | str | no | one of: crane, masu, waterbomb, lily, frog, butterfly, heart, samurai_helmet, custom — crane \| masu \| waterbomb \| lily \| frog \| butterfly \| heart \| samurai_helmet \| custom (default `crane`) | | `target_size` | float | no | (default `10`) | | `unit` | str | no | one of: cm, mm, in — cm \| mm \| in (default `cm`) | | `custom_ratio` | float | None | no | — | | `test_paper` | float | None | no | — | | `test_model` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "origami-paper-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calc_mode": "preset", "model": "crane", "model_name": "Traditional Crane", "dimension": "wingspan", "unit": "cm", "target_size": 10.0, "target_cm": 10.0, "ratio": 0.45, "ratio_exact": false, "paper_side_cm": 22.222222, "paper_side_user_unit": 22.222222, "model_percent_of_paper": 45.0, "closest_standard_label": "24 cm", "closest_standard_cm": 24.0, "closest_deviation_percent": 8.0, "chart_data": { "standard_sizes": [ { "label": "5 cm", "paper_cm": 5.0, "finished_model_cm": 2.25, "deviation_percent": -77.5 }, { "label": "7.5 cm", "paper_cm": 7.5, "finished_model_cm": 3.375, "deviation_percent": -66.25 }, { "label": "3 in", "paper_cm": 7.62, "finished_model_cm": 3.429, "deviation_percent": -65.71 }, { "label": "9 cm", "paper_cm": 9.0, "finished_model_cm": 4.05, "deviation_percent": -59.5 }, { "label": "15 cm", "paper_cm": 15.0, "finished_model_cm": 6.75, "deviation_percent": -32.5 }, { "label": "17.5 cm", "paper_cm": 17.5, "finished_model_cm": 7.875, "deviation_percent": -21.25 }, { "label": "20 cm", "paper_cm": 20.0, "finished_model_cm": 9.0, "deviation_percent": -10.0 }, { "label": "24 cm", "paper_cm": 24.0, "finished_model_cm": 10.8, "deviation_percent": 8.0 }, { "label": "10 in", "paper_cm": 25.4, "finished_model_cm": 11.43, "deviation_percent": 14.3 }, { "label": "35 cm", "paper_cm": 35.0, "finished_model_cm": 15.75, "deviation_percent": 57.5 } ], "model_percent": 45.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `origami-paper-size-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `origami-paper-size-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call origami-paper-size-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/origami-paper-size-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Origami Paper Size Calculator API do? + Calculate paper square size from target origami model size and model ratio. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Origami Paper Size Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Origami Paper Size Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Origami Paper Size Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Origami Paper Size Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `origami-paper-size-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`origami-paper-size-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"origami-paper-size-calculator"}}}' \ | jq.result.structuredContent ``` see-also related craft tools [ Knitting Needle Size Converter Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. ](/tools/knitting-needle-size-converter/) [ Pottery Clay Shrinkage Calculator Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. ](/tools/pottery-clay-shrinkage-calculator/) [ Quilt Binding Calculator Calculate quilt binding length, strip count, finished width, and fabric yardage. ](/tools/quilt-binding-calculator/) [ Cross-Stitch Size Calculator Calculate finished cross-stitch design and fabric sizes from stitch and fabric … ](/tools/cross-stitch-size-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [craft](/tools/#craft) - / - Pottery Clay Shrinkage Calculator API # Pottery Clay Shrinkage Calculator API craft 1 credit / call v2026-04-22 Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. One POST adds Pottery Clay Shrinkage Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Pottery Clay Shrinkage Calculator on miniwebtool.com →](https://miniwebtool.com/pottery-clay-shrinkage-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run ``` ### Request body Field Type Req. `mode` wet2fired | fired2wet | testtile `str` — `unit` in | cm | mm `str` — `shrink_rate_percent` `float` — `dim_height` `float | None` — `dim_width` `float | None` — `dim_depth` `float | None` — `wet_length` `float | None` — `fired_length` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "pottery-clay-shrinkage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → mode (str) wet2fired fired2wet testtile wet2fired | fired2wet | testtile unit (str) in cm mm in | cm | mm shrink_rate_percent (float) dim_height (float | None) dim_width (float | None) dim_depth (float | None) wet_length (float | None) fired_length (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`pottery-clay-shrinkage-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`pottery-clay-shrinkage-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/pottery-clay-shrinkage-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/pottery-clay-shrinkage-calculator/prompt.md`](/tools/pottery-clay-shrinkage-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Pottery Clay Shrinkage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pottery Clay Shrinkage Calculator** — Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: wet2fired, fired2wet, testtile — wet2fired \| fired2wet \| testtile (default `wet2fired`) | | `unit` | str | no | one of: in, cm, mm — in \| cm \| mm (default `in`) | | `shrink_rate_percent` | float | no | (default `12`) | | `dim_height` | float | None | no | (default `10`) | | `dim_width` | float | None | no | — | | `dim_depth` | float | None | no | — | | `wet_length` | float | None | no | — | | `fired_length` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pottery-clay-shrinkage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "wet2fired", "unit": "in", "shrinkage_percent": 12.0, "factor": 0.88, "reverse_factor": 1.136364, "dimensions": [ { "label": "height", "input": 10.0, "output": 8.8, "difference": 1.2 } ], "primary_input": 10.0, "primary_output": 8.8, "primary_difference": 1.2, "fired_scale_percent": 88.0, "chart_data": { "fired_scale_percent": 88.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Pottery Clay Shrinkage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pottery Clay Shrinkage Calculator** — Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: wet2fired, fired2wet, testtile — wet2fired \| fired2wet \| testtile (default `wet2fired`) | | `unit` | str | no | one of: in, cm, mm — in \| cm \| mm (default `in`) | | `shrink_rate_percent` | float | no | (default `12`) | | `dim_height` | float | None | no | (default `10`) | | `dim_width` | float | None | no | — | | `dim_depth` | float | None | no | — | | `wet_length` | float | None | no | — | | `fired_length` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pottery-clay-shrinkage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "wet2fired", "unit": "in", "shrinkage_percent": 12.0, "factor": 0.88, "reverse_factor": 1.136364, "dimensions": [ { "label": "height", "input": 10.0, "output": 8.8, "difference": 1.2 } ], "primary_input": 10.0, "primary_output": 8.8, "primary_difference": 1.2, "fired_scale_percent": 88.0, "chart_data": { "fired_scale_percent": 88.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-pottery-clay-shrinkage-calculator.mdc copy prompt ```text --- description: MiniWebtool Pottery Clay Shrinkage Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Pottery Clay Shrinkage Calculator API ## The API **Pottery Clay Shrinkage Calculator** — Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: wet2fired, fired2wet, testtile — wet2fired \| fired2wet \| testtile (default `wet2fired`) | | `unit` | str | no | one of: in, cm, mm — in \| cm \| mm (default `in`) | | `shrink_rate_percent` | float | no | (default `12`) | | `dim_height` | float | None | no | (default `10`) | | `dim_width` | float | None | no | — | | `dim_depth` | float | None | no | — | | `wet_length` | float | None | no | — | | `fired_length` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pottery-clay-shrinkage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "wet2fired", "unit": "in", "shrinkage_percent": 12.0, "factor": 0.88, "reverse_factor": 1.136364, "dimensions": [ { "label": "height", "input": 10.0, "output": 8.8, "difference": 1.2 } ], "primary_input": 10.0, "primary_output": 8.8, "primary_difference": 1.2, "fired_scale_percent": 88.0, "chart_data": { "fired_scale_percent": 88.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `pottery-clay-shrinkage-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `pottery-clay-shrinkage-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call pottery-clay-shrinkage-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/pottery-clay-shrinkage-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Pottery Clay Shrinkage Calculator API do? + Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Pottery Clay Shrinkage Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Pottery Clay Shrinkage Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Pottery Clay Shrinkage Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Pottery Clay Shrinkage Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `pottery-clay-shrinkage-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`pottery-clay-shrinkage-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"pottery-clay-shrinkage-calculator"}}}' \ | jq.result.structuredContent ``` see-also related craft tools [ Knitting Needle Size Converter Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. ](/tools/knitting-needle-size-converter/) [ Quilt Binding Calculator Calculate quilt binding length, strip count, finished width, and fabric yardage. ](/tools/quilt-binding-calculator/) [ Origami Paper Size Calculator Calculate paper square size from target origami model size and model ratio. ](/tools/origami-paper-size-calculator/) [ Cross-Stitch Size Calculator Calculate finished cross-stitch design and fabric sizes from stitch and fabric … ](/tools/cross-stitch-size-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [craft](/tools/#craft) - / - Quilt Binding Calculator API # Quilt Binding Calculator API craft 1 credit / call v2026-04-22 Calculate quilt binding length, strip count, finished width, and fabric yardage. One POST adds Quilt Binding Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Quilt Binding Calculator on miniwebtool.com →](https://miniwebtool.com/quilt-binding-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run ``` ### Request body Field Type Req. `unit_system` imperial | metric `str` — `quilt_width` `float` — `quilt_height` `float` — `strip_width` `float` — `fabric_width` `float` — `binding_type` double | single `str` — `grain` straight | bias `str` — `extra_allowance` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "quilt-binding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unit_system (str) imperial metric imperial | metric quilt_width (float) quilt_height (float) strip_width (float) fabric_width (float) binding_type (str) double single double | single grain (str) straight bias straight | bias extra_allowance (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`quilt-binding-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`quilt-binding-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/quilt-binding-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/quilt-binding-calculator/prompt.md`](/tools/quilt-binding-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Quilt Binding Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Quilt Binding Calculator** — Calculate quilt binding length, strip count, finished width, and fabric yardage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `quilt_width` | float | no | (default `60`) | | `quilt_height` | float | no | (default `80`) | | `strip_width` | float | no | (default `2.5`) | | `fabric_width` | float | no | (default `42`) | | `binding_type` | str | no | one of: double, single — double \| single (default `double`) | | `grain` | str | no | one of: straight, bias — straight \| bias (default `straight`) | | `extra_allowance` | float | no | (default `10`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "quilt-binding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "binding_type": "double", "grain": "straight", "quilt_width_in": 60.0, "quilt_height_in": 80.0, "perimeter_in": 280.0, "binding_length_in": 290.0, "binding_length_user_unit": 290.0, "num_strips": 7, "fabric_run_in": 17.5, "fabric_run_user_unit": 17.5, "buy_yards": 0.5, "buy_meters": 0.5, "finished_binding_width_in": 0.625, "finished_binding_width_user_unit": 0.625, "chart_data": { "num_strips": 7, "perimeter_in": 280.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Quilt Binding Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Quilt Binding Calculator** — Calculate quilt binding length, strip count, finished width, and fabric yardage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `quilt_width` | float | no | (default `60`) | | `quilt_height` | float | no | (default `80`) | | `strip_width` | float | no | (default `2.5`) | | `fabric_width` | float | no | (default `42`) | | `binding_type` | str | no | one of: double, single — double \| single (default `double`) | | `grain` | str | no | one of: straight, bias — straight \| bias (default `straight`) | | `extra_allowance` | float | no | (default `10`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "quilt-binding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "binding_type": "double", "grain": "straight", "quilt_width_in": 60.0, "quilt_height_in": 80.0, "perimeter_in": 280.0, "binding_length_in": 290.0, "binding_length_user_unit": 290.0, "num_strips": 7, "fabric_run_in": 17.5, "fabric_run_user_unit": 17.5, "buy_yards": 0.5, "buy_meters": 0.5, "finished_binding_width_in": 0.625, "finished_binding_width_user_unit": 0.625, "chart_data": { "num_strips": 7, "perimeter_in": 280.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-quilt-binding-calculator.mdc copy prompt ```text --- description: MiniWebtool Quilt Binding Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Quilt Binding Calculator API ## The API **Quilt Binding Calculator** — Calculate quilt binding length, strip count, finished width, and fabric yardage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unit_system` | str | no | one of: imperial, metric — imperial \| metric (default `imperial`) | | `quilt_width` | float | no | (default `60`) | | `quilt_height` | float | no | (default `80`) | | `strip_width` | float | no | (default `2.5`) | | `fabric_width` | float | no | (default `42`) | | `binding_type` | str | no | one of: double, single — double \| single (default `double`) | | `grain` | str | no | one of: straight, bias — straight \| bias (default `straight`) | | `extra_allowance` | float | no | (default `10`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "quilt-binding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "imperial", "binding_type": "double", "grain": "straight", "quilt_width_in": 60.0, "quilt_height_in": 80.0, "perimeter_in": 280.0, "binding_length_in": 290.0, "binding_length_user_unit": 290.0, "num_strips": 7, "fabric_run_in": 17.5, "fabric_run_user_unit": 17.5, "buy_yards": 0.5, "buy_meters": 0.5, "finished_binding_width_in": 0.625, "finished_binding_width_user_unit": 0.625, "chart_data": { "num_strips": 7, "perimeter_in": 280.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `quilt-binding-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `quilt-binding-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call quilt-binding-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/quilt-binding-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Quilt Binding Calculator API do? + Calculate quilt binding length, strip count, finished width, and fabric yardage. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Quilt Binding Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Quilt Binding Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Quilt Binding Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Quilt Binding Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `quilt-binding-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`quilt-binding-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"quilt-binding-calculator"}}}' \ | jq.result.structuredContent ``` see-also related craft tools [ Knitting Needle Size Converter Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. ](/tools/knitting-needle-size-converter/) [ Pottery Clay Shrinkage Calculator Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. ](/tools/pottery-clay-shrinkage-calculator/) [ Origami Paper Size Calculator Calculate paper square size from target origami model size and model ratio. ](/tools/origami-paper-size-calculator/) [ Cross-Stitch Size Calculator Calculate finished cross-stitch design and fabric sizes from stitch and fabric … ](/tools/cross-stitch-size-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [craft](/tools/#craft) - / - Cross-Stitch Size Calculator API # Cross-Stitch Size Calculator API craft 1 credit / call v2026-04-22 Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. One POST adds Cross-Stitch Size Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Cross-Stitch Size Calculator on miniwebtool.com →](https://miniwebtool.com/cross-stitch-size-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run ``` ### Request body Field Type Req. `width_stitches` `int` — `height_stitches` `int` — `fabric_preset` 6 | 8 | 11 | 14 | 16 | 18 | 20 | 22 | 25 | 28 | 32 | 36 | 40 | custom `str` — `custom_count` `float | None` — `over_threads` 1 | 2 `str` — `margin` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cross-stitch-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → width_stitches (int) height_stitches (int) fabric_preset (str) 6 8 11 14 16 18 20 22 25 28 32 36 40 custom 6 | 8 | 11 | 14 | 16 | 18 | 20 | 22 | 25 | 28 | 32 | 36 | 40 | custom custom_count (float | None) over_threads (str) 1 2 1 | 2 margin (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cross-stitch-size-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"width_stitches":150,"height_stitches":200,"fabric_preset":"14","over_threads":"1","margin":3,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'width_stitches': 150, 'height_stitches': 200, 'fabric_preset': '14', 'over_threads': '1', 'margin': 3, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"width_stitches":150,"height_stitches":200,"fabric_preset":"14","over_threads":"1","margin":3,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'width_stitches' => 150, 'height_stitches' => 200, 'fabric_preset' => '14', 'over_threads' => '1', 'margin' => 3, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'width_stitches' => 150, 'height_stitches' => 200, 'fabric_preset' => '14', 'over_threads' => '1', 'margin' => 3, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "width_stitches": 150, "height_stitches": 200, "fabric_preset": "14", "over_threads": "1", "margin": 3, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"width_stitches\":150,\"height_stitches\":200,\"fabric_preset\":\"14\",\"over_threads\":\"1\",\"margin\":3,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cross-stitch-size-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cross-stitch-size-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cross-stitch-size-calculator/prompt.md`](/tools/cross-stitch-size-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Cross-Stitch Size Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cross-Stitch Size Calculator** — Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `width_stitches` | int | no | (default `150`) | | `height_stitches` | int | no | (default `200`) | | `fabric_preset` | str | no | one of: 6, 8, 11, 14, 16, 18, 20, 22, 25, 28, 32, 36, 40, custom — 6 \| 8 \| 11 \| 14 \| 16 \| 18 \| 20 \| 22 \| 25 \| 28 \| 32 \| 36 \| 40 \| custom (default `14`) | | `custom_count` | float | None | no | — | | `over_threads` | str | no | one of: 1, 2 — 1 \| 2 (default `1`) | | `margin` | float | no | (default `3.0`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "width_stitches": 150, "height_stitches": 200, "fabric_preset": "14", "over_threads": "1", "margin": 3, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cross-stitch-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "width_stitches": 150, "height_stitches": 200, "total_stitches": 30000, "fabric_count": 14.0, "over_threads": 1, "effective_count": 14.0, "design_width_in": 10.71, "design_height_in": 14.29, "design_width_cm": 27.21, "design_height_cm": 36.29, "design_width_mm": 272.14, "design_height_mm": 362.86, "margin_in": 3.0, "fabric_width_in": 16.71, "fabric_height_in": 20.29, "fabric_width_cm": 42.45, "fabric_height_cm": 51.53, "estimated_skeins": 40, "comparison": [ { "count": 11, "width_in": 13.64, "height_in": 18.18 }, { "count": 14, "width_in": 10.71, "height_in": 14.29 }, { "count": 16, "width_in": 9.38, "height_in": 12.5 }, { "count": 18, "width_in": 8.33, "height_in": 11.11 }, { "count": 22, "width_in": 6.82, "height_in": 9.09 }, { "count": 25, "width_in": 6.0, "height_in": 8.0 }, { "count": 28, "width_in": 5.36, "height_in": 7.14 }, { "count": 32, "width_in": 4.69, "height_in": 6.25 }, { "count": 36, "width_in": 4.17, "height_in": 5.56 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Cross-Stitch Size Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cross-Stitch Size Calculator** — Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `width_stitches` | int | no | (default `150`) | | `height_stitches` | int | no | (default `200`) | | `fabric_preset` | str | no | one of: 6, 8, 11, 14, 16, 18, 20, 22, 25, 28, 32, 36, 40, custom — 6 \| 8 \| 11 \| 14 \| 16 \| 18 \| 20 \| 22 \| 25 \| 28 \| 32 \| 36 \| 40 \| custom (default `14`) | | `custom_count` | float | None | no | — | | `over_threads` | str | no | one of: 1, 2 — 1 \| 2 (default `1`) | | `margin` | float | no | (default `3.0`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "width_stitches": 150, "height_stitches": 200, "fabric_preset": "14", "over_threads": "1", "margin": 3, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cross-stitch-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "width_stitches": 150, "height_stitches": 200, "total_stitches": 30000, "fabric_count": 14.0, "over_threads": 1, "effective_count": 14.0, "design_width_in": 10.71, "design_height_in": 14.29, "design_width_cm": 27.21, "design_height_cm": 36.29, "design_width_mm": 272.14, "design_height_mm": 362.86, "margin_in": 3.0, "fabric_width_in": 16.71, "fabric_height_in": 20.29, "fabric_width_cm": 42.45, "fabric_height_cm": 51.53, "estimated_skeins": 40, "comparison": [ { "count": 11, "width_in": 13.64, "height_in": 18.18 }, { "count": 14, "width_in": 10.71, "height_in": 14.29 }, { "count": 16, "width_in": 9.38, "height_in": 12.5 }, { "count": 18, "width_in": 8.33, "height_in": 11.11 }, { "count": 22, "width_in": 6.82, "height_in": 9.09 }, { "count": 25, "width_in": 6.0, "height_in": 8.0 }, { "count": 28, "width_in": 5.36, "height_in": 7.14 }, { "count": 32, "width_in": 4.69, "height_in": 6.25 }, { "count": 36, "width_in": 4.17, "height_in": 5.56 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cross-stitch-size-calculator.mdc copy prompt ```text --- description: MiniWebtool Cross-Stitch Size Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Cross-Stitch Size Calculator API ## The API **Cross-Stitch Size Calculator** — Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `width_stitches` | int | no | (default `150`) | | `height_stitches` | int | no | (default `200`) | | `fabric_preset` | str | no | one of: 6, 8, 11, 14, 16, 18, 20, 22, 25, 28, 32, 36, 40, custom — 6 \| 8 \| 11 \| 14 \| 16 \| 18 \| 20 \| 22 \| 25 \| 28 \| 32 \| 36 \| 40 \| custom (default `14`) | | `custom_count` | float | None | no | — | | `over_threads` | str | no | one of: 1, 2 — 1 \| 2 (default `1`) | | `margin` | float | no | (default `3.0`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "width_stitches": 150, "height_stitches": 200, "fabric_preset": "14", "over_threads": "1", "margin": 3, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cross-stitch-size-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "width_stitches": 150, "height_stitches": 200, "total_stitches": 30000, "fabric_count": 14.0, "over_threads": 1, "effective_count": 14.0, "design_width_in": 10.71, "design_height_in": 14.29, "design_width_cm": 27.21, "design_height_cm": 36.29, "design_width_mm": 272.14, "design_height_mm": 362.86, "margin_in": 3.0, "fabric_width_in": 16.71, "fabric_height_in": 20.29, "fabric_width_cm": 42.45, "fabric_height_cm": 51.53, "estimated_skeins": 40, "comparison": [ { "count": 11, "width_in": 13.64, "height_in": 18.18 }, { "count": 14, "width_in": 10.71, "height_in": 14.29 }, { "count": 16, "width_in": 9.38, "height_in": 12.5 }, { "count": 18, "width_in": 8.33, "height_in": 11.11 }, { "count": 22, "width_in": 6.82, "height_in": 9.09 }, { "count": 25, "width_in": 6.0, "height_in": 8.0 }, { "count": 28, "width_in": 5.36, "height_in": 7.14 }, { "count": 32, "width_in": 4.69, "height_in": 6.25 }, { "count": 36, "width_in": 4.17, "height_in": 5.56 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cross-stitch-size-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cross-stitch-size-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cross-stitch-size-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cross-stitch-size-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Cross-Stitch Size Calculator API do? + Calculate finished cross-stitch design and fabric sizes from stitch and fabric counts. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Cross-Stitch Size Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Cross-Stitch Size Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Cross-Stitch Size Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Cross-Stitch Size Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cross-stitch-size-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cross-stitch-size-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cross-stitch-size-calculator"}}}' \ | jq.result.structuredContent ``` see-also related craft tools [ Knitting Needle Size Converter Convert knitting needle sizes among metric, US, UK/Canada, and Japanese systems. ](/tools/knitting-needle-size-converter/) [ Pottery Clay Shrinkage Calculator Calculate fired clay dimensions, reverse wet sizing, or measured shrinkage rate. ](/tools/pottery-clay-shrinkage-calculator/) [ Quilt Binding Calculator Calculate quilt binding length, strip count, finished width, and fabric yardage. ](/tools/quilt-binding-calculator/) [ Origami Paper Size Calculator Calculate paper square size from target origami model size and model ratio. ](/tools/origami-paper-size-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [creator](/tools/#creator) - / - YouTube Earnings Estimator API # YouTube Earnings Estimator API creator 1 credit / call v2026-04-22 Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. One POST adds YouTube Earnings Estimator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the YouTube Earnings Estimator on miniwebtool.com →](https://miniwebtool.com/youtube-earnings-estimator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run ``` ### Request body Field Type Req. `daily_views` `float` — `niche` custom | finance | technology | education | business | food | travel | gaming | entertainment | sports | beauty | fitness | auto | science `str` — `cpm_low` `float` — `cpm_high` `float` — `monetized_pct` `float` — `revenue_share` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "youtube-earnings-estimator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → daily_views (float) niche (str) custom finance technology education business food travel gaming entertainment sports beauty fitness auto science custom | finance | technology | education | business | food | travel | gaming | entertainment | sports | beauty | fitness | auto | science cpm_low (float) cpm_high (float) monetized_pct (float) revenue_share (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`youtube-earnings-estimator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"daily_views":10000,"niche":"entertainment","monetized_pct":55,"revenue_share":55}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'daily_views': 10000, 'niche': 'entertainment', 'monetized_pct': 55, 'revenue_share': 55}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"daily_views":10000,"niche":"entertainment","monetized_pct":55,"revenue_share":55}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'daily_views' => 10000, 'niche' => 'entertainment', 'monetized_pct' => 55, 'revenue_share' => 55 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'daily_views' => 10000, 'niche' => 'entertainment', 'monetized_pct' => 55, 'revenue_share' => 55 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "daily_views": 10000, "niche": "entertainment", "monetized_pct": 55, "revenue_share": 55, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"daily_views\":10000,\"niche\":\"entertainment\",\"monetized_pct\":55,\"revenue_share\":55}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`youtube-earnings-estimator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/youtube-earnings-estimator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/youtube-earnings-estimator/prompt.md`](/tools/youtube-earnings-estimator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool YouTube Earnings Estimator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **YouTube Earnings Estimator** — Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `daily_views` | float | no | (default `10000`) | | `niche` | str | no | one of: custom, finance, technology, education, business, food, travel, gaming, entertainment, sports, beauty, fitness, auto, science — custom \| finance \| technology \| education \| business \| food \| travel \| gaming \| entertainment \| sports \| beauty \| fitness \| auto \| science (default `entertainment`) | | `cpm_low` | float | no | (default `2`) | | `cpm_high` | float | no | (default `8`) | | `monetized_pct` | float | no | (default `55`) | | `revenue_share` | float | no | (default `55`) | Example request body: ```json { "daily_views": 10000, "niche": "entertainment", "monetized_pct": 55, "revenue_share": 55 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "youtube-earnings-estimator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "daily_views": 10000.0, "niche": "entertainment", "cpm_low": 2.0, "cpm_high": 8.0, "cpm_mid": 3.5, "monetized_views": 5500.0, "rpm_low": 0.605, "rpm_mid": 1.0588, "rpm_high": 2.42, "daily_revenue_low": 6.05, "daily_revenue_mid": 10.5875, "daily_revenue_high": 24.2, "monthly_revenue_mid": 317.62, "yearly_revenue_mid": 3864.44, "level": "side_hustle" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool YouTube Earnings Estimator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **YouTube Earnings Estimator** — Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `daily_views` | float | no | (default `10000`) | | `niche` | str | no | one of: custom, finance, technology, education, business, food, travel, gaming, entertainment, sports, beauty, fitness, auto, science — custom \| finance \| technology \| education \| business \| food \| travel \| gaming \| entertainment \| sports \| beauty \| fitness \| auto \| science (default `entertainment`) | | `cpm_low` | float | no | (default `2`) | | `cpm_high` | float | no | (default `8`) | | `monetized_pct` | float | no | (default `55`) | | `revenue_share` | float | no | (default `55`) | Example request body: ```json { "daily_views": 10000, "niche": "entertainment", "monetized_pct": 55, "revenue_share": 55 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "youtube-earnings-estimator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "daily_views": 10000.0, "niche": "entertainment", "cpm_low": 2.0, "cpm_high": 8.0, "cpm_mid": 3.5, "monetized_views": 5500.0, "rpm_low": 0.605, "rpm_mid": 1.0588, "rpm_high": 2.42, "daily_revenue_low": 6.05, "daily_revenue_mid": 10.5875, "daily_revenue_high": 24.2, "monthly_revenue_mid": 317.62, "yearly_revenue_mid": 3864.44, "level": "side_hustle" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-youtube-earnings-estimator.mdc copy prompt ```text --- description: MiniWebtool YouTube Earnings Estimator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool YouTube Earnings Estimator API ## The API **YouTube Earnings Estimator** — Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `daily_views` | float | no | (default `10000`) | | `niche` | str | no | one of: custom, finance, technology, education, business, food, travel, gaming, entertainment, sports, beauty, fitness, auto, science — custom \| finance \| technology \| education \| business \| food \| travel \| gaming \| entertainment \| sports \| beauty \| fitness \| auto \| science (default `entertainment`) | | `cpm_low` | float | no | (default `2`) | | `cpm_high` | float | no | (default `8`) | | `monetized_pct` | float | no | (default `55`) | | `revenue_share` | float | no | (default `55`) | Example request body: ```json { "daily_views": 10000, "niche": "entertainment", "monetized_pct": 55, "revenue_share": 55 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "youtube-earnings-estimator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "daily_views": 10000.0, "niche": "entertainment", "cpm_low": 2.0, "cpm_high": 8.0, "cpm_mid": 3.5, "monetized_views": 5500.0, "rpm_low": 0.605, "rpm_mid": 1.0588, "rpm_high": 2.42, "daily_revenue_low": 6.05, "daily_revenue_mid": 10.5875, "daily_revenue_high": 24.2, "monthly_revenue_mid": 317.62, "yearly_revenue_mid": 3864.44, "level": "side_hustle" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `youtube-earnings-estimator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `youtube-earnings-estimator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call youtube-earnings-estimator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/youtube-earnings-estimator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the YouTube Earnings Estimator API do? + Estimate YouTube ad revenue from views, CPM range, monetized percentage, and revenue share. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to YouTube Earnings Estimator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the YouTube Earnings Estimator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the YouTube Earnings Estimator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the YouTube Earnings Estimator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `youtube-earnings-estimator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`youtube-earnings-estimator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"youtube-earnings-estimator"}}}' \ | jq.result.structuredContent ``` API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [datetime](/tools/#datetime) - / - Autumnal Equinox Day API # Autumnal Equinox Day API datetime 1 credit / call v2026-04-22 Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. One POST adds Autumnal Equinox Day to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Autumnal Equinox Day on miniwebtool.com →](https://miniwebtool.com/autumnal-equinox-day/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run ``` ### Request body Field Type Req. `year` `int` — `hemisphere` north | south `str` — `as_of_utc` Optional ISO datetime for countdown `str | None` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "autumnal-equinox-day", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → year (int) hemisphere (str) north south north | south as_of_utc (str | None) Optional ISO datetime for countdown Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`autumnal-equinox-day`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`autumnal-equinox-day`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/autumnal-equinox-day/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/autumnal-equinox-day/prompt.md`](/tools/autumnal-equinox-day/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Autumnal Equinox Day API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Autumnal Equinox Day** — Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `year` | int | no | (default `2026`) | | `hemisphere` | str | no | one of: north, south — north \| south (default `north`) | | `as_of_utc` | str | None | no | Optional ISO datetime for countdown | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "autumnal-equinox-day", "tool_version": "2026-04-22", "credits_used": 1, "result": { "year": 2026, "hemisphere": "north", "event_label": "September Equinox", "season_name": "Autumn", "date": "2026-09-23", "time_utc": "00:05", "datetime_utc": "2026-09-23T00:05:00Z", "day_of_week": "Wednesday", "season_duration": { "days": 89, "hours": 20, "minutes": 45, "total_days": 89.8646 }, "season_markers": { "march_equinox": "2026-03-20T14:46:00Z", "june_solstice": "2026-06-21T08:24:00Z", "september_equinox": "2026-09-23T00:05:00Z", "december_solstice": "2026-12-21T20:50:00Z" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Autumnal Equinox Day API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Autumnal Equinox Day** — Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `year` | int | no | (default `2026`) | | `hemisphere` | str | no | one of: north, south — north \| south (default `north`) | | `as_of_utc` | str | None | no | Optional ISO datetime for countdown | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "autumnal-equinox-day", "tool_version": "2026-04-22", "credits_used": 1, "result": { "year": 2026, "hemisphere": "north", "event_label": "September Equinox", "season_name": "Autumn", "date": "2026-09-23", "time_utc": "00:05", "datetime_utc": "2026-09-23T00:05:00Z", "day_of_week": "Wednesday", "season_duration": { "days": 89, "hours": 20, "minutes": 45, "total_days": 89.8646 }, "season_markers": { "march_equinox": "2026-03-20T14:46:00Z", "june_solstice": "2026-06-21T08:24:00Z", "september_equinox": "2026-09-23T00:05:00Z", "december_solstice": "2026-12-21T20:50:00Z" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-autumnal-equinox-day.mdc copy prompt ```text --- description: MiniWebtool Autumnal Equinox Day API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Autumnal Equinox Day API ## The API **Autumnal Equinox Day** — Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `year` | int | no | (default `2026`) | | `hemisphere` | str | no | one of: north, south — north \| south (default `north`) | | `as_of_utc` | str | None | no | Optional ISO datetime for countdown | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "autumnal-equinox-day", "tool_version": "2026-04-22", "credits_used": 1, "result": { "year": 2026, "hemisphere": "north", "event_label": "September Equinox", "season_name": "Autumn", "date": "2026-09-23", "time_utc": "00:05", "datetime_utc": "2026-09-23T00:05:00Z", "day_of_week": "Wednesday", "season_duration": { "days": 89, "hours": 20, "minutes": 45, "total_days": 89.8646 }, "season_markers": { "march_equinox": "2026-03-20T14:46:00Z", "june_solstice": "2026-06-21T08:24:00Z", "september_equinox": "2026-09-23T00:05:00Z", "december_solstice": "2026-12-21T20:50:00Z" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `autumnal-equinox-day` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `autumnal-equinox-day` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call autumnal-equinox-day - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/autumnal-equinox-day/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Autumnal Equinox Day API do? + Return autumn equinox date, UTC time, seasonal markers, and optional countdown data. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Autumnal Equinox Day cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Autumnal Equinox Day API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Autumnal Equinox Day API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Autumnal Equinox Day API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `autumnal-equinox-day` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`autumnal-equinox-day`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"autumnal-equinox-day"}}}' \ | jq.result.structuredContent ``` see-also related datetime tools [ Decimal to Time Converter Convert decimal hours to hours, minutes, and seconds. ](/tools/decimal-to-time-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [datetime](/tools/#datetime) - / - Decimal to Time Converter API # Decimal to Time Converter API datetime 1 credit / call v2026-04-22 Convert decimal hours to hours, minutes, and seconds. One POST adds Decimal to Time Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Decimal to Time Converter on miniwebtool.com →](https://miniwebtool.com/decimal-to-time-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run ``` ### Request body Field Type Req. `decimal_hours` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "decimal-to-time-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → decimal_hours (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`decimal-to-time-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"decimal_hours":1.75,"precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'decimal_hours': 1.75, 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"decimal_hours":1.75,"precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'decimal_hours' => 1.75, 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'decimal_hours' => 1.75, 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "decimal_hours": 1.75, "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"decimal_hours\":1.75,\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`decimal-to-time-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/decimal-to-time-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/decimal-to-time-converter/prompt.md`](/tools/decimal-to-time-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Decimal to Time Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Decimal to Time Converter** — Convert decimal hours to hours, minutes, and seconds. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `decimal_hours` | float | no | (default `1.75`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "decimal_hours": 1.75, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "decimal-to-time-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "decimal_hours": 1.75, "total_seconds": 6300, "total_minutes": 105, "hours": 1, "minutes": 45, "seconds": 0, "format_hms": "1:45:00", "format_hm": "1:45", "padded_hms": "01:45:00", "day_percent": 7.29 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Decimal to Time Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Decimal to Time Converter** — Convert decimal hours to hours, minutes, and seconds. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `decimal_hours` | float | no | (default `1.75`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "decimal_hours": 1.75, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "decimal-to-time-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "decimal_hours": 1.75, "total_seconds": 6300, "total_minutes": 105, "hours": 1, "minutes": 45, "seconds": 0, "format_hms": "1:45:00", "format_hm": "1:45", "padded_hms": "01:45:00", "day_percent": 7.29 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-decimal-to-time-converter.mdc copy prompt ```text --- description: MiniWebtool Decimal to Time Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Decimal to Time Converter API ## The API **Decimal to Time Converter** — Convert decimal hours to hours, minutes, and seconds. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `decimal_hours` | float | no | (default `1.75`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "decimal_hours": 1.75, "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "decimal-to-time-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "decimal_hours": 1.75, "total_seconds": 6300, "total_minutes": 105, "hours": 1, "minutes": 45, "seconds": 0, "format_hms": "1:45:00", "format_hm": "1:45", "padded_hms": "01:45:00", "day_percent": 7.29 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `decimal-to-time-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `decimal-to-time-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call decimal-to-time-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/decimal-to-time-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Decimal to Time Converter API do? + Convert decimal hours to hours, minutes, and seconds. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Decimal to Time Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Decimal to Time Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Decimal to Time Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Decimal to Time Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `decimal-to-time-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`decimal-to-time-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"decimal-to-time-converter"}}}' \ | jq.result.structuredContent ``` see-also related datetime tools [ Autumnal Equinox Day Return autumn equinox date, UTC time, seasonal markers, and optional countdown … ](/tools/autumnal-equinox-day/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - CMYK to Hex Converter API # CMYK to Hex Converter API dev 1 credit / call v2026-04-22 Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. One POST adds CMYK to Hex Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the CMYK to Hex Converter on miniwebtool.com →](https://miniwebtool.com/cmyk-to-hex-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run ``` ### Request body Field Type Req. `cyan` `int` ✓ `magenta` `int` ✓ `yellow` `int` ✓ `black` `int` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cmyk-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cyan (int) * magenta (int) * yellow (int) * black (int) * Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cmyk-to-hex-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"cyan":0,"magenta":50,"yellow":100,"black":0}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'cyan': 0, 'magenta': 50, 'yellow': 100, 'black': 0}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"cyan":0,"magenta":50,"yellow":100,"black":0}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'cyan' => 0, 'magenta' => 50, 'yellow' => 100, 'black' => 0 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'cyan' => 0, 'magenta' => 50, 'yellow' => 100, 'black' => 0 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "cyan": 0, "magenta": 50, "yellow": 100, "black": 0, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"cyan\":0,\"magenta\":50,\"yellow\":100,\"black\":0}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cmyk-to-hex-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cmyk-to-hex-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cmyk-to-hex-converter/prompt.md`](/tools/cmyk-to-hex-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool CMYK to Hex Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CMYK to Hex Converter** — Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cyan` | int | yes | — | | `magenta` | int | yes | — | | `yellow` | int | yes | — | | `black` | int | yes | — | Example request body: ```json { "cyan": 0, "magenta": 50, "yellow": 100, "black": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cmyk-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cyan_percent": 0, "magenta_percent": 50, "yellow_percent": 100, "black_percent": 0, "red": 255, "green": 128, "blue": 0, "rgb": "rgb(255, 128, 0)", "hex": "#FF8000", "hsl": { "hue": 30.12, "saturation_percent": 100.0, "lightness_percent": 50.0 }, "hsv": { "hue": 30.12, "saturation_percent": 100.0, "value_percent": 100.0 }, "complementary_hex": "#007FFF", "contrast_text": "#000000" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool CMYK to Hex Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CMYK to Hex Converter** — Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cyan` | int | yes | — | | `magenta` | int | yes | — | | `yellow` | int | yes | — | | `black` | int | yes | — | Example request body: ```json { "cyan": 0, "magenta": 50, "yellow": 100, "black": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cmyk-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cyan_percent": 0, "magenta_percent": 50, "yellow_percent": 100, "black_percent": 0, "red": 255, "green": 128, "blue": 0, "rgb": "rgb(255, 128, 0)", "hex": "#FF8000", "hsl": { "hue": 30.12, "saturation_percent": 100.0, "lightness_percent": 50.0 }, "hsv": { "hue": 30.12, "saturation_percent": 100.0, "value_percent": 100.0 }, "complementary_hex": "#007FFF", "contrast_text": "#000000" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cmyk-to-hex-converter.mdc copy prompt ```text --- description: MiniWebtool CMYK to Hex Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool CMYK to Hex Converter API ## The API **CMYK to Hex Converter** — Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cyan` | int | yes | — | | `magenta` | int | yes | — | | `yellow` | int | yes | — | | `black` | int | yes | — | Example request body: ```json { "cyan": 0, "magenta": 50, "yellow": 100, "black": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cmyk-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cyan_percent": 0, "magenta_percent": 50, "yellow_percent": 100, "black_percent": 0, "red": 255, "green": 128, "blue": 0, "rgb": "rgb(255, 128, 0)", "hex": "#FF8000", "hsl": { "hue": 30.12, "saturation_percent": 100.0, "lightness_percent": 50.0 }, "hsv": { "hue": 30.12, "saturation_percent": 100.0, "value_percent": 100.0 }, "complementary_hex": "#007FFF", "contrast_text": "#000000" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cmyk-to-hex-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cmyk-to-hex-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cmyk-to-hex-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`cyan`,`magenta`,`yellow`,`black`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cmyk-to-hex-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the CMYK to Hex Converter API do? + Convert CMYK percentages to RGB, HEX, HSL, HSV, and contrast text color. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to CMYK to Hex Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the CMYK to Hex Converter API require? + Required fields: cyan, magenta, yellow, black. Full schema at /v1/openapi.json. Is the CMYK to Hex Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the CMYK to Hex Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cmyk-to-hex-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cmyk-to-hex-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cmyk-to-hex-converter"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - Hex to CMYK Converter API # Hex to CMYK Converter API dev 1 credit / call v2026-04-22 Convert a hex color to CMYK print percentages. One POST adds Hex to CMYK Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Hex to CMYK Converter on miniwebtool.com →](https://miniwebtool.com/hex-to-cmyk-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run ``` ### Request body Field Type Req. `hex_color` `str` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "hex-to-cmyk-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → hex_color (str) * #AABBCC Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`hex-to-cmyk-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"hex_color":"#AABBCC"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'hex_color': '#AABBCC'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"hex_color":"#AABBCC"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'hex_color' => '#AABBCC' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'hex_color' => '#AABBCC' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "hex_color": "#AABBCC", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"hex_color\":\"#AABBCC\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`hex-to-cmyk-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/hex-to-cmyk-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/hex-to-cmyk-converter/prompt.md`](/tools/hex-to-cmyk-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Hex to CMYK Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Hex to CMYK Converter** — Convert a hex color to CMYK print percentages. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `hex_color` | str | yes | — | Example request body: ```json { "hex_color": "#AABBCC" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hex-to-cmyk-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "hex": "#AABBCC", "hex_raw": "AABBCC", "red": 170, "green": 187, "blue": 204, "cyan": 17, "magenta": 8, "yellow": 0, "black": 20, "cmyk": { "cyan": 17, "magenta": 8, "yellow": 0, "black": 20 }, "cmyk_string": "cmyk(17%, 8%, 0%, 20%)", "rgb": "rgb(170, 187, 204)", "print_simulation_rgb": { "red": 169, "green": 188, "blue": 204, "hex": "#A9BCCC" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Hex to CMYK Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Hex to CMYK Converter** — Convert a hex color to CMYK print percentages. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `hex_color` | str | yes | — | Example request body: ```json { "hex_color": "#AABBCC" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hex-to-cmyk-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "hex": "#AABBCC", "hex_raw": "AABBCC", "red": 170, "green": 187, "blue": 204, "cyan": 17, "magenta": 8, "yellow": 0, "black": 20, "cmyk": { "cyan": 17, "magenta": 8, "yellow": 0, "black": 20 }, "cmyk_string": "cmyk(17%, 8%, 0%, 20%)", "rgb": "rgb(170, 187, 204)", "print_simulation_rgb": { "red": 169, "green": 188, "blue": 204, "hex": "#A9BCCC" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-hex-to-cmyk-converter.mdc copy prompt ```text --- description: MiniWebtool Hex to CMYK Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Hex to CMYK Converter API ## The API **Hex to CMYK Converter** — Convert a hex color to CMYK print percentages. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `hex_color` | str | yes | — | Example request body: ```json { "hex_color": "#AABBCC" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hex-to-cmyk-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "hex": "#AABBCC", "hex_raw": "AABBCC", "red": 170, "green": 187, "blue": 204, "cyan": 17, "magenta": 8, "yellow": 0, "black": 20, "cmyk": { "cyan": 17, "magenta": 8, "yellow": 0, "black": 20 }, "cmyk_string": "cmyk(17%, 8%, 0%, 20%)", "rgb": "rgb(170, 187, 204)", "print_simulation_rgb": { "red": 169, "green": 188, "blue": 204, "hex": "#A9BCCC" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `hex-to-cmyk-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `hex-to-cmyk-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call hex-to-cmyk-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`hex_color`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/hex-to-cmyk-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Hex to CMYK Converter API do? + Convert a hex color to CMYK print percentages. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Hex to CMYK Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Hex to CMYK Converter API require? + Required fields: hex_color. Full schema at /v1/openapi.json. Is the Hex to CMYK Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Hex to CMYK Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `hex-to-cmyk-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`hex-to-cmyk-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"hex-to-cmyk-converter"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - Hex to RGB Converter API # Hex to RGB Converter API dev 1 credit / call v2026-04-22 Convert a hex color to RGB, HSL, CMYK, and contrast metrics. One POST adds Hex to RGB Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Hex to RGB Converter on miniwebtool.com →](https://miniwebtool.com/hex-to-rgb-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run ``` ### Request body Field Type Req. `hex_color` `str` ✓ `alpha` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "hex-to-rgb-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → hex_color (str) * #FF5733 alpha (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`hex-to-rgb-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"hex_color":"#FF5733","alpha":1}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'hex_color': '#FF5733', 'alpha': 1}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"hex_color":"#FF5733","alpha":1}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'hex_color' => '#FF5733', 'alpha' => 1 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'hex_color' => '#FF5733', 'alpha' => 1 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "hex_color": "#FF5733", "alpha": 1, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"hex_color\":\"#FF5733\",\"alpha\":1}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`hex-to-rgb-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/hex-to-rgb-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/hex-to-rgb-converter/prompt.md`](/tools/hex-to-rgb-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Hex to RGB Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Hex to RGB Converter** — Convert a hex color to RGB, HSL, CMYK, and contrast metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `hex_color` | str | yes | — | | `alpha` | float | no | (default `1.0`) | Example request body: ```json { "hex_color": "#FF5733", "alpha": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hex-to-rgb-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "hex": "#FF5733", "hex_raw": "FF5733", "red": 255, "green": 87, "blue": 51, "alpha": 1.0, "rgb": "rgb(255, 87, 51)", "rgba": "rgba(255, 87, 51, 1.0)", "hsl": { "hue": 11, "saturation_percent": 100, "lightness_percent": 60 }, "cmyk": { "cyan": 0, "magenta": 66, "yellow": 80, "black": 0 }, "complementary_hex": "#00A8CC", "relative_luminance": 0.283154, "contrast_with_white": 3.15, "contrast_with_black": 6.66, "best_text_color": "#000000" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Hex to RGB Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Hex to RGB Converter** — Convert a hex color to RGB, HSL, CMYK, and contrast metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `hex_color` | str | yes | — | | `alpha` | float | no | (default `1.0`) | Example request body: ```json { "hex_color": "#FF5733", "alpha": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hex-to-rgb-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "hex": "#FF5733", "hex_raw": "FF5733", "red": 255, "green": 87, "blue": 51, "alpha": 1.0, "rgb": "rgb(255, 87, 51)", "rgba": "rgba(255, 87, 51, 1.0)", "hsl": { "hue": 11, "saturation_percent": 100, "lightness_percent": 60 }, "cmyk": { "cyan": 0, "magenta": 66, "yellow": 80, "black": 0 }, "complementary_hex": "#00A8CC", "relative_luminance": 0.283154, "contrast_with_white": 3.15, "contrast_with_black": 6.66, "best_text_color": "#000000" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-hex-to-rgb-converter.mdc copy prompt ```text --- description: MiniWebtool Hex to RGB Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Hex to RGB Converter API ## The API **Hex to RGB Converter** — Convert a hex color to RGB, HSL, CMYK, and contrast metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `hex_color` | str | yes | — | | `alpha` | float | no | (default `1.0`) | Example request body: ```json { "hex_color": "#FF5733", "alpha": 1 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hex-to-rgb-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "hex": "#FF5733", "hex_raw": "FF5733", "red": 255, "green": 87, "blue": 51, "alpha": 1.0, "rgb": "rgb(255, 87, 51)", "rgba": "rgba(255, 87, 51, 1.0)", "hsl": { "hue": 11, "saturation_percent": 100, "lightness_percent": 60 }, "cmyk": { "cyan": 0, "magenta": 66, "yellow": 80, "black": 0 }, "complementary_hex": "#00A8CC", "relative_luminance": 0.283154, "contrast_with_white": 3.15, "contrast_with_black": 6.66, "best_text_color": "#000000" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `hex-to-rgb-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `hex-to-rgb-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call hex-to-rgb-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`hex_color`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/hex-to-rgb-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Hex to RGB Converter API do? + Convert a hex color to RGB, HSL, CMYK, and contrast metrics. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Hex to RGB Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Hex to RGB Converter API require? + Required fields: hex_color. Full schema at /v1/openapi.json. Is the Hex to RGB Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Hex to RGB Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `hex-to-rgb-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`hex-to-rgb-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"hex-to-rgb-converter"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - RGB to Hex Converter API # RGB to Hex Converter API dev 1 credit / call v2026-04-22 Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. One POST adds RGB to Hex Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the RGB to Hex Converter on miniwebtool.com →](https://miniwebtool.com/rgb-to-hex-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run ``` ### Request body Field Type Req. `red` `int` ✓ `green` `int` ✓ `blue` `int` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "rgb-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → red (int) * green (int) * blue (int) * Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`rgb-to-hex-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"red":255,"green":128,"blue":0}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'red': 255, 'green': 128, 'blue': 0}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"red":255,"green":128,"blue":0}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'red' => 255, 'green' => 128, 'blue' => 0 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'red' => 255, 'green' => 128, 'blue' => 0 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "red": 255, "green": 128, "blue": 0, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"red\":255,\"green\":128,\"blue\":0}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`rgb-to-hex-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/rgb-to-hex-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/rgb-to-hex-converter/prompt.md`](/tools/rgb-to-hex-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool RGB to Hex Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **RGB to Hex Converter** — Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `red` | int | yes | — | | `green` | int | yes | — | | `blue` | int | yes | — | Example request body: ```json { "red": 255, "green": 128, "blue": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rgb-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "red": 255, "green": 128, "blue": 0, "hex": "#FF8000", "rgb": "rgb(255, 128, 0)", "hsl": { "hue": 30.12, "saturation_percent": 100.0, "lightness_percent": 50.0 }, "hsv": { "hue": 30.12, "saturation_percent": 100.0, "value_percent": 100.0 }, "cmyk": { "cyan_percent": 0.0, "magenta_percent": 49.8, "yellow_percent": 100.0, "black_percent": 0.0 }, "relative_luminance": 0.5716 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool RGB to Hex Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **RGB to Hex Converter** — Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `red` | int | yes | — | | `green` | int | yes | — | | `blue` | int | yes | — | Example request body: ```json { "red": 255, "green": 128, "blue": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rgb-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "red": 255, "green": 128, "blue": 0, "hex": "#FF8000", "rgb": "rgb(255, 128, 0)", "hsl": { "hue": 30.12, "saturation_percent": 100.0, "lightness_percent": 50.0 }, "hsv": { "hue": 30.12, "saturation_percent": 100.0, "value_percent": 100.0 }, "cmyk": { "cyan_percent": 0.0, "magenta_percent": 49.8, "yellow_percent": 100.0, "black_percent": 0.0 }, "relative_luminance": 0.5716 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-rgb-to-hex-converter.mdc copy prompt ```text --- description: MiniWebtool RGB to Hex Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool RGB to Hex Converter API ## The API **RGB to Hex Converter** — Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `red` | int | yes | — | | `green` | int | yes | — | | `blue` | int | yes | — | Example request body: ```json { "red": 255, "green": 128, "blue": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rgb-to-hex-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "red": 255, "green": 128, "blue": 0, "hex": "#FF8000", "rgb": "rgb(255, 128, 0)", "hsl": { "hue": 30.12, "saturation_percent": 100.0, "lightness_percent": 50.0 }, "hsv": { "hue": 30.12, "saturation_percent": 100.0, "value_percent": 100.0 }, "cmyk": { "cyan_percent": 0.0, "magenta_percent": 49.8, "yellow_percent": 100.0, "black_percent": 0.0 }, "relative_luminance": 0.5716 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `rgb-to-hex-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `rgb-to-hex-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call rgb-to-hex-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`red`,`green`,`blue`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/rgb-to-hex-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the RGB to Hex Converter API do? + Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to RGB to Hex Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the RGB to Hex Converter API require? + Required fields: red, green, blue. Full schema at /v1/openapi.json. Is the RGB to Hex Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the RGB to Hex Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `rgb-to-hex-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`rgb-to-hex-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"rgb-to-hex-converter"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) [ CSV to JSON Converter Convert CSV text to JSON with delimiter auto-detection and type inference. ](/tools/csv-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - CSV to JSON Converter API # CSV to JSON Converter API dev 1 credit / call v2026-04-22 Convert CSV text to JSON with delimiter auto-detection and type inference. One POST adds CSV to JSON Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the CSV to JSON Converter on miniwebtool.com →](https://miniwebtool.com/csv-to-json-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run ``` ### Request body Field Type Req. `text` `str` ✓ `delimiter` auto | comma | tab | semicolon | pipe `str` — `output_format` array_objects | array_arrays | column_arrays | ndjson `str` — `indent` 2 | 4 | tab | minified `str` — `first_row_header` `bool` — `trim_whitespace` `bool` — `infer_types` `bool` — `skip_empty` `bool` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "csv-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → text (str) * name,age Alice,30 Bob,25 delimiter (str) auto comma tab semicolon pipe auto | comma | tab | semicolon | pipe output_format (str) array_objects array_arrays column_arrays ndjson array_objects | array_arrays | column_arrays | ndjson indent (str) 2 4 tab minified 2 | 4 | tab | minified first_row_header (bool) false true trim_whitespace (bool) false true infer_types (bool) false true skip_empty (bool) false true Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`csv-to-json-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"text":"name,age\nAlice,30\nBob,25","output_format":"array_objects"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'text': 'name,age\nAlice,30\nBob,25', 'output_format': 'array_objects'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"text":"name,age\nAlice,30\nBob,25","output_format":"array_objects"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'text' => 'name,age Alice,30 Bob,25', 'output_format' => 'array_objects' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'text' => 'name,age Alice,30 Bob,25', 'output_format' => 'array_objects' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "text": "name,age Alice,30 Bob,25", "output_format": "array_objects", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"text\":\"name,age\\nAlice,30\\nBob,25\",\"output_format\":\"array_objects\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`csv-to-json-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/csv-to-json-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/csv-to-json-converter/prompt.md`](/tools/csv-to-json-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool CSV to JSON Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CSV to JSON Converter** — Convert CSV text to JSON with delimiter auto-detection and type inference. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `delimiter` | str | no | one of: auto, comma, tab, semicolon, pipe — auto \| comma \| tab \| semicolon \| pipe (default `auto`) | | `output_format` | str | no | one of: array_objects, array_arrays, column_arrays, ndjson — array_objects \| array_arrays \| column_arrays \| ndjson (default `array_objects`) | | `indent` | str | no | one of: 2, 4, tab, minified — 2 \| 4 \| tab \| minified (default `2`) | | `first_row_header` | bool | no | (default `True`) | | `trim_whitespace` | bool | no | (default `True`) | | `infer_types` | bool | no | (default `True`) | | `skip_empty` | bool | no | (default `True`) | Example request body: ```json { "text": "name,age\nAlice,30\nBob,25", "output_format": "array_objects" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "csv-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "json": "[\n {\n \"name\": \"Alice\",\n \"age\": 30\n },\n {\n \"name\": \"Bob\",\n \"age\": 25\n }\n]", "output_format": "array_objects", "detected_delimiter": "comma", "indent": "2", "first_row_header": true, "headers": [ "name", "age" ], "row_count": 2, "column_count": 2, "type_counts": { "string": 2, "number": 2, "boolean": 0, "null": 0 }, "csv_bytes": 24, "json_bytes": 88, "size_ratio_percent": 366.67 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool CSV to JSON Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CSV to JSON Converter** — Convert CSV text to JSON with delimiter auto-detection and type inference. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `delimiter` | str | no | one of: auto, comma, tab, semicolon, pipe — auto \| comma \| tab \| semicolon \| pipe (default `auto`) | | `output_format` | str | no | one of: array_objects, array_arrays, column_arrays, ndjson — array_objects \| array_arrays \| column_arrays \| ndjson (default `array_objects`) | | `indent` | str | no | one of: 2, 4, tab, minified — 2 \| 4 \| tab \| minified (default `2`) | | `first_row_header` | bool | no | (default `True`) | | `trim_whitespace` | bool | no | (default `True`) | | `infer_types` | bool | no | (default `True`) | | `skip_empty` | bool | no | (default `True`) | Example request body: ```json { "text": "name,age\nAlice,30\nBob,25", "output_format": "array_objects" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "csv-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "json": "[\n {\n \"name\": \"Alice\",\n \"age\": 30\n },\n {\n \"name\": \"Bob\",\n \"age\": 25\n }\n]", "output_format": "array_objects", "detected_delimiter": "comma", "indent": "2", "first_row_header": true, "headers": [ "name", "age" ], "row_count": 2, "column_count": 2, "type_counts": { "string": 2, "number": 2, "boolean": 0, "null": 0 }, "csv_bytes": 24, "json_bytes": 88, "size_ratio_percent": 366.67 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-csv-to-json-converter.mdc copy prompt ```text --- description: MiniWebtool CSV to JSON Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool CSV to JSON Converter API ## The API **CSV to JSON Converter** — Convert CSV text to JSON with delimiter auto-detection and type inference. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/csv-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `delimiter` | str | no | one of: auto, comma, tab, semicolon, pipe — auto \| comma \| tab \| semicolon \| pipe (default `auto`) | | `output_format` | str | no | one of: array_objects, array_arrays, column_arrays, ndjson — array_objects \| array_arrays \| column_arrays \| ndjson (default `array_objects`) | | `indent` | str | no | one of: 2, 4, tab, minified — 2 \| 4 \| tab \| minified (default `2`) | | `first_row_header` | bool | no | (default `True`) | | `trim_whitespace` | bool | no | (default `True`) | | `infer_types` | bool | no | (default `True`) | | `skip_empty` | bool | no | (default `True`) | Example request body: ```json { "text": "name,age\nAlice,30\nBob,25", "output_format": "array_objects" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "csv-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "json": "[\n {\n \"name\": \"Alice\",\n \"age\": 30\n },\n {\n \"name\": \"Bob\",\n \"age\": 25\n }\n]", "output_format": "array_objects", "detected_delimiter": "comma", "indent": "2", "first_row_header": true, "headers": [ "name", "age" ], "row_count": 2, "column_count": 2, "type_counts": { "string": 2, "number": 2, "boolean": 0, "null": 0 }, "csv_bytes": 24, "json_bytes": 88, "size_ratio_percent": 366.67 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `csv-to-json-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `csv-to-json-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call csv-to-json-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`text`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/csv-to-json-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the CSV to JSON Converter API do? + Convert CSV text to JSON with delimiter auto-detection and type inference. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to CSV to JSON Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the CSV to JSON Converter API require? + Required fields: text. Full schema at /v1/openapi.json. Is the CSV to JSON Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the CSV to JSON Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `csv-to-json-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`csv-to-json-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"csv-to-json-converter"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - JSON to CSV Converter API # JSON to CSV Converter API dev 1 credit / call v2026-04-22 Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. One POST adds JSON to CSV Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the JSON to CSV Converter on miniwebtool.com →](https://miniwebtool.com/json-to-csv-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run ``` ### Request body Field Type Req. `json_text` JSON array or object to convert `str` — `array_path` dot path to the array, e.g. data.items; blank auto-detects `str` — `flatten_mode` dot | bracket | none `str` — `delimiter` comma | semicolon | tab | pipe | custom `str` — `custom_delimiter` single character used when delimiter=custom `str` — `quoting` minimal | all | nonnumeric | none `str` — `include_header` yes | no `str` — `line_ending` lf | crlf `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`1048576`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "json-to-csv-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → json_text (str) [{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}] JSON array or object to convert array_path (str) dot path to the array, e.g. data.items; blank auto-detects flatten_mode (str) dot bracket none dot | bracket | none delimiter (str) comma semicolon tab pipe custom comma | semicolon | tab | pipe | custom custom_delimiter (str) single character used when delimiter=custom quoting (str) minimal all nonnumeric none minimal | all | nonnumeric | none include_header (str) yes no yes | no line_ending (str) lf crlf lf | crlf Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`json-to-csv-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"json_text":"[{\"id\":1,\"name\":\"Alice\"},{\"id\":2,\"name\":\"Bob\"}]","delimiter":"comma"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'json_text': '[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]', 'delimiter': 'comma'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"json_text":"[{\"id\":1,\"name\":\"Alice\"},{\"id\":2,\"name\":\"Bob\"}]","delimiter":"comma"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'json_text' => '[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]', 'delimiter' => 'comma' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'json_text' => '[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]', 'delimiter' => 'comma' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "json_text": "[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]", "delimiter": "comma", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"json_text\":\"[{\\\"id\\\":1,\\\"name\\\":\\\"Alice\\\"},{\\\"id\\\":2,\\\"name\\\":\\\"Bob\\\"}]\",\"delimiter\":\"comma\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`json-to-csv-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/json-to-csv-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/json-to-csv-converter/prompt.md`](/tools/json-to-csv-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool JSON to CSV Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON to CSV Converter** — Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON array or object to convert (default `[{"id":1,"name":"Alice","city":"Tokyo"},{"id":2,"name":"Bob","city":"Paris"}]`) | | `array_path` | str | no | dot path to the array, e.g. data.items; blank auto-detects | | `flatten_mode` | str | no | one of: dot, bracket, none — dot \| bracket \| none (default `dot`) | | `delimiter` | str | no | one of: comma, semicolon, tab, pipe, custom — comma \| semicolon \| tab \| pipe \| custom (default `comma`) | | `custom_delimiter` | str | no | single character used when delimiter=custom | | `quoting` | str | no | one of: minimal, all, nonnumeric, none — minimal \| all \| nonnumeric \| none (default `minimal`) | | `include_header` | str | no | one of: yes, no — yes \| no (default `yes`) | | `line_ending` | str | no | one of: lf, crlf — lf \| crlf (default `lf`) | Example request body: ```json { "json_text": "[{\"id\":1,\"name\":\"Alice\"},{\"id\":2,\"name\":\"Bob\"}]", "delimiter": "comma" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-to-csv-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "csv": "id,name\n1,Alice\n2,Bob\n", "array_path": "$", "array_path_auto_detected": true, "row_count": 2, "column_count": 2, "columns": [ "id", "name" ], "column_types": { "id": "number", "name": "string" }, "delimiter": ",", "quoting": "minimal", "line_ending": "lf", "header_included": true, "flatten_mode": "dot", "output_bytes": 22, "missing_value_counts": {} } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool JSON to CSV Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON to CSV Converter** — Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON array or object to convert (default `[{"id":1,"name":"Alice","city":"Tokyo"},{"id":2,"name":"Bob","city":"Paris"}]`) | | `array_path` | str | no | dot path to the array, e.g. data.items; blank auto-detects | | `flatten_mode` | str | no | one of: dot, bracket, none — dot \| bracket \| none (default `dot`) | | `delimiter` | str | no | one of: comma, semicolon, tab, pipe, custom — comma \| semicolon \| tab \| pipe \| custom (default `comma`) | | `custom_delimiter` | str | no | single character used when delimiter=custom | | `quoting` | str | no | one of: minimal, all, nonnumeric, none — minimal \| all \| nonnumeric \| none (default `minimal`) | | `include_header` | str | no | one of: yes, no — yes \| no (default `yes`) | | `line_ending` | str | no | one of: lf, crlf — lf \| crlf (default `lf`) | Example request body: ```json { "json_text": "[{\"id\":1,\"name\":\"Alice\"},{\"id\":2,\"name\":\"Bob\"}]", "delimiter": "comma" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-to-csv-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "csv": "id,name\n1,Alice\n2,Bob\n", "array_path": "$", "array_path_auto_detected": true, "row_count": 2, "column_count": 2, "columns": [ "id", "name" ], "column_types": { "id": "number", "name": "string" }, "delimiter": ",", "quoting": "minimal", "line_ending": "lf", "header_included": true, "flatten_mode": "dot", "output_bytes": 22, "missing_value_counts": {} } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-json-to-csv-converter.mdc copy prompt ```text --- description: MiniWebtool JSON to CSV Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool JSON to CSV Converter API ## The API **JSON to CSV Converter** — Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-to-csv-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON array or object to convert (default `[{"id":1,"name":"Alice","city":"Tokyo"},{"id":2,"name":"Bob","city":"Paris"}]`) | | `array_path` | str | no | dot path to the array, e.g. data.items; blank auto-detects | | `flatten_mode` | str | no | one of: dot, bracket, none — dot \| bracket \| none (default `dot`) | | `delimiter` | str | no | one of: comma, semicolon, tab, pipe, custom — comma \| semicolon \| tab \| pipe \| custom (default `comma`) | | `custom_delimiter` | str | no | single character used when delimiter=custom | | `quoting` | str | no | one of: minimal, all, nonnumeric, none — minimal \| all \| nonnumeric \| none (default `minimal`) | | `include_header` | str | no | one of: yes, no — yes \| no (default `yes`) | | `line_ending` | str | no | one of: lf, crlf — lf \| crlf (default `lf`) | Example request body: ```json { "json_text": "[{\"id\":1,\"name\":\"Alice\"},{\"id\":2,\"name\":\"Bob\"}]", "delimiter": "comma" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-to-csv-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "csv": "id,name\n1,Alice\n2,Bob\n", "array_path": "$", "array_path_auto_detected": true, "row_count": 2, "column_count": 2, "columns": [ "id", "name" ], "column_types": { "id": "number", "name": "string" }, "delimiter": ",", "quoting": "minimal", "line_ending": "lf", "header_included": true, "flatten_mode": "dot", "output_bytes": 22, "missing_value_counts": {} } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `json-to-csv-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `json-to-csv-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call json-to-csv-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/json-to-csv-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the JSON to CSV Converter API do? + Flatten a JSON array into CSV with auto-detected record path, dot or bracket key flattening, configurable delimiter, quoting, and line endings. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to JSON to CSV Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the JSON to CSV Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the JSON to CSV Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the JSON to CSV Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `json-to-csv-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`json-to-csv-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"json-to-csv-converter"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - Base64 Decoder API # Base64 Decoder API dev 1 credit / call v2026-04-22 Decode standard or URL-safe Base64 text and return byte and character analysis. One POST adds Base64 Decoder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Base64 Decoder on miniwebtool.com →](https://miniwebtool.com/base64-decoder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/base64-decoder/run ``` ### Request body Field Type Req. `text` `str` ✓ `encoding` utf-8 | ascii | latin-1 | utf-16 `str` — `url_safe` `bool` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "base64-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → text (str) * SGVsbG8gV29ybGQh encoding (str) utf-8 ascii latin-1 utf-16 utf-8 | ascii | latin-1 | utf-16 url_safe (bool) false true Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`base64-decoder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/base64-decoder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"text":"SGVsbG8gV29ybGQh"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/base64-decoder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'text': 'SGVsbG8gV29ybGQh'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/base64-decoder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"text":"SGVsbG8gV29ybGQh"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'text' => 'SGVsbG8gV29ybGQh' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/base64-decoder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'text' => 'SGVsbG8gV29ybGQh' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "text": "SGVsbG8gV29ybGQh", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/base64-decoder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/base64-decoder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"text\":\"SGVsbG8gV29ybGQh\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`base64-decoder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/base64-decoder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/base64-decoder/prompt.md`](/tools/base64-decoder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Base64 Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Base64 Decoder** — Decode standard or URL-safe Base64 text and return byte and character analysis. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/base64-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/base64-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `encoding` | str | no | one of: utf-8, ascii, latin-1, utf-16 — utf-8 \| ascii \| latin-1 \| utf-16 (default `utf-8`) | | `url_safe` | bool | no | (default `False`) | Example request body: ```json { "text": "SGVsbG8gV29ybGQh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "base64-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "encoding": "utf-8", "url_safe": false, "input_length": 16, "clean_length": 16, "byte_length": 12, "decoded_text": "Hello World!", "hex_preview": "48 65 6C 6C 6F 20 57 6F 72 6C 64 21", "binary_preview": "01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00100001", "preview_truncated": false, "character_stats": { "total": 12, "letters": 10, "digits": 0, "spaces": 1, "punctuation": 1, "other": 0, "non_ascii": 0 }, "decode_warning": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Base64 Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Base64 Decoder** — Decode standard or URL-safe Base64 text and return byte and character analysis. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/base64-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/base64-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `encoding` | str | no | one of: utf-8, ascii, latin-1, utf-16 — utf-8 \| ascii \| latin-1 \| utf-16 (default `utf-8`) | | `url_safe` | bool | no | (default `False`) | Example request body: ```json { "text": "SGVsbG8gV29ybGQh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "base64-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "encoding": "utf-8", "url_safe": false, "input_length": 16, "clean_length": 16, "byte_length": 12, "decoded_text": "Hello World!", "hex_preview": "48 65 6C 6C 6F 20 57 6F 72 6C 64 21", "binary_preview": "01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00100001", "preview_truncated": false, "character_stats": { "total": 12, "letters": 10, "digits": 0, "spaces": 1, "punctuation": 1, "other": 0, "non_ascii": 0 }, "decode_warning": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-base64-decoder.mdc copy prompt ```text --- description: MiniWebtool Base64 Decoder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Base64 Decoder API ## The API **Base64 Decoder** — Decode standard or URL-safe Base64 text and return byte and character analysis. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/base64-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/base64-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `encoding` | str | no | one of: utf-8, ascii, latin-1, utf-16 — utf-8 \| ascii \| latin-1 \| utf-16 (default `utf-8`) | | `url_safe` | bool | no | (default `False`) | Example request body: ```json { "text": "SGVsbG8gV29ybGQh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "base64-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "encoding": "utf-8", "url_safe": false, "input_length": 16, "clean_length": 16, "byte_length": 12, "decoded_text": "Hello World!", "hex_preview": "48 65 6C 6C 6F 20 57 6F 72 6C 64 21", "binary_preview": "01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00100001", "preview_truncated": false, "character_stats": { "total": 12, "letters": 10, "digits": 0, "spaces": 1, "punctuation": 1, "other": 0, "non_ascii": 0 }, "decode_warning": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `base64-decoder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `base64-decoder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call base64-decoder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`text`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/base64-decoder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Base64 Decoder API do? + Decode standard or URL-safe Base64 text and return byte and character analysis. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Base64 Decoder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Base64 Decoder API require? + Required fields: text. Full schema at /v1/openapi.json. Is the Base64 Decoder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Base64 Decoder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `base64-decoder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`base64-decoder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"base64-decoder"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - Base64 Encoder API # Base64 Encoder API dev 1 credit / call v2026-04-22 Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. One POST adds Base64 Encoder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Base64 Encoder on miniwebtool.com →](https://miniwebtool.com/base64-encoder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/base64-encoder/run ``` ### Request body Field Type Req. `text` `str` ✓ `variant` standard | urlsafe | mime `str` — `newlines` keep | strip `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "base64-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → text (str) * Hello World! variant (str) standard urlsafe mime standard | urlsafe | mime newlines (str) keep strip keep | strip Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`base64-encoder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/base64-encoder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"text":"Hello World!","variant":"standard"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/base64-encoder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'text': 'Hello World!', 'variant': 'standard'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/base64-encoder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"text":"Hello World!","variant":"standard"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'text' => 'Hello World!', 'variant' => 'standard' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/base64-encoder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'text' => 'Hello World!', 'variant' => 'standard' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "text": "Hello World!", "variant": "standard", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/base64-encoder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/base64-encoder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"text\":\"Hello World!\",\"variant\":\"standard\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`base64-encoder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/base64-encoder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/base64-encoder/prompt.md`](/tools/base64-encoder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Base64 Encoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Base64 Encoder** — Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/base64-encoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/base64-encoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `variant` | str | no | one of: standard, urlsafe, mime — standard \| urlsafe \| mime (default `standard`) | | `newlines` | str | no | one of: keep, strip — keep \| strip (default `keep`) | Example request body: ```json { "text": "Hello World!", "variant": "standard" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "base64-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "SGVsbG8gV29ybGQh", "variant": "standard", "newlines": "keep", "input_chars": 12, "input_bytes": 12, "output_chars": 16, "expansion_percent": 133.33, "padding_chars": 0, "has_multibyte": false } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Base64 Encoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Base64 Encoder** — Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/base64-encoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/base64-encoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `variant` | str | no | one of: standard, urlsafe, mime — standard \| urlsafe \| mime (default `standard`) | | `newlines` | str | no | one of: keep, strip — keep \| strip (default `keep`) | Example request body: ```json { "text": "Hello World!", "variant": "standard" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "base64-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "SGVsbG8gV29ybGQh", "variant": "standard", "newlines": "keep", "input_chars": 12, "input_bytes": 12, "output_chars": 16, "expansion_percent": 133.33, "padding_chars": 0, "has_multibyte": false } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-base64-encoder.mdc copy prompt ```text --- description: MiniWebtool Base64 Encoder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Base64 Encoder API ## The API **Base64 Encoder** — Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/base64-encoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/base64-encoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `variant` | str | no | one of: standard, urlsafe, mime — standard \| urlsafe \| mime (default `standard`) | | `newlines` | str | no | one of: keep, strip — keep \| strip (default `keep`) | Example request body: ```json { "text": "Hello World!", "variant": "standard" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "base64-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "SGVsbG8gV29ybGQh", "variant": "standard", "newlines": "keep", "input_chars": 12, "input_bytes": 12, "output_chars": 16, "expansion_percent": 133.33, "padding_chars": 0, "has_multibyte": false } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `base64-encoder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `base64-encoder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call base64-encoder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`text`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/base64-encoder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Base64 Encoder API do? + Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Base64 Encoder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Base64 Encoder API require? + Required fields: text. Full schema at /v1/openapi.json. Is the Base64 Encoder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Base64 Encoder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `base64-encoder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`base64-encoder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"base64-encoder"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ CSV to JSON Converter Convert CSV text to JSON with delimiter auto-detection and type inference. ](/tools/csv-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - JWT Decoder API # JWT Decoder API dev 1 credit / call v2026-04-22 Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. One POST adds JWT Decoder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the JWT Decoder on miniwebtool.com →](https://miniwebtool.com/jwt-decoder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/jwt-decoder/run ``` ### Request body Field Type Req. `token` JWT string (header.payload.signature) `str` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "jwt-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → token (str) * eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c JWT string (header.payload.signature) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`jwt-decoder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/jwt-decoder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/jwt-decoder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/jwt-decoder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'token' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/jwt-decoder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'token' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/jwt-decoder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/jwt-decoder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`jwt-decoder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/jwt-decoder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/jwt-decoder/prompt.md`](/tools/jwt-decoder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool JWT Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JWT Decoder** — Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/jwt-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/jwt-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `token` | str | yes | JWT string (header.payload.signature) | Example request body: ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "jwt-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "header": { "alg": "HS256", "typ": "JWT" }, "payload": { "sub": "1234567890", "name": "John Doe", "iat": 1516239022 }, "algorithm": "HS256", "token_type": "JWT", "key_id": null, "registered_claims": { "sub": "1234567890", "iat": 1516239022 }, "claim_times_utc": { "iat": "2018-01-18T01:30:22Z" }, "lifetime_seconds": null, "signature_present": true, "signature_length_bytes": 32, "alg_none_warning": false, "note": "decoded without signature verification; never trust unverified claims" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool JWT Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JWT Decoder** — Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/jwt-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/jwt-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `token` | str | yes | JWT string (header.payload.signature) | Example request body: ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "jwt-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "header": { "alg": "HS256", "typ": "JWT" }, "payload": { "sub": "1234567890", "name": "John Doe", "iat": 1516239022 }, "algorithm": "HS256", "token_type": "JWT", "key_id": null, "registered_claims": { "sub": "1234567890", "iat": 1516239022 }, "claim_times_utc": { "iat": "2018-01-18T01:30:22Z" }, "lifetime_seconds": null, "signature_present": true, "signature_length_bytes": 32, "alg_none_warning": false, "note": "decoded without signature verification; never trust unverified claims" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-jwt-decoder.mdc copy prompt ```text --- description: MiniWebtool JWT Decoder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool JWT Decoder API ## The API **JWT Decoder** — Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/jwt-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/jwt-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `token` | str | yes | JWT string (header.payload.signature) | Example request body: ```json { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "jwt-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "header": { "alg": "HS256", "typ": "JWT" }, "payload": { "sub": "1234567890", "name": "John Doe", "iat": 1516239022 }, "algorithm": "HS256", "token_type": "JWT", "key_id": null, "registered_claims": { "sub": "1234567890", "iat": 1516239022 }, "claim_times_utc": { "iat": "2018-01-18T01:30:22Z" }, "lifetime_seconds": null, "signature_present": true, "signature_length_bytes": 32, "alg_none_warning": false, "note": "decoded without signature verification; never trust unverified claims" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `jwt-decoder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `jwt-decoder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call jwt-decoder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`token`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/jwt-decoder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the JWT Decoder API do? + Decode a JWT header and payload without verifying the signature, with registered claims and UTC claim times. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to JWT Decoder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the JWT Decoder API require? + Required fields: token. Full schema at /v1/openapi.json. Is the JWT Decoder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the JWT Decoder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `jwt-decoder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`jwt-decoder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"jwt-decoder"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - URL Decoder API # URL Decoder API dev 1 credit / call v2026-04-22 Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. One POST adds URL Decoder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the URL Decoder on miniwebtool.com →](https://miniwebtool.com/url-decoder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/url-decoder/run ``` ### Request body Field Type Req. `text` `str` ✓ `decode_plus` yes | no `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "url-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → text (str) * Hello%20World%21%20How%20are%20you%3F decode_plus (str) yes no yes | no Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`url-decoder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/url-decoder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"text":"Hello%20World%21%20How%20are%20you%3F","decode_plus":"yes"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/url-decoder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'text': 'Hello%20World%21%20How%20are%20you%3F', 'decode_plus': 'yes'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/url-decoder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"text":"Hello%20World%21%20How%20are%20you%3F","decode_plus":"yes"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'text' => 'Hello%20World%21%20How%20are%20you%3F', 'decode_plus' => 'yes' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/url-decoder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'text' => 'Hello%20World%21%20How%20are%20you%3F', 'decode_plus' => 'yes' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "text": "Hello%20World%21%20How%20are%20you%3F", "decode_plus": "yes", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/url-decoder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/url-decoder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"text\":\"Hello%20World%21%20How%20are%20you%3F\",\"decode_plus\":\"yes\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`url-decoder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/url-decoder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/url-decoder/prompt.md`](/tools/url-decoder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool URL Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **URL Decoder** — Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `decode_plus` | str | no | one of: yes, no — yes \| no (default `yes`) | Example request body: ```json { "text": "Hello%20World%21%20How%20are%20you%3F", "decode_plus": "yes" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "Hello World! How are you?", "decode_plus": "yes", "percent_sequences": 6, "unique_percent_sequences": 3, "decode_depth": 1, "is_multilayer": false, "input_chars": 37, "output_chars": 25 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool URL Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **URL Decoder** — Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `decode_plus` | str | no | one of: yes, no — yes \| no (default `yes`) | Example request body: ```json { "text": "Hello%20World%21%20How%20are%20you%3F", "decode_plus": "yes" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "Hello World! How are you?", "decode_plus": "yes", "percent_sequences": 6, "unique_percent_sequences": 3, "decode_depth": 1, "is_multilayer": false, "input_chars": 37, "output_chars": 25 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-url-decoder.mdc copy prompt ```text --- description: MiniWebtool URL Decoder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool URL Decoder API ## The API **URL Decoder** — Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `decode_plus` | str | no | one of: yes, no — yes \| no (default `yes`) | Example request body: ```json { "text": "Hello%20World%21%20How%20are%20you%3F", "decode_plus": "yes" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "Hello World! How are you?", "decode_plus": "yes", "percent_sequences": 6, "unique_percent_sequences": 3, "decode_depth": 1, "is_multilayer": false, "input_chars": 37, "output_chars": 25 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `url-decoder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `url-decoder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call url-decoder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`text`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/url-decoder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the URL Decoder API do? + Decode percent-encoded URL text with optional plus-as-space handling and multi-layer detection. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to URL Decoder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the URL Decoder API require? + Required fields: text. Full schema at /v1/openapi.json. Is the URL Decoder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the URL Decoder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `url-decoder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`url-decoder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"url-decoder"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - URL Encoder API # URL Encoder API dev 1 credit / call v2026-04-22 Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. One POST adds URL Encoder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the URL Encoder on miniwebtool.com →](https://miniwebtool.com/url-encoder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/url-encoder/run ``` ### Request body Field Type Req. `text` `str` ✓ `mode` rfc3986 | query | path | full `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "url-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → text (str) * Hello World! How are you? mode (str) rfc3986 query path full rfc3986 | query | path | full Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`url-encoder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/url-encoder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"text":"Hello World! How are you?","mode":"rfc3986"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/url-encoder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'text': 'Hello World! How are you?', 'mode': 'rfc3986'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/url-encoder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"text":"Hello World! How are you?","mode":"rfc3986"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'text' => 'Hello World! How are you?', 'mode' => 'rfc3986' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/url-encoder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'text' => 'Hello World! How are you?', 'mode' => 'rfc3986' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "text": "Hello World! How are you?", "mode": "rfc3986", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/url-encoder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/url-encoder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"text\":\"Hello World! How are you?\",\"mode\":\"rfc3986\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`url-encoder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/url-encoder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/url-encoder/prompt.md`](/tools/url-encoder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool URL Encoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **URL Encoder** — Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-encoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-encoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `mode` | str | no | one of: rfc3986, query, path, full — rfc3986 \| query \| path \| full (default `rfc3986`) | Example request body: ```json { "text": "Hello World! How are you?", "mode": "rfc3986" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "Hello%20World%21%20How%20are%20you%3F", "mode": "rfc3986", "input_chars": 25, "output_chars": 37, "encoded_count": 6, "unchanged_count": 19, "size_increase_percent": 48.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool URL Encoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **URL Encoder** — Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-encoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-encoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `mode` | str | no | one of: rfc3986, query, path, full — rfc3986 \| query \| path \| full (default `rfc3986`) | Example request body: ```json { "text": "Hello World! How are you?", "mode": "rfc3986" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "Hello%20World%21%20How%20are%20you%3F", "mode": "rfc3986", "input_chars": 25, "output_chars": 37, "encoded_count": 6, "unchanged_count": 19, "size_increase_percent": 48.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-url-encoder.mdc copy prompt ```text --- description: MiniWebtool URL Encoder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool URL Encoder API ## The API **URL Encoder** — Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-encoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-encoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `mode` | str | no | one of: rfc3986, query, path, full — rfc3986 \| query \| path \| full (default `rfc3986`) | Example request body: ```json { "text": "Hello World! How are you?", "mode": "rfc3986" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-encoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "Hello%20World%21%20How%20are%20you%3F", "mode": "rfc3986", "input_chars": 25, "output_chars": 37, "encoded_count": 6, "unchanged_count": 19, "size_increase_percent": 48.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `url-encoder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `url-encoder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call url-encoder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`text`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/url-encoder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the URL Encoder API do? + Percent-encode text for URLs using RFC 3986, query-string, path, or full encoding modes. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to URL Encoder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the URL Encoder API require? + Required fields: text. Full schema at /v1/openapi.json. Is the URL Encoder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the URL Encoder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `url-encoder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`url-encoder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"url-encoder"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - URL Parser API # URL Parser API dev 1 credit / call v2026-04-22 Break a URL into scheme, host, port, path, decoded query parameters, and fragment. One POST adds URL Parser to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the URL Parser on miniwebtool.com →](https://miniwebtool.com/url-parser/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/url-parser/run ``` ### Request body Field Type Req. `url` the URL (or relative path) to parse `str` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "url-parser", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → url (str) * https://api.example.com:8443/v1/users/42?active=true&role=admin#profile the URL (or relative path) to parse Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`url-parser`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/url-parser/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"url":"https://api.example.com:8443/v1/users/42?active=true&role=admin#profile"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/url-parser/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'url': 'https://api.example.com:8443/v1/users/42?active=true&role=admin#profile'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/url-parser/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"url":"https://api.example.com:8443/v1/users/42?active=true&role=admin#profile"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'url' => 'https://api.example.com:8443/v1/users/42?active=true&role=admin#profile' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/url-parser/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'url' => 'https://api.example.com:8443/v1/users/42?active=true&role=admin#profile' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "url": "https://api.example.com:8443/v1/users/42?active=true&role=admin#profile", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/url-parser/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/url-parser/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"url\":\"https://api.example.com:8443/v1/users/42?active=true&role=admin#profile\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`url-parser`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/url-parser/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/url-parser/prompt.md`](/tools/url-parser/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool URL Parser API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **URL Parser** — Break a URL into scheme, host, port, path, decoded query parameters, and fragment. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-parser/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-parser/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `url` | str | yes | the URL (or relative path) to parse | Example request body: ```json { "url": "https://api.example.com:8443/v1/users/42?active=true&role=admin#profile" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-parser", "tool_version": "2026-04-22", "credits_used": 1, "result": { "scheme": "https", "assumed_scheme": false, "username": "", "has_password": false, "host": "api.example.com", "port": 8443, "effective_port": 8443, "path": "/v1/users/42", "decoded_path": "/v1/users/42", "query": "active=true&role=admin", "query_pairs": [ { "key": "active", "value": "true", "has_value": true }, { "key": "role", "value": "admin", "has_value": true } ], "fragment": "profile", "path_segments": [ "v1", "users", "42" ], "is_secure_scheme": true } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool URL Parser API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **URL Parser** — Break a URL into scheme, host, port, path, decoded query parameters, and fragment. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-parser/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-parser/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `url` | str | yes | the URL (or relative path) to parse | Example request body: ```json { "url": "https://api.example.com:8443/v1/users/42?active=true&role=admin#profile" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-parser", "tool_version": "2026-04-22", "credits_used": 1, "result": { "scheme": "https", "assumed_scheme": false, "username": "", "has_password": false, "host": "api.example.com", "port": 8443, "effective_port": 8443, "path": "/v1/users/42", "decoded_path": "/v1/users/42", "query": "active=true&role=admin", "query_pairs": [ { "key": "active", "value": "true", "has_value": true }, { "key": "role", "value": "admin", "has_value": true } ], "fragment": "profile", "path_segments": [ "v1", "users", "42" ], "is_secure_scheme": true } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-url-parser.mdc copy prompt ```text --- description: MiniWebtool URL Parser API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool URL Parser API ## The API **URL Parser** — Break a URL into scheme, host, port, path, decoded query parameters, and fragment. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/url-parser/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/url-parser/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `url` | str | yes | the URL (or relative path) to parse | Example request body: ```json { "url": "https://api.example.com:8443/v1/users/42?active=true&role=admin#profile" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "url-parser", "tool_version": "2026-04-22", "credits_used": 1, "result": { "scheme": "https", "assumed_scheme": false, "username": "", "has_password": false, "host": "api.example.com", "port": 8443, "effective_port": 8443, "path": "/v1/users/42", "decoded_path": "/v1/users/42", "query": "active=true&role=admin", "query_pairs": [ { "key": "active", "value": "true", "has_value": true }, { "key": "role", "value": "admin", "has_value": true } ], "fragment": "profile", "path_segments": [ "v1", "users", "42" ], "is_secure_scheme": true } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `url-parser` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `url-parser` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call url-parser - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`url`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/url-parser/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the URL Parser API do? + Break a URL into scheme, host, port, path, decoded query parameters, and fragment. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to URL Parser cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the URL Parser API require? + Required fields: url. Full schema at /v1/openapi.json. Is the URL Parser API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the URL Parser API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `url-parser` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`url-parser`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"url-parser"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - Cron Job Generator API # Cron Job Generator API dev 1 credit / call v2026-04-22 Generate a cron expression from common schedule presets. One POST adds Cron Job Generator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Cron Job Generator on miniwebtool.com →](https://miniwebtool.com/cron-job-generator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cron-job-generator/run ``` ### Request body Field Type Req. `schedule_type` every_minute | hourly | daily | weekly | monthly | yearly `str` — `minute` `int` — `hour` `int` — `day_of_month` `int` — `month` `int` — `day_of_week` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cron-job-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → schedule_type (str) every_minute hourly daily weekly monthly yearly every_minute | hourly | daily | weekly | monthly | yearly minute (int) hour (int) day_of_month (int) month (int) day_of_week (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cron-job-generator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cron-job-generator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cron-job-generator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cron-job-generator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cron-job-generator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cron-job-generator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cron-job-generator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cron-job-generator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cron-job-generator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cron-job-generator/prompt.md`](/tools/cron-job-generator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Cron Job Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cron Job Generator** — Generate a cron expression from common schedule presets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cron-job-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cron-job-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `schedule_type` | str | no | one of: every_minute, hourly, daily, weekly, monthly, yearly — every_minute \| hourly \| daily \| weekly \| monthly \| yearly (default `daily`) | | `minute` | int | no | (default `0`) | | `hour` | int | no | (default `9`) | | `day_of_month` | int | no | (default `1`) | | `month` | int | no | (default `1`) | | `day_of_week` | int | no | (default `1`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cron-job-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "schedule_type": "daily", "expression": "0 9 * * *", "description": "Daily at 09:00", "fields": [ "0", "9", "*", "*", "*" ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Cron Job Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cron Job Generator** — Generate a cron expression from common schedule presets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cron-job-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cron-job-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `schedule_type` | str | no | one of: every_minute, hourly, daily, weekly, monthly, yearly — every_minute \| hourly \| daily \| weekly \| monthly \| yearly (default `daily`) | | `minute` | int | no | (default `0`) | | `hour` | int | no | (default `9`) | | `day_of_month` | int | no | (default `1`) | | `month` | int | no | (default `1`) | | `day_of_week` | int | no | (default `1`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cron-job-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "schedule_type": "daily", "expression": "0 9 * * *", "description": "Daily at 09:00", "fields": [ "0", "9", "*", "*", "*" ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cron-job-generator.mdc copy prompt ```text --- description: MiniWebtool Cron Job Generator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Cron Job Generator API ## The API **Cron Job Generator** — Generate a cron expression from common schedule presets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cron-job-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cron-job-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `schedule_type` | str | no | one of: every_minute, hourly, daily, weekly, monthly, yearly — every_minute \| hourly \| daily \| weekly \| monthly \| yearly (default `daily`) | | `minute` | int | no | (default `0`) | | `hour` | int | no | (default `9`) | | `day_of_month` | int | no | (default `1`) | | `month` | int | no | (default `1`) | | `day_of_week` | int | no | (default `1`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cron-job-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "schedule_type": "daily", "expression": "0 9 * * *", "description": "Daily at 09:00", "fields": [ "0", "9", "*", "*", "*" ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cron-job-generator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cron-job-generator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cron-job-generator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cron-job-generator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Cron Job Generator API do? + Generate a cron expression from common schedule presets. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Cron Job Generator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Cron Job Generator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Cron Job Generator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Cron Job Generator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cron-job-generator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cron-job-generator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cron-job-generator"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Crontab Expression Generator Build and validate a crontab expression from individual fields. ](/tools/crontab-expression-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) [ CSV to JSON Converter Convert CSV text to JSON with delimiter auto-detection and type inference. ](/tools/csv-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [dev](/tools/#dev) - / - Crontab Expression Generator API # Crontab Expression Generator API dev 1 credit / call v2026-04-22 Build and validate a crontab expression from individual fields. One POST adds Crontab Expression Generator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Crontab Expression Generator on miniwebtool.com →](https://miniwebtool.com/crontab-expression-generator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run ``` ### Request body Field Type Req. `minute` `str` — `hour` `str` — `day_of_month` `str` — `month` `str` — `day_of_week` `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "crontab-expression-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → minute (str) hour (str) day_of_month (str) month (str) day_of_week (str) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`crontab-expression-generator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`crontab-expression-generator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/crontab-expression-generator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/crontab-expression-generator/prompt.md`](/tools/crontab-expression-generator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Crontab Expression Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crontab Expression Generator** — Build and validate a crontab expression from individual fields. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `minute` | str | no | (default `*/15`) | | `hour` | str | no | (default `9-17`) | | `day_of_month` | str | no | (default `*`) | | `month` | str | no | (default `*`) | | `day_of_week` | str | no | (default `1-5`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crontab-expression-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "expression": "*/15 9-17 * * 1-5", "valid": true, "minute_count": 4, "hour_count": 9, "day_of_month_count": 31, "month_count": 12, "day_of_week_count": 5, "runs_per_matching_day": 36, "expanded_preview": { "minutes": [ 0, 15, 30, 45 ], "hours": [ 9, 10, 11, 12, 13, 14, 15, 16, 17 ], "days_of_month": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "months": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "days_of_week": [ 1, 2, 3, 4, 5 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Crontab Expression Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crontab Expression Generator** — Build and validate a crontab expression from individual fields. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `minute` | str | no | (default `*/15`) | | `hour` | str | no | (default `9-17`) | | `day_of_month` | str | no | (default `*`) | | `month` | str | no | (default `*`) | | `day_of_week` | str | no | (default `1-5`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crontab-expression-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "expression": "*/15 9-17 * * 1-5", "valid": true, "minute_count": 4, "hour_count": 9, "day_of_month_count": 31, "month_count": 12, "day_of_week_count": 5, "runs_per_matching_day": 36, "expanded_preview": { "minutes": [ 0, 15, 30, 45 ], "hours": [ 9, 10, 11, 12, 13, 14, 15, 16, 17 ], "days_of_month": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "months": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "days_of_week": [ 1, 2, 3, 4, 5 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-crontab-expression-generator.mdc copy prompt ```text --- description: MiniWebtool Crontab Expression Generator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Crontab Expression Generator API ## The API **Crontab Expression Generator** — Build and validate a crontab expression from individual fields. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/crontab-expression-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `minute` | str | no | (default `*/15`) | | `hour` | str | no | (default `9-17`) | | `day_of_month` | str | no | (default `*`) | | `month` | str | no | (default `*`) | | `day_of_week` | str | no | (default `1-5`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crontab-expression-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "expression": "*/15 9-17 * * 1-5", "valid": true, "minute_count": 4, "hour_count": 9, "day_of_month_count": 31, "month_count": 12, "day_of_week_count": 5, "runs_per_matching_day": 36, "expanded_preview": { "minutes": [ 0, 15, 30, 45 ], "hours": [ 9, 10, 11, 12, 13, 14, 15, 16, 17 ], "days_of_month": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "months": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "days_of_week": [ 1, 2, 3, 4, 5 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `crontab-expression-generator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `crontab-expression-generator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call crontab-expression-generator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/crontab-expression-generator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Crontab Expression Generator API do? + Build and validate a crontab expression from individual fields. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Crontab Expression Generator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Crontab Expression Generator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Crontab Expression Generator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Crontab Expression Generator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `crontab-expression-generator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`crontab-expression-generator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"crontab-expression-generator"}}}' \ | jq.result.structuredContent ``` see-also related dev tools [ RGB to Hex Converter Convert RGB channels to hex, HSL, HSV, CMYK, and relative luminance. ](/tools/rgb-to-hex-converter/) [ Cron Job Generator Generate a cron expression from common schedule presets. ](/tools/cron-job-generator/) [ Base64 Encoder Encode UTF-8 text as standard, URL-safe, or MIME line-wrapped Base64. ](/tools/base64-encoder/) [ CSV to JSON Converter Convert CSV text to JSON with delimiter auto-detection and type inference. ](/tools/csv-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - CSS Grid Generator API # CSS Grid Generator API developer 1 credit / call v2026-04-22 Generate responsive or fixed CSS Grid styles and matching HTML markup. One POST adds CSS Grid Generator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the CSS Grid Generator on miniwebtool.com →](https://miniwebtool.com/css-grid-generator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/css-grid-generator/run ``` ### Request body Field Type Req. `columns` `int` — `rows` `int` — `column_gap_px` `float` — `row_gap_px` `float` — `min_column_width_px` `float` — `responsive` yes | no `str` — `justify_items` stretch | start | center | end `str` — `align_items` stretch | start | center | end `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "css-grid-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → columns (int) rows (int) column_gap_px (float) row_gap_px (float) min_column_width_px (float) responsive (str) yes no yes | no justify_items (str) stretch start center end stretch | start | center | end align_items (str) stretch start center end stretch | start | center | end Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`css-grid-generator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/css-grid-generator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"columns":3,"rows":2,"column_gap_px":16,"row_gap_px":16,"min_column_width_px":200,"responsive":"yes"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/css-grid-generator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'columns': 3, 'rows': 2, 'column_gap_px': 16, 'row_gap_px': 16, 'min_column_width_px': 200, 'responsive': 'yes'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/css-grid-generator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"columns":3,"rows":2,"column_gap_px":16,"row_gap_px":16,"min_column_width_px":200,"responsive":"yes"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'columns' => 3, 'rows' => 2, 'column_gap_px' => 16, 'row_gap_px' => 16, 'min_column_width_px' => 200, 'responsive' => 'yes' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/css-grid-generator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'columns' => 3, 'rows' => 2, 'column_gap_px' => 16, 'row_gap_px' => 16, 'min_column_width_px' => 200, 'responsive' => 'yes' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "columns": 3, "rows": 2, "column_gap_px": 16, "row_gap_px": 16, "min_column_width_px": 200, "responsive": "yes", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/css-grid-generator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/css-grid-generator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"columns\":3,\"rows\":2,\"column_gap_px\":16,\"row_gap_px\":16,\"min_column_width_px\":200,\"responsive\":\"yes\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`css-grid-generator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/css-grid-generator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/css-grid-generator/prompt.md`](/tools/css-grid-generator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool CSS Grid Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CSS Grid Generator** — Generate responsive or fixed CSS Grid styles and matching HTML markup. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/css-grid-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/css-grid-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `columns` | int | no | (default `3`) | | `rows` | int | no | (default `2`) | | `column_gap_px` | float | no | (default `16`) | | `row_gap_px` | float | no | (default `16`) | | `min_column_width_px` | float | no | (default `200`) | | `responsive` | str | no | one of: yes, no — yes \| no (default `yes`) | | `justify_items` | str | no | one of: stretch, start, center, end — stretch \| start \| center \| end (default `stretch`) | | `align_items` | str | no | one of: stretch, start, center, end — stretch \| start \| center \| end (default `stretch`) | Example request body: ```json { "columns": 3, "rows": 2, "column_gap_px": 16, "row_gap_px": 16, "min_column_width_px": 200, "responsive": "yes" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "css-grid-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "css": ".grid-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n grid-template-rows: repeat(2, auto);\n column-gap: 16px;\n row-gap: 16px;\n justify-items: stretch;\n align-items: stretch;\n}", "html": "
\n
Item 1
\n
Item 2
\n
Item 3
\n
Item 4
\n
Item 5
\n
Item 6
\n
", "item_count": 6, "responsive": true, "grid_template_columns": "repeat(auto-fit, minmax(200px, 1fr))" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool CSS Grid Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CSS Grid Generator** — Generate responsive or fixed CSS Grid styles and matching HTML markup. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/css-grid-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/css-grid-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `columns` | int | no | (default `3`) | | `rows` | int | no | (default `2`) | | `column_gap_px` | float | no | (default `16`) | | `row_gap_px` | float | no | (default `16`) | | `min_column_width_px` | float | no | (default `200`) | | `responsive` | str | no | one of: yes, no — yes \| no (default `yes`) | | `justify_items` | str | no | one of: stretch, start, center, end — stretch \| start \| center \| end (default `stretch`) | | `align_items` | str | no | one of: stretch, start, center, end — stretch \| start \| center \| end (default `stretch`) | Example request body: ```json { "columns": 3, "rows": 2, "column_gap_px": 16, "row_gap_px": 16, "min_column_width_px": 200, "responsive": "yes" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "css-grid-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "css": ".grid-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n grid-template-rows: repeat(2, auto);\n column-gap: 16px;\n row-gap: 16px;\n justify-items: stretch;\n align-items: stretch;\n}", "html": "
\n
Item 1
\n
Item 2
\n
Item 3
\n
Item 4
\n
Item 5
\n
Item 6
\n
", "item_count": 6, "responsive": true, "grid_template_columns": "repeat(auto-fit, minmax(200px, 1fr))" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-css-grid-generator.mdc copy prompt ```text --- description: MiniWebtool CSS Grid Generator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool CSS Grid Generator API ## The API **CSS Grid Generator** — Generate responsive or fixed CSS Grid styles and matching HTML markup. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/css-grid-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/css-grid-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `columns` | int | no | (default `3`) | | `rows` | int | no | (default `2`) | | `column_gap_px` | float | no | (default `16`) | | `row_gap_px` | float | no | (default `16`) | | `min_column_width_px` | float | no | (default `200`) | | `responsive` | str | no | one of: yes, no — yes \| no (default `yes`) | | `justify_items` | str | no | one of: stretch, start, center, end — stretch \| start \| center \| end (default `stretch`) | | `align_items` | str | no | one of: stretch, start, center, end — stretch \| start \| center \| end (default `stretch`) | Example request body: ```json { "columns": 3, "rows": 2, "column_gap_px": 16, "row_gap_px": 16, "min_column_width_px": 200, "responsive": "yes" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "css-grid-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "css": ".grid-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n grid-template-rows: repeat(2, auto);\n column-gap: 16px;\n row-gap: 16px;\n justify-items: stretch;\n align-items: stretch;\n}", "html": "
\n
Item 1
\n
Item 2
\n
Item 3
\n
Item 4
\n
Item 5
\n
Item 6
\n
", "item_count": 6, "responsive": true, "grid_template_columns": "repeat(auto-fit, minmax(200px, 1fr))" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `css-grid-generator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `css-grid-generator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call css-grid-generator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/css-grid-generator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the CSS Grid Generator API do? + Generate responsive or fixed CSS Grid styles and matching HTML markup. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to CSS Grid Generator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the CSS Grid Generator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the CSS Grid Generator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the CSS Grid Generator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `css-grid-generator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`css-grid-generator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"css-grid-generator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - Color Inverter API # Color Inverter API developer 1 credit / call v2026-04-22 Invert a hex colour and report luminance plus a readable text colour. One POST adds Color Inverter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Color Inverter on miniwebtool.com →](https://miniwebtool.com/color-inverter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/color-inverter/run ``` ### Request body Field Type Req. `color` `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "color-inverter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → color (str) #3b82f6 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`color-inverter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/color-inverter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"color":"#3b82f6"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/color-inverter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'color': '#3b82f6'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/color-inverter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"color":"#3b82f6"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'color' => '#3b82f6' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/color-inverter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'color' => '#3b82f6' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "color": "#3b82f6", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/color-inverter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/color-inverter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"color\":\"#3b82f6\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`color-inverter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/color-inverter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/color-inverter/prompt.md`](/tools/color-inverter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Color Inverter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Inverter** — Invert a hex colour and report luminance plus a readable text colour. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-inverter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-inverter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `color` | str | no | (default `#3b82f6`) | Example request body: ```json { "color": "#3b82f6" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-inverter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input": "#3b82f6", "inverted": "#c47d09", "input_rgb": [ 59, 130, 246 ], "inverted_rgb": [ 196, 125, 9 ], "relative_luminance": 0.483453, "suggested_text_on_input": "#ffffff" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Color Inverter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Color Inverter** — Invert a hex colour and report luminance plus a readable text colour. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-inverter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-inverter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `color` | str | no | (default `#3b82f6`) | Example request body: ```json { "color": "#3b82f6" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-inverter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input": "#3b82f6", "inverted": "#c47d09", "input_rgb": [ 59, 130, 246 ], "inverted_rgb": [ 196, 125, 9 ], "relative_luminance": 0.483453, "suggested_text_on_input": "#ffffff" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-color-inverter.mdc copy prompt ```text --- description: MiniWebtool Color Inverter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Color Inverter API ## The API **Color Inverter** — Invert a hex colour and report luminance plus a readable text colour. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/color-inverter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/color-inverter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `color` | str | no | (default `#3b82f6`) | Example request body: ```json { "color": "#3b82f6" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "color-inverter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input": "#3b82f6", "inverted": "#c47d09", "input_rgb": [ 59, 130, 246 ], "inverted_rgb": [ 196, 125, 9 ], "relative_luminance": 0.483453, "suggested_text_on_input": "#ffffff" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `color-inverter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `color-inverter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call color-inverter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/color-inverter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Color Inverter API do? + Invert a hex colour and report luminance plus a readable text colour. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Color Inverter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Color Inverter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Color Inverter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Color Inverter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `color-inverter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`color-inverter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"color-inverter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - cURL to JSON Converter API # cURL to JSON Converter API developer 1 credit / call v2026-04-22 Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. One POST adds cURL to JSON Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the cURL to JSON Converter on miniwebtool.com →](https://miniwebtool.com/curl-to-json-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run ``` ### Request body Field Type Req. `curl_command` a curl command to parse `str` — `output_format` json | python | nodejs | nodejs_axios | php | go `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`524288`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "curl-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → curl_command (str) curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}' a curl command to parse output_format (str) json python nodejs nodejs_axios php go json | python | nodejs | nodejs_axios | php | go Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`curl-to-json-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"curl_command":"curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{\"name\":\"Ada\"}'","output_format":"json"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'curl_command': 'curl -X POST https://api.example.com/v1/users -H \'Content-Type: application/json\' -d \'{"name":"Ada"}\'', 'output_format': 'json'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"curl_command":"curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{\"name\":\"Ada\"}'","output_format":"json"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'curl_command' => 'curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'', 'output_format' => 'json' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'curl_command' => 'curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'', 'output_format' => 'json' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "curl_command": "curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'", "output_format": "json", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"curl_command\":\"curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{\\\"name\\\":\\\"Ada\\\"}'\",\"output_format\":\"json\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`curl-to-json-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/curl-to-json-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/curl-to-json-converter/prompt.md`](/tools/curl-to-json-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool cURL to JSON Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **cURL to JSON Converter** — Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `curl_command` | str | no | a curl command to parse (default `curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'`) | | `output_format` | str | no | one of: json, python, nodejs, nodejs_axios, php, go — json \| python \| nodejs \| nodejs_axios \| php \| go (default `json`) | Example request body: ```json { "curl_command": "curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{\"name\":\"Ada\"}'", "output_format": "json" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "curl-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "output_format": "json", "request": { "method": "POST", "url": "https://api.example.com/v1/users", "url_parts": { "scheme": "https", "host": "api.example.com", "port": null, "path": "/v1/users", "query": "", "fragment": "" }, "query_params": [], "headers": [ [ "Content-Type", "application/json" ] ], "cookies": [], "auth": null, "body": "{\"name\":\"Ada\"}", "body_json": { "name": "Ada" }, "form_fields": [], "flags": {}, "options": {} }, "code": "{\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/users\",\n \"url_parts\": {\n \"scheme\": \"https\",\n \"host\": \"api.example.com\",\n \"port\": null,\n \"path\": \"/v1/users\",\n \"query\": \"\",\n \"fragment\": \"\"\n },\n \"query_params\": [],\n \"headers\": [\n [\n \"Content-Type\",\n \"application/json\"\n ]\n ],\n \"cookies\": [],\n \"auth\": null,\n \"body\": \"{\\\"name\\\":\\\"Ada\\\"}\",\n \"body_json\": {\n \"name\": \"Ada\"\n },\n \"form_fields\": [],\n \"flags\": {},\n \"options\": {}\n}", "json": "{\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/users\",\n \"url_parts\": {\n \"scheme\": \"https\",\n \"host\": \"api.example.com\",\n \"port\": null,\n \"path\": \"/v1/users\",\n \"query\": \"\",\n \"fragment\": \"\"\n },\n \"query_params\": [],\n \"headers\": [\n [\n \"Content-Type\",\n \"application/json\"\n ]\n ],\n \"cookies\": [],\n \"auth\": null,\n \"body\": \"{\\\"name\\\":\\\"Ada\\\"}\",\n \"body_json\": {\n \"name\": \"Ada\"\n },\n \"form_fields\": [],\n \"flags\": {},\n \"options\": {}\n}", "header_count": 1, "has_body": true, "body_is_json": true, "auth_type": "none", "flag_count": 0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool cURL to JSON Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **cURL to JSON Converter** — Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `curl_command` | str | no | a curl command to parse (default `curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'`) | | `output_format` | str | no | one of: json, python, nodejs, nodejs_axios, php, go — json \| python \| nodejs \| nodejs_axios \| php \| go (default `json`) | Example request body: ```json { "curl_command": "curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{\"name\":\"Ada\"}'", "output_format": "json" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "curl-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "output_format": "json", "request": { "method": "POST", "url": "https://api.example.com/v1/users", "url_parts": { "scheme": "https", "host": "api.example.com", "port": null, "path": "/v1/users", "query": "", "fragment": "" }, "query_params": [], "headers": [ [ "Content-Type", "application/json" ] ], "cookies": [], "auth": null, "body": "{\"name\":\"Ada\"}", "body_json": { "name": "Ada" }, "form_fields": [], "flags": {}, "options": {} }, "code": "{\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/users\",\n \"url_parts\": {\n \"scheme\": \"https\",\n \"host\": \"api.example.com\",\n \"port\": null,\n \"path\": \"/v1/users\",\n \"query\": \"\",\n \"fragment\": \"\"\n },\n \"query_params\": [],\n \"headers\": [\n [\n \"Content-Type\",\n \"application/json\"\n ]\n ],\n \"cookies\": [],\n \"auth\": null,\n \"body\": \"{\\\"name\\\":\\\"Ada\\\"}\",\n \"body_json\": {\n \"name\": \"Ada\"\n },\n \"form_fields\": [],\n \"flags\": {},\n \"options\": {}\n}", "json": "{\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/users\",\n \"url_parts\": {\n \"scheme\": \"https\",\n \"host\": \"api.example.com\",\n \"port\": null,\n \"path\": \"/v1/users\",\n \"query\": \"\",\n \"fragment\": \"\"\n },\n \"query_params\": [],\n \"headers\": [\n [\n \"Content-Type\",\n \"application/json\"\n ]\n ],\n \"cookies\": [],\n \"auth\": null,\n \"body\": \"{\\\"name\\\":\\\"Ada\\\"}\",\n \"body_json\": {\n \"name\": \"Ada\"\n },\n \"form_fields\": [],\n \"flags\": {},\n \"options\": {}\n}", "header_count": 1, "has_body": true, "body_is_json": true, "auth_type": "none", "flag_count": 0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-curl-to-json-converter.mdc copy prompt ```text --- description: MiniWebtool cURL to JSON Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool cURL to JSON Converter API ## The API **cURL to JSON Converter** — Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/curl-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `curl_command` | str | no | a curl command to parse (default `curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{"name":"Ada"}'`) | | `output_format` | str | no | one of: json, python, nodejs, nodejs_axios, php, go — json \| python \| nodejs \| nodejs_axios \| php \| go (default `json`) | Example request body: ```json { "curl_command": "curl -X POST https://api.example.com/v1/users -H 'Content-Type: application/json' -d '{\"name\":\"Ada\"}'", "output_format": "json" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "curl-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "output_format": "json", "request": { "method": "POST", "url": "https://api.example.com/v1/users", "url_parts": { "scheme": "https", "host": "api.example.com", "port": null, "path": "/v1/users", "query": "", "fragment": "" }, "query_params": [], "headers": [ [ "Content-Type", "application/json" ] ], "cookies": [], "auth": null, "body": "{\"name\":\"Ada\"}", "body_json": { "name": "Ada" }, "form_fields": [], "flags": {}, "options": {} }, "code": "{\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/users\",\n \"url_parts\": {\n \"scheme\": \"https\",\n \"host\": \"api.example.com\",\n \"port\": null,\n \"path\": \"/v1/users\",\n \"query\": \"\",\n \"fragment\": \"\"\n },\n \"query_params\": [],\n \"headers\": [\n [\n \"Content-Type\",\n \"application/json\"\n ]\n ],\n \"cookies\": [],\n \"auth\": null,\n \"body\": \"{\\\"name\\\":\\\"Ada\\\"}\",\n \"body_json\": {\n \"name\": \"Ada\"\n },\n \"form_fields\": [],\n \"flags\": {},\n \"options\": {}\n}", "json": "{\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/users\",\n \"url_parts\": {\n \"scheme\": \"https\",\n \"host\": \"api.example.com\",\n \"port\": null,\n \"path\": \"/v1/users\",\n \"query\": \"\",\n \"fragment\": \"\"\n },\n \"query_params\": [],\n \"headers\": [\n [\n \"Content-Type\",\n \"application/json\"\n ]\n ],\n \"cookies\": [],\n \"auth\": null,\n \"body\": \"{\\\"name\\\":\\\"Ada\\\"}\",\n \"body_json\": {\n \"name\": \"Ada\"\n },\n \"form_fields\": [],\n \"flags\": {},\n \"options\": {}\n}", "header_count": 1, "has_body": true, "body_is_json": true, "auth_type": "none", "flag_count": 0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `curl-to-json-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `curl-to-json-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call curl-to-json-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/curl-to-json-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the cURL to JSON Converter API do? + Parse a curl command into structured JSON (method, URL parts, headers, cookies, auth, body) and emit equivalent Python, Node.js, PHP, or Go code. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to cURL to JSON Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the cURL to JSON Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the cURL to JSON Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the cURL to JSON Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `curl-to-json-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`curl-to-json-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"curl-to-json-converter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - JSON to YAML Converter API # JSON to YAML Converter API developer 1 credit / call v2026-04-22 Convert a JSON document into block-style YAML, quoting only the scalars that need it. One POST adds JSON to YAML Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the JSON to YAML Converter on miniwebtool.com →](https://miniwebtool.com/json-to-yaml-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run ``` ### Request body Field Type Req. `json_text` JSON document `str` — `indent_size` spaces per level `int` — `document_start` no | yes `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`524288`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "json-to-yaml-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → json_text (str) {"name": "api", "ports": [80, 443], "debug": false} JSON document indent_size (int) spaces per level document_start (str) no yes no | yes Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`json-to-yaml-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"json_text":"{\"name\": \"api\", \"ports\": [80, 443], \"debug\": false}","indent_size":2,"document_start":"no"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'json_text': '{"name": "api", "ports": [80, 443], "debug": false}', 'indent_size': 2, 'document_start': 'no'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"json_text":"{\"name\": \"api\", \"ports\": [80, 443], \"debug\": false}","indent_size":2,"document_start":"no"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'json_text' => '{"name": "api", "ports": [80, 443], "debug": false}', 'indent_size' => 2, 'document_start' => 'no' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'json_text' => '{"name": "api", "ports": [80, 443], "debug": false}', 'indent_size' => 2, 'document_start' => 'no' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "json_text": "{"name": "api", "ports": [80, 443], "debug": false}", "indent_size": 2, "document_start": "no", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"json_text\":\"{\\\"name\\\": \\\"api\\\", \\\"ports\\\": [80, 443], \\\"debug\\\": false}\",\"indent_size\":2,\"document_start\":\"no\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`json-to-yaml-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/json-to-yaml-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/json-to-yaml-converter/prompt.md`](/tools/json-to-yaml-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool JSON to YAML Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON to YAML Converter** — Convert a JSON document into block-style YAML, quoting only the scalars that need it. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON document (default `{"name": "api", "ports": [80, 443], "debug": false}`) | | `indent_size` | int | no | spaces per level (default `2`) | | `document_start` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "json_text": "{\"name\": \"api\", \"ports\": [80, 443], \"debug\": false}", "indent_size": 2, "document_start": "no" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-to-yaml-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "yaml": "name: api\nports:\n - 80\n - 443\ndebug: false", "indent_size": 2, "document_start": false, "root_type": "dict", "node_count": 6, "max_depth": 3, "line_count": 5, "input_bytes": 51, "output_bytes": 44 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool JSON to YAML Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON to YAML Converter** — Convert a JSON document into block-style YAML, quoting only the scalars that need it. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON document (default `{"name": "api", "ports": [80, 443], "debug": false}`) | | `indent_size` | int | no | spaces per level (default `2`) | | `document_start` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "json_text": "{\"name\": \"api\", \"ports\": [80, 443], \"debug\": false}", "indent_size": 2, "document_start": "no" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-to-yaml-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "yaml": "name: api\nports:\n - 80\n - 443\ndebug: false", "indent_size": 2, "document_start": false, "root_type": "dict", "node_count": 6, "max_depth": 3, "line_count": 5, "input_bytes": 51, "output_bytes": 44 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-json-to-yaml-converter.mdc copy prompt ```text --- description: MiniWebtool JSON to YAML Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool JSON to YAML Converter API ## The API **JSON to YAML Converter** — Convert a JSON document into block-style YAML, quoting only the scalars that need it. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON document (default `{"name": "api", "ports": [80, 443], "debug": false}`) | | `indent_size` | int | no | spaces per level (default `2`) | | `document_start` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "json_text": "{\"name\": \"api\", \"ports\": [80, 443], \"debug\": false}", "indent_size": 2, "document_start": "no" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-to-yaml-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "yaml": "name: api\nports:\n - 80\n - 443\ndebug: false", "indent_size": 2, "document_start": false, "root_type": "dict", "node_count": 6, "max_depth": 3, "line_count": 5, "input_bytes": 51, "output_bytes": 44 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `json-to-yaml-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `json-to-yaml-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call json-to-yaml-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/json-to-yaml-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the JSON to YAML Converter API do? + Convert a JSON document into block-style YAML, quoting only the scalars that need it. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to JSON to YAML Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the JSON to YAML Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the JSON to YAML Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the JSON to YAML Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `json-to-yaml-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`json-to-yaml-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"json-to-yaml-converter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - XML to JSON Converter API # XML to JSON Converter API developer 1 credit / call v2026-04-22 Convert XML into JSON using standard, compact, JsonML, or preserve styles. One POST adds XML to JSON Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the XML to JSON Converter on miniwebtool.com →](https://miniwebtool.com/xml-to-json-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run ``` ### Request body Field Type Req. `xml_input` `str` ✓ `style` standard | compact | jsonml | preserve `str` — `indent` 0 | 2 | 4 | tab `str` — `parse_types` `bool` — `sort_keys` `bool` — `preserve_namespaces` `bool` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "xml-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → xml_input (str) * Demo12.99 style (str) standard compact jsonml preserve standard | compact | jsonml | preserve indent (str) 0 2 4 tab 0 | 2 | 4 | tab parse_types (bool) false true sort_keys (bool) false true preserve_namespaces (bool) false true Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`xml-to-json-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"xml_input":"Demo12.99","style":"standard","indent":"2","parse_types":true}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'xml_input': 'Demo12.99', 'style': 'standard', 'indent': '2', 'parse_types': True}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"xml_input":"Demo12.99","style":"standard","indent":"2","parse_types":true}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'xml_input' => 'Demo12.99', 'style' => 'standard', 'indent' => '2', 'parse_types' => true ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'xml_input' => 'Demo12.99', 'style' => 'standard', 'indent' => '2', 'parse_types' => true }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "xml_input": "Demo12.99", "style": "standard", "indent": "2", "parse_types": true, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"xml_input\":\"Demo12.99\",\"style\":\"standard\",\"indent\":\"2\",\"parse_types\":true}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`xml-to-json-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/xml-to-json-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/xml-to-json-converter/prompt.md`](/tools/xml-to-json-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool XML to JSON Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **XML to JSON Converter** — Convert XML into JSON using standard, compact, JsonML, or preserve styles. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `xml_input` | str | yes | — | | `style` | str | no | one of: standard, compact, jsonml, preserve — standard \| compact \| jsonml \| preserve (default `standard`) | | `indent` | str | no | one of: 0, 2, 4, tab — 0 \| 2 \| 4 \| tab (default `2`) | | `parse_types` | bool | no | (default `True`) | | `sort_keys` | bool | no | (default `False`) | | `preserve_namespaces` | bool | no | (default `False`) | Example request body: ```json { "xml_input": "Demo12.99", "style": "standard", "indent": "2", "parse_types": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "xml-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "json": "{\n \"book\": {\n \"@id\": 1,\n \"title\": \"Demo\",\n \"price\": 12.99\n }\n}", "object": { "book": { "@id": 1, "title": "Demo", "price": 12.99 } }, "style": "standard", "stats": { "elements": 3, "attributes": 1, "text_nodes": 2, "max_depth": 2, "output_chars": 73 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool XML to JSON Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **XML to JSON Converter** — Convert XML into JSON using standard, compact, JsonML, or preserve styles. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `xml_input` | str | yes | — | | `style` | str | no | one of: standard, compact, jsonml, preserve — standard \| compact \| jsonml \| preserve (default `standard`) | | `indent` | str | no | one of: 0, 2, 4, tab — 0 \| 2 \| 4 \| tab (default `2`) | | `parse_types` | bool | no | (default `True`) | | `sort_keys` | bool | no | (default `False`) | | `preserve_namespaces` | bool | no | (default `False`) | Example request body: ```json { "xml_input": "Demo12.99", "style": "standard", "indent": "2", "parse_types": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "xml-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "json": "{\n \"book\": {\n \"@id\": 1,\n \"title\": \"Demo\",\n \"price\": 12.99\n }\n}", "object": { "book": { "@id": 1, "title": "Demo", "price": 12.99 } }, "style": "standard", "stats": { "elements": 3, "attributes": 1, "text_nodes": 2, "max_depth": 2, "output_chars": 73 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-xml-to-json-converter.mdc copy prompt ```text --- description: MiniWebtool XML to JSON Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool XML to JSON Converter API ## The API **XML to JSON Converter** — Convert XML into JSON using standard, compact, JsonML, or preserve styles. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/xml-to-json-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `xml_input` | str | yes | — | | `style` | str | no | one of: standard, compact, jsonml, preserve — standard \| compact \| jsonml \| preserve (default `standard`) | | `indent` | str | no | one of: 0, 2, 4, tab — 0 \| 2 \| 4 \| tab (default `2`) | | `parse_types` | bool | no | (default `True`) | | `sort_keys` | bool | no | (default `False`) | | `preserve_namespaces` | bool | no | (default `False`) | Example request body: ```json { "xml_input": "Demo12.99", "style": "standard", "indent": "2", "parse_types": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "xml-to-json-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "json": "{\n \"book\": {\n \"@id\": 1,\n \"title\": \"Demo\",\n \"price\": 12.99\n }\n}", "object": { "book": { "@id": 1, "title": "Demo", "price": 12.99 } }, "style": "standard", "stats": { "elements": 3, "attributes": 1, "text_nodes": 2, "max_depth": 2, "output_chars": 73 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `xml-to-json-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `xml-to-json-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call xml-to-json-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`xml_input`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/xml-to-json-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the XML to JSON Converter API do? + Convert XML into JSON using standard, compact, JsonML, or preserve styles. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to XML to JSON Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the XML to JSON Converter API require? + Required fields: xml_input. Full schema at /v1/openapi.json. Is the XML to JSON Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the XML to JSON Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `xml-to-json-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`xml-to-json-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"xml-to-json-converter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - ISO 8601 Date Formatter API # ISO 8601 Date Formatter API developer 1 credit / call v2026-04-22 Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. One POST adds ISO 8601 Date Formatter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the ISO 8601 Date Formatter on miniwebtool.com →](https://miniwebtool.com/iso-8601-date-formatter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run ``` ### Request body Field Type Req. `date` ISO date, YYYY-MM-DD `str` — `time` HH:MM or HH:MM:SS `str` — `utc_offset_minutes` UTC offset in minutes, e.g. -300 `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "iso-8601-date-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → date (str) 2026-07-28 ISO date, YYYY-MM-DD time (str) 14:30:00 HH:MM or HH:MM:SS utc_offset_minutes (int) UTC offset in minutes, e.g. -300 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`iso-8601-date-formatter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"date":"2026-07-28","time":"14:30:00","utc_offset_minutes":-300}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'date': '2026-07-28', 'time': '14:30:00', 'utc_offset_minutes': -300}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"date":"2026-07-28","time":"14:30:00","utc_offset_minutes":-300}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'date' => '2026-07-28', 'time' => '14:30:00', 'utc_offset_minutes' => -300 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'date' => '2026-07-28', 'time' => '14:30:00', 'utc_offset_minutes' => -300 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "date": "2026-07-28", "time": "14:30:00", "utc_offset_minutes": -300, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"date\":\"2026-07-28\",\"time\":\"14:30:00\",\"utc_offset_minutes\":-300}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`iso-8601-date-formatter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/iso-8601-date-formatter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/iso-8601-date-formatter/prompt.md`](/tools/iso-8601-date-formatter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool ISO 8601 Date Formatter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **ISO 8601 Date Formatter** — Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `date` | str | no | ISO date, YYYY-MM-DD (default `2026-07-28`) | | `time` | str | no | HH:MM or HH:MM:SS (default `14:30:00`) | | `utc_offset_minutes` | int | no | UTC offset in minutes, e.g. -300 (default `0`) | Example request body: ```json { "date": "2026-07-28", "time": "14:30:00", "utc_offset_minutes": -300 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "iso-8601-date-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_date": "2026-07-28", "input_time": "14:30:00", "utc_offset_minutes": -300, "utc_offset": "-05:00", "iso_8601_extended": "2026-07-28T14:30:00-05:00", "iso_8601_basic": "20260728T143000-0500", "iso_8601_date_only": "2026-07-28", "iso_8601_time_only": "14:30:00", "iso_8601_week_date": "2026-W31-2", "iso_8601_ordinal_date": "2026-209", "utc_iso": "2026-07-28T19:30:00Z", "rfc_2822": "Tue, 28 Jul 2026 14:30:00 -0500", "http_date": "Tue, 28 Jul 2026 19:30:00 GMT", "unix_timestamp": 1785267000, "unix_timestamp_ms": 1785267000000, "sql_datetime": "2026-07-28 14:30:00", "weekday": "Tuesday", "month_name": "July" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool ISO 8601 Date Formatter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **ISO 8601 Date Formatter** — Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `date` | str | no | ISO date, YYYY-MM-DD (default `2026-07-28`) | | `time` | str | no | HH:MM or HH:MM:SS (default `14:30:00`) | | `utc_offset_minutes` | int | no | UTC offset in minutes, e.g. -300 (default `0`) | Example request body: ```json { "date": "2026-07-28", "time": "14:30:00", "utc_offset_minutes": -300 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "iso-8601-date-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_date": "2026-07-28", "input_time": "14:30:00", "utc_offset_minutes": -300, "utc_offset": "-05:00", "iso_8601_extended": "2026-07-28T14:30:00-05:00", "iso_8601_basic": "20260728T143000-0500", "iso_8601_date_only": "2026-07-28", "iso_8601_time_only": "14:30:00", "iso_8601_week_date": "2026-W31-2", "iso_8601_ordinal_date": "2026-209", "utc_iso": "2026-07-28T19:30:00Z", "rfc_2822": "Tue, 28 Jul 2026 14:30:00 -0500", "http_date": "Tue, 28 Jul 2026 19:30:00 GMT", "unix_timestamp": 1785267000, "unix_timestamp_ms": 1785267000000, "sql_datetime": "2026-07-28 14:30:00", "weekday": "Tuesday", "month_name": "July" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-iso-8601-date-formatter.mdc copy prompt ```text --- description: MiniWebtool ISO 8601 Date Formatter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool ISO 8601 Date Formatter API ## The API **ISO 8601 Date Formatter** — Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `date` | str | no | ISO date, YYYY-MM-DD (default `2026-07-28`) | | `time` | str | no | HH:MM or HH:MM:SS (default `14:30:00`) | | `utc_offset_minutes` | int | no | UTC offset in minutes, e.g. -300 (default `0`) | Example request body: ```json { "date": "2026-07-28", "time": "14:30:00", "utc_offset_minutes": -300 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "iso-8601-date-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "input_date": "2026-07-28", "input_time": "14:30:00", "utc_offset_minutes": -300, "utc_offset": "-05:00", "iso_8601_extended": "2026-07-28T14:30:00-05:00", "iso_8601_basic": "20260728T143000-0500", "iso_8601_date_only": "2026-07-28", "iso_8601_time_only": "14:30:00", "iso_8601_week_date": "2026-W31-2", "iso_8601_ordinal_date": "2026-209", "utc_iso": "2026-07-28T19:30:00Z", "rfc_2822": "Tue, 28 Jul 2026 14:30:00 -0500", "http_date": "Tue, 28 Jul 2026 19:30:00 GMT", "unix_timestamp": 1785267000, "unix_timestamp_ms": 1785267000000, "sql_datetime": "2026-07-28 14:30:00", "weekday": "Tuesday", "month_name": "July" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `iso-8601-date-formatter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `iso-8601-date-formatter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call iso-8601-date-formatter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/iso-8601-date-formatter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the ISO 8601 Date Formatter API do? + Render one instant as ISO 8601 extended, basic, week and ordinal dates, RFC 2822, HTTP-date, and Unix time. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to ISO 8601 Date Formatter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the ISO 8601 Date Formatter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the ISO 8601 Date Formatter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the ISO 8601 Date Formatter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `iso-8601-date-formatter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`iso-8601-date-formatter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"iso-8601-date-formatter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - JSON Formatter/Validator API # JSON Formatter/Validator API developer 1 credit / call v2026-04-22 Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. One POST adds JSON Formatter/Validator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the JSON Formatter/Validator on miniwebtool.com →](https://miniwebtool.com/json-formatter-validator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/run ``` ### Request body Field Type Req. `json_text` JSON document to process `str` — `action` beautify | minify | validate | repair `str` — `indent_size` 2 | 4 | tab `str` — `sort_keys` no | yes `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`1048576`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "json-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → json_text (str) {"name":"Ada","langs":["python","rust"],"active":true} JSON document to process action (str) beautify minify validate repair beautify | minify | validate | repair indent_size (str) 2 4 tab 2 | 4 | tab sort_keys (str) no yes no | yes Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`json-formatter-validator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"json_text":"{\"name\":\"Ada\",\"langs\":[\"python\",\"rust\"],\"active\":true}","action":"beautify","indent_size":"2"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/json-formatter-validator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'json_text': '{"name":"Ada","langs":["python","rust"],"active":true}', 'action': 'beautify', 'indent_size': '2'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/json-formatter-validator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"json_text":"{\"name\":\"Ada\",\"langs\":[\"python\",\"rust\"],\"active\":true}","action":"beautify","indent_size":"2"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'json_text' => '{"name":"Ada","langs":["python","rust"],"active":true}', 'action' => 'beautify', 'indent_size' => '2' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/json-formatter-validator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'json_text' => '{"name":"Ada","langs":["python","rust"],"active":true}', 'action' => 'beautify', 'indent_size' => '2' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "json_text": "{"name":"Ada","langs":["python","rust"],"active":true}", "action": "beautify", "indent_size": "2", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/json-formatter-validator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/json-formatter-validator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"json_text\":\"{\\\"name\\\":\\\"Ada\\\",\\\"langs\\\":[\\\"python\\\",\\\"rust\\\"],\\\"active\\\":true}\",\"action\":\"beautify\",\"indent_size\":\"2\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`json-formatter-validator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/json-formatter-validator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/json-formatter-validator/prompt.md`](/tools/json-formatter-validator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool JSON Formatter/Validator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON Formatter/Validator** — Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON document to process (default `{"name":"Ada","langs":["python","rust"],"active":true}`) | | `action` | str | no | one of: beautify, minify, validate, repair — beautify \| minify \| validate \| repair (default `beautify`) | | `indent_size` | str | no | one of: 2, 4, tab — 2 \| 4 \| tab (default `2`) | | `sort_keys` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "json_text": "{\"name\":\"Ada\",\"langs\":[\"python\",\"rust\"],\"active\":true}", "action": "beautify", "indent_size": "2" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "action": "beautify", "is_valid": true, "error": null, "repair_attempted": false, "repaired": false, "repaired_source": null, "output": "{\n \"name\": \"Ada\",\n \"langs\": [\n \"python\",\n \"rust\"\n ],\n \"active\": true\n}", "root_type": "object", "input_bytes": 54, "output_bytes": 80, "minified_bytes": 54, "bytes_saved": 0, "compression_percent": 0.0, "max_depth": 2, "element_counts": { "objects": 1, "arrays": 1, "strings": 3, "numbers": 0, "booleans": 1, "nulls": 0, "total_keys": 3 }, "top_level_keys": [ "active", "langs", "name" ], "top_level_length": 3 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool JSON Formatter/Validator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON Formatter/Validator** — Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON document to process (default `{"name":"Ada","langs":["python","rust"],"active":true}`) | | `action` | str | no | one of: beautify, minify, validate, repair — beautify \| minify \| validate \| repair (default `beautify`) | | `indent_size` | str | no | one of: 2, 4, tab — 2 \| 4 \| tab (default `2`) | | `sort_keys` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "json_text": "{\"name\":\"Ada\",\"langs\":[\"python\",\"rust\"],\"active\":true}", "action": "beautify", "indent_size": "2" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "action": "beautify", "is_valid": true, "error": null, "repair_attempted": false, "repaired": false, "repaired_source": null, "output": "{\n \"name\": \"Ada\",\n \"langs\": [\n \"python\",\n \"rust\"\n ],\n \"active\": true\n}", "root_type": "object", "input_bytes": 54, "output_bytes": 80, "minified_bytes": 54, "bytes_saved": 0, "compression_percent": 0.0, "max_depth": 2, "element_counts": { "objects": 1, "arrays": 1, "strings": 3, "numbers": 0, "booleans": 1, "nulls": 0, "total_keys": 3 }, "top_level_keys": [ "active", "langs", "name" ], "top_level_length": 3 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-json-formatter-validator.mdc copy prompt ```text --- description: MiniWebtool JSON Formatter/Validator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool JSON Formatter/Validator API ## The API **JSON Formatter/Validator** — Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-formatter-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `json_text` | str | no | JSON document to process (default `{"name":"Ada","langs":["python","rust"],"active":true}`) | | `action` | str | no | one of: beautify, minify, validate, repair — beautify \| minify \| validate \| repair (default `beautify`) | | `indent_size` | str | no | one of: 2, 4, tab — 2 \| 4 \| tab (default `2`) | | `sort_keys` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "json_text": "{\"name\":\"Ada\",\"langs\":[\"python\",\"rust\"],\"active\":true}", "action": "beautify", "indent_size": "2" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "action": "beautify", "is_valid": true, "error": null, "repair_attempted": false, "repaired": false, "repaired_source": null, "output": "{\n \"name\": \"Ada\",\n \"langs\": [\n \"python\",\n \"rust\"\n ],\n \"active\": true\n}", "root_type": "object", "input_bytes": 54, "output_bytes": 80, "minified_bytes": 54, "bytes_saved": 0, "compression_percent": 0.0, "max_depth": 2, "element_counts": { "objects": 1, "arrays": 1, "strings": 3, "numbers": 0, "booleans": 1, "nulls": 0, "total_keys": 3 }, "top_level_keys": [ "active", "langs", "name" ], "top_level_length": 3 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `json-formatter-validator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `json-formatter-validator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call json-formatter-validator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/json-formatter-validator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the JSON Formatter/Validator API do? + Validate, beautify, minify, or repair JSON with precise error positions, size savings, nesting depth, and element counts. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to JSON Formatter/Validator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the JSON Formatter/Validator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the JSON Formatter/Validator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the JSON Formatter/Validator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `json-formatter-validator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`json-formatter-validator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"json-formatter-validator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) [ cURL to JSON Converter Parse a curl command into structured JSON (method, URL parts, headers, cookies,… ](/tools/curl-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - JSON Schema Generator API # JSON Schema Generator API developer 1 credit / call v2026-04-22 Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. One POST adds JSON Schema Generator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the JSON Schema Generator on miniwebtool.com →](https://miniwebtool.com/json-schema-generator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/json-schema-generator/run ``` ### Request body Field Type Req. `sample_json` sample JSON document to infer a schema from `str` — `title` schema title `str` — `draft` 2020-12 | 2019-09 | draft-07 `str` — `required_mode` present_in_all | all | none `str` — `detect_formats` yes | no `str` — `infer_enums` no | yes `str` — `include_examples` no | yes `str` — `closed_objects` no | yes `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`524288`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "json-schema-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → sample_json (str) {"id":1,"name":"Ada","email":"ada@example.com"} sample JSON document to infer a schema from title (str) schema title draft (str) 2020-12 2019-09 draft-07 2020-12 | 2019-09 | draft-07 required_mode (str) present_in_all all none present_in_all | all | none detect_formats (str) yes no yes | no infer_enums (str) no yes no | yes include_examples (str) no yes no | yes closed_objects (str) no yes no | yes Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`json-schema-generator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/json-schema-generator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"sample_json":"{\"id\":1,\"name\":\"Ada\",\"email\":\"ada@example.com\"}","draft":"2020-12"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/json-schema-generator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'sample_json': '{"id":1,"name":"Ada","email":"ada@example.com"}', 'draft': '2020-12'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/json-schema-generator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"sample_json":"{\"id\":1,\"name\":\"Ada\",\"email\":\"ada@example.com\"}","draft":"2020-12"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'sample_json' => '{"id":1,"name":"Ada","email":"ada@example.com"}', 'draft' => '2020-12' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/json-schema-generator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'sample_json' => '{"id":1,"name":"Ada","email":"ada@example.com"}', 'draft' => '2020-12' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "sample_json": "{"id":1,"name":"Ada","email":"ada@example.com"}", "draft": "2020-12", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/json-schema-generator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/json-schema-generator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"sample_json\":\"{\\\"id\\\":1,\\\"name\\\":\\\"Ada\\\",\\\"email\\\":\\\"ada@example.com\\\"}\",\"draft\":\"2020-12\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`json-schema-generator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/json-schema-generator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/json-schema-generator/prompt.md`](/tools/json-schema-generator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool JSON Schema Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON Schema Generator** — Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-schema-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-schema-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sample_json` | str | no | sample JSON document to infer a schema from (default `{"id":1,"name":"Ada","email":"ada@example.com","tags":["math","code"],"active":true}`) | | `title` | str | no | schema title (default `Generated Schema`) | | `draft` | str | no | one of: 2020-12, 2019-09, draft-07 — 2020-12 \| 2019-09 \| draft-07 (default `2020-12`) | | `required_mode` | str | no | one of: present_in_all, all, none — present_in_all \| all \| none (default `present_in_all`) | | `detect_formats` | str | no | one of: yes, no — yes \| no (default `yes`) | | `infer_enums` | str | no | one of: no, yes — no \| yes (default `no`) | | `include_examples` | str | no | one of: no, yes — no \| yes (default `no`) | | `closed_objects` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "sample_json": "{\"id\":1,\"name\":\"Ada\",\"email\":\"ada@example.com\"}", "draft": "2020-12" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-schema-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Generated Schema", "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "email": { "type": "string", "format": "email" } }, "required": [ "id", "name", "email" ] }, "schema_json": "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"Generated Schema\",\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\"\n }\n },\n \"required\": [\n \"id\",\n \"name\",\n \"email\"\n ]\n}", "draft": "2020-12", "draft_uri": "https://json-schema.org/draft/2020-12/schema", "root_type": "object", "statistics": { "properties": 3, "required": 3, "objects": 1, "arrays": 0, "enums": 0, "formats": 1 }, "max_depth": 1, "schema_bytes": 348, "required_mode": "present_in_all" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool JSON Schema Generator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **JSON Schema Generator** — Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-schema-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-schema-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sample_json` | str | no | sample JSON document to infer a schema from (default `{"id":1,"name":"Ada","email":"ada@example.com","tags":["math","code"],"active":true}`) | | `title` | str | no | schema title (default `Generated Schema`) | | `draft` | str | no | one of: 2020-12, 2019-09, draft-07 — 2020-12 \| 2019-09 \| draft-07 (default `2020-12`) | | `required_mode` | str | no | one of: present_in_all, all, none — present_in_all \| all \| none (default `present_in_all`) | | `detect_formats` | str | no | one of: yes, no — yes \| no (default `yes`) | | `infer_enums` | str | no | one of: no, yes — no \| yes (default `no`) | | `include_examples` | str | no | one of: no, yes — no \| yes (default `no`) | | `closed_objects` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "sample_json": "{\"id\":1,\"name\":\"Ada\",\"email\":\"ada@example.com\"}", "draft": "2020-12" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-schema-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Generated Schema", "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "email": { "type": "string", "format": "email" } }, "required": [ "id", "name", "email" ] }, "schema_json": "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"Generated Schema\",\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\"\n }\n },\n \"required\": [\n \"id\",\n \"name\",\n \"email\"\n ]\n}", "draft": "2020-12", "draft_uri": "https://json-schema.org/draft/2020-12/schema", "root_type": "object", "statistics": { "properties": 3, "required": 3, "objects": 1, "arrays": 0, "enums": 0, "formats": 1 }, "max_depth": 1, "schema_bytes": 348, "required_mode": "present_in_all" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-json-schema-generator.mdc copy prompt ```text --- description: MiniWebtool JSON Schema Generator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool JSON Schema Generator API ## The API **JSON Schema Generator** — Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/json-schema-generator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/json-schema-generator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sample_json` | str | no | sample JSON document to infer a schema from (default `{"id":1,"name":"Ada","email":"ada@example.com","tags":["math","code"],"active":true}`) | | `title` | str | no | schema title (default `Generated Schema`) | | `draft` | str | no | one of: 2020-12, 2019-09, draft-07 — 2020-12 \| 2019-09 \| draft-07 (default `2020-12`) | | `required_mode` | str | no | one of: present_in_all, all, none — present_in_all \| all \| none (default `present_in_all`) | | `detect_formats` | str | no | one of: yes, no — yes \| no (default `yes`) | | `infer_enums` | str | no | one of: no, yes — no \| yes (default `no`) | | `include_examples` | str | no | one of: no, yes — no \| yes (default `no`) | | `closed_objects` | str | no | one of: no, yes — no \| yes (default `no`) | Example request body: ```json { "sample_json": "{\"id\":1,\"name\":\"Ada\",\"email\":\"ada@example.com\"}", "draft": "2020-12" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "json-schema-generator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Generated Schema", "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "email": { "type": "string", "format": "email" } }, "required": [ "id", "name", "email" ] }, "schema_json": "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"Generated Schema\",\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"email\": {\n \"type\": \"string\",\n \"format\": \"email\"\n }\n },\n \"required\": [\n \"id\",\n \"name\",\n \"email\"\n ]\n}", "draft": "2020-12", "draft_uri": "https://json-schema.org/draft/2020-12/schema", "root_type": "object", "statistics": { "properties": 3, "required": 3, "objects": 1, "arrays": 0, "enums": 0, "formats": 1 }, "max_depth": 1, "schema_bytes": 348, "required_mode": "present_in_all" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `json-schema-generator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `json-schema-generator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call json-schema-generator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/json-schema-generator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the JSON Schema Generator API do? + Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, with format detection, enum inference, and required-property control. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to JSON Schema Generator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the JSON Schema Generator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the JSON Schema Generator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the JSON Schema Generator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `json-schema-generator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`json-schema-generator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"json-schema-generator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) [ cURL to JSON Converter Parse a curl command into structured JSON (method, URL parts, headers, cookies,… ](/tools/curl-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - SQL Formatter API # SQL Formatter API developer 1 credit / call v2026-04-22 Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. One POST adds SQL Formatter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the SQL Formatter on miniwebtool.com →](https://miniwebtool.com/sql-formatter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/sql-formatter/run ``` ### Request body Field Type Req. `sql` SQL text `str` — `mode` format | minify `str` — `keyword_case` upper | lower | preserve `str` — `indent_size` spaces per level `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`524288`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "sql-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → sql (str) select id, name from users where active = 1 order by name SQL text mode (str) format minify format | minify keyword_case (str) upper lower preserve upper | lower | preserve indent_size (int) spaces per level Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`sql-formatter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/sql-formatter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"sql":"select id, name from users where active = 1 order by name","mode":"format","keyword_case":"upper","indent_size":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/sql-formatter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'sql': 'select id, name from users where active = 1 order by name', 'mode': 'format', 'keyword_case': 'upper', 'indent_size': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/sql-formatter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"sql":"select id, name from users where active = 1 order by name","mode":"format","keyword_case":"upper","indent_size":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'sql' => 'select id, name from users where active = 1 order by name', 'mode' => 'format', 'keyword_case' => 'upper', 'indent_size' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/sql-formatter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'sql' => 'select id, name from users where active = 1 order by name', 'mode' => 'format', 'keyword_case' => 'upper', 'indent_size' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "sql": "select id, name from users where active = 1 order by name", "mode": "format", "keyword_case": "upper", "indent_size": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/sql-formatter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/sql-formatter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"sql\":\"select id, name from users where active = 1 order by name\",\"mode\":\"format\",\"keyword_case\":\"upper\",\"indent_size\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`sql-formatter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/sql-formatter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/sql-formatter/prompt.md`](/tools/sql-formatter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool SQL Formatter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **SQL Formatter** — Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sql-formatter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sql-formatter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sql` | str | no | SQL text (default `select id, name from users where active = 1 order by name`) | | `mode` | str | no | one of: format, minify — format \| minify (default `format`) | | `keyword_case` | str | no | one of: upper, lower, preserve — upper \| lower \| preserve (default `upper`) | | `indent_size` | int | no | spaces per level (default `2`) | Example request body: ```json { "sql": "select id, name from users where active = 1 order by name", "mode": "format", "keyword_case": "upper", "indent_size": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sql-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "format", "output": "SELECT id, name\nFROM users\nWHERE active = 1\nORDER BY name", "keyword_case": "upper", "indent_size": 2, "line_count": 4, "token_count": 13, "statement_count": 1, "input_bytes": 57, "output_bytes": 57 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool SQL Formatter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **SQL Formatter** — Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sql-formatter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sql-formatter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sql` | str | no | SQL text (default `select id, name from users where active = 1 order by name`) | | `mode` | str | no | one of: format, minify — format \| minify (default `format`) | | `keyword_case` | str | no | one of: upper, lower, preserve — upper \| lower \| preserve (default `upper`) | | `indent_size` | int | no | spaces per level (default `2`) | Example request body: ```json { "sql": "select id, name from users where active = 1 order by name", "mode": "format", "keyword_case": "upper", "indent_size": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sql-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "format", "output": "SELECT id, name\nFROM users\nWHERE active = 1\nORDER BY name", "keyword_case": "upper", "indent_size": 2, "line_count": 4, "token_count": 13, "statement_count": 1, "input_bytes": 57, "output_bytes": 57 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-sql-formatter.mdc copy prompt ```text --- description: MiniWebtool SQL Formatter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool SQL Formatter API ## The API **SQL Formatter** — Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sql-formatter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sql-formatter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sql` | str | no | SQL text (default `select id, name from users where active = 1 order by name`) | | `mode` | str | no | one of: format, minify — format \| minify (default `format`) | | `keyword_case` | str | no | one of: upper, lower, preserve — upper \| lower \| preserve (default `upper`) | | `indent_size` | int | no | spaces per level (default `2`) | Example request body: ```json { "sql": "select id, name from users where active = 1 order by name", "mode": "format", "keyword_case": "upper", "indent_size": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sql-formatter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "format", "output": "SELECT id, name\nFROM users\nWHERE active = 1\nORDER BY name", "keyword_case": "upper", "indent_size": 2, "line_count": 4, "token_count": 13, "statement_count": 1, "input_bytes": 57, "output_bytes": 57 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `sql-formatter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `sql-formatter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call sql-formatter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/sql-formatter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the SQL Formatter API do? + Format or minify SQL with keyword casing, breaking clauses and joins onto their own lines. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to SQL Formatter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the SQL Formatter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the SQL Formatter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the SQL Formatter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `sql-formatter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`sql-formatter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"sql-formatter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - YAML Formatter/Validator API # YAML Formatter/Validator API developer 1 credit / call v2026-04-22 Validate, format, minify, or convert YAML to JSON. One POST adds YAML Formatter/Validator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the YAML Formatter/Validator on miniwebtool.com →](https://miniwebtool.com/yaml-formatter-validator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run ``` ### Request body Field Type Req. `yaml_input` `str` ✓ `action` beautify | minify | validate | to_json `str` — `indent_size` 2 | 4 `str` — `sort_keys` `bool` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "yaml-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → yaml_input (str) * name: demo items: - 1 - 2 action (str) beautify minify validate to_json beautify | minify | validate | to_json indent_size (str) 2 4 2 | 4 sort_keys (bool) false true Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`yaml-formatter-validator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"yaml_input":"name: demo\nitems:\n - 1\n - 2","action":"to_json","indent_size":"2","sort_keys":false}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'yaml_input': 'name: demo\nitems:\n - 1\n - 2', 'action': 'to_json', 'indent_size': '2', 'sort_keys': False}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"yaml_input":"name: demo\nitems:\n - 1\n - 2","action":"to_json","indent_size":"2","sort_keys":false}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'yaml_input' => 'name: demo items: - 1 - 2', 'action' => 'to_json', 'indent_size' => '2', 'sort_keys' => false ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'yaml_input' => 'name: demo items: - 1 - 2', 'action' => 'to_json', 'indent_size' => '2', 'sort_keys' => false }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "yaml_input": "name: demo items: - 1 - 2", "action": "to_json", "indent_size": "2", "sort_keys": false, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"yaml_input\":\"name: demo\\nitems:\\n - 1\\n - 2\",\"action\":\"to_json\",\"indent_size\":\"2\",\"sort_keys\":false}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`yaml-formatter-validator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/yaml-formatter-validator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/yaml-formatter-validator/prompt.md`](/tools/yaml-formatter-validator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool YAML Formatter/Validator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **YAML Formatter/Validator** — Validate, format, minify, or convert YAML to JSON. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `yaml_input` | str | yes | — | | `action` | str | no | one of: beautify, minify, validate, to_json — beautify \| minify \| validate \| to_json (default `beautify`) | | `indent_size` | str | no | one of: 2, 4 — 2 \| 4 (default `2`) | | `sort_keys` | bool | no | (default `False`) | Example request body: ```json { "yaml_input": "name: demo\nitems:\n - 1\n - 2", "action": "to_json", "indent_size": "2", "sort_keys": false } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "yaml-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "is_valid": true, "action": "to_json", "formatted": "{\n \"name\": \"demo\",\n \"items\": [\n 1,\n 2\n ]\n}", "parsed": { "name": "demo", "items": [ 1, 2 ] }, "stats": { "mappings": 1, "sequences": 1, "strings": 1, "numbers": 2, "booleans": 0, "nulls": 0, "total_keys": 2, "depth": 2, "input_size": 29, "output_size": 51 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool YAML Formatter/Validator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **YAML Formatter/Validator** — Validate, format, minify, or convert YAML to JSON. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `yaml_input` | str | yes | — | | `action` | str | no | one of: beautify, minify, validate, to_json — beautify \| minify \| validate \| to_json (default `beautify`) | | `indent_size` | str | no | one of: 2, 4 — 2 \| 4 (default `2`) | | `sort_keys` | bool | no | (default `False`) | Example request body: ```json { "yaml_input": "name: demo\nitems:\n - 1\n - 2", "action": "to_json", "indent_size": "2", "sort_keys": false } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "yaml-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "is_valid": true, "action": "to_json", "formatted": "{\n \"name\": \"demo\",\n \"items\": [\n 1,\n 2\n ]\n}", "parsed": { "name": "demo", "items": [ 1, 2 ] }, "stats": { "mappings": 1, "sequences": 1, "strings": 1, "numbers": 2, "booleans": 0, "nulls": 0, "total_keys": 2, "depth": 2, "input_size": 29, "output_size": 51 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-yaml-formatter-validator.mdc copy prompt ```text --- description: MiniWebtool YAML Formatter/Validator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool YAML Formatter/Validator API ## The API **YAML Formatter/Validator** — Validate, format, minify, or convert YAML to JSON. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `yaml_input` | str | yes | — | | `action` | str | no | one of: beautify, minify, validate, to_json — beautify \| minify \| validate \| to_json (default `beautify`) | | `indent_size` | str | no | one of: 2, 4 — 2 \| 4 (default `2`) | | `sort_keys` | bool | no | (default `False`) | Example request body: ```json { "yaml_input": "name: demo\nitems:\n - 1\n - 2", "action": "to_json", "indent_size": "2", "sort_keys": false } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "yaml-formatter-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "is_valid": true, "action": "to_json", "formatted": "{\n \"name\": \"demo\",\n \"items\": [\n 1,\n 2\n ]\n}", "parsed": { "name": "demo", "items": [ 1, 2 ] }, "stats": { "mappings": 1, "sequences": 1, "strings": 1, "numbers": 2, "booleans": 0, "nulls": 0, "total_keys": 2, "depth": 2, "input_size": 29, "output_size": 51 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `yaml-formatter-validator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `yaml-formatter-validator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call yaml-formatter-validator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`yaml_input`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/yaml-formatter-validator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the YAML Formatter/Validator API do? + Validate, format, minify, or convert YAML to JSON. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to YAML Formatter/Validator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the YAML Formatter/Validator API require? + Required fields: yaml_input. Full schema at /v1/openapi.json. Is the YAML Formatter/Validator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the YAML Formatter/Validator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `yaml-formatter-validator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`yaml-formatter-validator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"yaml-formatter-validator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - UUID Validator/Decoder API # UUID Validator/Decoder API developer 1 credit / call v2026-04-22 Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. One POST adds UUID Validator/Decoder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the UUID Validator/Decoder on miniwebtool.com →](https://miniwebtool.com/uuid-validator-decoder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run ``` ### Request body Field Type Req. `uuid_text` one or more UUIDs, separated by whitespace, commas, or newlines `str` — `namespace_type` none | dns | url | oid | x500 | custom `str` — `namespace_uuid` namespace UUID when namespace_type=custom `str` — `name` name to verify a v3/v5 UUID against the namespace `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`262144`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "uuid-validator-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → uuid_text (str) 550e8400-e29b-41d4-a716-446655440000 one or more UUIDs, separated by whitespace, commas, or newlines namespace_type (str) none dns url oid x500 custom none | dns | url | oid | x500 | custom namespace_uuid (str) namespace UUID when namespace_type=custom name (str) name to verify a v3/v5 UUID against the namespace Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`uuid-validator-decoder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"uuid_text":"550e8400-e29b-41d4-a716-446655440000"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'uuid_text': '550e8400-e29b-41d4-a716-446655440000'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"uuid_text":"550e8400-e29b-41d4-a716-446655440000"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'uuid_text' => '550e8400-e29b-41d4-a716-446655440000' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'uuid_text' => '550e8400-e29b-41d4-a716-446655440000' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "uuid_text": "550e8400-e29b-41d4-a716-446655440000", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"uuid_text\":\"550e8400-e29b-41d4-a716-446655440000\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`uuid-validator-decoder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/uuid-validator-decoder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/uuid-validator-decoder/prompt.md`](/tools/uuid-validator-decoder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool UUID Validator/Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **UUID Validator/Decoder** — Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `uuid_text` | str | no | one or more UUIDs, separated by whitespace, commas, or newlines (default `550e8400-e29b-41d4-a716-446655440000`) | | `namespace_type` | str | no | one of: none, dns, url, oid, x500, custom — none \| dns \| url \| oid \| x500 \| custom (default `none`) | | `namespace_uuid` | str | no | namespace UUID when namespace_type=custom | | `name` | str | no | name to verify a v3/v5 UUID against the namespace | Example request body: ```json { "uuid_text": "550e8400-e29b-41d4-a716-446655440000" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "uuid-validator-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "count": 1, "valid_count": 1, "invalid_count": 0, "all_valid": true, "version_counts": { "4": 1 }, "duplicate_count": 0, "results": [ { "input": "550e8400-e29b-41d4-a716-446655440000", "is_valid": true, "canonical": "550e8400-e29b-41d4-a716-446655440000", "uppercase": "550E8400-E29B-41D4-A716-446655440000", "hex": "550e8400e29b41d4a716446655440000", "urn": "urn:uuid:550e8400-e29b-41d4-a716-446655440000", "braced": "{550e8400-e29b-41d4-a716-446655440000}", "integer": "113059749145936325402354257176981405696", "base64url": "VQ6EAOKbQdSnFkRmVUQAAA", "version": 4, "version_label": "Version 4 (random)", "variant": "rfc-4122", "is_nil": false, "is_max": false, "fields": { "time_low": "550e8400", "time_mid": "e29b", "time_hi_version": "41d4", "clock_seq_hi_variant": "a7", "clock_seq_low": "16", "node": "446655440000" } } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool UUID Validator/Decoder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **UUID Validator/Decoder** — Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `uuid_text` | str | no | one or more UUIDs, separated by whitespace, commas, or newlines (default `550e8400-e29b-41d4-a716-446655440000`) | | `namespace_type` | str | no | one of: none, dns, url, oid, x500, custom — none \| dns \| url \| oid \| x500 \| custom (default `none`) | | `namespace_uuid` | str | no | namespace UUID when namespace_type=custom | | `name` | str | no | name to verify a v3/v5 UUID against the namespace | Example request body: ```json { "uuid_text": "550e8400-e29b-41d4-a716-446655440000" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "uuid-validator-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "count": 1, "valid_count": 1, "invalid_count": 0, "all_valid": true, "version_counts": { "4": 1 }, "duplicate_count": 0, "results": [ { "input": "550e8400-e29b-41d4-a716-446655440000", "is_valid": true, "canonical": "550e8400-e29b-41d4-a716-446655440000", "uppercase": "550E8400-E29B-41D4-A716-446655440000", "hex": "550e8400e29b41d4a716446655440000", "urn": "urn:uuid:550e8400-e29b-41d4-a716-446655440000", "braced": "{550e8400-e29b-41d4-a716-446655440000}", "integer": "113059749145936325402354257176981405696", "base64url": "VQ6EAOKbQdSnFkRmVUQAAA", "version": 4, "version_label": "Version 4 (random)", "variant": "rfc-4122", "is_nil": false, "is_max": false, "fields": { "time_low": "550e8400", "time_mid": "e29b", "time_hi_version": "41d4", "clock_seq_hi_variant": "a7", "clock_seq_low": "16", "node": "446655440000" } } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-uuid-validator-decoder.mdc copy prompt ```text --- description: MiniWebtool UUID Validator/Decoder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool UUID Validator/Decoder API ## The API **UUID Validator/Decoder** — Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `uuid_text` | str | no | one or more UUIDs, separated by whitespace, commas, or newlines (default `550e8400-e29b-41d4-a716-446655440000`) | | `namespace_type` | str | no | one of: none, dns, url, oid, x500, custom — none \| dns \| url \| oid \| x500 \| custom (default `none`) | | `namespace_uuid` | str | no | namespace UUID when namespace_type=custom | | `name` | str | no | name to verify a v3/v5 UUID against the namespace | Example request body: ```json { "uuid_text": "550e8400-e29b-41d4-a716-446655440000" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "uuid-validator-decoder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "count": 1, "valid_count": 1, "invalid_count": 0, "all_valid": true, "version_counts": { "4": 1 }, "duplicate_count": 0, "results": [ { "input": "550e8400-e29b-41d4-a716-446655440000", "is_valid": true, "canonical": "550e8400-e29b-41d4-a716-446655440000", "uppercase": "550E8400-E29B-41D4-A716-446655440000", "hex": "550e8400e29b41d4a716446655440000", "urn": "urn:uuid:550e8400-e29b-41d4-a716-446655440000", "braced": "{550e8400-e29b-41d4-a716-446655440000}", "integer": "113059749145936325402354257176981405696", "base64url": "VQ6EAOKbQdSnFkRmVUQAAA", "version": 4, "version_label": "Version 4 (random)", "variant": "rfc-4122", "is_nil": false, "is_max": false, "fields": { "time_low": "550e8400", "time_mid": "e29b", "time_hi_version": "41d4", "clock_seq_hi_variant": "a7", "clock_seq_low": "16", "node": "446655440000" } } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `uuid-validator-decoder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `uuid-validator-decoder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call uuid-validator-decoder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/uuid-validator-decoder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the UUID Validator/Decoder API do? + Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps and MAC address, alternate encodings, and v3/v5 namespace verification. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to UUID Validator/Decoder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the UUID Validator/Decoder API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the UUID Validator/Decoder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the UUID Validator/Decoder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `uuid-validator-decoder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`uuid-validator-decoder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"uuid-validator-decoder"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) [ cURL to JSON Converter Parse a curl command into structured JSON (method, URL parts, headers, cookies,… ](/tools/curl-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - XML Validator API # XML Validator API developer 1 credit / call v2026-04-22 Validate XML well-formedness and return document statistics. One POST adds XML Validator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the XML Validator on miniwebtool.com →](https://miniwebtool.com/xml-validator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/xml-validator/run ``` ### Request body Field Type Req. `xml_content` `str` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "xml-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → xml_content (str) * Demo Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`xml-validator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/xml-validator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"xml_content":"Demo"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/xml-validator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'xml_content': 'Demo'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/xml-validator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"xml_content":"Demo"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'xml_content' => 'Demo' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/xml-validator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'xml_content' => 'Demo' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "xml_content": "Demo", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/xml-validator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/xml-validator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"xml_content\":\"Demo\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`xml-validator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/xml-validator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/xml-validator/prompt.md`](/tools/xml-validator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool XML Validator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **XML Validator** — Validate XML well-formedness and return document statistics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/xml-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/xml-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `xml_content` | str | yes | — | Example request body: ```json { "xml_content": "Demo" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "xml-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "is_valid": true, "message": "The XML is well-formed.", "stats": { "elements": 2, "attributes": 1, "text_nodes": 1, "max_depth": 2, "namespaces": 0, "root_tag": "root" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool XML Validator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **XML Validator** — Validate XML well-formedness and return document statistics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/xml-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/xml-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `xml_content` | str | yes | — | Example request body: ```json { "xml_content": "Demo" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "xml-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "is_valid": true, "message": "The XML is well-formed.", "stats": { "elements": 2, "attributes": 1, "text_nodes": 1, "max_depth": 2, "namespaces": 0, "root_tag": "root" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-xml-validator.mdc copy prompt ```text --- description: MiniWebtool XML Validator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool XML Validator API ## The API **XML Validator** — Validate XML well-formedness and return document statistics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/xml-validator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/xml-validator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `xml_content` | str | yes | — | Example request body: ```json { "xml_content": "Demo" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "xml-validator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "is_valid": true, "message": "The XML is well-formed.", "stats": { "elements": 2, "attributes": 1, "text_nodes": 1, "max_depth": 2, "namespaces": 0, "root_tag": "root" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `xml-validator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `xml-validator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call xml-validator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`xml_content`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/xml-validator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the XML Validator API do? + Validate XML well-formedness and return document statistics. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to XML Validator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the XML Validator API require? + Required fields: xml_content. Full schema at /v1/openapi.json. Is the XML Validator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the XML Validator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `xml-validator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`xml-validator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"xml-validator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - Text to Binary/Hex/ASCII Converter API # Text to Binary/Hex/ASCII Converter API developer 1 credit / call v2026-04-22 Encode or decode text, binary, hex, and ASCII byte values. One POST adds Text to Binary/Hex/ASCII Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Text to Binary/Hex/ASCII Converter on miniwebtool.com →](https://miniwebtool.com/text-to-binary-hex-ascii-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run ``` ### Request body Field Type Req. `value` `str` ✓ `mode` encode | decode `str` — `input_format` text | binary | hex | ascii `str` — `separator` space | comma | none `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "text-to-binary-hex-ascii-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → value (str) * Hi mode (str) encode decode encode | decode input_format (str) text binary hex ascii text | binary | hex | ascii separator (str) space comma none space | comma | none Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`text-to-binary-hex-ascii-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"value":"Hi","mode":"encode","input_format":"text","separator":"space"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'value': 'Hi', 'mode': 'encode', 'input_format': 'text', 'separator': 'space'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"value":"Hi","mode":"encode","input_format":"text","separator":"space"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'value' => 'Hi', 'mode' => 'encode', 'input_format' => 'text', 'separator' => 'space' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'value' => 'Hi', 'mode' => 'encode', 'input_format' => 'text', 'separator' => 'space' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "value": "Hi", "mode": "encode", "input_format": "text", "separator": "space", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"value\":\"Hi\",\"mode\":\"encode\",\"input_format\":\"text\",\"separator\":\"space\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`text-to-binary-hex-ascii-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/text-to-binary-hex-ascii-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/text-to-binary-hex-ascii-converter/prompt.md`](/tools/text-to-binary-hex-ascii-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Text to Binary/Hex/ASCII Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Text to Binary/Hex/ASCII Converter** — Encode or decode text, binary, hex, and ASCII byte values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | str | yes | — | | `mode` | str | no | one of: encode, decode — encode \| decode (default `encode`) | | `input_format` | str | no | one of: text, binary, hex, ascii — text \| binary \| hex \| ascii (default `text`) | | `separator` | str | no | one of: space, comma, none — space \| comma \| none (default `space`) | Example request body: ```json { "value": "Hi", "mode": "encode", "input_format": "text", "separator": "space" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "text-to-binary-hex-ascii-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "text": "Hi", "byte_count": 2, "binary": "01001000 01101001", "hex": "48 69", "ascii": "72 105", "bytes": [ 72, 105 ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Text to Binary/Hex/ASCII Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Text to Binary/Hex/ASCII Converter** — Encode or decode text, binary, hex, and ASCII byte values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | str | yes | — | | `mode` | str | no | one of: encode, decode — encode \| decode (default `encode`) | | `input_format` | str | no | one of: text, binary, hex, ascii — text \| binary \| hex \| ascii (default `text`) | | `separator` | str | no | one of: space, comma, none — space \| comma \| none (default `space`) | Example request body: ```json { "value": "Hi", "mode": "encode", "input_format": "text", "separator": "space" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "text-to-binary-hex-ascii-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "text": "Hi", "byte_count": 2, "binary": "01001000 01101001", "hex": "48 69", "ascii": "72 105", "bytes": [ 72, 105 ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-text-to-binary-hex-ascii-converter.mdc copy prompt ```text --- description: MiniWebtool Text to Binary/Hex/ASCII Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Text to Binary/Hex/ASCII Converter API ## The API **Text to Binary/Hex/ASCII Converter** — Encode or decode text, binary, hex, and ASCII byte values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `value` | str | yes | — | | `mode` | str | no | one of: encode, decode — encode \| decode (default `encode`) | | `input_format` | str | no | one of: text, binary, hex, ascii — text \| binary \| hex \| ascii (default `text`) | | `separator` | str | no | one of: space, comma, none — space \| comma \| none (default `space`) | Example request body: ```json { "value": "Hi", "mode": "encode", "input_format": "text", "separator": "space" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "text-to-binary-hex-ascii-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "text": "Hi", "byte_count": 2, "binary": "01001000 01101001", "hex": "48 69", "ascii": "72 105", "bytes": [ 72, 105 ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `text-to-binary-hex-ascii-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `text-to-binary-hex-ascii-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call text-to-binary-hex-ascii-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`value`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/text-to-binary-hex-ascii-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Text to Binary/Hex/ASCII Converter API do? + Encode or decode text, binary, hex, and ASCII byte values. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Text to Binary/Hex/ASCII Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Text to Binary/Hex/ASCII Converter API require? + Required fields: value. Full schema at /v1/openapi.json. Is the Text to Binary/Hex/ASCII Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Text to Binary/Hex/ASCII Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `text-to-binary-hex-ascii-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`text-to-binary-hex-ascii-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"text-to-binary-hex-ascii-converter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - ASCII Table Reference API # ASCII Table Reference API developer 1 credit / call v2026-04-22 Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. One POST adds ASCII Table Reference to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the ASCII Table Reference on miniwebtool.com →](https://miniwebtool.com/ascii-table-reference/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/run ``` ### Request body Field Type Req. `filter_type` all | control | printable | letters | digits | symbols `str` — `lookup` optional single character or code to look up `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "ascii-table-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → filter_type (str) all control printable letters digits symbols all | control | printable | letters | digits | symbols lookup (str) A optional single character or code to look up Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`ascii-table-reference`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"filter_type":"all","lookup":"A"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/ascii-table-reference/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'filter_type': 'all', 'lookup': 'A'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/ascii-table-reference/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"filter_type":"all","lookup":"A"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'filter_type' => 'all', 'lookup' => 'A' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/ascii-table-reference/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'filter_type' => 'all', 'lookup' => 'A' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "filter_type": "all", "lookup": "A", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/ascii-table-reference/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/ascii-table-reference/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"filter_type\":\"all\",\"lookup\":\"A\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`ascii-table-reference`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/ascii-table-reference/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/ascii-table-reference/prompt.md`](/tools/ascii-table-reference/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool ASCII Table Reference API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **ASCII Table Reference** — Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `filter_type` | str | no | one of: all, control, printable, letters, digits, symbols — all \| control \| printable \| letters \| digits \| symbols (default `all`) | | `lookup` | str | no | optional single character or code to look up | Example request body: ```json { "filter_type": "all", "lookup": "A" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "ascii-table-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": { "filter_type": "all", "lookup": { "decimal": 65, "hex": "0x41", "octal": "0o101", "binary": "01000001", "char": "A", "name": "Uppercase letter", "type": "printable", "html_entity": "A" }, "row_count": 128, "rows": [ { "decimal": 0, "hex": "0x00", "octal": "0o000", "binary": "00000000", "char": "NUL", "name": "Null", "type": "control", "html_entity": "�" }, { "decimal": 1, "hex": "0x01", "octal": "0o001", "binary": "00000001", "char": "SOH", "name": "Start of Heading", "type": "control", "html_entity": "" }, { "decimal": 2, "hex": "0x02", "octal": "0o002", "binary": "00000010", "char": "STX", "name": "Start of Text", "type": "control", "html_entity": "" }, { "decimal": 3, "hex": "0x03", "octal": "0o003", "binary": "00000011", "char": "ETX", "name": "End of Text", "type": "control", "html_entity": "" }, { "decimal": 4, "hex": "0x04", "octal": "0o004", "binary": "00000100", "char": "EOT", "name": "End of Transmission", "type": "control", "html_entity": "" }, { "decimal": 5, "hex": "0x05", "octal": "0o005", "binary": "00000101", "char": "ENQ", "name": "Enquiry", "type": "control", "html_entity": "" }, { "decimal": 6, "hex": "0x06", "octal": "0o006", "binary": "00000110", "char": "ACK", "name": "Acknowledge", "type": "control", "html_entity": "" }, { "decimal": 7, "hex": "0x07", "octal": "0o007", "binary": "00000111", "char": "BEL", "name": "Bell", "type": "control", "html_entity": "" }, { "decimal": 8, "hex": "0x08", "octal": "0o010", "binary": "00001000", "char": "BS", "name": "Backspace", "type": "control", "html_entity": "" }, { "decimal": 9, "hex": "0x09", "octal": "0o011", "binary": "00001001", "char": "TAB", "name": "Horizontal Tab", "type": "control", "html_entity": " " }, { "decimal": 10, "hex": "0x0A", "octal": "0o012", "binary": "00001010", "char": "LF", "name": "Line Feed", "type": "control", "html_entity": " " }, { "decimal": 11, "hex": "0x0B", "octal": "0o013", "binary": "00001011", "char": "VT", "name": "Vertical Tab", "type": "control", "html_entity": " " }, { "decimal": 12, "hex": "0x0C", "octal": "0o014", "binary": "00001100", "char": "FF", "name": "Form Feed", "type": "control", "html_entity": " " }, { "decimal": 13, "hex": "0x0D", "octal": "0o015", "binary": "00001101", "char": "CR", "name": "Carriage Return", "type": "control", "html_entity": " " }, { "decimal": 14, "hex": "0x0E", "octal": "0o016", "binary": "00001110", "char": "SO", "name": "Shift Out", "type": "control", "html_entity": "" }, { "decimal": 15, "hex": "0x0F", "octal": "0o017", "binary": "00001111", "char": "SI", "name": "Shift In", "type": "control", "html_entity": "" }, { "decimal": 16, "hex": "0x10", "octal": "0o020", "binary": "00010000", "char": "DLE", "name": "Data Link Escape", "type": "control", "html_entity": "" }, { "decimal": 17, "hex": "0x11", "octal": "0o021", "binary": "00010001", "char": "DC1", "name": "Device Control 1", "type": "control", "html_entity": "" }, { "decimal": 18, "hex": "0x12", "octal": "0o022", "binary": "00010010", "char": "DC2", "name": "Device Control 2", "type": "control", "html_entity": "" }, { "decimal": 19, "hex": "0x13", "octal": "0o023", "binary": "00010011", "char": "DC3", "name": "Device Control 3", "type": "control", "html_entity": "" }, { "decimal": 20, "hex": "0x14", "octal": "0o024", "binary": "00010100", "char": "DC4", "name": "Device Control 4", "type": "control", "html_entity": "" }, { "decimal": 21, "hex": "0x15", "octal": "0o025", "binary": "00010101", "char": "NAK", "name": "Negative Acknowledge", "type": "control", "html_entity": "" }, { "decimal": 22, "hex": "0x16", "octal": "0o026", "binary": "00010110", "char": "SYN", "name": "Synchronous Idle", "type": "control", "html_entity": "" }, { "decimal": 23, "hex": "0x17", "octal": "0o027", "binary": "00010111", "char": "ETB", "name": "End of Transmission Block", "type": "control", "html_entity": "" }, { "decimal": 24, "hex": "0x18", "octal": "0o030", "binary": "00011000", "char": "CAN", "name": "Cancel", "type": "control", "html_entity": "" }, { "decimal": 25, "hex": "0x19", "octal": "0o031", "binary": "00011001", "char": "EM", "name": "End of Medium", "type": "control", "html_entity": "" }, { "decimal": 26, "hex": "0x1A", "octal": "0o032", "binary": "00011010", "char": "SUB", "name": "Substitute", "type": "control", "html_entity": "" }, { "decimal": 27, "hex": "0x1B", "octal": "0o033", "binary": "00011011", "char": "ESC", "name": "Escape", "type": "control", "html_entity": "" }, { "decimal": 28, "hex": "0x1C", "octal": "0o034", "binary": "00011100", "char": "FS", "name": "File Separator", "type": "control", "html_entity": "" }, { "decimal": 29, "hex": "0x1D", "octal": "0o035", "binary": "00011101", "char": "GS", "name": "Group Separator", "type": "control", "html_entity": "" }, { "decimal": 30, "hex": "0x1E", "octal": "0o036", "binary": "00011110", "char": "RS", "name": "Record Separator", "type": "control", "html_entity": "" }, { "decimal": 31, "hex": "0x1F", "octal": "0o037", "binary": "00011111", "char": "US", "name": "Unit Separator", "type": "control", "html_entity": "" }, { "decimal": 32, "hex": "0x20", "octal": "0o040", "binary": "00100000", "char": "SP", "name": "Space", "type": "printable", "html_entity": " " }, { "decimal": 33, "hex": "0x21", "octal": "0o041", "binary": "00100001", "char": "!", "name": "Punctuation / symbol", "type": "printable", "html_entity": "!" }, { "decimal": 34, "hex": "0x22", "octal": "0o042", "binary": "00100010", "char": "\"", "name": "Punctuation / symbol", "type": "printable", "html_entity": """ }, { "decimal": 35, "hex": "0x23", "octal": "0o043", "binary": "00100011", "char": "#", "name": "Punctuation / symbol", "type": "printable", "html_entity": "#" }, { "decimal": 36, "hex": "0x24", "octal": "0o044", "binary": "00100100", "char": "$", "name": "Punctuation / symbol", "type": "printable", "html_entity": "$" }, { "decimal": 37, "hex": "0x25", "octal": "0o045", "binary": "00100101", "char": "%", "name": "Punctuation / symbol", "type": "printable", "html_entity": "%" }, { "decimal": 38, "hex": "0x26", "octal": "0o046", "binary": "00100110", "char": "&", "name": "Punctuation / symbol", "type": "printable", "html_entity": "&" }, { "decimal": 39, "hex": "0x27", "octal": "0o047", "binary": "00100111", "char": "'", "name": "Punctuation / symbol", "type": "printable", "html_entity": "'" }, { "decimal": 40, "hex": "0x28", "octal": "0o050", "binary": "00101000", "char": "(", "name": "Punctuation / symbol", "type": "printable", "html_entity": "(" }, { "decimal": 41, "hex": "0x29", "octal": "0o051", "binary": "00101001", "char": ")", "name": "Punctuation / symbol", "type": "printable", "html_entity": ")" }, { "decimal": 42, "hex": "0x2A", "octal": "0o052", "binary": "00101010", "char": "*", "name": "Punctuation / symbol", "type": "printable", "html_entity": "*" }, { "decimal": 43, "hex": "0x2B", "octal": "0o053", "binary": "00101011", "char": "+", "name": "Punctuation / symbol", "type": "printable", "html_entity": "+" }, { "decimal": 44, "hex": "0x2C", "octal": "0o054", "binary": "00101100", "char": ",", "name": "Punctuation / symbol", "type": "printable", "html_entity": "," }, { "decimal": 45, "hex": "0x2D", "octal": "0o055", "binary": "00101101", "char": "-", "name": "Punctuation / symbol", "type": "printable", "html_entity": "-" }, { "decimal": 46, "hex": "0x2E", "octal": "0o056", "binary": "00101110", "char": ".", "name": "Punctuation / symbol", "type": "printable", "html_entity": "." }, { "decimal": 47, "hex": "0x2F", "octal": "0o057", "binary": "00101111", "char": "/", "name": "Punctuation / symbol", "type": "printable", "html_entity": "/" }, { "decimal": 48, "hex": "0x30", "octal": "0o060", "binary": "00110000", "char": "0", "name": "Digit", "type": "printable", "html_entity": "0" }, { "decimal": 49, "hex": "0x31", "octal": "0o061", "binary": "00110001", "char": "1", "name": "Digit", "type": "printable", "html_entity": "1" }, { "decimal": 50, "hex": "0x32", "octal": "0o062", "binary": "00110010", "char": "2", "name": "Digit", "type": "printable", "html_entity": "2" }, { "decimal": 51, "hex": "0x33", "octal": "0o063", "binary": "00110011", "char": "3", "name": "Digit", "type": "printable", "html_entity": "3" }, { "decimal": 52, "hex": "0x34", "octal": "0o064", "binary": "00110100", "char": "4", "name": "Digit", "type": "printable", "html_entity": "4" }, { "decimal": 53, "hex": "0x35", "octal": "0o065", "binary": "00110101", "char": "5", "name": "Digit", "type": "printable", "html_entity": "5" }, { "decimal": 54, "hex": "0x36", "octal": "0o066", "binary": "00110110", "char": "6", "name": "Digit", "type": "printable", "html_entity": "6" }, { "decimal": 55, "hex": "0x37", "octal": "0o067", "binary": "00110111", "char": "7", "name": "Digit", "type": "printable", "html_entity": "7" }, { "decimal": 56, "hex": "0x38", "octal": "0o070", "binary": "00111000", "char": "8", "name": "Digit", "type": "printable", "html_entity": "8" }, { "decimal": 57, "hex": "0x39", "octal": "0o071", "binary": "00111001", "char": "9", "name": "Digit", "type": "printable", "html_entity": "9" }, { "decimal": 58, "hex": "0x3A", "octal": "0o072", "binary": "00111010", "char": ":", "name": "Punctuation / symbol", "type": "printable", "html_entity": ":" }, { "decimal": 59, "hex": "0x3B", "octal": "0o073", "binary": "00111011", "char": ";", "name": "Punctuation / symbol", "type": "printable", "html_entity": ";" }, { "decimal": 60, "hex": "0x3C", "octal": "0o074", "binary": "00111100", "char": "<", "name": "Punctuation / symbol", "type": "printable", "html_entity": "<" }, { "decimal": 61, "hex": "0x3D", "octal": "0o075", "binary": "00111101", "char": "=", "name": "Punctuation / symbol", "type": "printable", "html_entity": "=" }, { "decimal": 62, "hex": "0x3E", "octal": "0o076", "binary": "00111110", "char": ">", "name": "Punctuation / symbol", "type": "printable", "html_entity": ">" }, { "decimal": 63, "hex": "0x3F", "octal": "0o077", "binary": "00111111", "char": "?", "name": "Punctuation / symbol", "type": "printable", "html_entity": "?" }, { "decimal": 64, "hex": "0x40", "octal": "0o100", "binary": "01000000", "char": "@", "name": "Punctuation / symbol", "type": "printable", "html_entity": "@" }, { "decimal": 65, "hex": "0x41", "octal": "0o101", "binary": "01000001", "char": "A", "name": "Uppercase letter", "type": "printable", "html_entity": "A" }, { "decimal": 66, "hex": "0x42", "octal": "0o102", "binary": "01000010", "char": "B", "name": "Uppercase letter", "type": "printable", "html_entity": "B" }, { "decimal": 67, "hex": "0x43", "octal": "0o103", "binary": "01000011", "char": "C", "name": "Uppercase letter", "type": "printable", "html_entity": "C" }, { "decimal": 68, "hex": "0x44", "octal": "0o104", "binary": "01000100", "char": "D", "name": "Uppercase letter", "type": "printable", "html_entity": "D" }, { "decimal": 69, "hex": "0x45", "octal": "0o105", "binary": "01000101", "char": "E", "name": "Uppercase letter", "type": "printable", "html_entity": "E" }, { "decimal": 70, "hex": "0x46", "octal": "0o106", "binary": "01000110", "char": "F", "name": "Uppercase letter", "type": "printable", "html_entity": "F" }, { "decimal": 71, "hex": "0x47", "octal": "0o107", "binary": "01000111", "char": "G", "name": "Uppercase letter", "type": "printable", "html_entity": "G" }, { "decimal": 72, "hex": "0x48", "octal": "0o110", "binary": "01001000", "char": "H", "name": "Uppercase letter", "type": "printable", "html_entity": "H" }, { "decimal": 73, "hex": "0x49", "octal": "0o111", "binary": "01001001", "char": "I", "name": "Uppercase letter", "type": "printable", "html_entity": "I" }, { "decimal": 74, "hex": "0x4A", "octal": "0o112", "binary": "01001010", "char": "J", "name": "Uppercase letter", "type": "printable", "html_entity": "J" }, { "decimal": 75, "hex": "0x4B", "octal": "0o113", "binary": "01001011", "char": "K", "name": "Uppercase letter", "type": "printable", "html_entity": "K" }, { "decimal": 76, "hex": "0x4C", "octal": "0o114", "binary": "01001100", "char": "L", "name": "Uppercase letter", "type": "printable", "html_entity": "L" }, { "decimal": 77, "hex": "0x4D", "octal": "0o115", "binary": "01001101", "char": "M", "name": "Uppercase letter", "type": "printable", "html_entity": "M" }, { "decimal": 78, "hex": "0x4E", "octal": "0o116", "binary": "01001110", "char": "N", "name": "Uppercase letter", "type": "printable", "html_entity": "N" }, { "decimal": 79, "hex": "0x4F", "octal": "0o117", "binary": "01001111", "char": "O", "name": "Uppercase letter", "type": "printable", "html_entity": "O" }, { "decimal": 80, "hex": "0x50", "octal": "0o120", "binary": "01010000", "char": "P", "name": "Uppercase letter", "type": "printable", "html_entity": "P" }, { "decimal": 81, "hex": "0x51", "octal": "0o121", "binary": "01010001", "char": "Q", "name": "Uppercase letter", "type": "printable", "html_entity": "Q" }, { "decimal": 82, "hex": "0x52", "octal": "0o122", "binary": "01010010", "char": "R", "name": "Uppercase letter", "type": "printable", "html_entity": "R" }, { "decimal": 83, "hex": "0x53", "octal": "0o123", "binary": "01010011", "char": "S", "name": "Uppercase letter", "type": "printable", "html_entity": "S" }, { "decimal": 84, "hex": "0x54", "octal": "0o124", "binary": "01010100", "char": "T", "name": "Uppercase letter", "type": "printable", "html_entity": "T" }, { "decimal": 85, "hex": "0x55", "octal": "0o125", "binary": "01010101", "char": "U", "name": "Uppercase letter", "type": "printable", "html_entity": "U" }, { "decimal": 86, "hex": "0x56", "octal": "0o126", "binary": "01010110", "char": "V", "name": "Uppercase letter", "type": "printable", "html_entity": "V" }, { "decimal": 87, "hex": "0x57", "octal": "0o127", "binary": "01010111", "char": "W", "name": "Uppercase letter", "type": "printable", "html_entity": "W" }, { "decimal": 88, "hex": "0x58", "octal": "0o130", "binary": "01011000", "char": "X", "name": "Uppercase letter", "type": "printable", "html_entity": "X" }, { "decimal": 89, "hex": "0x59", "octal": "0o131", "binary": "01011001", "char": "Y", "name": "Uppercase letter", "type": "printable", "html_entity": "Y" }, { "decimal": 90, "hex": "0x5A", "octal": "0o132", "binary": "01011010", "char": "Z", "name": "Uppercase letter", "type": "printable", "html_entity": "Z" }, { "decimal": 91, "hex": "0x5B", "octal": "0o133", "binary": "01011011", "char": "[", "name": "Punctuation / symbol", "type": "printable", "html_entity": "[" }, { "decimal": 92, "hex": "0x5C", "octal": "0o134", "binary": "01011100", "char": "\\", "name": "Punctuation / symbol", "type": "printable", "html_entity": "\" }, { "decimal": 93, "hex": "0x5D", "octal": "0o135", "binary": "01011101", "char": "]", "name": "Punctuation / symbol", "type": "printable", "html_entity": "]" }, { "decimal": 94, "hex": "0x5E", "octal": "0o136", "binary": "01011110", "char": "^", "name": "Punctuation / symbol", "type": "printable", "html_entity": "^" }, { "decimal": 95, "hex": "0x5F", "octal": "0o137", "binary": "01011111", "char": "_", "name": "Punctuation / symbol", "type": "printable", "html_entity": "_" }, { "decimal": 96, "hex": "0x60", "octal": "0o140", "binary": "01100000", "char": "`", "name": "Punctuation / symbol", "type": "printable", "html_entity": "`" }, { "decimal": 97, "hex": "0x61", "octal": "0o141", "binary": "01100001", "char": "a", "name": "Lowercase letter", "type": "printable", "html_entity": "a" }, { "decimal": 98, "hex": "0x62", "octal": "0o142", "binary": "01100010", "char": "b", "name": "Lowercase letter", "type": "printable", "html_entity": "b" }, { "decimal": 99, "hex": "0x63", "octal": "0o143", "binary": "01100011", "char": "c", "name": "Lowercase letter", "type": "printable", "html_entity": "c" }, { "decimal": 100, "hex": "0x64", "octal": "0o144", "binary": "01100100", "char": "d", "name": "Lowercase letter", "type": "printable", "html_entity": "d" }, { "decimal": 101, "hex": "0x65", "octal": "0o145", "binary": "01100101", "char": "e", "name": "Lowercase letter", "type": "printable", "html_entity": "e" }, { "decimal": 102, "hex": "0x66", "octal": "0o146", "binary": "01100110", "char": "f", "name": "Lowercase letter", "type": "printable", "html_entity": "f" }, { "decimal": 103, "hex": "0x67", "octal": "0o147", "binary": "01100111", "char": "g", "name": "Lowercase letter", "type": "printable", "html_entity": "g" }, { "decimal": 104, "hex": "0x68", "octal": "0o150", "binary": "01101000", "char": "h", "name": "Lowercase letter", "type": "printable", "html_entity": "h" }, { "decimal": 105, "hex": "0x69", "octal": "0o151", "binary": "01101001", "char": "i", "name": "Lowercase letter", "type": "printable", "html_entity": "i" }, { "decimal": 106, "hex": "0x6A", "octal": "0o152", "binary": "01101010", "char": "j", "name": "Lowercase letter", "type": "printable", "html_entity": "j" }, { "decimal": 107, "hex": "0x6B", "octal": "0o153", "binary": "01101011", "char": "k", "name": "Lowercase letter", "type": "printable", "html_entity": "k" }, { "decimal": 108, "hex": "0x6C", "octal": "0o154", "binary": "01101100", "char": "l", "name": "Lowercase letter", "type": "printable", "html_entity": "l" }, { "decimal": 109, "hex": "0x6D", "octal": "0o155", "binary": "01101101", "char": "m", "name": "Lowercase letter", "type": "printable", "html_entity": "m" }, { "decimal": 110, "hex": "0x6E", "octal": "0o156", "binary": "01101110", "char": "n", "name": "Lowercase letter", "type": "printable", "html_entity": "n" }, { "decimal": 111, "hex": "0x6F", "octal": "0o157", "binary": "01101111", "char": "o", "name": "Lowercase letter", "type": "printable", "html_entity": "o" }, { "decimal": 112, "hex": "0x70", "octal": "0o160", "binary": "01110000", "char": "p", "name": "Lowercase letter", "type": "printable", "html_entity": "p" }, { "decimal": 113, "hex": "0x71", "octal": "0o161", "binary": "01110001", "char": "q", "name": "Lowercase letter", "type": "printable", "html_entity": "q" }, { "decimal": 114, "hex": "0x72", "octal": "0o162", "binary": "01110010", "char": "r", "name": "Lowercase letter", "type": "printable", "html_entity": "r" }, { "decimal": 115, "hex": "0x73", "octal": "0o163", "binary": "01110011", "char": "s", "name": "Lowercase letter", "type": "printable", "html_entity": "s" }, { "decimal": 116, "hex": "0x74", "octal": "0o164", "binary": "01110100", "char": "t", "name": "Lowercase letter", "type": "printable", "html_entity": "t" }, { "decimal": 117, "hex": "0x75", "octal": "0o165", "binary": "01110101", "char": "u", "name": "Lowercase letter", "type": "printable", "html_entity": "u" }, { "decimal": 118, "hex": "0x76", "octal": "0o166", "binary": "01110110", "char": "v", "name": "Lowercase letter", "type": "printable", "html_entity": "v" }, { "decimal": 119, "hex": "0x77", "octal": "0o167", "binary": "01110111", "char": "w", "name": "Lowercase letter", "type": "printable", "html_entity": "w" }, { "decimal": 120, "hex": "0x78", "octal": "0o170", "binary": "01111000", "char": "x", "name": "Lowercase letter", "type": "printable", "html_entity": "x" }, { "decimal": 121, "hex": "0x79", "octal": "0o171", "binary": "01111001", "char": "y", "name": "Lowercase letter", "type": "printable", "html_entity": "y" }, { "decimal": 122, "hex": "0x7A", "octal": "0o172", "binary": "01111010", "char": "z", "name": "Lowercase letter", "type": "printable", "html_entity": "z" }, { "decimal": 123, "hex": "0x7B", "octal": "0o173", "binary": "01111011", "char": "{", "name": "Punctuation / symbol", "type": "printable", "html_entity": "{" }, { "decimal": 124, "hex": "0x7C", "octal": "0o174", "binary": "01111100", "char": "|", "name": "Punctuation / symbol", "type": "printable", "html_entity": "|" }, { "decimal": 125, "hex": "0x7D", "octal": "0o175", "binary": "01111101", "char": "}", "name": "Punctuation / symbol", "type": "printable", "html_entity": "}" }, { "decimal": 126, "hex": "0x7E", "octal": "0o176", "binary": "01111110", "char": "~", "name": "Punctuation / symbol", "type": "printable", "html_entity": "~" }, { "decimal": 127, "hex": "0x7F", "octal": "0o177", "binary": "01111111", "char": "DEL", "name": "Delete", "type": "control", "html_entity": "" } ], "printable_range": "32-126", "note": "Standard 7-bit US-ASCII, codes 0-127." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool ASCII Table Reference API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **ASCII Table Reference** — Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `filter_type` | str | no | one of: all, control, printable, letters, digits, symbols — all \| control \| printable \| letters \| digits \| symbols (default `all`) | | `lookup` | str | no | optional single character or code to look up | Example request body: ```json { "filter_type": "all", "lookup": "A" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "ascii-table-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": { "filter_type": "all", "lookup": { "decimal": 65, "hex": "0x41", "octal": "0o101", "binary": "01000001", "char": "A", "name": "Uppercase letter", "type": "printable", "html_entity": "A" }, "row_count": 128, "rows": [ { "decimal": 0, "hex": "0x00", "octal": "0o000", "binary": "00000000", "char": "NUL", "name": "Null", "type": "control", "html_entity": "�" }, { "decimal": 1, "hex": "0x01", "octal": "0o001", "binary": "00000001", "char": "SOH", "name": "Start of Heading", "type": "control", "html_entity": "" }, { "decimal": 2, "hex": "0x02", "octal": "0o002", "binary": "00000010", "char": "STX", "name": "Start of Text", "type": "control", "html_entity": "" }, { "decimal": 3, "hex": "0x03", "octal": "0o003", "binary": "00000011", "char": "ETX", "name": "End of Text", "type": "control", "html_entity": "" }, { "decimal": 4, "hex": "0x04", "octal": "0o004", "binary": "00000100", "char": "EOT", "name": "End of Transmission", "type": "control", "html_entity": "" }, { "decimal": 5, "hex": "0x05", "octal": "0o005", "binary": "00000101", "char": "ENQ", "name": "Enquiry", "type": "control", "html_entity": "" }, { "decimal": 6, "hex": "0x06", "octal": "0o006", "binary": "00000110", "char": "ACK", "name": "Acknowledge", "type": "control", "html_entity": "" }, { "decimal": 7, "hex": "0x07", "octal": "0o007", "binary": "00000111", "char": "BEL", "name": "Bell", "type": "control", "html_entity": "" }, { "decimal": 8, "hex": "0x08", "octal": "0o010", "binary": "00001000", "char": "BS", "name": "Backspace", "type": "control", "html_entity": "" }, { "decimal": 9, "hex": "0x09", "octal": "0o011", "binary": "00001001", "char": "TAB", "name": "Horizontal Tab", "type": "control", "html_entity": " " }, { "decimal": 10, "hex": "0x0A", "octal": "0o012", "binary": "00001010", "char": "LF", "name": "Line Feed", "type": "control", "html_entity": " " }, { "decimal": 11, "hex": "0x0B", "octal": "0o013", "binary": "00001011", "char": "VT", "name": "Vertical Tab", "type": "control", "html_entity": " " }, { "decimal": 12, "hex": "0x0C", "octal": "0o014", "binary": "00001100", "char": "FF", "name": "Form Feed", "type": "control", "html_entity": " " }, { "decimal": 13, "hex": "0x0D", "octal": "0o015", "binary": "00001101", "char": "CR", "name": "Carriage Return", "type": "control", "html_entity": " " }, { "decimal": 14, "hex": "0x0E", "octal": "0o016", "binary": "00001110", "char": "SO", "name": "Shift Out", "type": "control", "html_entity": "" }, { "decimal": 15, "hex": "0x0F", "octal": "0o017", "binary": "00001111", "char": "SI", "name": "Shift In", "type": "control", "html_entity": "" }, { "decimal": 16, "hex": "0x10", "octal": "0o020", "binary": "00010000", "char": "DLE", "name": "Data Link Escape", "type": "control", "html_entity": "" }, { "decimal": 17, "hex": "0x11", "octal": "0o021", "binary": "00010001", "char": "DC1", "name": "Device Control 1", "type": "control", "html_entity": "" }, { "decimal": 18, "hex": "0x12", "octal": "0o022", "binary": "00010010", "char": "DC2", "name": "Device Control 2", "type": "control", "html_entity": "" }, { "decimal": 19, "hex": "0x13", "octal": "0o023", "binary": "00010011", "char": "DC3", "name": "Device Control 3", "type": "control", "html_entity": "" }, { "decimal": 20, "hex": "0x14", "octal": "0o024", "binary": "00010100", "char": "DC4", "name": "Device Control 4", "type": "control", "html_entity": "" }, { "decimal": 21, "hex": "0x15", "octal": "0o025", "binary": "00010101", "char": "NAK", "name": "Negative Acknowledge", "type": "control", "html_entity": "" }, { "decimal": 22, "hex": "0x16", "octal": "0o026", "binary": "00010110", "char": "SYN", "name": "Synchronous Idle", "type": "control", "html_entity": "" }, { "decimal": 23, "hex": "0x17", "octal": "0o027", "binary": "00010111", "char": "ETB", "name": "End of Transmission Block", "type": "control", "html_entity": "" }, { "decimal": 24, "hex": "0x18", "octal": "0o030", "binary": "00011000", "char": "CAN", "name": "Cancel", "type": "control", "html_entity": "" }, { "decimal": 25, "hex": "0x19", "octal": "0o031", "binary": "00011001", "char": "EM", "name": "End of Medium", "type": "control", "html_entity": "" }, { "decimal": 26, "hex": "0x1A", "octal": "0o032", "binary": "00011010", "char": "SUB", "name": "Substitute", "type": "control", "html_entity": "" }, { "decimal": 27, "hex": "0x1B", "octal": "0o033", "binary": "00011011", "char": "ESC", "name": "Escape", "type": "control", "html_entity": "" }, { "decimal": 28, "hex": "0x1C", "octal": "0o034", "binary": "00011100", "char": "FS", "name": "File Separator", "type": "control", "html_entity": "" }, { "decimal": 29, "hex": "0x1D", "octal": "0o035", "binary": "00011101", "char": "GS", "name": "Group Separator", "type": "control", "html_entity": "" }, { "decimal": 30, "hex": "0x1E", "octal": "0o036", "binary": "00011110", "char": "RS", "name": "Record Separator", "type": "control", "html_entity": "" }, { "decimal": 31, "hex": "0x1F", "octal": "0o037", "binary": "00011111", "char": "US", "name": "Unit Separator", "type": "control", "html_entity": "" }, { "decimal": 32, "hex": "0x20", "octal": "0o040", "binary": "00100000", "char": "SP", "name": "Space", "type": "printable", "html_entity": " " }, { "decimal": 33, "hex": "0x21", "octal": "0o041", "binary": "00100001", "char": "!", "name": "Punctuation / symbol", "type": "printable", "html_entity": "!" }, { "decimal": 34, "hex": "0x22", "octal": "0o042", "binary": "00100010", "char": "\"", "name": "Punctuation / symbol", "type": "printable", "html_entity": """ }, { "decimal": 35, "hex": "0x23", "octal": "0o043", "binary": "00100011", "char": "#", "name": "Punctuation / symbol", "type": "printable", "html_entity": "#" }, { "decimal": 36, "hex": "0x24", "octal": "0o044", "binary": "00100100", "char": "$", "name": "Punctuation / symbol", "type": "printable", "html_entity": "$" }, { "decimal": 37, "hex": "0x25", "octal": "0o045", "binary": "00100101", "char": "%", "name": "Punctuation / symbol", "type": "printable", "html_entity": "%" }, { "decimal": 38, "hex": "0x26", "octal": "0o046", "binary": "00100110", "char": "&", "name": "Punctuation / symbol", "type": "printable", "html_entity": "&" }, { "decimal": 39, "hex": "0x27", "octal": "0o047", "binary": "00100111", "char": "'", "name": "Punctuation / symbol", "type": "printable", "html_entity": "'" }, { "decimal": 40, "hex": "0x28", "octal": "0o050", "binary": "00101000", "char": "(", "name": "Punctuation / symbol", "type": "printable", "html_entity": "(" }, { "decimal": 41, "hex": "0x29", "octal": "0o051", "binary": "00101001", "char": ")", "name": "Punctuation / symbol", "type": "printable", "html_entity": ")" }, { "decimal": 42, "hex": "0x2A", "octal": "0o052", "binary": "00101010", "char": "*", "name": "Punctuation / symbol", "type": "printable", "html_entity": "*" }, { "decimal": 43, "hex": "0x2B", "octal": "0o053", "binary": "00101011", "char": "+", "name": "Punctuation / symbol", "type": "printable", "html_entity": "+" }, { "decimal": 44, "hex": "0x2C", "octal": "0o054", "binary": "00101100", "char": ",", "name": "Punctuation / symbol", "type": "printable", "html_entity": "," }, { "decimal": 45, "hex": "0x2D", "octal": "0o055", "binary": "00101101", "char": "-", "name": "Punctuation / symbol", "type": "printable", "html_entity": "-" }, { "decimal": 46, "hex": "0x2E", "octal": "0o056", "binary": "00101110", "char": ".", "name": "Punctuation / symbol", "type": "printable", "html_entity": "." }, { "decimal": 47, "hex": "0x2F", "octal": "0o057", "binary": "00101111", "char": "/", "name": "Punctuation / symbol", "type": "printable", "html_entity": "/" }, { "decimal": 48, "hex": "0x30", "octal": "0o060", "binary": "00110000", "char": "0", "name": "Digit", "type": "printable", "html_entity": "0" }, { "decimal": 49, "hex": "0x31", "octal": "0o061", "binary": "00110001", "char": "1", "name": "Digit", "type": "printable", "html_entity": "1" }, { "decimal": 50, "hex": "0x32", "octal": "0o062", "binary": "00110010", "char": "2", "name": "Digit", "type": "printable", "html_entity": "2" }, { "decimal": 51, "hex": "0x33", "octal": "0o063", "binary": "00110011", "char": "3", "name": "Digit", "type": "printable", "html_entity": "3" }, { "decimal": 52, "hex": "0x34", "octal": "0o064", "binary": "00110100", "char": "4", "name": "Digit", "type": "printable", "html_entity": "4" }, { "decimal": 53, "hex": "0x35", "octal": "0o065", "binary": "00110101", "char": "5", "name": "Digit", "type": "printable", "html_entity": "5" }, { "decimal": 54, "hex": "0x36", "octal": "0o066", "binary": "00110110", "char": "6", "name": "Digit", "type": "printable", "html_entity": "6" }, { "decimal": 55, "hex": "0x37", "octal": "0o067", "binary": "00110111", "char": "7", "name": "Digit", "type": "printable", "html_entity": "7" }, { "decimal": 56, "hex": "0x38", "octal": "0o070", "binary": "00111000", "char": "8", "name": "Digit", "type": "printable", "html_entity": "8" }, { "decimal": 57, "hex": "0x39", "octal": "0o071", "binary": "00111001", "char": "9", "name": "Digit", "type": "printable", "html_entity": "9" }, { "decimal": 58, "hex": "0x3A", "octal": "0o072", "binary": "00111010", "char": ":", "name": "Punctuation / symbol", "type": "printable", "html_entity": ":" }, { "decimal": 59, "hex": "0x3B", "octal": "0o073", "binary": "00111011", "char": ";", "name": "Punctuation / symbol", "type": "printable", "html_entity": ";" }, { "decimal": 60, "hex": "0x3C", "octal": "0o074", "binary": "00111100", "char": "<", "name": "Punctuation / symbol", "type": "printable", "html_entity": "<" }, { "decimal": 61, "hex": "0x3D", "octal": "0o075", "binary": "00111101", "char": "=", "name": "Punctuation / symbol", "type": "printable", "html_entity": "=" }, { "decimal": 62, "hex": "0x3E", "octal": "0o076", "binary": "00111110", "char": ">", "name": "Punctuation / symbol", "type": "printable", "html_entity": ">" }, { "decimal": 63, "hex": "0x3F", "octal": "0o077", "binary": "00111111", "char": "?", "name": "Punctuation / symbol", "type": "printable", "html_entity": "?" }, { "decimal": 64, "hex": "0x40", "octal": "0o100", "binary": "01000000", "char": "@", "name": "Punctuation / symbol", "type": "printable", "html_entity": "@" }, { "decimal": 65, "hex": "0x41", "octal": "0o101", "binary": "01000001", "char": "A", "name": "Uppercase letter", "type": "printable", "html_entity": "A" }, { "decimal": 66, "hex": "0x42", "octal": "0o102", "binary": "01000010", "char": "B", "name": "Uppercase letter", "type": "printable", "html_entity": "B" }, { "decimal": 67, "hex": "0x43", "octal": "0o103", "binary": "01000011", "char": "C", "name": "Uppercase letter", "type": "printable", "html_entity": "C" }, { "decimal": 68, "hex": "0x44", "octal": "0o104", "binary": "01000100", "char": "D", "name": "Uppercase letter", "type": "printable", "html_entity": "D" }, { "decimal": 69, "hex": "0x45", "octal": "0o105", "binary": "01000101", "char": "E", "name": "Uppercase letter", "type": "printable", "html_entity": "E" }, { "decimal": 70, "hex": "0x46", "octal": "0o106", "binary": "01000110", "char": "F", "name": "Uppercase letter", "type": "printable", "html_entity": "F" }, { "decimal": 71, "hex": "0x47", "octal": "0o107", "binary": "01000111", "char": "G", "name": "Uppercase letter", "type": "printable", "html_entity": "G" }, { "decimal": 72, "hex": "0x48", "octal": "0o110", "binary": "01001000", "char": "H", "name": "Uppercase letter", "type": "printable", "html_entity": "H" }, { "decimal": 73, "hex": "0x49", "octal": "0o111", "binary": "01001001", "char": "I", "name": "Uppercase letter", "type": "printable", "html_entity": "I" }, { "decimal": 74, "hex": "0x4A", "octal": "0o112", "binary": "01001010", "char": "J", "name": "Uppercase letter", "type": "printable", "html_entity": "J" }, { "decimal": 75, "hex": "0x4B", "octal": "0o113", "binary": "01001011", "char": "K", "name": "Uppercase letter", "type": "printable", "html_entity": "K" }, { "decimal": 76, "hex": "0x4C", "octal": "0o114", "binary": "01001100", "char": "L", "name": "Uppercase letter", "type": "printable", "html_entity": "L" }, { "decimal": 77, "hex": "0x4D", "octal": "0o115", "binary": "01001101", "char": "M", "name": "Uppercase letter", "type": "printable", "html_entity": "M" }, { "decimal": 78, "hex": "0x4E", "octal": "0o116", "binary": "01001110", "char": "N", "name": "Uppercase letter", "type": "printable", "html_entity": "N" }, { "decimal": 79, "hex": "0x4F", "octal": "0o117", "binary": "01001111", "char": "O", "name": "Uppercase letter", "type": "printable", "html_entity": "O" }, { "decimal": 80, "hex": "0x50", "octal": "0o120", "binary": "01010000", "char": "P", "name": "Uppercase letter", "type": "printable", "html_entity": "P" }, { "decimal": 81, "hex": "0x51", "octal": "0o121", "binary": "01010001", "char": "Q", "name": "Uppercase letter", "type": "printable", "html_entity": "Q" }, { "decimal": 82, "hex": "0x52", "octal": "0o122", "binary": "01010010", "char": "R", "name": "Uppercase letter", "type": "printable", "html_entity": "R" }, { "decimal": 83, "hex": "0x53", "octal": "0o123", "binary": "01010011", "char": "S", "name": "Uppercase letter", "type": "printable", "html_entity": "S" }, { "decimal": 84, "hex": "0x54", "octal": "0o124", "binary": "01010100", "char": "T", "name": "Uppercase letter", "type": "printable", "html_entity": "T" }, { "decimal": 85, "hex": "0x55", "octal": "0o125", "binary": "01010101", "char": "U", "name": "Uppercase letter", "type": "printable", "html_entity": "U" }, { "decimal": 86, "hex": "0x56", "octal": "0o126", "binary": "01010110", "char": "V", "name": "Uppercase letter", "type": "printable", "html_entity": "V" }, { "decimal": 87, "hex": "0x57", "octal": "0o127", "binary": "01010111", "char": "W", "name": "Uppercase letter", "type": "printable", "html_entity": "W" }, { "decimal": 88, "hex": "0x58", "octal": "0o130", "binary": "01011000", "char": "X", "name": "Uppercase letter", "type": "printable", "html_entity": "X" }, { "decimal": 89, "hex": "0x59", "octal": "0o131", "binary": "01011001", "char": "Y", "name": "Uppercase letter", "type": "printable", "html_entity": "Y" }, { "decimal": 90, "hex": "0x5A", "octal": "0o132", "binary": "01011010", "char": "Z", "name": "Uppercase letter", "type": "printable", "html_entity": "Z" }, { "decimal": 91, "hex": "0x5B", "octal": "0o133", "binary": "01011011", "char": "[", "name": "Punctuation / symbol", "type": "printable", "html_entity": "[" }, { "decimal": 92, "hex": "0x5C", "octal": "0o134", "binary": "01011100", "char": "\\", "name": "Punctuation / symbol", "type": "printable", "html_entity": "\" }, { "decimal": 93, "hex": "0x5D", "octal": "0o135", "binary": "01011101", "char": "]", "name": "Punctuation / symbol", "type": "printable", "html_entity": "]" }, { "decimal": 94, "hex": "0x5E", "octal": "0o136", "binary": "01011110", "char": "^", "name": "Punctuation / symbol", "type": "printable", "html_entity": "^" }, { "decimal": 95, "hex": "0x5F", "octal": "0o137", "binary": "01011111", "char": "_", "name": "Punctuation / symbol", "type": "printable", "html_entity": "_" }, { "decimal": 96, "hex": "0x60", "octal": "0o140", "binary": "01100000", "char": "`", "name": "Punctuation / symbol", "type": "printable", "html_entity": "`" }, { "decimal": 97, "hex": "0x61", "octal": "0o141", "binary": "01100001", "char": "a", "name": "Lowercase letter", "type": "printable", "html_entity": "a" }, { "decimal": 98, "hex": "0x62", "octal": "0o142", "binary": "01100010", "char": "b", "name": "Lowercase letter", "type": "printable", "html_entity": "b" }, { "decimal": 99, "hex": "0x63", "octal": "0o143", "binary": "01100011", "char": "c", "name": "Lowercase letter", "type": "printable", "html_entity": "c" }, { "decimal": 100, "hex": "0x64", "octal": "0o144", "binary": "01100100", "char": "d", "name": "Lowercase letter", "type": "printable", "html_entity": "d" }, { "decimal": 101, "hex": "0x65", "octal": "0o145", "binary": "01100101", "char": "e", "name": "Lowercase letter", "type": "printable", "html_entity": "e" }, { "decimal": 102, "hex": "0x66", "octal": "0o146", "binary": "01100110", "char": "f", "name": "Lowercase letter", "type": "printable", "html_entity": "f" }, { "decimal": 103, "hex": "0x67", "octal": "0o147", "binary": "01100111", "char": "g", "name": "Lowercase letter", "type": "printable", "html_entity": "g" }, { "decimal": 104, "hex": "0x68", "octal": "0o150", "binary": "01101000", "char": "h", "name": "Lowercase letter", "type": "printable", "html_entity": "h" }, { "decimal": 105, "hex": "0x69", "octal": "0o151", "binary": "01101001", "char": "i", "name": "Lowercase letter", "type": "printable", "html_entity": "i" }, { "decimal": 106, "hex": "0x6A", "octal": "0o152", "binary": "01101010", "char": "j", "name": "Lowercase letter", "type": "printable", "html_entity": "j" }, { "decimal": 107, "hex": "0x6B", "octal": "0o153", "binary": "01101011", "char": "k", "name": "Lowercase letter", "type": "printable", "html_entity": "k" }, { "decimal": 108, "hex": "0x6C", "octal": "0o154", "binary": "01101100", "char": "l", "name": "Lowercase letter", "type": "printable", "html_entity": "l" }, { "decimal": 109, "hex": "0x6D", "octal": "0o155", "binary": "01101101", "char": "m", "name": "Lowercase letter", "type": "printable", "html_entity": "m" }, { "decimal": 110, "hex": "0x6E", "octal": "0o156", "binary": "01101110", "char": "n", "name": "Lowercase letter", "type": "printable", "html_entity": "n" }, { "decimal": 111, "hex": "0x6F", "octal": "0o157", "binary": "01101111", "char": "o", "name": "Lowercase letter", "type": "printable", "html_entity": "o" }, { "decimal": 112, "hex": "0x70", "octal": "0o160", "binary": "01110000", "char": "p", "name": "Lowercase letter", "type": "printable", "html_entity": "p" }, { "decimal": 113, "hex": "0x71", "octal": "0o161", "binary": "01110001", "char": "q", "name": "Lowercase letter", "type": "printable", "html_entity": "q" }, { "decimal": 114, "hex": "0x72", "octal": "0o162", "binary": "01110010", "char": "r", "name": "Lowercase letter", "type": "printable", "html_entity": "r" }, { "decimal": 115, "hex": "0x73", "octal": "0o163", "binary": "01110011", "char": "s", "name": "Lowercase letter", "type": "printable", "html_entity": "s" }, { "decimal": 116, "hex": "0x74", "octal": "0o164", "binary": "01110100", "char": "t", "name": "Lowercase letter", "type": "printable", "html_entity": "t" }, { "decimal": 117, "hex": "0x75", "octal": "0o165", "binary": "01110101", "char": "u", "name": "Lowercase letter", "type": "printable", "html_entity": "u" }, { "decimal": 118, "hex": "0x76", "octal": "0o166", "binary": "01110110", "char": "v", "name": "Lowercase letter", "type": "printable", "html_entity": "v" }, { "decimal": 119, "hex": "0x77", "octal": "0o167", "binary": "01110111", "char": "w", "name": "Lowercase letter", "type": "printable", "html_entity": "w" }, { "decimal": 120, "hex": "0x78", "octal": "0o170", "binary": "01111000", "char": "x", "name": "Lowercase letter", "type": "printable", "html_entity": "x" }, { "decimal": 121, "hex": "0x79", "octal": "0o171", "binary": "01111001", "char": "y", "name": "Lowercase letter", "type": "printable", "html_entity": "y" }, { "decimal": 122, "hex": "0x7A", "octal": "0o172", "binary": "01111010", "char": "z", "name": "Lowercase letter", "type": "printable", "html_entity": "z" }, { "decimal": 123, "hex": "0x7B", "octal": "0o173", "binary": "01111011", "char": "{", "name": "Punctuation / symbol", "type": "printable", "html_entity": "{" }, { "decimal": 124, "hex": "0x7C", "octal": "0o174", "binary": "01111100", "char": "|", "name": "Punctuation / symbol", "type": "printable", "html_entity": "|" }, { "decimal": 125, "hex": "0x7D", "octal": "0o175", "binary": "01111101", "char": "}", "name": "Punctuation / symbol", "type": "printable", "html_entity": "}" }, { "decimal": 126, "hex": "0x7E", "octal": "0o176", "binary": "01111110", "char": "~", "name": "Punctuation / symbol", "type": "printable", "html_entity": "~" }, { "decimal": 127, "hex": "0x7F", "octal": "0o177", "binary": "01111111", "char": "DEL", "name": "Delete", "type": "control", "html_entity": "" } ], "printable_range": "32-126", "note": "Standard 7-bit US-ASCII, codes 0-127." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-ascii-table-reference.mdc copy prompt ```text --- description: MiniWebtool ASCII Table Reference API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool ASCII Table Reference API ## The API **ASCII Table Reference** — Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/ascii-table-reference/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `filter_type` | str | no | one of: all, control, printable, letters, digits, symbols — all \| control \| printable \| letters \| digits \| symbols (default `all`) | | `lookup` | str | no | optional single character or code to look up | Example request body: ```json { "filter_type": "all", "lookup": "A" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "ascii-table-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": { "filter_type": "all", "lookup": { "decimal": 65, "hex": "0x41", "octal": "0o101", "binary": "01000001", "char": "A", "name": "Uppercase letter", "type": "printable", "html_entity": "A" }, "row_count": 128, "rows": [ { "decimal": 0, "hex": "0x00", "octal": "0o000", "binary": "00000000", "char": "NUL", "name": "Null", "type": "control", "html_entity": "�" }, { "decimal": 1, "hex": "0x01", "octal": "0o001", "binary": "00000001", "char": "SOH", "name": "Start of Heading", "type": "control", "html_entity": "" }, { "decimal": 2, "hex": "0x02", "octal": "0o002", "binary": "00000010", "char": "STX", "name": "Start of Text", "type": "control", "html_entity": "" }, { "decimal": 3, "hex": "0x03", "octal": "0o003", "binary": "00000011", "char": "ETX", "name": "End of Text", "type": "control", "html_entity": "" }, { "decimal": 4, "hex": "0x04", "octal": "0o004", "binary": "00000100", "char": "EOT", "name": "End of Transmission", "type": "control", "html_entity": "" }, { "decimal": 5, "hex": "0x05", "octal": "0o005", "binary": "00000101", "char": "ENQ", "name": "Enquiry", "type": "control", "html_entity": "" }, { "decimal": 6, "hex": "0x06", "octal": "0o006", "binary": "00000110", "char": "ACK", "name": "Acknowledge", "type": "control", "html_entity": "" }, { "decimal": 7, "hex": "0x07", "octal": "0o007", "binary": "00000111", "char": "BEL", "name": "Bell", "type": "control", "html_entity": "" }, { "decimal": 8, "hex": "0x08", "octal": "0o010", "binary": "00001000", "char": "BS", "name": "Backspace", "type": "control", "html_entity": "" }, { "decimal": 9, "hex": "0x09", "octal": "0o011", "binary": "00001001", "char": "TAB", "name": "Horizontal Tab", "type": "control", "html_entity": " " }, { "decimal": 10, "hex": "0x0A", "octal": "0o012", "binary": "00001010", "char": "LF", "name": "Line Feed", "type": "control", "html_entity": " " }, { "decimal": 11, "hex": "0x0B", "octal": "0o013", "binary": "00001011", "char": "VT", "name": "Vertical Tab", "type": "control", "html_entity": " " }, { "decimal": 12, "hex": "0x0C", "octal": "0o014", "binary": "00001100", "char": "FF", "name": "Form Feed", "type": "control", "html_entity": " " }, { "decimal": 13, "hex": "0x0D", "octal": "0o015", "binary": "00001101", "char": "CR", "name": "Carriage Return", "type": "control", "html_entity": " " }, { "decimal": 14, "hex": "0x0E", "octal": "0o016", "binary": "00001110", "char": "SO", "name": "Shift Out", "type": "control", "html_entity": "" }, { "decimal": 15, "hex": "0x0F", "octal": "0o017", "binary": "00001111", "char": "SI", "name": "Shift In", "type": "control", "html_entity": "" }, { "decimal": 16, "hex": "0x10", "octal": "0o020", "binary": "00010000", "char": "DLE", "name": "Data Link Escape", "type": "control", "html_entity": "" }, { "decimal": 17, "hex": "0x11", "octal": "0o021", "binary": "00010001", "char": "DC1", "name": "Device Control 1", "type": "control", "html_entity": "" }, { "decimal": 18, "hex": "0x12", "octal": "0o022", "binary": "00010010", "char": "DC2", "name": "Device Control 2", "type": "control", "html_entity": "" }, { "decimal": 19, "hex": "0x13", "octal": "0o023", "binary": "00010011", "char": "DC3", "name": "Device Control 3", "type": "control", "html_entity": "" }, { "decimal": 20, "hex": "0x14", "octal": "0o024", "binary": "00010100", "char": "DC4", "name": "Device Control 4", "type": "control", "html_entity": "" }, { "decimal": 21, "hex": "0x15", "octal": "0o025", "binary": "00010101", "char": "NAK", "name": "Negative Acknowledge", "type": "control", "html_entity": "" }, { "decimal": 22, "hex": "0x16", "octal": "0o026", "binary": "00010110", "char": "SYN", "name": "Synchronous Idle", "type": "control", "html_entity": "" }, { "decimal": 23, "hex": "0x17", "octal": "0o027", "binary": "00010111", "char": "ETB", "name": "End of Transmission Block", "type": "control", "html_entity": "" }, { "decimal": 24, "hex": "0x18", "octal": "0o030", "binary": "00011000", "char": "CAN", "name": "Cancel", "type": "control", "html_entity": "" }, { "decimal": 25, "hex": "0x19", "octal": "0o031", "binary": "00011001", "char": "EM", "name": "End of Medium", "type": "control", "html_entity": "" }, { "decimal": 26, "hex": "0x1A", "octal": "0o032", "binary": "00011010", "char": "SUB", "name": "Substitute", "type": "control", "html_entity": "" }, { "decimal": 27, "hex": "0x1B", "octal": "0o033", "binary": "00011011", "char": "ESC", "name": "Escape", "type": "control", "html_entity": "" }, { "decimal": 28, "hex": "0x1C", "octal": "0o034", "binary": "00011100", "char": "FS", "name": "File Separator", "type": "control", "html_entity": "" }, { "decimal": 29, "hex": "0x1D", "octal": "0o035", "binary": "00011101", "char": "GS", "name": "Group Separator", "type": "control", "html_entity": "" }, { "decimal": 30, "hex": "0x1E", "octal": "0o036", "binary": "00011110", "char": "RS", "name": "Record Separator", "type": "control", "html_entity": "" }, { "decimal": 31, "hex": "0x1F", "octal": "0o037", "binary": "00011111", "char": "US", "name": "Unit Separator", "type": "control", "html_entity": "" }, { "decimal": 32, "hex": "0x20", "octal": "0o040", "binary": "00100000", "char": "SP", "name": "Space", "type": "printable", "html_entity": " " }, { "decimal": 33, "hex": "0x21", "octal": "0o041", "binary": "00100001", "char": "!", "name": "Punctuation / symbol", "type": "printable", "html_entity": "!" }, { "decimal": 34, "hex": "0x22", "octal": "0o042", "binary": "00100010", "char": "\"", "name": "Punctuation / symbol", "type": "printable", "html_entity": """ }, { "decimal": 35, "hex": "0x23", "octal": "0o043", "binary": "00100011", "char": "#", "name": "Punctuation / symbol", "type": "printable", "html_entity": "#" }, { "decimal": 36, "hex": "0x24", "octal": "0o044", "binary": "00100100", "char": "$", "name": "Punctuation / symbol", "type": "printable", "html_entity": "$" }, { "decimal": 37, "hex": "0x25", "octal": "0o045", "binary": "00100101", "char": "%", "name": "Punctuation / symbol", "type": "printable", "html_entity": "%" }, { "decimal": 38, "hex": "0x26", "octal": "0o046", "binary": "00100110", "char": "&", "name": "Punctuation / symbol", "type": "printable", "html_entity": "&" }, { "decimal": 39, "hex": "0x27", "octal": "0o047", "binary": "00100111", "char": "'", "name": "Punctuation / symbol", "type": "printable", "html_entity": "'" }, { "decimal": 40, "hex": "0x28", "octal": "0o050", "binary": "00101000", "char": "(", "name": "Punctuation / symbol", "type": "printable", "html_entity": "(" }, { "decimal": 41, "hex": "0x29", "octal": "0o051", "binary": "00101001", "char": ")", "name": "Punctuation / symbol", "type": "printable", "html_entity": ")" }, { "decimal": 42, "hex": "0x2A", "octal": "0o052", "binary": "00101010", "char": "*", "name": "Punctuation / symbol", "type": "printable", "html_entity": "*" }, { "decimal": 43, "hex": "0x2B", "octal": "0o053", "binary": "00101011", "char": "+", "name": "Punctuation / symbol", "type": "printable", "html_entity": "+" }, { "decimal": 44, "hex": "0x2C", "octal": "0o054", "binary": "00101100", "char": ",", "name": "Punctuation / symbol", "type": "printable", "html_entity": "," }, { "decimal": 45, "hex": "0x2D", "octal": "0o055", "binary": "00101101", "char": "-", "name": "Punctuation / symbol", "type": "printable", "html_entity": "-" }, { "decimal": 46, "hex": "0x2E", "octal": "0o056", "binary": "00101110", "char": ".", "name": "Punctuation / symbol", "type": "printable", "html_entity": "." }, { "decimal": 47, "hex": "0x2F", "octal": "0o057", "binary": "00101111", "char": "/", "name": "Punctuation / symbol", "type": "printable", "html_entity": "/" }, { "decimal": 48, "hex": "0x30", "octal": "0o060", "binary": "00110000", "char": "0", "name": "Digit", "type": "printable", "html_entity": "0" }, { "decimal": 49, "hex": "0x31", "octal": "0o061", "binary": "00110001", "char": "1", "name": "Digit", "type": "printable", "html_entity": "1" }, { "decimal": 50, "hex": "0x32", "octal": "0o062", "binary": "00110010", "char": "2", "name": "Digit", "type": "printable", "html_entity": "2" }, { "decimal": 51, "hex": "0x33", "octal": "0o063", "binary": "00110011", "char": "3", "name": "Digit", "type": "printable", "html_entity": "3" }, { "decimal": 52, "hex": "0x34", "octal": "0o064", "binary": "00110100", "char": "4", "name": "Digit", "type": "printable", "html_entity": "4" }, { "decimal": 53, "hex": "0x35", "octal": "0o065", "binary": "00110101", "char": "5", "name": "Digit", "type": "printable", "html_entity": "5" }, { "decimal": 54, "hex": "0x36", "octal": "0o066", "binary": "00110110", "char": "6", "name": "Digit", "type": "printable", "html_entity": "6" }, { "decimal": 55, "hex": "0x37", "octal": "0o067", "binary": "00110111", "char": "7", "name": "Digit", "type": "printable", "html_entity": "7" }, { "decimal": 56, "hex": "0x38", "octal": "0o070", "binary": "00111000", "char": "8", "name": "Digit", "type": "printable", "html_entity": "8" }, { "decimal": 57, "hex": "0x39", "octal": "0o071", "binary": "00111001", "char": "9", "name": "Digit", "type": "printable", "html_entity": "9" }, { "decimal": 58, "hex": "0x3A", "octal": "0o072", "binary": "00111010", "char": ":", "name": "Punctuation / symbol", "type": "printable", "html_entity": ":" }, { "decimal": 59, "hex": "0x3B", "octal": "0o073", "binary": "00111011", "char": ";", "name": "Punctuation / symbol", "type": "printable", "html_entity": ";" }, { "decimal": 60, "hex": "0x3C", "octal": "0o074", "binary": "00111100", "char": "<", "name": "Punctuation / symbol", "type": "printable", "html_entity": "<" }, { "decimal": 61, "hex": "0x3D", "octal": "0o075", "binary": "00111101", "char": "=", "name": "Punctuation / symbol", "type": "printable", "html_entity": "=" }, { "decimal": 62, "hex": "0x3E", "octal": "0o076", "binary": "00111110", "char": ">", "name": "Punctuation / symbol", "type": "printable", "html_entity": ">" }, { "decimal": 63, "hex": "0x3F", "octal": "0o077", "binary": "00111111", "char": "?", "name": "Punctuation / symbol", "type": "printable", "html_entity": "?" }, { "decimal": 64, "hex": "0x40", "octal": "0o100", "binary": "01000000", "char": "@", "name": "Punctuation / symbol", "type": "printable", "html_entity": "@" }, { "decimal": 65, "hex": "0x41", "octal": "0o101", "binary": "01000001", "char": "A", "name": "Uppercase letter", "type": "printable", "html_entity": "A" }, { "decimal": 66, "hex": "0x42", "octal": "0o102", "binary": "01000010", "char": "B", "name": "Uppercase letter", "type": "printable", "html_entity": "B" }, { "decimal": 67, "hex": "0x43", "octal": "0o103", "binary": "01000011", "char": "C", "name": "Uppercase letter", "type": "printable", "html_entity": "C" }, { "decimal": 68, "hex": "0x44", "octal": "0o104", "binary": "01000100", "char": "D", "name": "Uppercase letter", "type": "printable", "html_entity": "D" }, { "decimal": 69, "hex": "0x45", "octal": "0o105", "binary": "01000101", "char": "E", "name": "Uppercase letter", "type": "printable", "html_entity": "E" }, { "decimal": 70, "hex": "0x46", "octal": "0o106", "binary": "01000110", "char": "F", "name": "Uppercase letter", "type": "printable", "html_entity": "F" }, { "decimal": 71, "hex": "0x47", "octal": "0o107", "binary": "01000111", "char": "G", "name": "Uppercase letter", "type": "printable", "html_entity": "G" }, { "decimal": 72, "hex": "0x48", "octal": "0o110", "binary": "01001000", "char": "H", "name": "Uppercase letter", "type": "printable", "html_entity": "H" }, { "decimal": 73, "hex": "0x49", "octal": "0o111", "binary": "01001001", "char": "I", "name": "Uppercase letter", "type": "printable", "html_entity": "I" }, { "decimal": 74, "hex": "0x4A", "octal": "0o112", "binary": "01001010", "char": "J", "name": "Uppercase letter", "type": "printable", "html_entity": "J" }, { "decimal": 75, "hex": "0x4B", "octal": "0o113", "binary": "01001011", "char": "K", "name": "Uppercase letter", "type": "printable", "html_entity": "K" }, { "decimal": 76, "hex": "0x4C", "octal": "0o114", "binary": "01001100", "char": "L", "name": "Uppercase letter", "type": "printable", "html_entity": "L" }, { "decimal": 77, "hex": "0x4D", "octal": "0o115", "binary": "01001101", "char": "M", "name": "Uppercase letter", "type": "printable", "html_entity": "M" }, { "decimal": 78, "hex": "0x4E", "octal": "0o116", "binary": "01001110", "char": "N", "name": "Uppercase letter", "type": "printable", "html_entity": "N" }, { "decimal": 79, "hex": "0x4F", "octal": "0o117", "binary": "01001111", "char": "O", "name": "Uppercase letter", "type": "printable", "html_entity": "O" }, { "decimal": 80, "hex": "0x50", "octal": "0o120", "binary": "01010000", "char": "P", "name": "Uppercase letter", "type": "printable", "html_entity": "P" }, { "decimal": 81, "hex": "0x51", "octal": "0o121", "binary": "01010001", "char": "Q", "name": "Uppercase letter", "type": "printable", "html_entity": "Q" }, { "decimal": 82, "hex": "0x52", "octal": "0o122", "binary": "01010010", "char": "R", "name": "Uppercase letter", "type": "printable", "html_entity": "R" }, { "decimal": 83, "hex": "0x53", "octal": "0o123", "binary": "01010011", "char": "S", "name": "Uppercase letter", "type": "printable", "html_entity": "S" }, { "decimal": 84, "hex": "0x54", "octal": "0o124", "binary": "01010100", "char": "T", "name": "Uppercase letter", "type": "printable", "html_entity": "T" }, { "decimal": 85, "hex": "0x55", "octal": "0o125", "binary": "01010101", "char": "U", "name": "Uppercase letter", "type": "printable", "html_entity": "U" }, { "decimal": 86, "hex": "0x56", "octal": "0o126", "binary": "01010110", "char": "V", "name": "Uppercase letter", "type": "printable", "html_entity": "V" }, { "decimal": 87, "hex": "0x57", "octal": "0o127", "binary": "01010111", "char": "W", "name": "Uppercase letter", "type": "printable", "html_entity": "W" }, { "decimal": 88, "hex": "0x58", "octal": "0o130", "binary": "01011000", "char": "X", "name": "Uppercase letter", "type": "printable", "html_entity": "X" }, { "decimal": 89, "hex": "0x59", "octal": "0o131", "binary": "01011001", "char": "Y", "name": "Uppercase letter", "type": "printable", "html_entity": "Y" }, { "decimal": 90, "hex": "0x5A", "octal": "0o132", "binary": "01011010", "char": "Z", "name": "Uppercase letter", "type": "printable", "html_entity": "Z" }, { "decimal": 91, "hex": "0x5B", "octal": "0o133", "binary": "01011011", "char": "[", "name": "Punctuation / symbol", "type": "printable", "html_entity": "[" }, { "decimal": 92, "hex": "0x5C", "octal": "0o134", "binary": "01011100", "char": "\\", "name": "Punctuation / symbol", "type": "printable", "html_entity": "\" }, { "decimal": 93, "hex": "0x5D", "octal": "0o135", "binary": "01011101", "char": "]", "name": "Punctuation / symbol", "type": "printable", "html_entity": "]" }, { "decimal": 94, "hex": "0x5E", "octal": "0o136", "binary": "01011110", "char": "^", "name": "Punctuation / symbol", "type": "printable", "html_entity": "^" }, { "decimal": 95, "hex": "0x5F", "octal": "0o137", "binary": "01011111", "char": "_", "name": "Punctuation / symbol", "type": "printable", "html_entity": "_" }, { "decimal": 96, "hex": "0x60", "octal": "0o140", "binary": "01100000", "char": "`", "name": "Punctuation / symbol", "type": "printable", "html_entity": "`" }, { "decimal": 97, "hex": "0x61", "octal": "0o141", "binary": "01100001", "char": "a", "name": "Lowercase letter", "type": "printable", "html_entity": "a" }, { "decimal": 98, "hex": "0x62", "octal": "0o142", "binary": "01100010", "char": "b", "name": "Lowercase letter", "type": "printable", "html_entity": "b" }, { "decimal": 99, "hex": "0x63", "octal": "0o143", "binary": "01100011", "char": "c", "name": "Lowercase letter", "type": "printable", "html_entity": "c" }, { "decimal": 100, "hex": "0x64", "octal": "0o144", "binary": "01100100", "char": "d", "name": "Lowercase letter", "type": "printable", "html_entity": "d" }, { "decimal": 101, "hex": "0x65", "octal": "0o145", "binary": "01100101", "char": "e", "name": "Lowercase letter", "type": "printable", "html_entity": "e" }, { "decimal": 102, "hex": "0x66", "octal": "0o146", "binary": "01100110", "char": "f", "name": "Lowercase letter", "type": "printable", "html_entity": "f" }, { "decimal": 103, "hex": "0x67", "octal": "0o147", "binary": "01100111", "char": "g", "name": "Lowercase letter", "type": "printable", "html_entity": "g" }, { "decimal": 104, "hex": "0x68", "octal": "0o150", "binary": "01101000", "char": "h", "name": "Lowercase letter", "type": "printable", "html_entity": "h" }, { "decimal": 105, "hex": "0x69", "octal": "0o151", "binary": "01101001", "char": "i", "name": "Lowercase letter", "type": "printable", "html_entity": "i" }, { "decimal": 106, "hex": "0x6A", "octal": "0o152", "binary": "01101010", "char": "j", "name": "Lowercase letter", "type": "printable", "html_entity": "j" }, { "decimal": 107, "hex": "0x6B", "octal": "0o153", "binary": "01101011", "char": "k", "name": "Lowercase letter", "type": "printable", "html_entity": "k" }, { "decimal": 108, "hex": "0x6C", "octal": "0o154", "binary": "01101100", "char": "l", "name": "Lowercase letter", "type": "printable", "html_entity": "l" }, { "decimal": 109, "hex": "0x6D", "octal": "0o155", "binary": "01101101", "char": "m", "name": "Lowercase letter", "type": "printable", "html_entity": "m" }, { "decimal": 110, "hex": "0x6E", "octal": "0o156", "binary": "01101110", "char": "n", "name": "Lowercase letter", "type": "printable", "html_entity": "n" }, { "decimal": 111, "hex": "0x6F", "octal": "0o157", "binary": "01101111", "char": "o", "name": "Lowercase letter", "type": "printable", "html_entity": "o" }, { "decimal": 112, "hex": "0x70", "octal": "0o160", "binary": "01110000", "char": "p", "name": "Lowercase letter", "type": "printable", "html_entity": "p" }, { "decimal": 113, "hex": "0x71", "octal": "0o161", "binary": "01110001", "char": "q", "name": "Lowercase letter", "type": "printable", "html_entity": "q" }, { "decimal": 114, "hex": "0x72", "octal": "0o162", "binary": "01110010", "char": "r", "name": "Lowercase letter", "type": "printable", "html_entity": "r" }, { "decimal": 115, "hex": "0x73", "octal": "0o163", "binary": "01110011", "char": "s", "name": "Lowercase letter", "type": "printable", "html_entity": "s" }, { "decimal": 116, "hex": "0x74", "octal": "0o164", "binary": "01110100", "char": "t", "name": "Lowercase letter", "type": "printable", "html_entity": "t" }, { "decimal": 117, "hex": "0x75", "octal": "0o165", "binary": "01110101", "char": "u", "name": "Lowercase letter", "type": "printable", "html_entity": "u" }, { "decimal": 118, "hex": "0x76", "octal": "0o166", "binary": "01110110", "char": "v", "name": "Lowercase letter", "type": "printable", "html_entity": "v" }, { "decimal": 119, "hex": "0x77", "octal": "0o167", "binary": "01110111", "char": "w", "name": "Lowercase letter", "type": "printable", "html_entity": "w" }, { "decimal": 120, "hex": "0x78", "octal": "0o170", "binary": "01111000", "char": "x", "name": "Lowercase letter", "type": "printable", "html_entity": "x" }, { "decimal": 121, "hex": "0x79", "octal": "0o171", "binary": "01111001", "char": "y", "name": "Lowercase letter", "type": "printable", "html_entity": "y" }, { "decimal": 122, "hex": "0x7A", "octal": "0o172", "binary": "01111010", "char": "z", "name": "Lowercase letter", "type": "printable", "html_entity": "z" }, { "decimal": 123, "hex": "0x7B", "octal": "0o173", "binary": "01111011", "char": "{", "name": "Punctuation / symbol", "type": "printable", "html_entity": "{" }, { "decimal": 124, "hex": "0x7C", "octal": "0o174", "binary": "01111100", "char": "|", "name": "Punctuation / symbol", "type": "printable", "html_entity": "|" }, { "decimal": 125, "hex": "0x7D", "octal": "0o175", "binary": "01111101", "char": "}", "name": "Punctuation / symbol", "type": "printable", "html_entity": "}" }, { "decimal": 126, "hex": "0x7E", "octal": "0o176", "binary": "01111110", "char": "~", "name": "Punctuation / symbol", "type": "printable", "html_entity": "~" }, { "decimal": 127, "hex": "0x7F", "octal": "0o177", "binary": "01111111", "char": "DEL", "name": "Delete", "type": "control", "html_entity": "" } ], "printable_range": "32-126", "note": "Standard 7-bit US-ASCII, codes 0-127." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `ascii-table-reference` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `ascii-table-reference` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call ascii-table-reference - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/ascii-table-reference/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the ASCII Table Reference API do? + Full 7-bit ASCII table in decimal, hex, octal, and binary, with single-character lookup. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to ASCII Table Reference cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the ASCII Table Reference API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the ASCII Table Reference API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the ASCII Table Reference API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `ascii-table-reference` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`ascii-table-reference`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"ascii-table-reference"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - cURL Command Builder API # cURL Command Builder API developer 1 credit / call v2026-04-22 Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. One POST adds cURL Command Builder to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the cURL Command Builder on miniwebtool.com →](https://miniwebtool.com/curl-command-builder/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/curl-command-builder/run ``` ### Request body Field Type Req. `method` GET | POST | PUT | PATCH | DELETE | HEAD | OPTIONS `str` — `url` request URL `str` — `query_params` query parameters, one key=value per line `str` — `headers` headers, one 'Name: value' per line `str` — `body_type` json | none | form | multipart | raw | xml `str` — `body_content` request body (key=value lines for form/multipart) `str` — `auth_type` bearer | none | basic | apikey_header | apikey_query `str` — `auth_user` username for basic auth `str` — `auth_password` password for basic auth `str` — `auth_token` token for bearer auth `str` — `auth_key_name` API key header or query parameter name `str` — `auth_key_value` API key value `str` — `output_style` multiline | oneline | windows | powershell `str` — `quote_style` single | double `str` — `follow_redirects` yes | no `str` — `insecure` no | yes `str` — `compressed` yes | no `str` — `silent` no | yes `str` — `include_headers` no | yes `str` — `timeout` --max-time in seconds `int | None` — `user_agent` User-Agent header value `str` — `cookies` cookies, one key=value per line `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`524288`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "curl-command-builder", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → method (str) GET POST PUT PATCH DELETE HEAD OPTIONS GET | POST | PUT | PATCH | DELETE | HEAD | OPTIONS url (str) https://api.example.com/v1/users request URL query_params (str) query parameters, one key=value per line headers (str) Accept: application/json headers, one 'Name: value' per line body_type (str) json none form multipart raw xml json | none | form | multipart | raw | xml body_content (str) {"name": "Ada"} request body (key=value lines for form/multipart) auth_type (str) bearer none basic apikey_header apikey_query bearer | none | basic | apikey_header | apikey_query auth_user (str) username for basic auth auth_password (str) password for basic auth auth_token (str) TOKEN123 token for bearer auth auth_key_name (str) API key header or query parameter name auth_key_value (str) API key value output_style (str) multiline oneline windows powershell multiline | oneline | windows | powershell quote_style (str) single double single | double follow_redirects (str) yes no yes | no insecure (str) no yes no | yes compressed (str) yes no yes | no silent (str) no yes no | yes include_headers (str) no yes no | yes timeout (int | None) --max-time in seconds user_agent (str) User-Agent header value cookies (str) cookies, one key=value per line Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`curl-command-builder`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/curl-command-builder/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"method":"POST","url":"https://api.example.com/v1/users","headers":"Accept: application/json","body_type":"json","body_content":"{\"name\": \"Ada\"}","auth_type":"bearer","auth_token":"TOKEN123"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/curl-command-builder/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'method': 'POST', 'url': 'https://api.example.com/v1/users', 'headers': 'Accept: application/json', 'body_type': 'json', 'body_content': '{"name": "Ada"}', 'auth_type': 'bearer', 'auth_token': 'TOKEN123'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/curl-command-builder/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"method":"POST","url":"https://api.example.com/v1/users","headers":"Accept: application/json","body_type":"json","body_content":"{\"name\": \"Ada\"}","auth_type":"bearer","auth_token":"TOKEN123"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'method' => 'POST', 'url' => 'https://api.example.com/v1/users', 'headers' => 'Accept: application/json', 'body_type' => 'json', 'body_content' => '{"name": "Ada"}', 'auth_type' => 'bearer', 'auth_token' => 'TOKEN123' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/curl-command-builder/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'method' => 'POST', 'url' => 'https://api.example.com/v1/users', 'headers' => 'Accept: application/json', 'body_type' => 'json', 'body_content' => '{"name": "Ada"}', 'auth_type' => 'bearer', 'auth_token' => 'TOKEN123' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "method": "POST", "url": "https://api.example.com/v1/users", "headers": "Accept: application/json", "body_type": "json", "body_content": "{"name": "Ada"}", "auth_type": "bearer", "auth_token": "TOKEN123", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/curl-command-builder/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/curl-command-builder/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"method\":\"POST\",\"url\":\"https://api.example.com/v1/users\",\"headers\":\"Accept: application/json\",\"body_type\":\"json\",\"body_content\":\"{\\\"name\\\": \\\"Ada\\\"}\",\"auth_type\":\"bearer\",\"auth_token\":\"TOKEN123\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`curl-command-builder`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/curl-command-builder/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/curl-command-builder/prompt.md`](/tools/curl-command-builder/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool cURL Command Builder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **cURL Command Builder** — Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/curl-command-builder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/curl-command-builder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `method` | str | no | one of: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS — GET \| POST \| PUT \| PATCH \| DELETE \| HEAD \| OPTIONS (default `POST`) | | `url` | str | no | request URL (default `https://api.example.com/v1/users`) | | `query_params` | str | no | query parameters, one key=value per line | | `headers` | str | no | headers, one 'Name: value' per line (default `Accept: application/json`) | | `body_type` | str | no | one of: json, none, form, multipart, raw, xml — json \| none \| form \| multipart \| raw \| xml (default `json`) | | `body_content` | str | no | request body (key=value lines for form/multipart) (default `{"name": "Ada", "role": "admin"}`) | | `auth_type` | str | no | one of: bearer, none, basic, apikey_header, apikey_query — bearer \| none \| basic \| apikey_header \| apikey_query (default `bearer`) | | `auth_user` | str | no | username for basic auth | | `auth_password` | str | no | password for basic auth | | `auth_token` | str | no | token for bearer auth (default `TOKEN123`) | | `auth_key_name` | str | no | API key header or query parameter name | | `auth_key_value` | str | no | API key value | | `output_style` | str | no | one of: multiline, oneline, windows, powershell — multiline \| oneline \| windows \| powershell (default `multiline`) | | `quote_style` | str | no | one of: single, double — single \| double (default `single`) | | `follow_redirects` | str | no | one of: yes, no — yes \| no (default `yes`) | | `insecure` | str | no | one of: no, yes — no \| yes (default `no`) | | `compressed` | str | no | one of: yes, no — yes \| no (default `yes`) | | `silent` | str | no | one of: no, yes — no \| yes (default `no`) | | `include_headers` | str | no | one of: no, yes — no \| yes (default `no`) | | `timeout` | int | None | no | --max-time in seconds | | `user_agent` | str | no | User-Agent header value | | `cookies` | str | no | cookies, one key=value per line | Example request body: ```json { "method": "POST", "url": "https://api.example.com/v1/users", "headers": "Accept: application/json", "body_type": "json", "body_content": "{\"name\": \"Ada\"}", "auth_type": "bearer", "auth_token": "TOKEN123" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "curl-command-builder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "command": "curl \\\n -X POST \\\n https://api.example.com/v1/users \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer TOKEN123' \\\n -d '{\"name\": \"Ada\"}' \\\n -L \\\n --compressed", "output_style": "multiline", "quote_style": "single", "method": "POST", "effective_url": "https://api.example.com/v1/users", "query_parameters": [], "headers": [ [ "Accept", "application/json" ], [ "Content-Type", "application/json" ], [ "Authorization", "Bearer TOKEN123" ] ], "body_type": "json", "has_body": true, "auth_type": "bearer", "arguments": [ "curl", "-X", "POST", "https://api.example.com/v1/users", "-H", "Accept: application/json", "-H", "Content-Type: application/json", "-H", "Authorization: Bearer TOKEN123", "-d", "{\"name\": \"Ada\"}", "-L", "--compressed" ], "argument_count": 13, "warnings": [], "command_length": 216 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool cURL Command Builder API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **cURL Command Builder** — Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/curl-command-builder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/curl-command-builder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `method` | str | no | one of: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS — GET \| POST \| PUT \| PATCH \| DELETE \| HEAD \| OPTIONS (default `POST`) | | `url` | str | no | request URL (default `https://api.example.com/v1/users`) | | `query_params` | str | no | query parameters, one key=value per line | | `headers` | str | no | headers, one 'Name: value' per line (default `Accept: application/json`) | | `body_type` | str | no | one of: json, none, form, multipart, raw, xml — json \| none \| form \| multipart \| raw \| xml (default `json`) | | `body_content` | str | no | request body (key=value lines for form/multipart) (default `{"name": "Ada", "role": "admin"}`) | | `auth_type` | str | no | one of: bearer, none, basic, apikey_header, apikey_query — bearer \| none \| basic \| apikey_header \| apikey_query (default `bearer`) | | `auth_user` | str | no | username for basic auth | | `auth_password` | str | no | password for basic auth | | `auth_token` | str | no | token for bearer auth (default `TOKEN123`) | | `auth_key_name` | str | no | API key header or query parameter name | | `auth_key_value` | str | no | API key value | | `output_style` | str | no | one of: multiline, oneline, windows, powershell — multiline \| oneline \| windows \| powershell (default `multiline`) | | `quote_style` | str | no | one of: single, double — single \| double (default `single`) | | `follow_redirects` | str | no | one of: yes, no — yes \| no (default `yes`) | | `insecure` | str | no | one of: no, yes — no \| yes (default `no`) | | `compressed` | str | no | one of: yes, no — yes \| no (default `yes`) | | `silent` | str | no | one of: no, yes — no \| yes (default `no`) | | `include_headers` | str | no | one of: no, yes — no \| yes (default `no`) | | `timeout` | int | None | no | --max-time in seconds | | `user_agent` | str | no | User-Agent header value | | `cookies` | str | no | cookies, one key=value per line | Example request body: ```json { "method": "POST", "url": "https://api.example.com/v1/users", "headers": "Accept: application/json", "body_type": "json", "body_content": "{\"name\": \"Ada\"}", "auth_type": "bearer", "auth_token": "TOKEN123" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "curl-command-builder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "command": "curl \\\n -X POST \\\n https://api.example.com/v1/users \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer TOKEN123' \\\n -d '{\"name\": \"Ada\"}' \\\n -L \\\n --compressed", "output_style": "multiline", "quote_style": "single", "method": "POST", "effective_url": "https://api.example.com/v1/users", "query_parameters": [], "headers": [ [ "Accept", "application/json" ], [ "Content-Type", "application/json" ], [ "Authorization", "Bearer TOKEN123" ] ], "body_type": "json", "has_body": true, "auth_type": "bearer", "arguments": [ "curl", "-X", "POST", "https://api.example.com/v1/users", "-H", "Accept: application/json", "-H", "Content-Type: application/json", "-H", "Authorization: Bearer TOKEN123", "-d", "{\"name\": \"Ada\"}", "-L", "--compressed" ], "argument_count": 13, "warnings": [], "command_length": 216 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-curl-command-builder.mdc copy prompt ```text --- description: MiniWebtool cURL Command Builder API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool cURL Command Builder API ## The API **cURL Command Builder** — Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/curl-command-builder/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/curl-command-builder/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `method` | str | no | one of: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS — GET \| POST \| PUT \| PATCH \| DELETE \| HEAD \| OPTIONS (default `POST`) | | `url` | str | no | request URL (default `https://api.example.com/v1/users`) | | `query_params` | str | no | query parameters, one key=value per line | | `headers` | str | no | headers, one 'Name: value' per line (default `Accept: application/json`) | | `body_type` | str | no | one of: json, none, form, multipart, raw, xml — json \| none \| form \| multipart \| raw \| xml (default `json`) | | `body_content` | str | no | request body (key=value lines for form/multipart) (default `{"name": "Ada", "role": "admin"}`) | | `auth_type` | str | no | one of: bearer, none, basic, apikey_header, apikey_query — bearer \| none \| basic \| apikey_header \| apikey_query (default `bearer`) | | `auth_user` | str | no | username for basic auth | | `auth_password` | str | no | password for basic auth | | `auth_token` | str | no | token for bearer auth (default `TOKEN123`) | | `auth_key_name` | str | no | API key header or query parameter name | | `auth_key_value` | str | no | API key value | | `output_style` | str | no | one of: multiline, oneline, windows, powershell — multiline \| oneline \| windows \| powershell (default `multiline`) | | `quote_style` | str | no | one of: single, double — single \| double (default `single`) | | `follow_redirects` | str | no | one of: yes, no — yes \| no (default `yes`) | | `insecure` | str | no | one of: no, yes — no \| yes (default `no`) | | `compressed` | str | no | one of: yes, no — yes \| no (default `yes`) | | `silent` | str | no | one of: no, yes — no \| yes (default `no`) | | `include_headers` | str | no | one of: no, yes — no \| yes (default `no`) | | `timeout` | int | None | no | --max-time in seconds | | `user_agent` | str | no | User-Agent header value | | `cookies` | str | no | cookies, one key=value per line | Example request body: ```json { "method": "POST", "url": "https://api.example.com/v1/users", "headers": "Accept: application/json", "body_type": "json", "body_content": "{\"name\": \"Ada\"}", "auth_type": "bearer", "auth_token": "TOKEN123" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "curl-command-builder", "tool_version": "2026-04-22", "credits_used": 1, "result": { "command": "curl \\\n -X POST \\\n https://api.example.com/v1/users \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer TOKEN123' \\\n -d '{\"name\": \"Ada\"}' \\\n -L \\\n --compressed", "output_style": "multiline", "quote_style": "single", "method": "POST", "effective_url": "https://api.example.com/v1/users", "query_parameters": [], "headers": [ [ "Accept", "application/json" ], [ "Content-Type", "application/json" ], [ "Authorization", "Bearer TOKEN123" ] ], "body_type": "json", "has_body": true, "auth_type": "bearer", "arguments": [ "curl", "-X", "POST", "https://api.example.com/v1/users", "-H", "Accept: application/json", "-H", "Content-Type: application/json", "-H", "Authorization: Bearer TOKEN123", "-d", "{\"name\": \"Ada\"}", "-L", "--compressed" ], "argument_count": 13, "warnings": [], "command_length": 216 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `curl-command-builder` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `curl-command-builder` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call curl-command-builder - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/curl-command-builder/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the cURL Command Builder API do? + Assemble a shell-safe curl command from method, URL, query parameters, headers, body, and auth, in multi-line, one-line, CMD, or PowerShell style. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to cURL Command Builder cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the cURL Command Builder API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the cURL Command Builder API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the cURL Command Builder API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `curl-command-builder` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`curl-command-builder`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"curl-command-builder"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL to JSON Converter Parse a curl command into structured JSON (method, URL parts, headers, cookies,… ](/tools/curl-to-json-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - HTTP Status Code Reference API # HTTP Status Code Reference API developer 1 credit / call v2026-04-22 Look up an HTTP status code or browse the registered codes by class with their defining RFCs. One POST adds HTTP Status Code Reference to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the HTTP Status Code Reference on miniwebtool.com →](https://miniwebtool.com/http-status-code-reference/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/run ``` ### Request body Field Type Req. `code` status code to look up, 0 to only browse `int` — `category` all | 1xx | 2xx | 3xx | 4xx | 5xx `str` — `search` optional name substring filter `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "http-status-code-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → code (int) status code to look up, 0 to only browse category (str) all 1xx 2xx 3xx 4xx 5xx all | 1xx | 2xx | 3xx | 4xx | 5xx search (str) optional name substring filter Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`http-status-code-reference`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"code":404,"category":"all","search":""}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/http-status-code-reference/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'code': 404, 'category': 'all', 'search': ''}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/http-status-code-reference/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"code":404,"category":"all","search":""}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'code' => 404, 'category' => 'all', 'search' => '' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/http-status-code-reference/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'code' => 404, 'category' => 'all', 'search' => '' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "code": 404, "category": "all", "search": "", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/http-status-code-reference/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/http-status-code-reference/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"code\":404,\"category\":\"all\",\"search\":\"\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`http-status-code-reference`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/http-status-code-reference/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/http-status-code-reference/prompt.md`](/tools/http-status-code-reference/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool HTTP Status Code Reference API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **HTTP Status Code Reference** — Look up an HTTP status code or browse the registered codes by class with their defining RFCs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `code` | int | no | status code to look up, 0 to only browse (default `404`) | | `category` | str | no | one of: all, 1xx, 2xx, 3xx, 4xx, 5xx — all \| 1xx \| 2xx \| 3xx \| 4xx \| 5xx (default `all`) | | `search` | str | no | optional name substring filter | Example request body: ```json { "code": 404, "category": "all", "search": "" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "http-status-code-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": { "lookup": { "code": 404, "name": "Not Found", "reference": "RFC 9110 §15.5.5", "class": "4xx", "class_name": "Client Error", "class_description": "The request contains bad syntax or cannot be fulfilled." }, "category": "all", "search": null, "match_count": 62, "codes": [ { "code": 100, "name": "Continue", "reference": "RFC 9110 §15.2.1", "class": "1xx", "class_name": "Informational" }, { "code": 101, "name": "Switching Protocols", "reference": "RFC 9110 §15.2.2", "class": "1xx", "class_name": "Informational" }, { "code": 102, "name": "Processing", "reference": "RFC 2518 (WebDAV)", "class": "1xx", "class_name": "Informational" }, { "code": 103, "name": "Early Hints", "reference": "RFC 8297", "class": "1xx", "class_name": "Informational" }, { "code": 200, "name": "OK", "reference": "RFC 9110 §15.3.1", "class": "2xx", "class_name": "Success" }, { "code": 201, "name": "Created", "reference": "RFC 9110 §15.3.2", "class": "2xx", "class_name": "Success" }, { "code": 202, "name": "Accepted", "reference": "RFC 9110 §15.3.3", "class": "2xx", "class_name": "Success" }, { "code": 203, "name": "Non-Authoritative Information", "reference": "RFC 9110 §15.3.4", "class": "2xx", "class_name": "Success" }, { "code": 204, "name": "No Content", "reference": "RFC 9110 §15.3.5", "class": "2xx", "class_name": "Success" }, { "code": 205, "name": "Reset Content", "reference": "RFC 9110 §15.3.6", "class": "2xx", "class_name": "Success" }, { "code": 206, "name": "Partial Content", "reference": "RFC 9110 §15.3.7", "class": "2xx", "class_name": "Success" }, { "code": 207, "name": "Multi-Status", "reference": "RFC 4918 (WebDAV)", "class": "2xx", "class_name": "Success" }, { "code": 208, "name": "Already Reported", "reference": "RFC 5842 (WebDAV)", "class": "2xx", "class_name": "Success" }, { "code": 226, "name": "IM Used", "reference": "RFC 3229", "class": "2xx", "class_name": "Success" }, { "code": 300, "name": "Multiple Choices", "reference": "RFC 9110 §15.4.1", "class": "3xx", "class_name": "Redirection" }, { "code": 301, "name": "Moved Permanently", "reference": "RFC 9110 §15.4.2", "class": "3xx", "class_name": "Redirection" }, { "code": 302, "name": "Found", "reference": "RFC 9110 §15.4.3", "class": "3xx", "class_name": "Redirection" }, { "code": 303, "name": "See Other", "reference": "RFC 9110 §15.4.4", "class": "3xx", "class_name": "Redirection" }, { "code": 304, "name": "Not Modified", "reference": "RFC 9110 §15.4.5", "class": "3xx", "class_name": "Redirection" }, { "code": 305, "name": "Use Proxy", "reference": "RFC 7231 (deprecated)", "class": "3xx", "class_name": "Redirection" }, { "code": 307, "name": "Temporary Redirect", "reference": "RFC 9110 §15.4.8", "class": "3xx", "class_name": "Redirection" }, { "code": 308, "name": "Permanent Redirect", "reference": "RFC 9110 §15.4.9", "class": "3xx", "class_name": "Redirection" }, { "code": 400, "name": "Bad Request", "reference": "RFC 9110 §15.5.1", "class": "4xx", "class_name": "Client Error" }, { "code": 401, "name": "Unauthorized", "reference": "RFC 9110 §15.5.2", "class": "4xx", "class_name": "Client Error" }, { "code": 402, "name": "Payment Required", "reference": "RFC 9110 §15.5.3", "class": "4xx", "class_name": "Client Error" }, { "code": 403, "name": "Forbidden", "reference": "RFC 9110 §15.5.4", "class": "4xx", "class_name": "Client Error" }, { "code": 404, "name": "Not Found", "reference": "RFC 9110 §15.5.5", "class": "4xx", "class_name": "Client Error" }, { "code": 405, "name": "Method Not Allowed", "reference": "RFC 9110 §15.5.6", "class": "4xx", "class_name": "Client Error" }, { "code": 406, "name": "Not Acceptable", "reference": "RFC 9110 §15.5.7", "class": "4xx", "class_name": "Client Error" }, { "code": 407, "name": "Proxy Authentication Required", "reference": "RFC 9110 §15.5.8", "class": "4xx", "class_name": "Client Error" }, { "code": 408, "name": "Request Timeout", "reference": "RFC 9110 §15.5.9", "class": "4xx", "class_name": "Client Error" }, { "code": 409, "name": "Conflict", "reference": "RFC 9110 §15.5.10", "class": "4xx", "class_name": "Client Error" }, { "code": 410, "name": "Gone", "reference": "RFC 9110 §15.5.11", "class": "4xx", "class_name": "Client Error" }, { "code": 411, "name": "Length Required", "reference": "RFC 9110 §15.5.12", "class": "4xx", "class_name": "Client Error" }, { "code": 412, "name": "Precondition Failed", "reference": "RFC 9110 §15.5.13", "class": "4xx", "class_name": "Client Error" }, { "code": 413, "name": "Content Too Large", "reference": "RFC 9110 §15.5.14", "class": "4xx", "class_name": "Client Error" }, { "code": 414, "name": "URI Too Long", "reference": "RFC 9110 §15.5.15", "class": "4xx", "class_name": "Client Error" }, { "code": 415, "name": "Unsupported Media Type", "reference": "RFC 9110 §15.5.16", "class": "4xx", "class_name": "Client Error" }, { "code": 416, "name": "Range Not Satisfiable", "reference": "RFC 9110 §15.5.17", "class": "4xx", "class_name": "Client Error" }, { "code": 417, "name": "Expectation Failed", "reference": "RFC 9110 §15.5.18", "class": "4xx", "class_name": "Client Error" }, { "code": 418, "name": "I'm a teapot", "reference": "RFC 2324", "class": "4xx", "class_name": "Client Error" }, { "code": 421, "name": "Misdirected Request", "reference": "RFC 9110 §15.5.20", "class": "4xx", "class_name": "Client Error" }, { "code": 422, "name": "Unprocessable Content", "reference": "RFC 9110 §15.5.21", "class": "4xx", "class_name": "Client Error" }, { "code": 423, "name": "Locked", "reference": "RFC 4918 (WebDAV)", "class": "4xx", "class_name": "Client Error" }, { "code": 424, "name": "Failed Dependency", "reference": "RFC 4918 (WebDAV)", "class": "4xx", "class_name": "Client Error" }, { "code": 425, "name": "Too Early", "reference": "RFC 8470", "class": "4xx", "class_name": "Client Error" }, { "code": 426, "name": "Upgrade Required", "reference": "RFC 9110 §15.5.22", "class": "4xx", "class_name": "Client Error" }, { "code": 428, "name": "Precondition Required", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 429, "name": "Too Many Requests", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 431, "name": "Request Header Fields Too Large", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 451, "name": "Unavailable For Legal Reasons", "reference": "RFC 7725", "class": "4xx", "class_name": "Client Error" }, { "code": 500, "name": "Internal Server Error", "reference": "RFC 9110 §15.6.1", "class": "5xx", "class_name": "Server Error" }, { "code": 501, "name": "Not Implemented", "reference": "RFC 9110 §15.6.2", "class": "5xx", "class_name": "Server Error" }, { "code": 502, "name": "Bad Gateway", "reference": "RFC 9110 §15.6.3", "class": "5xx", "class_name": "Server Error" }, { "code": 503, "name": "Service Unavailable", "reference": "RFC 9110 §15.6.4", "class": "5xx", "class_name": "Server Error" }, { "code": 504, "name": "Gateway Timeout", "reference": "RFC 9110 §15.6.5", "class": "5xx", "class_name": "Server Error" }, { "code": 505, "name": "HTTP Version Not Supported", "reference": "RFC 9110 §15.6.6", "class": "5xx", "class_name": "Server Error" }, { "code": 506, "name": "Variant Also Negotiates", "reference": "RFC 2295", "class": "5xx", "class_name": "Server Error" }, { "code": 507, "name": "Insufficient Storage", "reference": "RFC 4918 (WebDAV)", "class": "5xx", "class_name": "Server Error" }, { "code": 508, "name": "Loop Detected", "reference": "RFC 5842 (WebDAV)", "class": "5xx", "class_name": "Server Error" }, { "code": 510, "name": "Not Extended", "reference": "RFC 2774", "class": "5xx", "class_name": "Server Error" }, { "code": 511, "name": "Network Authentication Required", "reference": "RFC 6585", "class": "5xx", "class_name": "Server Error" } ], "classes": [ { "class": "1xx", "name": "Informational", "description": "The request was received and the process is continuing." }, { "class": "2xx", "name": "Success", "description": "The request was received, understood, and accepted." }, { "class": "3xx", "name": "Redirection", "description": "Further action is needed to complete the request." }, { "class": "4xx", "name": "Client Error", "description": "The request contains bad syntax or cannot be fulfilled." }, { "class": "5xx", "name": "Server Error", "description": "The server failed to fulfil an apparently valid request." } ], "total_registered": 62 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool HTTP Status Code Reference API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **HTTP Status Code Reference** — Look up an HTTP status code or browse the registered codes by class with their defining RFCs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `code` | int | no | status code to look up, 0 to only browse (default `404`) | | `category` | str | no | one of: all, 1xx, 2xx, 3xx, 4xx, 5xx — all \| 1xx \| 2xx \| 3xx \| 4xx \| 5xx (default `all`) | | `search` | str | no | optional name substring filter | Example request body: ```json { "code": 404, "category": "all", "search": "" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "http-status-code-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": { "lookup": { "code": 404, "name": "Not Found", "reference": "RFC 9110 §15.5.5", "class": "4xx", "class_name": "Client Error", "class_description": "The request contains bad syntax or cannot be fulfilled." }, "category": "all", "search": null, "match_count": 62, "codes": [ { "code": 100, "name": "Continue", "reference": "RFC 9110 §15.2.1", "class": "1xx", "class_name": "Informational" }, { "code": 101, "name": "Switching Protocols", "reference": "RFC 9110 §15.2.2", "class": "1xx", "class_name": "Informational" }, { "code": 102, "name": "Processing", "reference": "RFC 2518 (WebDAV)", "class": "1xx", "class_name": "Informational" }, { "code": 103, "name": "Early Hints", "reference": "RFC 8297", "class": "1xx", "class_name": "Informational" }, { "code": 200, "name": "OK", "reference": "RFC 9110 §15.3.1", "class": "2xx", "class_name": "Success" }, { "code": 201, "name": "Created", "reference": "RFC 9110 §15.3.2", "class": "2xx", "class_name": "Success" }, { "code": 202, "name": "Accepted", "reference": "RFC 9110 §15.3.3", "class": "2xx", "class_name": "Success" }, { "code": 203, "name": "Non-Authoritative Information", "reference": "RFC 9110 §15.3.4", "class": "2xx", "class_name": "Success" }, { "code": 204, "name": "No Content", "reference": "RFC 9110 §15.3.5", "class": "2xx", "class_name": "Success" }, { "code": 205, "name": "Reset Content", "reference": "RFC 9110 §15.3.6", "class": "2xx", "class_name": "Success" }, { "code": 206, "name": "Partial Content", "reference": "RFC 9110 §15.3.7", "class": "2xx", "class_name": "Success" }, { "code": 207, "name": "Multi-Status", "reference": "RFC 4918 (WebDAV)", "class": "2xx", "class_name": "Success" }, { "code": 208, "name": "Already Reported", "reference": "RFC 5842 (WebDAV)", "class": "2xx", "class_name": "Success" }, { "code": 226, "name": "IM Used", "reference": "RFC 3229", "class": "2xx", "class_name": "Success" }, { "code": 300, "name": "Multiple Choices", "reference": "RFC 9110 §15.4.1", "class": "3xx", "class_name": "Redirection" }, { "code": 301, "name": "Moved Permanently", "reference": "RFC 9110 §15.4.2", "class": "3xx", "class_name": "Redirection" }, { "code": 302, "name": "Found", "reference": "RFC 9110 §15.4.3", "class": "3xx", "class_name": "Redirection" }, { "code": 303, "name": "See Other", "reference": "RFC 9110 §15.4.4", "class": "3xx", "class_name": "Redirection" }, { "code": 304, "name": "Not Modified", "reference": "RFC 9110 §15.4.5", "class": "3xx", "class_name": "Redirection" }, { "code": 305, "name": "Use Proxy", "reference": "RFC 7231 (deprecated)", "class": "3xx", "class_name": "Redirection" }, { "code": 307, "name": "Temporary Redirect", "reference": "RFC 9110 §15.4.8", "class": "3xx", "class_name": "Redirection" }, { "code": 308, "name": "Permanent Redirect", "reference": "RFC 9110 §15.4.9", "class": "3xx", "class_name": "Redirection" }, { "code": 400, "name": "Bad Request", "reference": "RFC 9110 §15.5.1", "class": "4xx", "class_name": "Client Error" }, { "code": 401, "name": "Unauthorized", "reference": "RFC 9110 §15.5.2", "class": "4xx", "class_name": "Client Error" }, { "code": 402, "name": "Payment Required", "reference": "RFC 9110 §15.5.3", "class": "4xx", "class_name": "Client Error" }, { "code": 403, "name": "Forbidden", "reference": "RFC 9110 §15.5.4", "class": "4xx", "class_name": "Client Error" }, { "code": 404, "name": "Not Found", "reference": "RFC 9110 §15.5.5", "class": "4xx", "class_name": "Client Error" }, { "code": 405, "name": "Method Not Allowed", "reference": "RFC 9110 §15.5.6", "class": "4xx", "class_name": "Client Error" }, { "code": 406, "name": "Not Acceptable", "reference": "RFC 9110 §15.5.7", "class": "4xx", "class_name": "Client Error" }, { "code": 407, "name": "Proxy Authentication Required", "reference": "RFC 9110 §15.5.8", "class": "4xx", "class_name": "Client Error" }, { "code": 408, "name": "Request Timeout", "reference": "RFC 9110 §15.5.9", "class": "4xx", "class_name": "Client Error" }, { "code": 409, "name": "Conflict", "reference": "RFC 9110 §15.5.10", "class": "4xx", "class_name": "Client Error" }, { "code": 410, "name": "Gone", "reference": "RFC 9110 §15.5.11", "class": "4xx", "class_name": "Client Error" }, { "code": 411, "name": "Length Required", "reference": "RFC 9110 §15.5.12", "class": "4xx", "class_name": "Client Error" }, { "code": 412, "name": "Precondition Failed", "reference": "RFC 9110 §15.5.13", "class": "4xx", "class_name": "Client Error" }, { "code": 413, "name": "Content Too Large", "reference": "RFC 9110 §15.5.14", "class": "4xx", "class_name": "Client Error" }, { "code": 414, "name": "URI Too Long", "reference": "RFC 9110 §15.5.15", "class": "4xx", "class_name": "Client Error" }, { "code": 415, "name": "Unsupported Media Type", "reference": "RFC 9110 §15.5.16", "class": "4xx", "class_name": "Client Error" }, { "code": 416, "name": "Range Not Satisfiable", "reference": "RFC 9110 §15.5.17", "class": "4xx", "class_name": "Client Error" }, { "code": 417, "name": "Expectation Failed", "reference": "RFC 9110 §15.5.18", "class": "4xx", "class_name": "Client Error" }, { "code": 418, "name": "I'm a teapot", "reference": "RFC 2324", "class": "4xx", "class_name": "Client Error" }, { "code": 421, "name": "Misdirected Request", "reference": "RFC 9110 §15.5.20", "class": "4xx", "class_name": "Client Error" }, { "code": 422, "name": "Unprocessable Content", "reference": "RFC 9110 §15.5.21", "class": "4xx", "class_name": "Client Error" }, { "code": 423, "name": "Locked", "reference": "RFC 4918 (WebDAV)", "class": "4xx", "class_name": "Client Error" }, { "code": 424, "name": "Failed Dependency", "reference": "RFC 4918 (WebDAV)", "class": "4xx", "class_name": "Client Error" }, { "code": 425, "name": "Too Early", "reference": "RFC 8470", "class": "4xx", "class_name": "Client Error" }, { "code": 426, "name": "Upgrade Required", "reference": "RFC 9110 §15.5.22", "class": "4xx", "class_name": "Client Error" }, { "code": 428, "name": "Precondition Required", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 429, "name": "Too Many Requests", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 431, "name": "Request Header Fields Too Large", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 451, "name": "Unavailable For Legal Reasons", "reference": "RFC 7725", "class": "4xx", "class_name": "Client Error" }, { "code": 500, "name": "Internal Server Error", "reference": "RFC 9110 §15.6.1", "class": "5xx", "class_name": "Server Error" }, { "code": 501, "name": "Not Implemented", "reference": "RFC 9110 §15.6.2", "class": "5xx", "class_name": "Server Error" }, { "code": 502, "name": "Bad Gateway", "reference": "RFC 9110 §15.6.3", "class": "5xx", "class_name": "Server Error" }, { "code": 503, "name": "Service Unavailable", "reference": "RFC 9110 §15.6.4", "class": "5xx", "class_name": "Server Error" }, { "code": 504, "name": "Gateway Timeout", "reference": "RFC 9110 §15.6.5", "class": "5xx", "class_name": "Server Error" }, { "code": 505, "name": "HTTP Version Not Supported", "reference": "RFC 9110 §15.6.6", "class": "5xx", "class_name": "Server Error" }, { "code": 506, "name": "Variant Also Negotiates", "reference": "RFC 2295", "class": "5xx", "class_name": "Server Error" }, { "code": 507, "name": "Insufficient Storage", "reference": "RFC 4918 (WebDAV)", "class": "5xx", "class_name": "Server Error" }, { "code": 508, "name": "Loop Detected", "reference": "RFC 5842 (WebDAV)", "class": "5xx", "class_name": "Server Error" }, { "code": 510, "name": "Not Extended", "reference": "RFC 2774", "class": "5xx", "class_name": "Server Error" }, { "code": 511, "name": "Network Authentication Required", "reference": "RFC 6585", "class": "5xx", "class_name": "Server Error" } ], "classes": [ { "class": "1xx", "name": "Informational", "description": "The request was received and the process is continuing." }, { "class": "2xx", "name": "Success", "description": "The request was received, understood, and accepted." }, { "class": "3xx", "name": "Redirection", "description": "Further action is needed to complete the request." }, { "class": "4xx", "name": "Client Error", "description": "The request contains bad syntax or cannot be fulfilled." }, { "class": "5xx", "name": "Server Error", "description": "The server failed to fulfil an apparently valid request." } ], "total_registered": 62 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-http-status-code-reference.mdc copy prompt ```text --- description: MiniWebtool HTTP Status Code Reference API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool HTTP Status Code Reference API ## The API **HTTP Status Code Reference** — Look up an HTTP status code or browse the registered codes by class with their defining RFCs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/http-status-code-reference/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `code` | int | no | status code to look up, 0 to only browse (default `404`) | | `category` | str | no | one of: all, 1xx, 2xx, 3xx, 4xx, 5xx — all \| 1xx \| 2xx \| 3xx \| 4xx \| 5xx (default `all`) | | `search` | str | no | optional name substring filter | Example request body: ```json { "code": 404, "category": "all", "search": "" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "http-status-code-reference", "tool_version": "2026-04-22", "credits_used": 1, "result": { "lookup": { "code": 404, "name": "Not Found", "reference": "RFC 9110 §15.5.5", "class": "4xx", "class_name": "Client Error", "class_description": "The request contains bad syntax or cannot be fulfilled." }, "category": "all", "search": null, "match_count": 62, "codes": [ { "code": 100, "name": "Continue", "reference": "RFC 9110 §15.2.1", "class": "1xx", "class_name": "Informational" }, { "code": 101, "name": "Switching Protocols", "reference": "RFC 9110 §15.2.2", "class": "1xx", "class_name": "Informational" }, { "code": 102, "name": "Processing", "reference": "RFC 2518 (WebDAV)", "class": "1xx", "class_name": "Informational" }, { "code": 103, "name": "Early Hints", "reference": "RFC 8297", "class": "1xx", "class_name": "Informational" }, { "code": 200, "name": "OK", "reference": "RFC 9110 §15.3.1", "class": "2xx", "class_name": "Success" }, { "code": 201, "name": "Created", "reference": "RFC 9110 §15.3.2", "class": "2xx", "class_name": "Success" }, { "code": 202, "name": "Accepted", "reference": "RFC 9110 §15.3.3", "class": "2xx", "class_name": "Success" }, { "code": 203, "name": "Non-Authoritative Information", "reference": "RFC 9110 §15.3.4", "class": "2xx", "class_name": "Success" }, { "code": 204, "name": "No Content", "reference": "RFC 9110 §15.3.5", "class": "2xx", "class_name": "Success" }, { "code": 205, "name": "Reset Content", "reference": "RFC 9110 §15.3.6", "class": "2xx", "class_name": "Success" }, { "code": 206, "name": "Partial Content", "reference": "RFC 9110 §15.3.7", "class": "2xx", "class_name": "Success" }, { "code": 207, "name": "Multi-Status", "reference": "RFC 4918 (WebDAV)", "class": "2xx", "class_name": "Success" }, { "code": 208, "name": "Already Reported", "reference": "RFC 5842 (WebDAV)", "class": "2xx", "class_name": "Success" }, { "code": 226, "name": "IM Used", "reference": "RFC 3229", "class": "2xx", "class_name": "Success" }, { "code": 300, "name": "Multiple Choices", "reference": "RFC 9110 §15.4.1", "class": "3xx", "class_name": "Redirection" }, { "code": 301, "name": "Moved Permanently", "reference": "RFC 9110 §15.4.2", "class": "3xx", "class_name": "Redirection" }, { "code": 302, "name": "Found", "reference": "RFC 9110 §15.4.3", "class": "3xx", "class_name": "Redirection" }, { "code": 303, "name": "See Other", "reference": "RFC 9110 §15.4.4", "class": "3xx", "class_name": "Redirection" }, { "code": 304, "name": "Not Modified", "reference": "RFC 9110 §15.4.5", "class": "3xx", "class_name": "Redirection" }, { "code": 305, "name": "Use Proxy", "reference": "RFC 7231 (deprecated)", "class": "3xx", "class_name": "Redirection" }, { "code": 307, "name": "Temporary Redirect", "reference": "RFC 9110 §15.4.8", "class": "3xx", "class_name": "Redirection" }, { "code": 308, "name": "Permanent Redirect", "reference": "RFC 9110 §15.4.9", "class": "3xx", "class_name": "Redirection" }, { "code": 400, "name": "Bad Request", "reference": "RFC 9110 §15.5.1", "class": "4xx", "class_name": "Client Error" }, { "code": 401, "name": "Unauthorized", "reference": "RFC 9110 §15.5.2", "class": "4xx", "class_name": "Client Error" }, { "code": 402, "name": "Payment Required", "reference": "RFC 9110 §15.5.3", "class": "4xx", "class_name": "Client Error" }, { "code": 403, "name": "Forbidden", "reference": "RFC 9110 §15.5.4", "class": "4xx", "class_name": "Client Error" }, { "code": 404, "name": "Not Found", "reference": "RFC 9110 §15.5.5", "class": "4xx", "class_name": "Client Error" }, { "code": 405, "name": "Method Not Allowed", "reference": "RFC 9110 §15.5.6", "class": "4xx", "class_name": "Client Error" }, { "code": 406, "name": "Not Acceptable", "reference": "RFC 9110 §15.5.7", "class": "4xx", "class_name": "Client Error" }, { "code": 407, "name": "Proxy Authentication Required", "reference": "RFC 9110 §15.5.8", "class": "4xx", "class_name": "Client Error" }, { "code": 408, "name": "Request Timeout", "reference": "RFC 9110 §15.5.9", "class": "4xx", "class_name": "Client Error" }, { "code": 409, "name": "Conflict", "reference": "RFC 9110 §15.5.10", "class": "4xx", "class_name": "Client Error" }, { "code": 410, "name": "Gone", "reference": "RFC 9110 §15.5.11", "class": "4xx", "class_name": "Client Error" }, { "code": 411, "name": "Length Required", "reference": "RFC 9110 §15.5.12", "class": "4xx", "class_name": "Client Error" }, { "code": 412, "name": "Precondition Failed", "reference": "RFC 9110 §15.5.13", "class": "4xx", "class_name": "Client Error" }, { "code": 413, "name": "Content Too Large", "reference": "RFC 9110 §15.5.14", "class": "4xx", "class_name": "Client Error" }, { "code": 414, "name": "URI Too Long", "reference": "RFC 9110 §15.5.15", "class": "4xx", "class_name": "Client Error" }, { "code": 415, "name": "Unsupported Media Type", "reference": "RFC 9110 §15.5.16", "class": "4xx", "class_name": "Client Error" }, { "code": 416, "name": "Range Not Satisfiable", "reference": "RFC 9110 §15.5.17", "class": "4xx", "class_name": "Client Error" }, { "code": 417, "name": "Expectation Failed", "reference": "RFC 9110 §15.5.18", "class": "4xx", "class_name": "Client Error" }, { "code": 418, "name": "I'm a teapot", "reference": "RFC 2324", "class": "4xx", "class_name": "Client Error" }, { "code": 421, "name": "Misdirected Request", "reference": "RFC 9110 §15.5.20", "class": "4xx", "class_name": "Client Error" }, { "code": 422, "name": "Unprocessable Content", "reference": "RFC 9110 §15.5.21", "class": "4xx", "class_name": "Client Error" }, { "code": 423, "name": "Locked", "reference": "RFC 4918 (WebDAV)", "class": "4xx", "class_name": "Client Error" }, { "code": 424, "name": "Failed Dependency", "reference": "RFC 4918 (WebDAV)", "class": "4xx", "class_name": "Client Error" }, { "code": 425, "name": "Too Early", "reference": "RFC 8470", "class": "4xx", "class_name": "Client Error" }, { "code": 426, "name": "Upgrade Required", "reference": "RFC 9110 §15.5.22", "class": "4xx", "class_name": "Client Error" }, { "code": 428, "name": "Precondition Required", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 429, "name": "Too Many Requests", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 431, "name": "Request Header Fields Too Large", "reference": "RFC 6585", "class": "4xx", "class_name": "Client Error" }, { "code": 451, "name": "Unavailable For Legal Reasons", "reference": "RFC 7725", "class": "4xx", "class_name": "Client Error" }, { "code": 500, "name": "Internal Server Error", "reference": "RFC 9110 §15.6.1", "class": "5xx", "class_name": "Server Error" }, { "code": 501, "name": "Not Implemented", "reference": "RFC 9110 §15.6.2", "class": "5xx", "class_name": "Server Error" }, { "code": 502, "name": "Bad Gateway", "reference": "RFC 9110 §15.6.3", "class": "5xx", "class_name": "Server Error" }, { "code": 503, "name": "Service Unavailable", "reference": "RFC 9110 §15.6.4", "class": "5xx", "class_name": "Server Error" }, { "code": 504, "name": "Gateway Timeout", "reference": "RFC 9110 §15.6.5", "class": "5xx", "class_name": "Server Error" }, { "code": 505, "name": "HTTP Version Not Supported", "reference": "RFC 9110 §15.6.6", "class": "5xx", "class_name": "Server Error" }, { "code": 506, "name": "Variant Also Negotiates", "reference": "RFC 2295", "class": "5xx", "class_name": "Server Error" }, { "code": 507, "name": "Insufficient Storage", "reference": "RFC 4918 (WebDAV)", "class": "5xx", "class_name": "Server Error" }, { "code": 508, "name": "Loop Detected", "reference": "RFC 5842 (WebDAV)", "class": "5xx", "class_name": "Server Error" }, { "code": 510, "name": "Not Extended", "reference": "RFC 2774", "class": "5xx", "class_name": "Server Error" }, { "code": 511, "name": "Network Authentication Required", "reference": "RFC 6585", "class": "5xx", "class_name": "Server Error" } ], "classes": [ { "class": "1xx", "name": "Informational", "description": "The request was received and the process is continuing." }, { "class": "2xx", "name": "Success", "description": "The request was received, understood, and accepted." }, { "class": "3xx", "name": "Redirection", "description": "Further action is needed to complete the request." }, { "class": "4xx", "name": "Client Error", "description": "The request contains bad syntax or cannot be fulfilled." }, { "class": "5xx", "name": "Server Error", "description": "The server failed to fulfil an apparently valid request." } ], "total_registered": 62 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `http-status-code-reference` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `http-status-code-reference` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call http-status-code-reference - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/http-status-code-reference/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the HTTP Status Code Reference API do? + Look up an HTTP status code or browse the registered codes by class with their defining RFCs. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to HTTP Status Code Reference cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the HTTP Status Code Reference API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the HTTP Status Code Reference API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the HTTP Status Code Reference API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `http-status-code-reference` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`http-status-code-reference`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"http-status-code-reference"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - Unix Permission Calculator API # Unix Permission Calculator API developer 1 credit / call v2026-04-22 Convert Unix permission digits into symbolic permissions and chmod notation. One POST adds Unix Permission Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Unix Permission Calculator on miniwebtool.com →](https://miniwebtool.com/unix-permission-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run ``` ### Request body Field Type Req. `owner` `int` — `group` `int` — `others` `int` — `permission_format` octal | symbolic `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "unix-permission-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → owner (int) group (int) others (int) permission_format (str) octal symbolic octal | symbolic Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`unix-permission-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"owner":7,"group":5,"others":4,"permission_format":"octal"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'owner': 7, 'group': 5, 'others': 4, 'permission_format': 'octal'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"owner":7,"group":5,"others":4,"permission_format":"octal"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'owner' => 7, 'group' => 5, 'others' => 4, 'permission_format' => 'octal' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'owner' => 7, 'group' => 5, 'others' => 4, 'permission_format' => 'octal' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "owner": 7, "group": 5, "others": 4, "permission_format": "octal", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"owner\":7,\"group\":5,\"others\":4,\"permission_format\":\"octal\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`unix-permission-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/unix-permission-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/unix-permission-calculator/prompt.md`](/tools/unix-permission-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Unix Permission Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Unix Permission Calculator** — Convert Unix permission digits into symbolic permissions and chmod notation. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `owner` | int | no | (default `7`) | | `group` | int | no | (default `5`) | | `others` | int | no | (default `5`) | | `permission_format` | str | no | one of: octal, symbolic — octal \| symbolic (default `octal`) | Example request body: ```json { "owner": 7, "group": 5, "others": 4, "permission_format": "octal" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "unix-permission-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "permission_format": "octal", "octal": "754", "symbolic": "rwxr-xr--", "chmod": "chmod 754 file", "detail": { "owner": { "digit": 7, "read": true, "write": true, "execute": true, "symbolic": "rwx" }, "group": { "digit": 5, "read": true, "write": false, "execute": true, "symbolic": "r-x" }, "others": { "digit": 4, "read": true, "write": false, "execute": false, "symbolic": "r--" } } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Unix Permission Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Unix Permission Calculator** — Convert Unix permission digits into symbolic permissions and chmod notation. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `owner` | int | no | (default `7`) | | `group` | int | no | (default `5`) | | `others` | int | no | (default `5`) | | `permission_format` | str | no | one of: octal, symbolic — octal \| symbolic (default `octal`) | Example request body: ```json { "owner": 7, "group": 5, "others": 4, "permission_format": "octal" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "unix-permission-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "permission_format": "octal", "octal": "754", "symbolic": "rwxr-xr--", "chmod": "chmod 754 file", "detail": { "owner": { "digit": 7, "read": true, "write": true, "execute": true, "symbolic": "rwx" }, "group": { "digit": 5, "read": true, "write": false, "execute": true, "symbolic": "r-x" }, "others": { "digit": 4, "read": true, "write": false, "execute": false, "symbolic": "r--" } } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-unix-permission-calculator.mdc copy prompt ```text --- description: MiniWebtool Unix Permission Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Unix Permission Calculator API ## The API **Unix Permission Calculator** — Convert Unix permission digits into symbolic permissions and chmod notation. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/unix-permission-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `owner` | int | no | (default `7`) | | `group` | int | no | (default `5`) | | `others` | int | no | (default `5`) | | `permission_format` | str | no | one of: octal, symbolic — octal \| symbolic (default `octal`) | Example request body: ```json { "owner": 7, "group": 5, "others": 4, "permission_format": "octal" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "unix-permission-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "permission_format": "octal", "octal": "754", "symbolic": "rwxr-xr--", "chmod": "chmod 754 file", "detail": { "owner": { "digit": 7, "read": true, "write": true, "execute": true, "symbolic": "rwx" }, "group": { "digit": 5, "read": true, "write": false, "execute": true, "symbolic": "r-x" }, "others": { "digit": 4, "read": true, "write": false, "execute": false, "symbolic": "r--" } } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `unix-permission-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `unix-permission-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call unix-permission-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/unix-permission-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Unix Permission Calculator API do? + Convert Unix permission digits into symbolic permissions and chmod notation. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Unix Permission Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Unix Permission Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Unix Permission Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Unix Permission Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `unix-permission-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`unix-permission-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"unix-permission-calculator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - Logic Gate Simulator API # Logic Gate Simulator API developer 1 credit / call v2026-04-22 Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. One POST adds Logic Gate Simulator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Logic Gate Simulator on miniwebtool.com →](https://miniwebtool.com/logic-gate-simulator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run ``` ### Request body Field Type Req. `expression` `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "logic-gate-simulator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → expression (str) (A AND B) OR NOT C Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`logic-gate-simulator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"expression":"(A AND B) OR NOT C"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'expression': '(A AND B) OR NOT C'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"expression":"(A AND B) OR NOT C"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'expression' => '(A AND B) OR NOT C' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'expression' => '(A AND B) OR NOT C' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "expression": "(A AND B) OR NOT C", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"expression\":\"(A AND B) OR NOT C\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`logic-gate-simulator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/logic-gate-simulator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/logic-gate-simulator/prompt.md`](/tools/logic-gate-simulator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Logic Gate Simulator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Logic Gate Simulator** — Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `expression` | str | no | (default `(A AND B) OR NOT C`) | Example request body: ```json { "expression": "(A AND B) OR NOT C" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "logic-gate-simulator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "expression": "(A AND B) OR NOT C", "variables": [ "A", "B", "C" ], "truth_table": [ { "A": 0, "B": 0, "C": 0, "output": 1 }, { "A": 0, "B": 0, "C": 1, "output": 0 }, { "A": 0, "B": 1, "C": 0, "output": 1 }, { "A": 0, "B": 1, "C": 1, "output": 0 }, { "A": 1, "B": 0, "C": 0, "output": 1 }, { "A": 1, "B": 0, "C": 1, "output": 0 }, { "A": 1, "B": 1, "C": 0, "output": 1 }, { "A": 1, "B": 1, "C": 1, "output": 1 } ], "minterms": [ 0, 2, 4, 6, 7 ], "maxterms": [ 1, 3, 5 ], "gate_count": 3, "gate_types": { "AND": 1, "NOT": 1, "OR": 1 }, "classification": "contingent", "chart_data": { "output_distribution": [ { "label": "True", "value": 5 }, { "label": "False", "value": 3 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Logic Gate Simulator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Logic Gate Simulator** — Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `expression` | str | no | (default `(A AND B) OR NOT C`) | Example request body: ```json { "expression": "(A AND B) OR NOT C" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "logic-gate-simulator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "expression": "(A AND B) OR NOT C", "variables": [ "A", "B", "C" ], "truth_table": [ { "A": 0, "B": 0, "C": 0, "output": 1 }, { "A": 0, "B": 0, "C": 1, "output": 0 }, { "A": 0, "B": 1, "C": 0, "output": 1 }, { "A": 0, "B": 1, "C": 1, "output": 0 }, { "A": 1, "B": 0, "C": 0, "output": 1 }, { "A": 1, "B": 0, "C": 1, "output": 0 }, { "A": 1, "B": 1, "C": 0, "output": 1 }, { "A": 1, "B": 1, "C": 1, "output": 1 } ], "minterms": [ 0, 2, 4, 6, 7 ], "maxterms": [ 1, 3, 5 ], "gate_count": 3, "gate_types": { "AND": 1, "NOT": 1, "OR": 1 }, "classification": "contingent", "chart_data": { "output_distribution": [ { "label": "True", "value": 5 }, { "label": "False", "value": 3 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-logic-gate-simulator.mdc copy prompt ```text --- description: MiniWebtool Logic Gate Simulator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Logic Gate Simulator API ## The API **Logic Gate Simulator** — Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/logic-gate-simulator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `expression` | str | no | (default `(A AND B) OR NOT C`) | Example request body: ```json { "expression": "(A AND B) OR NOT C" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "logic-gate-simulator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "expression": "(A AND B) OR NOT C", "variables": [ "A", "B", "C" ], "truth_table": [ { "A": 0, "B": 0, "C": 0, "output": 1 }, { "A": 0, "B": 0, "C": 1, "output": 0 }, { "A": 0, "B": 1, "C": 0, "output": 1 }, { "A": 0, "B": 1, "C": 1, "output": 0 }, { "A": 1, "B": 0, "C": 0, "output": 1 }, { "A": 1, "B": 0, "C": 1, "output": 0 }, { "A": 1, "B": 1, "C": 0, "output": 1 }, { "A": 1, "B": 1, "C": 1, "output": 1 } ], "minterms": [ 0, 2, 4, 6, 7 ], "maxterms": [ 1, 3, 5 ], "gate_count": 3, "gate_types": { "AND": 1, "NOT": 1, "OR": 1 }, "classification": "contingent", "chart_data": { "output_distribution": [ { "label": "True", "value": 5 }, { "label": "False", "value": 3 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `logic-gate-simulator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `logic-gate-simulator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call logic-gate-simulator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/logic-gate-simulator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Logic Gate Simulator API do? + Evaluate Boolean gate expressions and return a truth table, minterms, classification, and gate counts. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Logic Gate Simulator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Logic Gate Simulator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Logic Gate Simulator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Logic Gate Simulator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `logic-gate-simulator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`logic-gate-simulator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"logic-gate-simulator"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [developer](/tools/#developer) - / - Text to SQL List Converter API # Text to SQL List Converter API developer 1 credit / call v2026-04-22 Convert lines of text into quoted SQL IN-list or tuple syntax. One POST adds Text to SQL List Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Text to SQL List Converter on miniwebtool.com →](https://miniwebtool.com/text-to-sql-list-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run ``` ### Request body Field Type Req. `text` `str` ✓ `quote_type` single | double `str` — `output_format` in_clause | tuple | csv `str` — `trim_items` `bool` — `remove_empty` `bool` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "text-to-sql-list-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → text (str) * alpha beta gamma quote_type (str) single double single | double output_format (str) in_clause tuple csv in_clause | tuple | csv trim_items (bool) false true remove_empty (bool) false true Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`text-to-sql-list-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"text":"alpha\nbeta\ngamma","quote_type":"single","output_format":"in_clause","trim_items":true,"remove_empty":true}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'text': 'alpha\nbeta\ngamma', 'quote_type': 'single', 'output_format': 'in_clause', 'trim_items': True, 'remove_empty': True}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"text":"alpha\nbeta\ngamma","quote_type":"single","output_format":"in_clause","trim_items":true,"remove_empty":true}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'text' => 'alpha beta gamma', 'quote_type' => 'single', 'output_format' => 'in_clause', 'trim_items' => true, 'remove_empty' => true ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'text' => 'alpha beta gamma', 'quote_type' => 'single', 'output_format' => 'in_clause', 'trim_items' => true, 'remove_empty' => true }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "text": "alpha beta gamma", "quote_type": "single", "output_format": "in_clause", "trim_items": true, "remove_empty": true, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"text\":\"alpha\\nbeta\\ngamma\",\"quote_type\":\"single\",\"output_format\":\"in_clause\",\"trim_items\":true,\"remove_empty\":true}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`text-to-sql-list-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/text-to-sql-list-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/text-to-sql-list-converter/prompt.md`](/tools/text-to-sql-list-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Text to SQL List Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Text to SQL List Converter** — Convert lines of text into quoted SQL IN-list or tuple syntax. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `quote_type` | str | no | one of: single, double — single \| double (default `single`) | | `output_format` | str | no | one of: in_clause, tuple, csv — in_clause \| tuple \| csv (default `in_clause`) | | `trim_items` | bool | no | (default `True`) | | `remove_empty` | bool | no | (default `True`) | Example request body: ```json { "text": "alpha\nbeta\ngamma", "quote_type": "single", "output_format": "in_clause", "trim_items": true, "remove_empty": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "text-to-sql-list-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "IN ('alpha', 'beta', 'gamma')", "items": [ "alpha", "beta", "gamma" ], "item_count": 3, "quote_type": "single", "output_format": "in_clause" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Text to SQL List Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Text to SQL List Converter** — Convert lines of text into quoted SQL IN-list or tuple syntax. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `quote_type` | str | no | one of: single, double — single \| double (default `single`) | | `output_format` | str | no | one of: in_clause, tuple, csv — in_clause \| tuple \| csv (default `in_clause`) | | `trim_items` | bool | no | (default `True`) | | `remove_empty` | bool | no | (default `True`) | Example request body: ```json { "text": "alpha\nbeta\ngamma", "quote_type": "single", "output_format": "in_clause", "trim_items": true, "remove_empty": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "text-to-sql-list-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "IN ('alpha', 'beta', 'gamma')", "items": [ "alpha", "beta", "gamma" ], "item_count": 3, "quote_type": "single", "output_format": "in_clause" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-text-to-sql-list-converter.mdc copy prompt ```text --- description: MiniWebtool Text to SQL List Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Text to SQL List Converter API ## The API **Text to SQL List Converter** — Convert lines of text into quoted SQL IN-list or tuple syntax. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `text` | str | yes | — | | `quote_type` | str | no | one of: single, double — single \| double (default `single`) | | `output_format` | str | no | one of: in_clause, tuple, csv — in_clause \| tuple \| csv (default `in_clause`) | | `trim_items` | bool | no | (default `True`) | | `remove_empty` | bool | no | (default `True`) | Example request body: ```json { "text": "alpha\nbeta\ngamma", "quote_type": "single", "output_format": "in_clause", "trim_items": true, "remove_empty": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "text-to-sql-list-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "result": "IN ('alpha', 'beta', 'gamma')", "items": [ "alpha", "beta", "gamma" ], "item_count": 3, "quote_type": "single", "output_format": "in_clause" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `text-to-sql-list-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `text-to-sql-list-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call text-to-sql-list-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`text`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/text-to-sql-list-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Text to SQL List Converter API do? + Convert lines of text into quoted SQL IN-list or tuple syntax. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Text to SQL List Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Text to SQL List Converter API require? + Required fields: text. Full schema at /v1/openapi.json. Is the Text to SQL List Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Text to SQL List Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `text-to-sql-list-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`text-to-sql-list-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"text-to-sql-list-converter"}}}' \ | jq.result.structuredContent ``` see-also related developer tools [ JSON Formatter/Validator Validate, beautify, minify, or repair JSON with precise error positions, size s… ](/tools/json-formatter-validator/) [ JSON Schema Generator Infer a JSON Schema (2020-12, 2019-09, or draft-07) from a sample document, wit… ](/tools/json-schema-generator/) [ UUID Validator/Decoder Validate and decode UUIDs: version, variant, field breakdown, v1/v7 timestamps … ](/tools/uuid-validator-decoder/) [ cURL Command Builder Assemble a shell-safe curl command from method, URL, query parameters, headers,… ](/tools/curl-command-builder/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [education](/tools/#education) - / - Attendance Percentage Calculator API # Attendance Percentage Calculator API education 1 credit / call v2026-04-22 Calculate attendance percentage, classes needed for a target, and safe skips. One POST adds Attendance Percentage Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Attendance Percentage Calculator on miniwebtool.com →](https://miniwebtool.com/attendance-percentage-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run ``` ### Request body Field Type Req. `attended` `int` — `total_classes` `int` — `target_percent` `float` — `term_total` `int | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "attendance-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → attended (int) total_classes (int) target_percent (float) term_total (int | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`attendance-percentage-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`attendance-percentage-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/attendance-percentage-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/attendance-percentage-calculator/prompt.md`](/tools/attendance-percentage-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Attendance Percentage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Attendance Percentage Calculator** — Calculate attendance percentage, classes needed for a target, and safe skips. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `attended` | int | no | (default `60`) | | `total_classes` | int | no | (default `80`) | | `target_percent` | float | no | (default `75`) | | `term_total` | int | None | no | (default `120`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "attendance-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "attended": 60, "total_classes": 80, "missed": 20, "attendance_percent": 75.0, "target_percent": 75.0, "must_attend_to_target": 0, "safe_skips_at_target": 0, "projection": { "remaining_classes": 40, "best_case_percent": 83.33, "worst_case_percent": 50.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Attendance Percentage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Attendance Percentage Calculator** — Calculate attendance percentage, classes needed for a target, and safe skips. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `attended` | int | no | (default `60`) | | `total_classes` | int | no | (default `80`) | | `target_percent` | float | no | (default `75`) | | `term_total` | int | None | no | (default `120`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "attendance-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "attended": 60, "total_classes": 80, "missed": 20, "attendance_percent": 75.0, "target_percent": 75.0, "must_attend_to_target": 0, "safe_skips_at_target": 0, "projection": { "remaining_classes": 40, "best_case_percent": 83.33, "worst_case_percent": 50.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-attendance-percentage-calculator.mdc copy prompt ```text --- description: MiniWebtool Attendance Percentage Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Attendance Percentage Calculator API ## The API **Attendance Percentage Calculator** — Calculate attendance percentage, classes needed for a target, and safe skips. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `attended` | int | no | (default `60`) | | `total_classes` | int | no | (default `80`) | | `target_percent` | float | no | (default `75`) | | `term_total` | int | None | no | (default `120`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "attendance-percentage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "attended": 60, "total_classes": 80, "missed": 20, "attendance_percent": 75.0, "target_percent": 75.0, "must_attend_to_target": 0, "safe_skips_at_target": 0, "projection": { "remaining_classes": 40, "best_case_percent": 83.33, "worst_case_percent": 50.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `attendance-percentage-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `attendance-percentage-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call attendance-percentage-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/attendance-percentage-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Attendance Percentage Calculator API do? + Calculate attendance percentage, classes needed for a target, and safe skips. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Attendance Percentage Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Attendance Percentage Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Attendance Percentage Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Attendance Percentage Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `attendance-percentage-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`attendance-percentage-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"attendance-percentage-calculator"}}}' \ | jq.result.structuredContent ``` see-also related education tools [ GPA Calculator Calculate term and cumulative GPA from letter grades and credits. ](/tools/gpa-calculator/) [ Grade Calculator Calculate weighted grades and the score needed on remaining work. ](/tools/grade-calculator/) [ CGPA to Percentage Converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. ](/tools/cgpa-to-percentage-converter/) [ Learning Curve Calculator Project time per repetition, cumulative practice time, and target repetitions w… ](/tools/learning-curve-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [education](/tools/#education) - / - CGPA to Percentage Converter API # CGPA to Percentage Converter API education 1 credit / call v2026-04-22 Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. One POST adds CGPA to Percentage Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the CGPA to Percentage Converter on miniwebtool.com →](https://miniwebtool.com/cgpa-to-percentage-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run ``` ### Request body Field Type Req. `cgpa` `float` — `scale` 10 | 5 | 4 `str` — `formula` cbse | x10 | vtu | mumbai | gtu | linear5 | linear4 | custom `str` — `custom_multiplier` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cgpa-to-percentage-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cgpa (float) scale (str) 10 5 4 10 | 5 | 4 formula (str) cbse x10 vtu mumbai gtu linear5 linear4 custom cbse | x10 | vtu | mumbai | gtu | linear5 | linear4 | custom custom_multiplier (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cgpa-to-percentage-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cgpa-to-percentage-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cgpa-to-percentage-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cgpa-to-percentage-converter/prompt.md`](/tools/cgpa-to-percentage-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool CGPA to Percentage Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CGPA to Percentage Converter** — Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cgpa` | float | no | (default `8.2`) | | `scale` | str | no | one of: 10, 5, 4 — 10 \| 5 \| 4 (default `10`) | | `formula` | str | no | one of: cbse, x10, vtu, mumbai, gtu, linear5, linear4, custom — cbse \| x10 \| vtu \| mumbai \| gtu \| linear5 \| linear4 \| custom (default `cbse`) | | `custom_multiplier` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cgpa-to-percentage-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cgpa": 8.2, "scale": "10", "selected_formula": "cbse", "percentage": 77.9, "division": "distinction", "formula_results": { "cbse": 77.9, "x10": 82.0, "vtu": 74.5, "mumbai": 69.22, "gtu": 77.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool CGPA to Percentage Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **CGPA to Percentage Converter** — Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cgpa` | float | no | (default `8.2`) | | `scale` | str | no | one of: 10, 5, 4 — 10 \| 5 \| 4 (default `10`) | | `formula` | str | no | one of: cbse, x10, vtu, mumbai, gtu, linear5, linear4, custom — cbse \| x10 \| vtu \| mumbai \| gtu \| linear5 \| linear4 \| custom (default `cbse`) | | `custom_multiplier` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cgpa-to-percentage-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cgpa": 8.2, "scale": "10", "selected_formula": "cbse", "percentage": 77.9, "division": "distinction", "formula_results": { "cbse": 77.9, "x10": 82.0, "vtu": 74.5, "mumbai": 69.22, "gtu": 77.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cgpa-to-percentage-converter.mdc copy prompt ```text --- description: MiniWebtool CGPA to Percentage Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool CGPA to Percentage Converter API ## The API **CGPA to Percentage Converter** — Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cgpa` | float | no | (default `8.2`) | | `scale` | str | no | one of: 10, 5, 4 — 10 \| 5 \| 4 (default `10`) | | `formula` | str | no | one of: cbse, x10, vtu, mumbai, gtu, linear5, linear4, custom — cbse \| x10 \| vtu \| mumbai \| gtu \| linear5 \| linear4 \| custom (default `cbse`) | | `custom_multiplier` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cgpa-to-percentage-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cgpa": 8.2, "scale": "10", "selected_formula": "cbse", "percentage": 77.9, "division": "distinction", "formula_results": { "cbse": 77.9, "x10": 82.0, "vtu": 74.5, "mumbai": 69.22, "gtu": 77.0 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cgpa-to-percentage-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cgpa-to-percentage-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cgpa-to-percentage-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cgpa-to-percentage-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the CGPA to Percentage Converter API do? + Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to CGPA to Percentage Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the CGPA to Percentage Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the CGPA to Percentage Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the CGPA to Percentage Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cgpa-to-percentage-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cgpa-to-percentage-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cgpa-to-percentage-converter"}}}' \ | jq.result.structuredContent ``` see-also related education tools [ GPA Calculator Calculate term and cumulative GPA from letter grades and credits. ](/tools/gpa-calculator/) [ Grade Calculator Calculate weighted grades and the score needed on remaining work. ](/tools/grade-calculator/) [ Attendance Percentage Calculator Calculate attendance percentage, classes needed for a target, and safe skips. ](/tools/attendance-percentage-calculator/) [ Learning Curve Calculator Project time per repetition, cumulative practice time, and target repetitions w… ](/tools/learning-curve-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [education](/tools/#education) - / - GPA Calculator API # GPA Calculator API education 1 credit / call v2026-04-22 Calculate term and cumulative GPA from letter grades and credits. One POST adds GPA Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the GPA Calculator on miniwebtool.com →](https://miniwebtool.com/gpa-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/gpa-calculator/run ``` ### Request body Field Type Req. `courses` `str` — `current_gpa` `float | None` — `current_credits` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`no_body_logs` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "gpa-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → courses (str) current_gpa (float | None) current_credits (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`gpa-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/gpa-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/gpa-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/gpa-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/gpa-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/gpa-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/gpa-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`gpa-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/gpa-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/gpa-calculator/prompt.md`](/tools/gpa-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool GPA Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **GPA Calculator** — Calculate term and cumulative GPA from letter grades and credits. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/gpa-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/gpa-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `courses` | str | no | (default `A,3 B+,4 A-,3`) | | `current_gpa` | float | None | no | — | | `current_credits` | float | no | (default `0`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "gpa-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "course_count": 3, "courses": [ { "grade": "A", "credits": 3.0, "points": 12.0 }, { "grade": "B+", "credits": 4.0, "points": 13.2 }, { "grade": "A-", "credits": 3.0, "points": 11.1 } ], "term_credits": 10.0, "term_points": 36.3, "term_gpa": 3.63, "grade_counts": { "A": 1, "A-": 1, "B+": 1 }, "current_credits": 0.0, "cumulative_gpa": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool GPA Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **GPA Calculator** — Calculate term and cumulative GPA from letter grades and credits. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/gpa-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/gpa-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `courses` | str | no | (default `A,3 B+,4 A-,3`) | | `current_gpa` | float | None | no | — | | `current_credits` | float | no | (default `0`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "gpa-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "course_count": 3, "courses": [ { "grade": "A", "credits": 3.0, "points": 12.0 }, { "grade": "B+", "credits": 4.0, "points": 13.2 }, { "grade": "A-", "credits": 3.0, "points": 11.1 } ], "term_credits": 10.0, "term_points": 36.3, "term_gpa": 3.63, "grade_counts": { "A": 1, "A-": 1, "B+": 1 }, "current_credits": 0.0, "cumulative_gpa": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-gpa-calculator.mdc copy prompt ```text --- description: MiniWebtool GPA Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool GPA Calculator API ## The API **GPA Calculator** — Calculate term and cumulative GPA from letter grades and credits. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/gpa-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/gpa-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `courses` | str | no | (default `A,3 B+,4 A-,3`) | | `current_gpa` | float | None | no | — | | `current_credits` | float | no | (default `0`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "gpa-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "course_count": 3, "courses": [ { "grade": "A", "credits": 3.0, "points": 12.0 }, { "grade": "B+", "credits": 4.0, "points": 13.2 }, { "grade": "A-", "credits": 3.0, "points": 11.1 } ], "term_credits": 10.0, "term_points": 36.3, "term_gpa": 3.63, "grade_counts": { "A": 1, "A-": 1, "B+": 1 }, "current_credits": 0.0, "cumulative_gpa": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `gpa-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `gpa-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call gpa-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/gpa-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the GPA Calculator API do? + Calculate term and cumulative GPA from letter grades and credits. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to GPA Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the GPA Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the GPA Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the GPA Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `gpa-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`gpa-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"gpa-calculator"}}}' \ | jq.result.structuredContent ``` see-also related education tools [ Grade Calculator Calculate weighted grades and the score needed on remaining work. ](/tools/grade-calculator/) [ Attendance Percentage Calculator Calculate attendance percentage, classes needed for a target, and safe skips. ](/tools/attendance-percentage-calculator/) [ CGPA to Percentage Converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. ](/tools/cgpa-to-percentage-converter/) [ Learning Curve Calculator Project time per repetition, cumulative practice time, and target repetitions w… ](/tools/learning-curve-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [education](/tools/#education) - / - Grade Calculator API # Grade Calculator API education 1 credit / call v2026-04-22 visual chart data Calculate weighted grades and the score needed on remaining work. One POST adds Grade Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Grade Calculator on miniwebtool.com →](https://miniwebtool.com/grade-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/grade-calculator/run ``` ### Request body Field Type Req. `scores` `str` — `weights_percent` `str` — `target_grade` `float` — `remaining_weight_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "grade-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → scores (str) weights_percent (str) target_grade (float) remaining_weight_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`grade-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/grade-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/grade-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/grade-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/grade-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/grade-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/grade-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`grade-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/grade-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/grade-calculator/prompt.md`](/tools/grade-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Grade Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Grade Calculator** — Calculate weighted grades and the score needed on remaining work. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/grade-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/grade-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `scores` | str | no | (default `88, 92, 79`) | | `weights_percent` | str | no | (default `30, 30, 20`) | | `target_grade` | float | no | (default `90`) | | `remaining_weight_percent` | float | no | (default `20`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "grade-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "scores": [ 88.0, 92.0, 79.0 ], "weights_percent": [ 30.0, 30.0, 20.0 ], "completed_weight_percent": 80.0, "weighted_points": 69.8, "current_grade_on_completed_work": 87.25, "remaining_weight_percent": 20.0, "target_grade": 90.0, "needed_on_remaining_work": 101.0, "final_grade_if_no_remaining": 87.25, "chart_data": { "breakdown": [ { "label": "Item 1", "value": 26.4, "weight": 30.0 }, { "label": "Item 2", "value": 27.6, "weight": 30.0 }, { "label": "Item 3", "value": 15.8, "weight": 20.0 } ], "comparison": [ { "label": "Current grade", "value": 87.25 }, { "label": "Target", "value": 90.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Grade Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Grade Calculator** — Calculate weighted grades and the score needed on remaining work. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/grade-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/grade-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `scores` | str | no | (default `88, 92, 79`) | | `weights_percent` | str | no | (default `30, 30, 20`) | | `target_grade` | float | no | (default `90`) | | `remaining_weight_percent` | float | no | (default `20`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "grade-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "scores": [ 88.0, 92.0, 79.0 ], "weights_percent": [ 30.0, 30.0, 20.0 ], "completed_weight_percent": 80.0, "weighted_points": 69.8, "current_grade_on_completed_work": 87.25, "remaining_weight_percent": 20.0, "target_grade": 90.0, "needed_on_remaining_work": 101.0, "final_grade_if_no_remaining": 87.25, "chart_data": { "breakdown": [ { "label": "Item 1", "value": 26.4, "weight": 30.0 }, { "label": "Item 2", "value": 27.6, "weight": 30.0 }, { "label": "Item 3", "value": 15.8, "weight": 20.0 } ], "comparison": [ { "label": "Current grade", "value": 87.25 }, { "label": "Target", "value": 90.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-grade-calculator.mdc copy prompt ```text --- description: MiniWebtool Grade Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Grade Calculator API ## The API **Grade Calculator** — Calculate weighted grades and the score needed on remaining work. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/grade-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/grade-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `scores` | str | no | (default `88, 92, 79`) | | `weights_percent` | str | no | (default `30, 30, 20`) | | `target_grade` | float | no | (default `90`) | | `remaining_weight_percent` | float | no | (default `20`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "grade-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "scores": [ 88.0, 92.0, 79.0 ], "weights_percent": [ 30.0, 30.0, 20.0 ], "completed_weight_percent": 80.0, "weighted_points": 69.8, "current_grade_on_completed_work": 87.25, "remaining_weight_percent": 20.0, "target_grade": 90.0, "needed_on_remaining_work": 101.0, "final_grade_if_no_remaining": 87.25, "chart_data": { "breakdown": [ { "label": "Item 1", "value": 26.4, "weight": 30.0 }, { "label": "Item 2", "value": 27.6, "weight": 30.0 }, { "label": "Item 3", "value": 15.8, "weight": 20.0 } ], "comparison": [ { "label": "Current grade", "value": 87.25 }, { "label": "Target", "value": 90.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `grade-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `grade-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call grade-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/grade-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Grade Calculator API do? + Calculate weighted grades and the score needed on remaining work. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Grade Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Grade Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Grade Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Grade Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Grade Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `grade-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`grade-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"grade-calculator"}}}' \ | jq.result.structuredContent ``` see-also related education tools [ GPA Calculator Calculate term and cumulative GPA from letter grades and credits. ](/tools/gpa-calculator/) [ Attendance Percentage Calculator Calculate attendance percentage, classes needed for a target, and safe skips. ](/tools/attendance-percentage-calculator/) [ CGPA to Percentage Converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. ](/tools/cgpa-to-percentage-converter/) [ Learning Curve Calculator Project time per repetition, cumulative practice time, and target repetitions w… ](/tools/learning-curve-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [education](/tools/#education) - / - Learning Curve Calculator API # Learning Curve Calculator API education 1 credit / call v2026-04-22 Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. One POST adds Learning Curve Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Learning Curve Calculator on miniwebtool.com →](https://miniwebtool.com/learning-curve-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run ``` ### Request body Field Type Req. `first_time` `float` — `time_unit` seconds | minutes | hours `str` — `learning_rate_percent` `float` — `repetitions` `int` — `target_time` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "learning-curve-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → first_time (float) time_unit (str) seconds minutes hours seconds | minutes | hours learning_rate_percent (float) repetitions (int) target_time (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`learning-curve-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`learning-curve-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/learning-curve-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/learning-curve-calculator/prompt.md`](/tools/learning-curve-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Learning Curve Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Learning Curve Calculator** — Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `first_time` | float | no | (default `20`) | | `time_unit` | str | no | one of: seconds, minutes, hours — seconds \| minutes \| hours (default `minutes`) | | `learning_rate_percent` | float | no | (default `85`) | | `repetitions` | int | no | (default `30`) | | `target_time` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "learning-curve-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "first_time": 20.0, "time_unit": "minutes", "learning_rate_percent": 85.0, "learning_factor": 0.85, "exponent": -0.234465, "repetitions": 30, "nth_attempt_time": 9.009411, "cumulative_time": 341.813169, "average_time": 11.393772, "reduction_percent": 54.952946, "speedup_multiplier": 2.219901, "target_time": null, "target_repetitions": null, "target_reached_within": null, "cumulative_seconds": 20508.790163, "chart_data": { "samples": [ { "repetition": 1, "time": 20.0, "reduction_percent": 0.0 }, { "repetition": 2, "time": 17.0, "reduction_percent": 15.0 }, { "repetition": 5, "time": 13.713421, "reduction_percent": 31.432894 }, { "repetition": 10, "time": 11.656408, "reduction_percent": 41.71796 }, { "repetition": 25, "time": 9.402896, "reduction_percent": 52.98552 }, { "repetition": 30, "time": 9.009411, "reduction_percent": 54.952946 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Learning Curve Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Learning Curve Calculator** — Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `first_time` | float | no | (default `20`) | | `time_unit` | str | no | one of: seconds, minutes, hours — seconds \| minutes \| hours (default `minutes`) | | `learning_rate_percent` | float | no | (default `85`) | | `repetitions` | int | no | (default `30`) | | `target_time` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "learning-curve-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "first_time": 20.0, "time_unit": "minutes", "learning_rate_percent": 85.0, "learning_factor": 0.85, "exponent": -0.234465, "repetitions": 30, "nth_attempt_time": 9.009411, "cumulative_time": 341.813169, "average_time": 11.393772, "reduction_percent": 54.952946, "speedup_multiplier": 2.219901, "target_time": null, "target_repetitions": null, "target_reached_within": null, "cumulative_seconds": 20508.790163, "chart_data": { "samples": [ { "repetition": 1, "time": 20.0, "reduction_percent": 0.0 }, { "repetition": 2, "time": 17.0, "reduction_percent": 15.0 }, { "repetition": 5, "time": 13.713421, "reduction_percent": 31.432894 }, { "repetition": 10, "time": 11.656408, "reduction_percent": 41.71796 }, { "repetition": 25, "time": 9.402896, "reduction_percent": 52.98552 }, { "repetition": 30, "time": 9.009411, "reduction_percent": 54.952946 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-learning-curve-calculator.mdc copy prompt ```text --- description: MiniWebtool Learning Curve Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Learning Curve Calculator API ## The API **Learning Curve Calculator** — Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/learning-curve-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `first_time` | float | no | (default `20`) | | `time_unit` | str | no | one of: seconds, minutes, hours — seconds \| minutes \| hours (default `minutes`) | | `learning_rate_percent` | float | no | (default `85`) | | `repetitions` | int | no | (default `30`) | | `target_time` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "learning-curve-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "first_time": 20.0, "time_unit": "minutes", "learning_rate_percent": 85.0, "learning_factor": 0.85, "exponent": -0.234465, "repetitions": 30, "nth_attempt_time": 9.009411, "cumulative_time": 341.813169, "average_time": 11.393772, "reduction_percent": 54.952946, "speedup_multiplier": 2.219901, "target_time": null, "target_repetitions": null, "target_reached_within": null, "cumulative_seconds": 20508.790163, "chart_data": { "samples": [ { "repetition": 1, "time": 20.0, "reduction_percent": 0.0 }, { "repetition": 2, "time": 17.0, "reduction_percent": 15.0 }, { "repetition": 5, "time": 13.713421, "reduction_percent": 31.432894 }, { "repetition": 10, "time": 11.656408, "reduction_percent": 41.71796 }, { "repetition": 25, "time": 9.402896, "reduction_percent": 52.98552 }, { "repetition": 30, "time": 9.009411, "reduction_percent": 54.952946 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `learning-curve-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `learning-curve-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call learning-curve-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/learning-curve-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Learning Curve Calculator API do? + Project time per repetition, cumulative practice time, and target repetitions with a power-law learning curve. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Learning Curve Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Learning Curve Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Learning Curve Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Learning Curve Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `learning-curve-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`learning-curve-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"learning-curve-calculator"}}}' \ | jq.result.structuredContent ``` see-also related education tools [ GPA Calculator Calculate term and cumulative GPA from letter grades and credits. ](/tools/gpa-calculator/) [ Grade Calculator Calculate weighted grades and the score needed on remaining work. ](/tools/grade-calculator/) [ Attendance Percentage Calculator Calculate attendance percentage, classes needed for a target, and safe skips. ](/tools/attendance-percentage-calculator/) [ CGPA to Percentage Converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. ](/tools/cgpa-to-percentage-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [education](/tools/#education) - / - Percentage to CGPA Converter API # Percentage to CGPA Converter API education 1 credit / call v2026-04-22 Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. One POST adds Percentage to CGPA Converter to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Percentage to CGPA Converter on miniwebtool.com →](https://miniwebtool.com/percentage-to-cgpa-converter/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run ``` ### Request body Field Type Req. `percentage` `float` — `scale` 10 | 5 | 4 `str` — `formula` cbse | x10 | vtu | mumbai | gtu | linear5 | linear4 | custom `str` — `custom_divisor` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "percentage-to-cgpa-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → percentage (float) scale (str) 10 5 4 10 | 5 | 4 formula (str) cbse x10 vtu mumbai gtu linear5 linear4 custom cbse | x10 | vtu | mumbai | gtu | linear5 | linear4 | custom custom_divisor (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`percentage-to-cgpa-converter`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`percentage-to-cgpa-converter`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/percentage-to-cgpa-converter/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/percentage-to-cgpa-converter/prompt.md`](/tools/percentage-to-cgpa-converter/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Percentage to CGPA Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Percentage to CGPA Converter** — Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `percentage` | float | no | (default `77.9`) | | `scale` | str | no | one of: 10, 5, 4 — 10 \| 5 \| 4 (default `10`) | | `formula` | str | no | one of: cbse, x10, vtu, mumbai, gtu, linear5, linear4, custom — cbse \| x10 \| vtu \| mumbai \| gtu \| linear5 \| linear4 \| custom (default `cbse`) | | `custom_divisor` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "percentage-to-cgpa-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "percentage": 77.9, "scale": "10", "scale_max": 10.0, "formula": "cbse", "selected_cgpa": 8.2, "selected_raw_cgpa": 8.2, "division": "Distinction", "cgpa_min": 7.79, "cgpa_max": 9.422535, "spread": 1.632535, "chart_data": { "comparisons": [ { "id": "cbse", "label": "CBSE / Standard", "raw_cgpa": 8.2, "cgpa": 8.2, "percent_of_scale": 82.0, "selected": true }, { "id": "x10", "label": "Simple divide by 10", "raw_cgpa": 7.79, "cgpa": 7.79, "percent_of_scale": 77.9, "selected": false }, { "id": "vtu", "label": "VTU", "raw_cgpa": 8.54, "cgpa": 8.54, "percent_of_scale": 85.4, "selected": false }, { "id": "mumbai", "label": "Mumbai University", "raw_cgpa": 9.422535, "cgpa": 9.422535, "percent_of_scale": 94.225352, "selected": false }, { "id": "gtu", "label": "GTU", "raw_cgpa": 8.29, "cgpa": 8.29, "percent_of_scale": 82.9, "selected": false } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Percentage to CGPA Converter API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Percentage to CGPA Converter** — Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `percentage` | float | no | (default `77.9`) | | `scale` | str | no | one of: 10, 5, 4 — 10 \| 5 \| 4 (default `10`) | | `formula` | str | no | one of: cbse, x10, vtu, mumbai, gtu, linear5, linear4, custom — cbse \| x10 \| vtu \| mumbai \| gtu \| linear5 \| linear4 \| custom (default `cbse`) | | `custom_divisor` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "percentage-to-cgpa-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "percentage": 77.9, "scale": "10", "scale_max": 10.0, "formula": "cbse", "selected_cgpa": 8.2, "selected_raw_cgpa": 8.2, "division": "Distinction", "cgpa_min": 7.79, "cgpa_max": 9.422535, "spread": 1.632535, "chart_data": { "comparisons": [ { "id": "cbse", "label": "CBSE / Standard", "raw_cgpa": 8.2, "cgpa": 8.2, "percent_of_scale": 82.0, "selected": true }, { "id": "x10", "label": "Simple divide by 10", "raw_cgpa": 7.79, "cgpa": 7.79, "percent_of_scale": 77.9, "selected": false }, { "id": "vtu", "label": "VTU", "raw_cgpa": 8.54, "cgpa": 8.54, "percent_of_scale": 85.4, "selected": false }, { "id": "mumbai", "label": "Mumbai University", "raw_cgpa": 9.422535, "cgpa": 9.422535, "percent_of_scale": 94.225352, "selected": false }, { "id": "gtu", "label": "GTU", "raw_cgpa": 8.29, "cgpa": 8.29, "percent_of_scale": 82.9, "selected": false } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-percentage-to-cgpa-converter.mdc copy prompt ```text --- description: MiniWebtool Percentage to CGPA Converter API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Percentage to CGPA Converter API ## The API **Percentage to CGPA Converter** — Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `percentage` | float | no | (default `77.9`) | | `scale` | str | no | one of: 10, 5, 4 — 10 \| 5 \| 4 (default `10`) | | `formula` | str | no | one of: cbse, x10, vtu, mumbai, gtu, linear5, linear4, custom — cbse \| x10 \| vtu \| mumbai \| gtu \| linear5 \| linear4 \| custom (default `cbse`) | | `custom_divisor` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "percentage-to-cgpa-converter", "tool_version": "2026-04-22", "credits_used": 1, "result": { "percentage": 77.9, "scale": "10", "scale_max": 10.0, "formula": "cbse", "selected_cgpa": 8.2, "selected_raw_cgpa": 8.2, "division": "Distinction", "cgpa_min": 7.79, "cgpa_max": 9.422535, "spread": 1.632535, "chart_data": { "comparisons": [ { "id": "cbse", "label": "CBSE / Standard", "raw_cgpa": 8.2, "cgpa": 8.2, "percent_of_scale": 82.0, "selected": true }, { "id": "x10", "label": "Simple divide by 10", "raw_cgpa": 7.79, "cgpa": 7.79, "percent_of_scale": 77.9, "selected": false }, { "id": "vtu", "label": "VTU", "raw_cgpa": 8.54, "cgpa": 8.54, "percent_of_scale": 85.4, "selected": false }, { "id": "mumbai", "label": "Mumbai University", "raw_cgpa": 9.422535, "cgpa": 9.422535, "percent_of_scale": 94.225352, "selected": false }, { "id": "gtu", "label": "GTU", "raw_cgpa": 8.29, "cgpa": 8.29, "percent_of_scale": 82.9, "selected": false } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `percentage-to-cgpa-converter` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `percentage-to-cgpa-converter` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call percentage-to-cgpa-converter - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/percentage-to-cgpa-converter/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Percentage to CGPA Converter API do? + Convert percentage to CGPA across common 10-point, 5-point, and 4-point formulas. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Percentage to CGPA Converter cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Percentage to CGPA Converter API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Percentage to CGPA Converter API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Percentage to CGPA Converter API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `percentage-to-cgpa-converter` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`percentage-to-cgpa-converter`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"percentage-to-cgpa-converter"}}}' \ | jq.result.structuredContent ``` see-also related education tools [ GPA Calculator Calculate term and cumulative GPA from letter grades and credits. ](/tools/gpa-calculator/) [ Grade Calculator Calculate weighted grades and the score needed on remaining work. ](/tools/grade-calculator/) [ Attendance Percentage Calculator Calculate attendance percentage, classes needed for a target, and safe skips. ](/tools/attendance-percentage-calculator/) [ CGPA to Percentage Converter Convert CGPA to percentage using common 10-, 5-, and 4-point formulas. ](/tools/cgpa-to-percentage-converter/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - 3-Phase Power Calculator API # 3-Phase Power Calculator API electronics 1 credit / call v2026-04-22 Calculate balanced three-phase real, apparent, and reactive power. One POST adds 3-Phase Power Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the 3-Phase Power Calculator on miniwebtool.com →](https://miniwebtool.com/3-phase-power-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run ``` ### Request body Field Type Req. `solve_for` power | current | voltage `str` — `voltage` `float | None` — `current` `float | None` — `power` `float | None` — `power_unit` w | kw | hp | va | kva `str` — `power_factor` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "3-phase-power-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → solve_for (str) power current voltage power | current | voltage voltage (float | None) current (float | None) power (float | None) power_unit (str) w kw hp va kva w | kw | hp | va | kva power_factor (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`3-phase-power-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"solve_for":"power","voltage":400,"current":20,"power_factor":0.9}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'solve_for': 'power', 'voltage': 400, 'current': 20, 'power_factor': 0.9}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"solve_for":"power","voltage":400,"current":20,"power_factor":0.9}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'solve_for' => 'power', 'voltage' => 400, 'current' => 20, 'power_factor' => 0.9 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'solve_for' => 'power', 'voltage' => 400, 'current' => 20, 'power_factor' => 0.9 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "solve_for": "power", "voltage": 400, "current": 20, "power_factor": 0.9, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"solve_for\":\"power\",\"voltage\":400,\"current\":20,\"power_factor\":0.9}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`3-phase-power-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/3-phase-power-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/3-phase-power-calculator/prompt.md`](/tools/3-phase-power-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool 3-Phase Power Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **3-Phase Power Calculator** — Calculate balanced three-phase real, apparent, and reactive power. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `solve_for` | str | no | one of: power, current, voltage — power \| current \| voltage (default `power`) | | `voltage` | float | None | no | — | | `current` | float | None | no | — | | `power` | float | None | no | — | | `power_unit` | str | no | one of: w, kw, hp, va, kva — w \| kw \| hp \| va \| kva (default `kw`) | | `power_factor` | float | no | (default `0.9`) | Example request body: ```json { "solve_for": "power", "voltage": 400, "current": 20, "power_factor": 0.9 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "3-phase-power-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "solve_for": "power", "power_unit": "kw", "line_voltage_v": 400.0, "line_current_a": 20.0, "real_power_w": 12470.7658145, "apparent_power_va": 13856.40646055, "reactive_power_var": 6039.86754822, "power_factor": 0.9, "phase_angle_degrees": 25.84193276, "real_power_per_phase_w": 4156.92193817, "wye_phase_voltage_v": 230.94010768, "delta_phase_current_a": 11.54700538, "chart_data": { "labels": [ "real power", "reactive power", "apparent power" ], "values": [ 12470.7658145, 6039.86754822, 13856.40646055 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool 3-Phase Power Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **3-Phase Power Calculator** — Calculate balanced three-phase real, apparent, and reactive power. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `solve_for` | str | no | one of: power, current, voltage — power \| current \| voltage (default `power`) | | `voltage` | float | None | no | — | | `current` | float | None | no | — | | `power` | float | None | no | — | | `power_unit` | str | no | one of: w, kw, hp, va, kva — w \| kw \| hp \| va \| kva (default `kw`) | | `power_factor` | float | no | (default `0.9`) | Example request body: ```json { "solve_for": "power", "voltage": 400, "current": 20, "power_factor": 0.9 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "3-phase-power-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "solve_for": "power", "power_unit": "kw", "line_voltage_v": 400.0, "line_current_a": 20.0, "real_power_w": 12470.7658145, "apparent_power_va": 13856.40646055, "reactive_power_var": 6039.86754822, "power_factor": 0.9, "phase_angle_degrees": 25.84193276, "real_power_per_phase_w": 4156.92193817, "wye_phase_voltage_v": 230.94010768, "delta_phase_current_a": 11.54700538, "chart_data": { "labels": [ "real power", "reactive power", "apparent power" ], "values": [ 12470.7658145, 6039.86754822, 13856.40646055 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-3-phase-power-calculator.mdc copy prompt ```text --- description: MiniWebtool 3-Phase Power Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool 3-Phase Power Calculator API ## The API **3-Phase Power Calculator** — Calculate balanced three-phase real, apparent, and reactive power. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `solve_for` | str | no | one of: power, current, voltage — power \| current \| voltage (default `power`) | | `voltage` | float | None | no | — | | `current` | float | None | no | — | | `power` | float | None | no | — | | `power_unit` | str | no | one of: w, kw, hp, va, kva — w \| kw \| hp \| va \| kva (default `kw`) | | `power_factor` | float | no | (default `0.9`) | Example request body: ```json { "solve_for": "power", "voltage": 400, "current": 20, "power_factor": 0.9 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "3-phase-power-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "solve_for": "power", "power_unit": "kw", "line_voltage_v": 400.0, "line_current_a": 20.0, "real_power_w": 12470.7658145, "apparent_power_va": 13856.40646055, "reactive_power_var": 6039.86754822, "power_factor": 0.9, "phase_angle_degrees": 25.84193276, "real_power_per_phase_w": 4156.92193817, "wye_phase_voltage_v": 230.94010768, "delta_phase_current_a": 11.54700538, "chart_data": { "labels": [ "real power", "reactive power", "apparent power" ], "values": [ 12470.7658145, 6039.86754822, 13856.40646055 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `3-phase-power-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `3-phase-power-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call 3-phase-power-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/3-phase-power-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the 3-Phase Power Calculator API do? + Calculate balanced three-phase real, apparent, and reactive power. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to 3-Phase Power Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the 3-Phase Power Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the 3-Phase Power Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the 3-Phase Power Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `3-phase-power-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`3-phase-power-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"3-phase-power-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Divider Calculator Calculate voltage divider output or solve for R1 or R2. ](/tools/voltage-divider-calculator/) [ Voltage Drop Calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. ](/tools/voltage-drop-calculator/) [ Transformer Calculator Calculate transformer turns ratio, secondary voltage, current, power, and imped… ](/tools/transformer-calculator/) [ Battery Life Calculator Estimate battery runtime from capacity, consumption, and efficiency. ](/tools/battery-life-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - Amps to Watts Calculator API # Amps to Watts Calculator API electronics 1 credit / call v2026-04-22 Convert current and voltage into real, apparent, and reactive power. One POST adds Amps to Watts Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Amps to Watts Calculator on miniwebtool.com →](https://miniwebtool.com/amps-to-watts-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run ``` ### Request body Field Type Req. `current_type` dc | ac1 | ac3 `str` — `current` `float` ✓ `voltage` `float` ✓ `power_factor` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "amps-to-watts-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → current_type (str) dc ac1 ac3 dc | ac1 | ac3 current (float) * voltage (float) * power_factor (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`amps-to-watts-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"current_type":"ac1","current":10,"voltage":120,"power_factor":0.9}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'current_type': 'ac1', 'current': 10, 'voltage': 120, 'power_factor': 0.9}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"current_type":"ac1","current":10,"voltage":120,"power_factor":0.9}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'current_type' => 'ac1', 'current' => 10, 'voltage' => 120, 'power_factor' => 0.9 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'current_type' => 'ac1', 'current' => 10, 'voltage' => 120, 'power_factor' => 0.9 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "current_type": "ac1", "current": 10, "voltage": 120, "power_factor": 0.9, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"current_type\":\"ac1\",\"current\":10,\"voltage\":120,\"power_factor\":0.9}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`amps-to-watts-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/amps-to-watts-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/amps-to-watts-calculator/prompt.md`](/tools/amps-to-watts-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Amps to Watts Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Amps to Watts Calculator** — Convert current and voltage into real, apparent, and reactive power. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `current_type` | str | no | one of: dc, ac1, ac3 — dc \| ac1 \| ac3 (default `ac1`) | | `current` | float | yes | — | | `voltage` | float | yes | — | | `power_factor` | float | no | (default `0.9`) | Example request body: ```json { "current_type": "ac1", "current": 10, "voltage": 120, "power_factor": 0.9 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "amps-to-watts-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "current_type": "ac1", "current_a": 10.0, "voltage_v": 120.0, "power_factor": 0.9, "real_power_w": 1080.0, "apparent_power_va": 1200.0, "reactive_power_var": 523.06787322, "phase_angle_degrees": 25.84193276, "chart_data": { "labels": [ "real power", "reactive power", "apparent power" ], "values": [ 1080.0, 523.06787322, 1200.0 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Amps to Watts Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Amps to Watts Calculator** — Convert current and voltage into real, apparent, and reactive power. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `current_type` | str | no | one of: dc, ac1, ac3 — dc \| ac1 \| ac3 (default `ac1`) | | `current` | float | yes | — | | `voltage` | float | yes | — | | `power_factor` | float | no | (default `0.9`) | Example request body: ```json { "current_type": "ac1", "current": 10, "voltage": 120, "power_factor": 0.9 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "amps-to-watts-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "current_type": "ac1", "current_a": 10.0, "voltage_v": 120.0, "power_factor": 0.9, "real_power_w": 1080.0, "apparent_power_va": 1200.0, "reactive_power_var": 523.06787322, "phase_angle_degrees": 25.84193276, "chart_data": { "labels": [ "real power", "reactive power", "apparent power" ], "values": [ 1080.0, 523.06787322, 1200.0 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-amps-to-watts-calculator.mdc copy prompt ```text --- description: MiniWebtool Amps to Watts Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Amps to Watts Calculator API ## The API **Amps to Watts Calculator** — Convert current and voltage into real, apparent, and reactive power. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `current_type` | str | no | one of: dc, ac1, ac3 — dc \| ac1 \| ac3 (default `ac1`) | | `current` | float | yes | — | | `voltage` | float | yes | — | | `power_factor` | float | no | (default `0.9`) | Example request body: ```json { "current_type": "ac1", "current": 10, "voltage": 120, "power_factor": 0.9 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "amps-to-watts-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "current_type": "ac1", "current_a": 10.0, "voltage_v": 120.0, "power_factor": 0.9, "real_power_w": 1080.0, "apparent_power_va": 1200.0, "reactive_power_var": 523.06787322, "phase_angle_degrees": 25.84193276, "chart_data": { "labels": [ "real power", "reactive power", "apparent power" ], "values": [ 1080.0, 523.06787322, 1200.0 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `amps-to-watts-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `amps-to-watts-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call amps-to-watts-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`current`,`voltage`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/amps-to-watts-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Amps to Watts Calculator API do? + Convert current and voltage into real, apparent, and reactive power. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Amps to Watts Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Amps to Watts Calculator API require? + Required fields: current, voltage. Full schema at /v1/openapi.json. Is the Amps to Watts Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Amps to Watts Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `amps-to-watts-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`amps-to-watts-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"amps-to-watts-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Divider Calculator Calculate voltage divider output or solve for R1 or R2. ](/tools/voltage-divider-calculator/) [ Voltage Drop Calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. ](/tools/voltage-drop-calculator/) [ Transformer Calculator Calculate transformer turns ratio, secondary voltage, current, power, and imped… ](/tools/transformer-calculator/) [ Battery Life Calculator Estimate battery runtime from capacity, consumption, and efficiency. ](/tools/battery-life-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - Inductive Reactance Calculator API # Inductive Reactance Calculator API electronics 1 credit / call v2026-04-22 Solve XL = 2πfL for inductive reactance, frequency, or inductance. One POST adds Inductive Reactance Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Inductive Reactance Calculator on miniwebtool.com →](https://miniwebtool.com/inductive-reactance-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run ``` ### Request body Field Type Req. `solve_for` xl | f | l `str` — `frequency` `float | None` — `freq_unit` hz | khz | mhz | ghz `str` — `inductance` `float | None` — `ind_unit` h | mh | uh | nh `str` — `reactance` `float | None` — `react_unit` ohm | kohm | mohm `str` — `voltage` `float | None` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "inductive-reactance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → solve_for (str) xl f l xl | f | l frequency (float | None) freq_unit (str) hz khz mhz ghz hz | khz | mhz | ghz inductance (float | None) ind_unit (str) h mh uh nh h | mh | uh | nh reactance (float | None) react_unit (str) ohm kohm mohm ohm | kohm | mohm voltage (float | None) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`inductive-reactance-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"solve_for":"xl","frequency":1000,"freq_unit":"hz","inductance":10,"ind_unit":"mh"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'solve_for': 'xl', 'frequency': 1000, 'freq_unit': 'hz', 'inductance': 10, 'ind_unit': 'mh'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"solve_for":"xl","frequency":1000,"freq_unit":"hz","inductance":10,"ind_unit":"mh"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'solve_for' => 'xl', 'frequency' => 1000, 'freq_unit' => 'hz', 'inductance' => 10, 'ind_unit' => 'mh' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'solve_for' => 'xl', 'frequency' => 1000, 'freq_unit' => 'hz', 'inductance' => 10, 'ind_unit' => 'mh' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "solve_for": "xl", "frequency": 1000, "freq_unit": "hz", "inductance": 10, "ind_unit": "mh", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"solve_for\":\"xl\",\"frequency\":1000,\"freq_unit\":\"hz\",\"inductance\":10,\"ind_unit\":\"mh\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`inductive-reactance-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/inductive-reactance-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/inductive-reactance-calculator/prompt.md`](/tools/inductive-reactance-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Inductive Reactance Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Inductive Reactance Calculator** — Solve XL = 2πfL for inductive reactance, frequency, or inductance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `solve_for` | str | no | one of: xl, f, l — xl \| f \| l (default `xl`) | | `frequency` | float | None | no | — | | `freq_unit` | str | no | one of: hz, khz, mhz, ghz — hz \| khz \| mhz \| ghz (default `hz`) | | `inductance` | float | None | no | — | | `ind_unit` | str | no | one of: h, mh, uh, nh — h \| mh \| uh \| nh (default `mh`) | | `reactance` | float | None | no | — | | `react_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `ohm`) | | `voltage` | float | None | no | — | Example request body: ```json { "solve_for": "xl", "frequency": 1000, "freq_unit": "hz", "inductance": 10, "ind_unit": "mh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inductive-reactance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "solve_for": "xl", "frequency_hz": 1000.0, "inductance_h": 0.01, "reactance_ohms": 62.83185307, "angular_frequency_rad_per_s": 6283.18530718, "voltage_v": null, "current_a": null, "reactive_power_var": null, "chart_data": { "frequency_hz": [ 0.0, 250.0, 500.0, 750.0, 1000.0, 1250.0, 1500.0, 1750.0, 2000.0 ], "reactance_ohms": [ 0.0, 15.70796327, 31.41592654, 47.1238898, 62.83185307, 78.53981634, 94.24777961, 109.95574288, 125.66370614 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Inductive Reactance Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Inductive Reactance Calculator** — Solve XL = 2πfL for inductive reactance, frequency, or inductance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `solve_for` | str | no | one of: xl, f, l — xl \| f \| l (default `xl`) | | `frequency` | float | None | no | — | | `freq_unit` | str | no | one of: hz, khz, mhz, ghz — hz \| khz \| mhz \| ghz (default `hz`) | | `inductance` | float | None | no | — | | `ind_unit` | str | no | one of: h, mh, uh, nh — h \| mh \| uh \| nh (default `mh`) | | `reactance` | float | None | no | — | | `react_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `ohm`) | | `voltage` | float | None | no | — | Example request body: ```json { "solve_for": "xl", "frequency": 1000, "freq_unit": "hz", "inductance": 10, "ind_unit": "mh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inductive-reactance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "solve_for": "xl", "frequency_hz": 1000.0, "inductance_h": 0.01, "reactance_ohms": 62.83185307, "angular_frequency_rad_per_s": 6283.18530718, "voltage_v": null, "current_a": null, "reactive_power_var": null, "chart_data": { "frequency_hz": [ 0.0, 250.0, 500.0, 750.0, 1000.0, 1250.0, 1500.0, 1750.0, 2000.0 ], "reactance_ohms": [ 0.0, 15.70796327, 31.41592654, 47.1238898, 62.83185307, 78.53981634, 94.24777961, 109.95574288, 125.66370614 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-inductive-reactance-calculator.mdc copy prompt ```text --- description: MiniWebtool Inductive Reactance Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Inductive Reactance Calculator API ## The API **Inductive Reactance Calculator** — Solve XL = 2πfL for inductive reactance, frequency, or inductance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `solve_for` | str | no | one of: xl, f, l — xl \| f \| l (default `xl`) | | `frequency` | float | None | no | — | | `freq_unit` | str | no | one of: hz, khz, mhz, ghz — hz \| khz \| mhz \| ghz (default `hz`) | | `inductance` | float | None | no | — | | `ind_unit` | str | no | one of: h, mh, uh, nh — h \| mh \| uh \| nh (default `mh`) | | `reactance` | float | None | no | — | | `react_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `ohm`) | | `voltage` | float | None | no | — | Example request body: ```json { "solve_for": "xl", "frequency": 1000, "freq_unit": "hz", "inductance": 10, "ind_unit": "mh" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inductive-reactance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "solve_for": "xl", "frequency_hz": 1000.0, "inductance_h": 0.01, "reactance_ohms": 62.83185307, "angular_frequency_rad_per_s": 6283.18530718, "voltage_v": null, "current_a": null, "reactive_power_var": null, "chart_data": { "frequency_hz": [ 0.0, 250.0, 500.0, 750.0, 1000.0, 1250.0, 1500.0, 1750.0, 2000.0 ], "reactance_ohms": [ 0.0, 15.70796327, 31.41592654, 47.1238898, 62.83185307, 78.53981634, 94.24777961, 109.95574288, 125.66370614 ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `inductive-reactance-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `inductive-reactance-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call inductive-reactance-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/inductive-reactance-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Inductive Reactance Calculator API do? + Solve XL = 2πfL for inductive reactance, frequency, or inductance. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Inductive Reactance Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Inductive Reactance Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Inductive Reactance Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Inductive Reactance Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `inductive-reactance-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`inductive-reactance-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"inductive-reactance-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Divider Calculator Calculate voltage divider output or solve for R1 or R2. ](/tools/voltage-divider-calculator/) [ Voltage Drop Calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. ](/tools/voltage-drop-calculator/) [ Transformer Calculator Calculate transformer turns ratio, secondary voltage, current, power, and imped… ](/tools/transformer-calculator/) [ Battery Life Calculator Estimate battery runtime from capacity, consumption, and efficiency. ](/tools/battery-life-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - Transformer Calculator API # Transformer Calculator API electronics 1 credit / call v2026-04-22 Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. One POST adds Transformer Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Transformer Calculator on miniwebtool.com →](https://miniwebtool.com/transformer-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/transformer-calculator/run ``` ### Request body Field Type Req. `primary_voltage` `float` — `v1_unit` v | mv | kv `str` — `primary_turns` `float` — `secondary_turns` `float` — `primary_current` `float | None` — `i1_unit` a | ma `str` — `power_rating` `float | None` — `p_unit` w | mw | kw `str` — `efficiency` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "transformer-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → primary_voltage (float) v1_unit (str) v mv kv v | mv | kv primary_turns (float) secondary_turns (float) primary_current (float | None) i1_unit (str) a ma a | ma power_rating (float | None) p_unit (str) w mw kw w | mw | kw efficiency (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`transformer-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/transformer-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"primary_voltage":120,"v1_unit":"v","primary_turns":1000,"secondary_turns":100,"primary_current":1,"i1_unit":"a","p_unit":"w","efficiency":100,"precision":6}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/transformer-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'primary_voltage': 120, 'v1_unit': 'v', 'primary_turns': 1000, 'secondary_turns': 100, 'primary_current': 1, 'i1_unit': 'a', 'p_unit': 'w', 'efficiency': 100, 'precision': 6}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/transformer-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"primary_voltage":120,"v1_unit":"v","primary_turns":1000,"secondary_turns":100,"primary_current":1,"i1_unit":"a","p_unit":"w","efficiency":100,"precision":6}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'primary_voltage' => 120, 'v1_unit' => 'v', 'primary_turns' => 1000, 'secondary_turns' => 100, 'primary_current' => 1, 'i1_unit' => 'a', 'p_unit' => 'w', 'efficiency' => 100, 'precision' => 6 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/transformer-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'primary_voltage' => 120, 'v1_unit' => 'v', 'primary_turns' => 1000, 'secondary_turns' => 100, 'primary_current' => 1, 'i1_unit' => 'a', 'p_unit' => 'w', 'efficiency' => 100, 'precision' => 6 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "primary_voltage": 120, "v1_unit": "v", "primary_turns": 1000, "secondary_turns": 100, "primary_current": 1, "i1_unit": "a", "p_unit": "w", "efficiency": 100, "precision": 6, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/transformer-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/transformer-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"primary_voltage\":120,\"v1_unit\":\"v\",\"primary_turns\":1000,\"secondary_turns\":100,\"primary_current\":1,\"i1_unit\":\"a\",\"p_unit\":\"w\",\"efficiency\":100,\"precision\":6}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`transformer-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/transformer-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/transformer-calculator/prompt.md`](/tools/transformer-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Transformer Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Transformer Calculator** — Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/transformer-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/transformer-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `primary_voltage` | float | no | (default `120.0`) | | `v1_unit` | str | no | one of: v, mv, kv — v \| mv \| kv (default `v`) | | `primary_turns` | float | no | (default `1000.0`) | | `secondary_turns` | float | no | (default `100.0`) | | `primary_current` | float | None | no | (default `1.0`) | | `i1_unit` | str | no | one of: a, ma — a \| ma (default `a`) | | `power_rating` | float | None | no | — | | `p_unit` | str | no | one of: w, mw, kw — w \| mw \| kw (default `w`) | | `efficiency` | float | no | (default `100.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "primary_voltage": 120, "v1_unit": "v", "primary_turns": 1000, "secondary_turns": 100, "primary_current": 1, "i1_unit": "a", "p_unit": "w", "efficiency": 100, "precision": 6 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "transformer-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "primary_voltage_v": 120.0, "secondary_voltage_v": 12.0, "primary_turns": 1000.0, "secondary_turns": 100.0, "turns_ratio": 10.0, "inverse_turns_ratio": 0.1, "transformer_type": "step-down", "primary_current_a": 1.0, "secondary_current_a": 10.0, "input_power_w": 120.0, "output_power_w": 120.0, "efficiency_percent": 100.0, "impedance_ratio": 100.0, "calculation_basis": "primary_current", "warnings": [] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Transformer Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Transformer Calculator** — Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/transformer-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/transformer-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `primary_voltage` | float | no | (default `120.0`) | | `v1_unit` | str | no | one of: v, mv, kv — v \| mv \| kv (default `v`) | | `primary_turns` | float | no | (default `1000.0`) | | `secondary_turns` | float | no | (default `100.0`) | | `primary_current` | float | None | no | (default `1.0`) | | `i1_unit` | str | no | one of: a, ma — a \| ma (default `a`) | | `power_rating` | float | None | no | — | | `p_unit` | str | no | one of: w, mw, kw — w \| mw \| kw (default `w`) | | `efficiency` | float | no | (default `100.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "primary_voltage": 120, "v1_unit": "v", "primary_turns": 1000, "secondary_turns": 100, "primary_current": 1, "i1_unit": "a", "p_unit": "w", "efficiency": 100, "precision": 6 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "transformer-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "primary_voltage_v": 120.0, "secondary_voltage_v": 12.0, "primary_turns": 1000.0, "secondary_turns": 100.0, "turns_ratio": 10.0, "inverse_turns_ratio": 0.1, "transformer_type": "step-down", "primary_current_a": 1.0, "secondary_current_a": 10.0, "input_power_w": 120.0, "output_power_w": 120.0, "efficiency_percent": 100.0, "impedance_ratio": 100.0, "calculation_basis": "primary_current", "warnings": [] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-transformer-calculator.mdc copy prompt ```text --- description: MiniWebtool Transformer Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Transformer Calculator API ## The API **Transformer Calculator** — Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/transformer-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/transformer-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `primary_voltage` | float | no | (default `120.0`) | | `v1_unit` | str | no | one of: v, mv, kv — v \| mv \| kv (default `v`) | | `primary_turns` | float | no | (default `1000.0`) | | `secondary_turns` | float | no | (default `100.0`) | | `primary_current` | float | None | no | (default `1.0`) | | `i1_unit` | str | no | one of: a, ma — a \| ma (default `a`) | | `power_rating` | float | None | no | — | | `p_unit` | str | no | one of: w, mw, kw — w \| mw \| kw (default `w`) | | `efficiency` | float | no | (default `100.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "primary_voltage": 120, "v1_unit": "v", "primary_turns": 1000, "secondary_turns": 100, "primary_current": 1, "i1_unit": "a", "p_unit": "w", "efficiency": 100, "precision": 6 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "transformer-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "primary_voltage_v": 120.0, "secondary_voltage_v": 12.0, "primary_turns": 1000.0, "secondary_turns": 100.0, "turns_ratio": 10.0, "inverse_turns_ratio": 0.1, "transformer_type": "step-down", "primary_current_a": 1.0, "secondary_current_a": 10.0, "input_power_w": 120.0, "output_power_w": 120.0, "efficiency_percent": 100.0, "impedance_ratio": 100.0, "calculation_basis": "primary_current", "warnings": [] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `transformer-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `transformer-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call transformer-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/transformer-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Transformer Calculator API do? + Calculate transformer turns ratio, secondary voltage, current, power, and impedance ratio. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Transformer Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Transformer Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Transformer Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Transformer Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `transformer-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`transformer-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"transformer-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Divider Calculator Calculate voltage divider output or solve for R1 or R2. ](/tools/voltage-divider-calculator/) [ Voltage Drop Calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. ](/tools/voltage-drop-calculator/) [ Battery Life Calculator Estimate battery runtime from capacity, consumption, and efficiency. ](/tools/battery-life-calculator/) [ Inductive Reactance Calculator Solve XL = 2πfL for inductive reactance, frequency, or inductance. ](/tools/inductive-reactance-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - Voltage Divider Calculator API # Voltage Divider Calculator API electronics 1 credit / call v2026-04-22 Calculate voltage divider output or solve for R1 or R2. One POST adds Voltage Divider Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Voltage Divider Calculator on miniwebtool.com →](https://miniwebtool.com/voltage-divider-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run ``` ### Request body Field Type Req. `mode` vout | r1 | r2 `str` — `vin` `float` — `r1` `float | None` — `r1_unit` ohm | kohm | mohm `str` — `r2` `float | None` — `r2_unit` ohm | kohm | mohm `str` — `vout_target` `float | None` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "voltage-divider-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → mode (str) vout r1 r2 vout | r1 | r2 vin (float) r1 (float | None) r1_unit (str) ohm kohm mohm ohm | kohm | mohm r2 (float | None) r2_unit (str) ohm kohm mohm ohm | kohm | mohm vout_target (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`voltage-divider-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"mode":"vout","vin":12,"r1":10,"r1_unit":"kohm","r2":10,"r2_unit":"kohm","precision":6}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'mode': 'vout', 'vin': 12, 'r1': 10, 'r1_unit': 'kohm', 'r2': 10, 'r2_unit': 'kohm', 'precision': 6}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"mode":"vout","vin":12,"r1":10,"r1_unit":"kohm","r2":10,"r2_unit":"kohm","precision":6}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'mode' => 'vout', 'vin' => 12, 'r1' => 10, 'r1_unit' => 'kohm', 'r2' => 10, 'r2_unit' => 'kohm', 'precision' => 6 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'mode' => 'vout', 'vin' => 12, 'r1' => 10, 'r1_unit' => 'kohm', 'r2' => 10, 'r2_unit' => 'kohm', 'precision' => 6 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "mode": "vout", "vin": 12, "r1": 10, "r1_unit": "kohm", "r2": 10, "r2_unit": "kohm", "precision": 6, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"mode\":\"vout\",\"vin\":12,\"r1\":10,\"r1_unit\":\"kohm\",\"r2\":10,\"r2_unit\":\"kohm\",\"precision\":6}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`voltage-divider-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/voltage-divider-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/voltage-divider-calculator/prompt.md`](/tools/voltage-divider-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Voltage Divider Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Voltage Divider Calculator** — Calculate voltage divider output or solve for R1 or R2. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: vout, r1, r2 — vout \| r1 \| r2 (default `vout`) | | `vin` | float | no | (default `12.0`) | | `r1` | float | None | no | (default `10.0`) | | `r1_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `kohm`) | | `r2` | float | None | no | (default `10.0`) | | `r2_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `kohm`) | | `vout_target` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json { "mode": "vout", "vin": 12, "r1": 10, "r1_unit": "kohm", "r2": 10, "r2_unit": "kohm", "precision": 6 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "voltage-divider-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "vout", "vin": 12.0, "r1_ohms": 10000.0, "r2_ohms": 10000.0, "vout": 6.0, "ratio": 0.5, "ratio_percent": 50.0, "total_resistance_ohms": 20000.0, "current_amps": 0.0006, "current_milliamps": 0.6, "power_r1_watts": 0.0036, "power_r2_watts": 0.0036, "power_total_watts": 0.0072, "found_label": null, "found_value_ohms": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Voltage Divider Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Voltage Divider Calculator** — Calculate voltage divider output or solve for R1 or R2. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: vout, r1, r2 — vout \| r1 \| r2 (default `vout`) | | `vin` | float | no | (default `12.0`) | | `r1` | float | None | no | (default `10.0`) | | `r1_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `kohm`) | | `r2` | float | None | no | (default `10.0`) | | `r2_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `kohm`) | | `vout_target` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json { "mode": "vout", "vin": 12, "r1": 10, "r1_unit": "kohm", "r2": 10, "r2_unit": "kohm", "precision": 6 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "voltage-divider-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "vout", "vin": 12.0, "r1_ohms": 10000.0, "r2_ohms": 10000.0, "vout": 6.0, "ratio": 0.5, "ratio_percent": 50.0, "total_resistance_ohms": 20000.0, "current_amps": 0.0006, "current_milliamps": 0.6, "power_r1_watts": 0.0036, "power_r2_watts": 0.0036, "power_total_watts": 0.0072, "found_label": null, "found_value_ohms": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-voltage-divider-calculator.mdc copy prompt ```text --- description: MiniWebtool Voltage Divider Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Voltage Divider Calculator API ## The API **Voltage Divider Calculator** — Calculate voltage divider output or solve for R1 or R2. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: vout, r1, r2 — vout \| r1 \| r2 (default `vout`) | | `vin` | float | no | (default `12.0`) | | `r1` | float | None | no | (default `10.0`) | | `r1_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `kohm`) | | `r2` | float | None | no | (default `10.0`) | | `r2_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `kohm`) | | `vout_target` | float | None | no | — | | `precision` | int | no | (default `6`) | Example request body: ```json { "mode": "vout", "vin": 12, "r1": 10, "r1_unit": "kohm", "r2": 10, "r2_unit": "kohm", "precision": 6 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "voltage-divider-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "vout", "vin": 12.0, "r1_ohms": 10000.0, "r2_ohms": 10000.0, "vout": 6.0, "ratio": 0.5, "ratio_percent": 50.0, "total_resistance_ohms": 20000.0, "current_amps": 0.0006, "current_milliamps": 0.6, "power_r1_watts": 0.0036, "power_r2_watts": 0.0036, "power_total_watts": 0.0072, "found_label": null, "found_value_ohms": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `voltage-divider-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `voltage-divider-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call voltage-divider-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/voltage-divider-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Voltage Divider Calculator API do? + Calculate voltage divider output or solve for R1 or R2. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Voltage Divider Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Voltage Divider Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Voltage Divider Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Voltage Divider Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `voltage-divider-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`voltage-divider-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"voltage-divider-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Drop Calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. ](/tools/voltage-drop-calculator/) [ Transformer Calculator Calculate transformer turns ratio, secondary voltage, current, power, and imped… ](/tools/transformer-calculator/) [ Battery Life Calculator Estimate battery runtime from capacity, consumption, and efficiency. ](/tools/battery-life-calculator/) [ Inductive Reactance Calculator Solve XL = 2πfL for inductive reactance, frequency, or inductance. ](/tools/inductive-reactance-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - Battery Life Calculator API # Battery Life Calculator API electronics 1 credit / call v2026-04-22 Estimate battery runtime from capacity, consumption, and efficiency. One POST adds Battery Life Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Battery Life Calculator on miniwebtool.com →](https://miniwebtool.com/battery-life-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/run ``` ### Request body Field Type Req. `capacity_mah` `float` ✓ `consumption_ma` `float` ✓ `efficiency_percent` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "battery-life-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → capacity_mah (float) * consumption_ma (float) * efficiency_percent (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`battery-life-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"capacity_mah":3000,"consumption_ma":150,"efficiency_percent":85}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/battery-life-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'capacity_mah': 3000, 'consumption_ma': 150, 'efficiency_percent': 85}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/battery-life-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"capacity_mah":3000,"consumption_ma":150,"efficiency_percent":85}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'capacity_mah' => 3000, 'consumption_ma' => 150, 'efficiency_percent' => 85 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/battery-life-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'capacity_mah' => 3000, 'consumption_ma' => 150, 'efficiency_percent' => 85 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "capacity_mah": 3000, "consumption_ma": 150, "efficiency_percent": 85, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/battery-life-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/battery-life-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"capacity_mah\":3000,\"consumption_ma\":150,\"efficiency_percent\":85}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`battery-life-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/battery-life-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/battery-life-calculator/prompt.md`](/tools/battery-life-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Battery Life Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Battery Life Calculator** — Estimate battery runtime from capacity, consumption, and efficiency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `capacity_mah` | float | yes | — | | `consumption_ma` | float | yes | — | | `efficiency_percent` | float | no | (default `85.0`) | Example request body: ```json { "capacity_mah": 3000, "consumption_ma": 150, "efficiency_percent": 85 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "battery-life-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "capacity_mah": 3000.0, "consumption_ma": 150.0, "efficiency_percent": 85.0, "effective_capacity_mah": 2550.0, "runtime_hours": 17.0, "runtime_minutes": 1020.0, "runtime": { "days": 0, "hours": 17, "minutes": 0, "formatted": "17 hours" }, "battery_day_percent": 70 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Battery Life Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Battery Life Calculator** — Estimate battery runtime from capacity, consumption, and efficiency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `capacity_mah` | float | yes | — | | `consumption_ma` | float | yes | — | | `efficiency_percent` | float | no | (default `85.0`) | Example request body: ```json { "capacity_mah": 3000, "consumption_ma": 150, "efficiency_percent": 85 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "battery-life-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "capacity_mah": 3000.0, "consumption_ma": 150.0, "efficiency_percent": 85.0, "effective_capacity_mah": 2550.0, "runtime_hours": 17.0, "runtime_minutes": 1020.0, "runtime": { "days": 0, "hours": 17, "minutes": 0, "formatted": "17 hours" }, "battery_day_percent": 70 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-battery-life-calculator.mdc copy prompt ```text --- description: MiniWebtool Battery Life Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Battery Life Calculator API ## The API **Battery Life Calculator** — Estimate battery runtime from capacity, consumption, and efficiency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/battery-life-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `capacity_mah` | float | yes | — | | `consumption_ma` | float | yes | — | | `efficiency_percent` | float | no | (default `85.0`) | Example request body: ```json { "capacity_mah": 3000, "consumption_ma": 150, "efficiency_percent": 85 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "battery-life-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "capacity_mah": 3000.0, "consumption_ma": 150.0, "efficiency_percent": 85.0, "effective_capacity_mah": 2550.0, "runtime_hours": 17.0, "runtime_minutes": 1020.0, "runtime": { "days": 0, "hours": 17, "minutes": 0, "formatted": "17 hours" }, "battery_day_percent": 70 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `battery-life-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `battery-life-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call battery-life-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`capacity_mah`,`consumption_ma`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/battery-life-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Battery Life Calculator API do? + Estimate battery runtime from capacity, consumption, and efficiency. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Battery Life Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Battery Life Calculator API require? + Required fields: capacity_mah, consumption_ma. Full schema at /v1/openapi.json. Is the Battery Life Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Battery Life Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `battery-life-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`battery-life-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"battery-life-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Divider Calculator Calculate voltage divider output or solve for R1 or R2. ](/tools/voltage-divider-calculator/) [ Voltage Drop Calculator Calculate electrical voltage drop for AWG copper or aluminum wire runs. ](/tools/voltage-drop-calculator/) [ Transformer Calculator Calculate transformer turns ratio, secondary voltage, current, power, and imped… ](/tools/transformer-calculator/) [ Inductive Reactance Calculator Solve XL = 2πfL for inductive reactance, frequency, or inductance. ](/tools/inductive-reactance-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [electronics](/tools/#electronics) - / - Voltage Drop Calculator API # Voltage Drop Calculator API electronics 1 credit / call v2026-04-22 Calculate electrical voltage drop for AWG copper or aluminum wire runs. One POST adds Voltage Drop Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Voltage Drop Calculator on miniwebtool.com →](https://miniwebtool.com/voltage-drop-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run ``` ### Request body Field Type Req. `wire_type` copper | aluminum `str` — `wire_size` 0000 | 000 | 00 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 `str` — `voltage` `float` — `phase` single | three `str` — `current` `float` — `wire_length` `float` — `length_unit` feet | meters `str` — `power_factor` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "voltage-drop-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → wire_type (str) copper aluminum copper | aluminum wire_size (str) 0000 000 00 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0000 | 000 | 00 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 voltage (float) phase (str) single three single | three current (float) wire_length (float) length_unit (str) feet meters feet | meters power_factor (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`voltage-drop-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"wire_type":"copper","wire_size":"12","voltage":120,"phase":"single","current":15,"wire_length":100,"length_unit":"feet","power_factor":1,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'wire_type': 'copper', 'wire_size': '12', 'voltage': 120, 'phase': 'single', 'current': 15, 'wire_length': 100, 'length_unit': 'feet', 'power_factor': 1, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"wire_type":"copper","wire_size":"12","voltage":120,"phase":"single","current":15,"wire_length":100,"length_unit":"feet","power_factor":1,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'wire_type' => 'copper', 'wire_size' => '12', 'voltage' => 120, 'phase' => 'single', 'current' => 15, 'wire_length' => 100, 'length_unit' => 'feet', 'power_factor' => 1, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'wire_type' => 'copper', 'wire_size' => '12', 'voltage' => 120, 'phase' => 'single', 'current' => 15, 'wire_length' => 100, 'length_unit' => 'feet', 'power_factor' => 1, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "wire_type": "copper", "wire_size": "12", "voltage": 120, "phase": "single", "current": 15, "wire_length": 100, "length_unit": "feet", "power_factor": 1, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"wire_type\":\"copper\",\"wire_size\":\"12\",\"voltage\":120,\"phase\":\"single\",\"current\":15,\"wire_length\":100,\"length_unit\":\"feet\",\"power_factor\":1,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`voltage-drop-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/voltage-drop-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/voltage-drop-calculator/prompt.md`](/tools/voltage-drop-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Voltage Drop Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Voltage Drop Calculator** — Calculate electrical voltage drop for AWG copper or aluminum wire runs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `wire_type` | str | no | one of: copper, aluminum — copper \| aluminum (default `copper`) | | `wire_size` | str | no | one of: 0000, 000, 00, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 — 0000 \| 000 \| 00 \| 0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 11 \| 12 \| 13 \| 14 \| 15 \| 16 \| 17 \| 18 \| 19 \| 20 (default `12`) | | `voltage` | float | no | (default `120.0`) | | `phase` | str | no | one of: single, three — single \| three (default `single`) | | `current` | float | no | (default `15.0`) | | `wire_length` | float | no | (default `100.0`) | | `length_unit` | str | no | one of: feet, meters — feet \| meters (default `feet`) | | `power_factor` | float | no | (default `1.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "wire_type": "copper", "wire_size": "12", "voltage": 120, "phase": "single", "current": 15, "wire_length": 100, "length_unit": "feet", "power_factor": 1, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "voltage-drop-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "wire_type": "copper", "wire_size": "12", "input_voltage": 120.0, "input_current": 15.0, "one_way_length": 100.0, "length_unit": "feet", "power_factor": 1.0, "phase": "single", "phase_factor": 2.0, "voltage_drop": 4.7649, "voltage_drop_percent": 3.9708, "voltage_at_load": 115.2351, "power_loss_watts": 71.4741, "wire_resistance_ohms": 0.3177, "wire_resistance_ohm_per_km": 5.211, "total_wire_length": 200.0, "wire_data": { "diameter_mm": 2.053, "area_mm2": 3.31, "copper_ohm_km": 5.211, "name": "12" }, "status": "acceptable", "recommended_sizes": [ { "awg": "10", "name": "10", "area_mm2": 5.26, "drop_percent": 2.4971 }, { "awg": "9", "name": "9", "area_mm2": 6.63, "drop_percent": 1.9804 }, { "awg": "8", "name": "8", "area_mm2": 8.37, "drop_percent": 1.5705 }, { "awg": "7", "name": "7", "area_mm2": 10.55, "drop_percent": 1.2451 }, { "awg": "6", "name": "6", "area_mm2": 13.3, "drop_percent": 0.9876 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Voltage Drop Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Voltage Drop Calculator** — Calculate electrical voltage drop for AWG copper or aluminum wire runs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `wire_type` | str | no | one of: copper, aluminum — copper \| aluminum (default `copper`) | | `wire_size` | str | no | one of: 0000, 000, 00, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 — 0000 \| 000 \| 00 \| 0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 11 \| 12 \| 13 \| 14 \| 15 \| 16 \| 17 \| 18 \| 19 \| 20 (default `12`) | | `voltage` | float | no | (default `120.0`) | | `phase` | str | no | one of: single, three — single \| three (default `single`) | | `current` | float | no | (default `15.0`) | | `wire_length` | float | no | (default `100.0`) | | `length_unit` | str | no | one of: feet, meters — feet \| meters (default `feet`) | | `power_factor` | float | no | (default `1.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "wire_type": "copper", "wire_size": "12", "voltage": 120, "phase": "single", "current": 15, "wire_length": 100, "length_unit": "feet", "power_factor": 1, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "voltage-drop-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "wire_type": "copper", "wire_size": "12", "input_voltage": 120.0, "input_current": 15.0, "one_way_length": 100.0, "length_unit": "feet", "power_factor": 1.0, "phase": "single", "phase_factor": 2.0, "voltage_drop": 4.7649, "voltage_drop_percent": 3.9708, "voltage_at_load": 115.2351, "power_loss_watts": 71.4741, "wire_resistance_ohms": 0.3177, "wire_resistance_ohm_per_km": 5.211, "total_wire_length": 200.0, "wire_data": { "diameter_mm": 2.053, "area_mm2": 3.31, "copper_ohm_km": 5.211, "name": "12" }, "status": "acceptable", "recommended_sizes": [ { "awg": "10", "name": "10", "area_mm2": 5.26, "drop_percent": 2.4971 }, { "awg": "9", "name": "9", "area_mm2": 6.63, "drop_percent": 1.9804 }, { "awg": "8", "name": "8", "area_mm2": 8.37, "drop_percent": 1.5705 }, { "awg": "7", "name": "7", "area_mm2": 10.55, "drop_percent": 1.2451 }, { "awg": "6", "name": "6", "area_mm2": 13.3, "drop_percent": 0.9876 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-voltage-drop-calculator.mdc copy prompt ```text --- description: MiniWebtool Voltage Drop Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Voltage Drop Calculator API ## The API **Voltage Drop Calculator** — Calculate electrical voltage drop for AWG copper or aluminum wire runs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `wire_type` | str | no | one of: copper, aluminum — copper \| aluminum (default `copper`) | | `wire_size` | str | no | one of: 0000, 000, 00, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 — 0000 \| 000 \| 00 \| 0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10 \| 11 \| 12 \| 13 \| 14 \| 15 \| 16 \| 17 \| 18 \| 19 \| 20 (default `12`) | | `voltage` | float | no | (default `120.0`) | | `phase` | str | no | one of: single, three — single \| three (default `single`) | | `current` | float | no | (default `15.0`) | | `wire_length` | float | no | (default `100.0`) | | `length_unit` | str | no | one of: feet, meters — feet \| meters (default `feet`) | | `power_factor` | float | no | (default `1.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "wire_type": "copper", "wire_size": "12", "voltage": 120, "phase": "single", "current": 15, "wire_length": 100, "length_unit": "feet", "power_factor": 1, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "voltage-drop-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "wire_type": "copper", "wire_size": "12", "input_voltage": 120.0, "input_current": 15.0, "one_way_length": 100.0, "length_unit": "feet", "power_factor": 1.0, "phase": "single", "phase_factor": 2.0, "voltage_drop": 4.7649, "voltage_drop_percent": 3.9708, "voltage_at_load": 115.2351, "power_loss_watts": 71.4741, "wire_resistance_ohms": 0.3177, "wire_resistance_ohm_per_km": 5.211, "total_wire_length": 200.0, "wire_data": { "diameter_mm": 2.053, "area_mm2": 3.31, "copper_ohm_km": 5.211, "name": "12" }, "status": "acceptable", "recommended_sizes": [ { "awg": "10", "name": "10", "area_mm2": 5.26, "drop_percent": 2.4971 }, { "awg": "9", "name": "9", "area_mm2": 6.63, "drop_percent": 1.9804 }, { "awg": "8", "name": "8", "area_mm2": 8.37, "drop_percent": 1.5705 }, { "awg": "7", "name": "7", "area_mm2": 10.55, "drop_percent": 1.2451 }, { "awg": "6", "name": "6", "area_mm2": 13.3, "drop_percent": 0.9876 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `voltage-drop-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `voltage-drop-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call voltage-drop-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/voltage-drop-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Voltage Drop Calculator API do? + Calculate electrical voltage drop for AWG copper or aluminum wire runs. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Voltage Drop Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Voltage Drop Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Voltage Drop Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Voltage Drop Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `voltage-drop-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`voltage-drop-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"voltage-drop-calculator"}}}' \ | jq.result.structuredContent ``` see-also related electronics tools [ Voltage Divider Calculator Calculate voltage divider output or solve for R1 or R2. ](/tools/voltage-divider-calculator/) [ Transformer Calculator Calculate transformer turns ratio, secondary voltage, current, power, and imped… ](/tools/transformer-calculator/) [ Battery Life Calculator Estimate battery runtime from capacity, consumption, and efficiency. ](/tools/battery-life-calculator/) [ Inductive Reactance Calculator Solve XL = 2πfL for inductive reactance, frequency, or inductance. ](/tools/inductive-reactance-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [engineering](/tools/#engineering) - / - Wire Gauge Calculator API # Wire Gauge Calculator API engineering 1 credit / call v2026-04-22 Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. One POST adds Wire Gauge Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Wire Gauge Calculator on miniwebtool.com →](https://miniwebtool.com/wire-gauge-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run ``` ### Request body Field Type Req. `awg_gauge` `int` — `conductor_material` copper | aluminum `str` — `temp_rating` 60 | 75 | 90 `str` — `voltage` `float | None` — `current` `float | None` — `wire_length_ft` `float | None` — `phase` single | three `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "wire-gauge-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → awg_gauge (int) conductor_material (str) copper aluminum copper | aluminum temp_rating (str) 60 75 90 60 | 75 | 90 voltage (float | None) current (float | None) wire_length_ft (float | None) phase (str) single three single | three Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`wire-gauge-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"awg_gauge":12,"conductor_material":"copper","temp_rating":"75","voltage":120,"current":20,"wire_length_ft":100,"phase":"single"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'awg_gauge': 12, 'conductor_material': 'copper', 'temp_rating': '75', 'voltage': 120, 'current': 20, 'wire_length_ft': 100, 'phase': 'single'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"awg_gauge":12,"conductor_material":"copper","temp_rating":"75","voltage":120,"current":20,"wire_length_ft":100,"phase":"single"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'awg_gauge' => 12, 'conductor_material' => 'copper', 'temp_rating' => '75', 'voltage' => 120, 'current' => 20, 'wire_length_ft' => 100, 'phase' => 'single' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'awg_gauge' => 12, 'conductor_material' => 'copper', 'temp_rating' => '75', 'voltage' => 120, 'current' => 20, 'wire_length_ft' => 100, 'phase' => 'single' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "awg_gauge": 12, "conductor_material": "copper", "temp_rating": "75", "voltage": 120, "current": 20, "wire_length_ft": 100, "phase": "single", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"awg_gauge\":12,\"conductor_material\":\"copper\",\"temp_rating\":\"75\",\"voltage\":120,\"current\":20,\"wire_length_ft\":100,\"phase\":\"single\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`wire-gauge-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/wire-gauge-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/wire-gauge-calculator/prompt.md`](/tools/wire-gauge-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Wire Gauge Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Wire Gauge Calculator** — Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `awg_gauge` | int | no | (default `12`) | | `conductor_material` | str | no | one of: copper, aluminum — copper \| aluminum (default `copper`) | | `temp_rating` | str | no | one of: 60, 75, 90 — 60 \| 75 \| 90 (default `75`) | | `voltage` | float | None | no | — | | `current` | float | None | no | — | | `wire_length_ft` | float | None | no | — | | `phase` | str | no | one of: single, three — single \| three (default `single`) | Example request body: ```json { "awg_gauge": 12, "conductor_material": "copper", "temp_rating": "75", "voltage": 120, "current": 20, "wire_length_ft": 100, "phase": "single" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wire-gauge-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "gauge": 12, "label": "12", "diameter_mm": 2.05253, "diameter_in": 0.080808, "area_mm2": 3.30877, "area_kcmil": 6.5299, "copper_resistance_ohm_per_km": 5.21069, "copper_resistance_ohm_per_1000ft": 1.58822, "aluminum_resistance_ohm_per_km": 8.02352, "aluminum_resistance_ohm_per_1000ft": 2.44557, "material": "copper", "temp_rating_c": 75, "ampacity_amps": 25, "max_power_120w": 3000, "max_power_240w": 6000, "voltage_drop": { "volts": 6.3529, "percent": 5.2941, "voltage_at_load": 113.6471, "power_loss_watts": 127.0576, "rating": "excessive" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Wire Gauge Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Wire Gauge Calculator** — Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `awg_gauge` | int | no | (default `12`) | | `conductor_material` | str | no | one of: copper, aluminum — copper \| aluminum (default `copper`) | | `temp_rating` | str | no | one of: 60, 75, 90 — 60 \| 75 \| 90 (default `75`) | | `voltage` | float | None | no | — | | `current` | float | None | no | — | | `wire_length_ft` | float | None | no | — | | `phase` | str | no | one of: single, three — single \| three (default `single`) | Example request body: ```json { "awg_gauge": 12, "conductor_material": "copper", "temp_rating": "75", "voltage": 120, "current": 20, "wire_length_ft": 100, "phase": "single" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wire-gauge-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "gauge": 12, "label": "12", "diameter_mm": 2.05253, "diameter_in": 0.080808, "area_mm2": 3.30877, "area_kcmil": 6.5299, "copper_resistance_ohm_per_km": 5.21069, "copper_resistance_ohm_per_1000ft": 1.58822, "aluminum_resistance_ohm_per_km": 8.02352, "aluminum_resistance_ohm_per_1000ft": 2.44557, "material": "copper", "temp_rating_c": 75, "ampacity_amps": 25, "max_power_120w": 3000, "max_power_240w": 6000, "voltage_drop": { "volts": 6.3529, "percent": 5.2941, "voltage_at_load": 113.6471, "power_loss_watts": 127.0576, "rating": "excessive" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-wire-gauge-calculator.mdc copy prompt ```text --- description: MiniWebtool Wire Gauge Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Wire Gauge Calculator API ## The API **Wire Gauge Calculator** — Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `awg_gauge` | int | no | (default `12`) | | `conductor_material` | str | no | one of: copper, aluminum — copper \| aluminum (default `copper`) | | `temp_rating` | str | no | one of: 60, 75, 90 — 60 \| 75 \| 90 (default `75`) | | `voltage` | float | None | no | — | | `current` | float | None | no | — | | `wire_length_ft` | float | None | no | — | | `phase` | str | no | one of: single, three — single \| three (default `single`) | Example request body: ```json { "awg_gauge": 12, "conductor_material": "copper", "temp_rating": "75", "voltage": 120, "current": 20, "wire_length_ft": 100, "phase": "single" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wire-gauge-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "gauge": 12, "label": "12", "diameter_mm": 2.05253, "diameter_in": 0.080808, "area_mm2": 3.30877, "area_kcmil": 6.5299, "copper_resistance_ohm_per_km": 5.21069, "copper_resistance_ohm_per_1000ft": 1.58822, "aluminum_resistance_ohm_per_km": 8.02352, "aluminum_resistance_ohm_per_1000ft": 2.44557, "material": "copper", "temp_rating_c": 75, "ampacity_amps": 25, "max_power_120w": 3000, "max_power_240w": 6000, "voltage_drop": { "volts": 6.3529, "percent": 5.2941, "voltage_at_load": 113.6471, "power_loss_watts": 127.0576, "rating": "excessive" } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `wire-gauge-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `wire-gauge-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call wire-gauge-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/wire-gauge-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Wire Gauge Calculator API do? + Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Wire Gauge Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Wire Gauge Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Wire Gauge Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Wire Gauge Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `wire-gauge-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`wire-gauge-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"wire-gauge-calculator"}}}' \ | jq.result.structuredContent ``` see-also related engineering tools [ Hydraulic Cylinder Force Calculator Calculate hydraulic cylinder extend and retract force from pressure and diamete… ](/tools/hydraulic-cylinder-force-calculator/) [ Impedance Calculator Calculate series or parallel RLC impedance, phase, resonance, and power factor. ](/tools/impedance-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [engineering](/tools/#engineering) - / - Impedance Calculator API # Impedance Calculator API engineering 1 credit / call v2026-04-22 Calculate series or parallel RLC impedance, phase, resonance, and power factor. One POST adds Impedance Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Impedance Calculator on miniwebtool.com →](https://miniwebtool.com/impedance-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/impedance-calculator/run ``` ### Request body Field Type Req. `circuit_type` series | parallel `str` — `resistance` `float` — `r_unit` ohm | kohm | mohm `str` — `inductance` `float` — `l_unit` h | mh | uh | nh `str` — `capacitance` `float` — `c_unit` f | mf | uf | nf | pf `str` — `frequency` `float` — `f_unit` Hz | kHz | MHz | GHz `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "impedance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → circuit_type (str) series parallel series | parallel resistance (float) r_unit (str) ohm kohm mohm ohm | kohm | mohm inductance (float) l_unit (str) h mh uh nh h | mh | uh | nh capacitance (float) c_unit (str) f mf uf nf pf f | mf | uf | nf | pf frequency (float) f_unit (str) Hz kHz MHz GHz Hz | kHz | MHz | GHz precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`impedance-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/impedance-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/impedance-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/impedance-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/impedance-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/impedance-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/impedance-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`impedance-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/impedance-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/impedance-calculator/prompt.md`](/tools/impedance-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Impedance Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Impedance Calculator** — Calculate series or parallel RLC impedance, phase, resonance, and power factor. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/impedance-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/impedance-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `circuit_type` | str | no | one of: series, parallel — series \| parallel (default `series`) | | `resistance` | float | no | (default `100`) | | `r_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `ohm`) | | `inductance` | float | no | (default `50`) | | `l_unit` | str | no | one of: h, mh, uh, nh — h \| mh \| uh \| nh (default `mh`) | | `capacitance` | float | no | (default `10`) | | `c_unit` | str | no | one of: f, mf, uf, nf, pf — f \| mf \| uf \| nf \| pf (default `uf`) | | `frequency` | float | no | (default `1`) | | `f_unit` | str | no | one of: Hz, kHz, MHz, GHz — Hz \| kHz \| MHz \| GHz (default `kHz`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "impedance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "circuit_type": "series", "resistance_ohm": 100.0, "inductance_h": 0.05, "capacitance_f": 1e-05, "frequency_hz": 1000.0, "angular_frequency_rad_s": 6283.185307, "xl_ohm": 314.159265, "xc_ohm": 15.915494, "z_real_ohm": 100.0, "z_imag_ohm": 298.243771, "z_magnitude_ohm": 314.562151, "phase_degrees": 71.463894, "nature": "inductive", "resonant_frequency_hz": 225.079079, "q_factor": 0.707107, "power_factor": 0.317902 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Impedance Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Impedance Calculator** — Calculate series or parallel RLC impedance, phase, resonance, and power factor. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/impedance-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/impedance-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `circuit_type` | str | no | one of: series, parallel — series \| parallel (default `series`) | | `resistance` | float | no | (default `100`) | | `r_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `ohm`) | | `inductance` | float | no | (default `50`) | | `l_unit` | str | no | one of: h, mh, uh, nh — h \| mh \| uh \| nh (default `mh`) | | `capacitance` | float | no | (default `10`) | | `c_unit` | str | no | one of: f, mf, uf, nf, pf — f \| mf \| uf \| nf \| pf (default `uf`) | | `frequency` | float | no | (default `1`) | | `f_unit` | str | no | one of: Hz, kHz, MHz, GHz — Hz \| kHz \| MHz \| GHz (default `kHz`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "impedance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "circuit_type": "series", "resistance_ohm": 100.0, "inductance_h": 0.05, "capacitance_f": 1e-05, "frequency_hz": 1000.0, "angular_frequency_rad_s": 6283.185307, "xl_ohm": 314.159265, "xc_ohm": 15.915494, "z_real_ohm": 100.0, "z_imag_ohm": 298.243771, "z_magnitude_ohm": 314.562151, "phase_degrees": 71.463894, "nature": "inductive", "resonant_frequency_hz": 225.079079, "q_factor": 0.707107, "power_factor": 0.317902 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-impedance-calculator.mdc copy prompt ```text --- description: MiniWebtool Impedance Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Impedance Calculator API ## The API **Impedance Calculator** — Calculate series or parallel RLC impedance, phase, resonance, and power factor. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/impedance-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/impedance-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `circuit_type` | str | no | one of: series, parallel — series \| parallel (default `series`) | | `resistance` | float | no | (default `100`) | | `r_unit` | str | no | one of: ohm, kohm, mohm — ohm \| kohm \| mohm (default `ohm`) | | `inductance` | float | no | (default `50`) | | `l_unit` | str | no | one of: h, mh, uh, nh — h \| mh \| uh \| nh (default `mh`) | | `capacitance` | float | no | (default `10`) | | `c_unit` | str | no | one of: f, mf, uf, nf, pf — f \| mf \| uf \| nf \| pf (default `uf`) | | `frequency` | float | no | (default `1`) | | `f_unit` | str | no | one of: Hz, kHz, MHz, GHz — Hz \| kHz \| MHz \| GHz (default `kHz`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "impedance-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "circuit_type": "series", "resistance_ohm": 100.0, "inductance_h": 0.05, "capacitance_f": 1e-05, "frequency_hz": 1000.0, "angular_frequency_rad_s": 6283.185307, "xl_ohm": 314.159265, "xc_ohm": 15.915494, "z_real_ohm": 100.0, "z_imag_ohm": 298.243771, "z_magnitude_ohm": 314.562151, "phase_degrees": 71.463894, "nature": "inductive", "resonant_frequency_hz": 225.079079, "q_factor": 0.707107, "power_factor": 0.317902 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `impedance-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `impedance-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call impedance-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/impedance-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Impedance Calculator API do? + Calculate series or parallel RLC impedance, phase, resonance, and power factor. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Impedance Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Impedance Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Impedance Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Impedance Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `impedance-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`impedance-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"impedance-calculator"}}}' \ | jq.result.structuredContent ``` see-also related engineering tools [ Hydraulic Cylinder Force Calculator Calculate hydraulic cylinder extend and retract force from pressure and diamete… ](/tools/hydraulic-cylinder-force-calculator/) [ Wire Gauge Calculator Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. ](/tools/wire-gauge-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [engineering](/tools/#engineering) - / - Hydraulic Cylinder Force Calculator API # Hydraulic Cylinder Force Calculator API engineering 1 credit / call v2026-04-22 Calculate hydraulic cylinder extend and retract force from pressure and diameters. One POST adds Hydraulic Cylinder Force Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Hydraulic Cylinder Force Calculator on miniwebtool.com →](https://miniwebtool.com/hydraulic-cylinder-force-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run ``` ### Request body Field Type Req. `pressure` `float` — `pressure_unit` bar | psi | mpa | kpa `str` — `bore` `float` — `rod` `float` — `size_unit` mm | cm | in `str` — `force_unit` n | kn | lbf | kgf | tonf `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "hydraulic-cylinder-force-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → pressure (float) pressure_unit (str) bar psi mpa kpa bar | psi | mpa | kpa bore (float) rod (float) size_unit (str) mm cm in mm | cm | in force_unit (str) n kn lbf kgf tonf n | kn | lbf | kgf | tonf precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`hydraulic-cylinder-force-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`hydraulic-cylinder-force-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/hydraulic-cylinder-force-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/hydraulic-cylinder-force-calculator/prompt.md`](/tools/hydraulic-cylinder-force-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Hydraulic Cylinder Force Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Hydraulic Cylinder Force Calculator** — Calculate hydraulic cylinder extend and retract force from pressure and diameters. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `pressure` | float | no | (default `150`) | | `pressure_unit` | str | no | one of: bar, psi, mpa, kpa — bar \| psi \| mpa \| kpa (default `bar`) | | `bore` | float | no | (default `63`) | | `rod` | float | no | (default `35`) | | `size_unit` | str | no | one of: mm, cm, in — mm \| cm \| in (default `mm`) | | `force_unit` | str | no | one of: n, kn, lbf, kgf, tonf — n \| kn \| lbf \| kgf \| tonf (default `kn`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hydraulic-cylinder-force-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "pressure_pa": 15000000.0, "bore_m": 0.063, "rod_m": 0.035, "piston_area_m2": 0.003117, "annulus_area_m2": 0.002155, "push_force_n": 46758.679658, "pull_force_n": 32326.988405, "push_force": 46.75868, "pull_force": 32.326988, "force_unit": "kn", "pull_to_push_percent": 69.135802, "force_ratio": 1.446429 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Hydraulic Cylinder Force Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Hydraulic Cylinder Force Calculator** — Calculate hydraulic cylinder extend and retract force from pressure and diameters. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `pressure` | float | no | (default `150`) | | `pressure_unit` | str | no | one of: bar, psi, mpa, kpa — bar \| psi \| mpa \| kpa (default `bar`) | | `bore` | float | no | (default `63`) | | `rod` | float | no | (default `35`) | | `size_unit` | str | no | one of: mm, cm, in — mm \| cm \| in (default `mm`) | | `force_unit` | str | no | one of: n, kn, lbf, kgf, tonf — n \| kn \| lbf \| kgf \| tonf (default `kn`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hydraulic-cylinder-force-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "pressure_pa": 15000000.0, "bore_m": 0.063, "rod_m": 0.035, "piston_area_m2": 0.003117, "annulus_area_m2": 0.002155, "push_force_n": 46758.679658, "pull_force_n": 32326.988405, "push_force": 46.75868, "pull_force": 32.326988, "force_unit": "kn", "pull_to_push_percent": 69.135802, "force_ratio": 1.446429 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-hydraulic-cylinder-force-calculator.mdc copy prompt ```text --- description: MiniWebtool Hydraulic Cylinder Force Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Hydraulic Cylinder Force Calculator API ## The API **Hydraulic Cylinder Force Calculator** — Calculate hydraulic cylinder extend and retract force from pressure and diameters. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `pressure` | float | no | (default `150`) | | `pressure_unit` | str | no | one of: bar, psi, mpa, kpa — bar \| psi \| mpa \| kpa (default `bar`) | | `bore` | float | no | (default `63`) | | `rod` | float | no | (default `35`) | | `size_unit` | str | no | one of: mm, cm, in — mm \| cm \| in (default `mm`) | | `force_unit` | str | no | one of: n, kn, lbf, kgf, tonf — n \| kn \| lbf \| kgf \| tonf (default `kn`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "hydraulic-cylinder-force-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "pressure_pa": 15000000.0, "bore_m": 0.063, "rod_m": 0.035, "piston_area_m2": 0.003117, "annulus_area_m2": 0.002155, "push_force_n": 46758.679658, "pull_force_n": 32326.988405, "push_force": 46.75868, "pull_force": 32.326988, "force_unit": "kn", "pull_to_push_percent": 69.135802, "force_ratio": 1.446429 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `hydraulic-cylinder-force-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `hydraulic-cylinder-force-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call hydraulic-cylinder-force-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/hydraulic-cylinder-force-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Hydraulic Cylinder Force Calculator API do? + Calculate hydraulic cylinder extend and retract force from pressure and diameters. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Hydraulic Cylinder Force Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Hydraulic Cylinder Force Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Hydraulic Cylinder Force Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Hydraulic Cylinder Force Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `hydraulic-cylinder-force-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`hydraulic-cylinder-force-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"hydraulic-cylinder-force-calculator"}}}' \ | jq.result.structuredContent ``` see-also related engineering tools [ Impedance Calculator Calculate series or parallel RLC impedance, phase, resonance, and power factor. ](/tools/impedance-calculator/) [ Wire Gauge Calculator Calculate AWG diameter, area, resistance, ampacity, and optional voltage drop. ](/tools/wire-gauge-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [environment](/tools/#environment) - / - Water Usage Calculator API # Water Usage Calculator API environment 1 credit / call v2026-04-22 Estimate household daily, monthly, and annual water use by activity. One POST adds Water Usage Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Water Usage Calculator on miniwebtool.com →](https://miniwebtool.com/water-usage-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/run ``` ### Request body Field Type Req. `household_size` `int` — `unit_system` gallons | liters `str` — `shower_flow` `float` — `shower_minutes` `float` — `showers_per_person` `float` — `toilet_volume` `float` — `flushes_per_person` `float` — `washer_volume` `float` — `laundry_loads_week` `float` — `dishwasher_volume` `float` — `dishwasher_loads_week` `float` — `faucet_flow` `float` — `faucet_minutes` `float` — `outdoor_daily` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "water-usage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → household_size (int) unit_system (str) gallons liters gallons | liters shower_flow (float) shower_minutes (float) showers_per_person (float) toilet_volume (float) flushes_per_person (float) washer_volume (float) laundry_loads_week (float) dishwasher_volume (float) dishwasher_loads_week (float) faucet_flow (float) faucet_minutes (float) outdoor_daily (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`water-usage-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"household_size":4,"unit_system":"gallons","shower_flow":2.5,"shower_minutes":8,"showers_per_person":1,"toilet_volume":1.6,"flushes_per_person":5,"washer_volume":25,"laundry_loads_week":7,"dishwasher_volume":5,"dishwasher_loads_week":5,"faucet_flow":1.5,"faucet_minutes":8,"outdoor_daily":25}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/water-usage-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'household_size': 4, 'unit_system': 'gallons', 'shower_flow': 2.5, 'shower_minutes': 8, 'showers_per_person': 1, 'toilet_volume': 1.6, 'flushes_per_person': 5, 'washer_volume': 25, 'laundry_loads_week': 7, 'dishwasher_volume': 5, 'dishwasher_loads_week': 5, 'faucet_flow': 1.5, 'faucet_minutes': 8, 'outdoor_daily': 25}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/water-usage-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"household_size":4,"unit_system":"gallons","shower_flow":2.5,"shower_minutes":8,"showers_per_person":1,"toilet_volume":1.6,"flushes_per_person":5,"washer_volume":25,"laundry_loads_week":7,"dishwasher_volume":5,"dishwasher_loads_week":5,"faucet_flow":1.5,"faucet_minutes":8,"outdoor_daily":25}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'household_size' => 4, 'unit_system' => 'gallons', 'shower_flow' => 2.5, 'shower_minutes' => 8, 'showers_per_person' => 1, 'toilet_volume' => 1.6, 'flushes_per_person' => 5, 'washer_volume' => 25, 'laundry_loads_week' => 7, 'dishwasher_volume' => 5, 'dishwasher_loads_week' => 5, 'faucet_flow' => 1.5, 'faucet_minutes' => 8, 'outdoor_daily' => 25 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/water-usage-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'household_size' => 4, 'unit_system' => 'gallons', 'shower_flow' => 2.5, 'shower_minutes' => 8, 'showers_per_person' => 1, 'toilet_volume' => 1.6, 'flushes_per_person' => 5, 'washer_volume' => 25, 'laundry_loads_week' => 7, 'dishwasher_volume' => 5, 'dishwasher_loads_week' => 5, 'faucet_flow' => 1.5, 'faucet_minutes' => 8, 'outdoor_daily' => 25 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "household_size": 4, "unit_system": "gallons", "shower_flow": 2.5, "shower_minutes": 8, "showers_per_person": 1, "toilet_volume": 1.6, "flushes_per_person": 5, "washer_volume": 25, "laundry_loads_week": 7, "dishwasher_volume": 5, "dishwasher_loads_week": 5, "faucet_flow": 1.5, "faucet_minutes": 8, "outdoor_daily": 25, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/water-usage-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/water-usage-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"household_size\":4,\"unit_system\":\"gallons\",\"shower_flow\":2.5,\"shower_minutes\":8,\"showers_per_person\":1,\"toilet_volume\":1.6,\"flushes_per_person\":5,\"washer_volume\":25,\"laundry_loads_week\":7,\"dishwasher_volume\":5,\"dishwasher_loads_week\":5,\"faucet_flow\":1.5,\"faucet_minutes\":8,\"outdoor_daily\":25}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`water-usage-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/water-usage-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/water-usage-calculator/prompt.md`](/tools/water-usage-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Water Usage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Water Usage Calculator** — Estimate household daily, monthly, and annual water use by activity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `household_size` | int | no | (default `4`) | | `unit_system` | str | no | one of: gallons, liters — gallons \| liters (default `gallons`) | | `shower_flow` | float | no | (default `2.5`) | | `shower_minutes` | float | no | (default `8`) | | `showers_per_person` | float | no | (default `1`) | | `toilet_volume` | float | no | (default `1.6`) | | `flushes_per_person` | float | no | (default `5`) | | `washer_volume` | float | no | (default `25`) | | `laundry_loads_week` | float | no | (default `7`) | | `dishwasher_volume` | float | no | (default `5`) | | `dishwasher_loads_week` | float | no | (default `5`) | | `faucet_flow` | float | no | (default `1.5`) | | `faucet_minutes` | float | no | (default `8`) | | `outdoor_daily` | float | no | (default `25`) | Example request body: ```json { "household_size": 4, "unit_system": "gallons", "shower_flow": 2.5, "shower_minutes": 8, "showers_per_person": 1, "toilet_volume": 1.6, "flushes_per_person": 5, "washer_volume": 25, "laundry_loads_week": 7, "dishwasher_volume": 5, "dishwasher_loads_week": 5, "faucet_flow": 1.5, "faucet_minutes": 8, "outdoor_daily": 25 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "water-usage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "gallons", "household_size": 4, "daily_total": 213.571, "monthly_total": 6500.58, "annual_total": 77953.571, "per_person_daily": 53.393, "alternate_daily": 808.456, "status": "moderate", "breakdown": [ { "category": "showers", "daily": 80.0, "share_percent": 37.458 }, { "category": "toilets", "daily": 32.0, "share_percent": 14.983 }, { "category": "laundry", "daily": 25.0, "share_percent": 11.706 }, { "category": "dishwasher", "daily": 3.571, "share_percent": 1.672 }, { "category": "faucets", "daily": 48.0, "share_percent": 22.475 }, { "category": "outdoor", "daily": 25.0, "share_percent": 11.706 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Water Usage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Water Usage Calculator** — Estimate household daily, monthly, and annual water use by activity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `household_size` | int | no | (default `4`) | | `unit_system` | str | no | one of: gallons, liters — gallons \| liters (default `gallons`) | | `shower_flow` | float | no | (default `2.5`) | | `shower_minutes` | float | no | (default `8`) | | `showers_per_person` | float | no | (default `1`) | | `toilet_volume` | float | no | (default `1.6`) | | `flushes_per_person` | float | no | (default `5`) | | `washer_volume` | float | no | (default `25`) | | `laundry_loads_week` | float | no | (default `7`) | | `dishwasher_volume` | float | no | (default `5`) | | `dishwasher_loads_week` | float | no | (default `5`) | | `faucet_flow` | float | no | (default `1.5`) | | `faucet_minutes` | float | no | (default `8`) | | `outdoor_daily` | float | no | (default `25`) | Example request body: ```json { "household_size": 4, "unit_system": "gallons", "shower_flow": 2.5, "shower_minutes": 8, "showers_per_person": 1, "toilet_volume": 1.6, "flushes_per_person": 5, "washer_volume": 25, "laundry_loads_week": 7, "dishwasher_volume": 5, "dishwasher_loads_week": 5, "faucet_flow": 1.5, "faucet_minutes": 8, "outdoor_daily": 25 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "water-usage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "gallons", "household_size": 4, "daily_total": 213.571, "monthly_total": 6500.58, "annual_total": 77953.571, "per_person_daily": 53.393, "alternate_daily": 808.456, "status": "moderate", "breakdown": [ { "category": "showers", "daily": 80.0, "share_percent": 37.458 }, { "category": "toilets", "daily": 32.0, "share_percent": 14.983 }, { "category": "laundry", "daily": 25.0, "share_percent": 11.706 }, { "category": "dishwasher", "daily": 3.571, "share_percent": 1.672 }, { "category": "faucets", "daily": 48.0, "share_percent": 22.475 }, { "category": "outdoor", "daily": 25.0, "share_percent": 11.706 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-water-usage-calculator.mdc copy prompt ```text --- description: MiniWebtool Water Usage Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Water Usage Calculator API ## The API **Water Usage Calculator** — Estimate household daily, monthly, and annual water use by activity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/water-usage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `household_size` | int | no | (default `4`) | | `unit_system` | str | no | one of: gallons, liters — gallons \| liters (default `gallons`) | | `shower_flow` | float | no | (default `2.5`) | | `shower_minutes` | float | no | (default `8`) | | `showers_per_person` | float | no | (default `1`) | | `toilet_volume` | float | no | (default `1.6`) | | `flushes_per_person` | float | no | (default `5`) | | `washer_volume` | float | no | (default `25`) | | `laundry_loads_week` | float | no | (default `7`) | | `dishwasher_volume` | float | no | (default `5`) | | `dishwasher_loads_week` | float | no | (default `5`) | | `faucet_flow` | float | no | (default `1.5`) | | `faucet_minutes` | float | no | (default `8`) | | `outdoor_daily` | float | no | (default `25`) | Example request body: ```json { "household_size": 4, "unit_system": "gallons", "shower_flow": 2.5, "shower_minutes": 8, "showers_per_person": 1, "toilet_volume": 1.6, "flushes_per_person": 5, "washer_volume": 25, "laundry_loads_week": 7, "dishwasher_volume": 5, "dishwasher_loads_week": 5, "faucet_flow": 1.5, "faucet_minutes": 8, "outdoor_daily": 25 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "water-usage-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit_system": "gallons", "household_size": 4, "daily_total": 213.571, "monthly_total": 6500.58, "annual_total": 77953.571, "per_person_daily": 53.393, "alternate_daily": 808.456, "status": "moderate", "breakdown": [ { "category": "showers", "daily": 80.0, "share_percent": 37.458 }, { "category": "toilets", "daily": 32.0, "share_percent": 14.983 }, { "category": "laundry", "daily": 25.0, "share_percent": 11.706 }, { "category": "dishwasher", "daily": 3.571, "share_percent": 1.672 }, { "category": "faucets", "daily": 48.0, "share_percent": 22.475 }, { "category": "outdoor", "daily": 25.0, "share_percent": 11.706 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `water-usage-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `water-usage-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call water-usage-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/water-usage-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Water Usage Calculator API do? + Estimate household daily, monthly, and annual water use by activity. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Water Usage Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Water Usage Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Water Usage Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Water Usage Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `water-usage-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`water-usage-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"water-usage-calculator"}}}' \ | jq.result.structuredContent ``` API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [event](/tools/#event) - / - Wedding Alcohol Calculator API # Wedding Alcohol Calculator API event 1 credit / call v2026-04-22 Estimate wine, beer, spirits, and champagne quantities for an event. One POST adds Wedding Alcohol Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Wedding Alcohol Calculator on miniwebtool.com →](https://miniwebtool.com/wedding-alcohol-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run ``` ### Request body Field Type Req. `guests` `int` — `duration_hours` `int` — `drinking_level` light | moderate | heavy `str` — `non_drinkers_pct` `float` — `wine_pct` `float` — `beer_pct` `float` — `spirits_pct` `float` — `champagne_toast` `bool` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "wedding-alcohol-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → guests (int) duration_hours (int) drinking_level (str) light moderate heavy light | moderate | heavy non_drinkers_pct (float) wine_pct (float) beer_pct (float) spirits_pct (float) champagne_toast (bool) false true Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`wedding-alcohol-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"guests":120,"duration_hours":5,"drinking_level":"moderate","non_drinkers_pct":15,"wine_pct":50,"beer_pct":30,"spirits_pct":20,"champagne_toast":true}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'guests': 120, 'duration_hours': 5, 'drinking_level': 'moderate', 'non_drinkers_pct': 15, 'wine_pct': 50, 'beer_pct': 30, 'spirits_pct': 20, 'champagne_toast': True}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"guests":120,"duration_hours":5,"drinking_level":"moderate","non_drinkers_pct":15,"wine_pct":50,"beer_pct":30,"spirits_pct":20,"champagne_toast":true}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'guests' => 120, 'duration_hours' => 5, 'drinking_level' => 'moderate', 'non_drinkers_pct' => 15, 'wine_pct' => 50, 'beer_pct' => 30, 'spirits_pct' => 20, 'champagne_toast' => true ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'guests' => 120, 'duration_hours' => 5, 'drinking_level' => 'moderate', 'non_drinkers_pct' => 15, 'wine_pct' => 50, 'beer_pct' => 30, 'spirits_pct' => 20, 'champagne_toast' => true }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "guests": 120, "duration_hours": 5, "drinking_level": "moderate", "non_drinkers_pct": 15, "wine_pct": 50, "beer_pct": 30, "spirits_pct": 20, "champagne_toast": true, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"guests\":120,\"duration_hours\":5,\"drinking_level\":\"moderate\",\"non_drinkers_pct\":15,\"wine_pct\":50,\"beer_pct\":30,\"spirits_pct\":20,\"champagne_toast\":true}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`wedding-alcohol-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/wedding-alcohol-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/wedding-alcohol-calculator/prompt.md`](/tools/wedding-alcohol-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Wedding Alcohol Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Wedding Alcohol Calculator** — Estimate wine, beer, spirits, and champagne quantities for an event. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `guests` | int | no | (default `120`) | | `duration_hours` | int | no | (default `5`) | | `drinking_level` | str | no | one of: light, moderate, heavy — light \| moderate \| heavy (default `moderate`) | | `non_drinkers_pct` | float | no | (default `15`) | | `wine_pct` | float | no | (default `50`) | | `beer_pct` | float | no | (default `30`) | | `spirits_pct` | float | no | (default `20`) | | `champagne_toast` | bool | no | (default `True`) | Example request body: ```json { "guests": 120, "duration_hours": 5, "drinking_level": "moderate", "non_drinkers_pct": 15, "wine_pct": 50, "beer_pct": 30, "spirits_pct": 20, "champagne_toast": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wedding-alcohol-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "guests": 120, "drinking_guests": 102, "non_drinkers": 18, "duration_hours": 5, "drinking_level": "moderate", "drinks_per_person": 3.0, "total_drinks": 306, "wine_drinks": 153, "beer_drinks": 92, "spirits_drinks": 61, "wine_bottles": 31, "beer_bottles_or_cans": 92, "spirits_bottles": 4, "champagne_bottles": 20, "total_bottles": 55, "total_cans": 92 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Wedding Alcohol Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Wedding Alcohol Calculator** — Estimate wine, beer, spirits, and champagne quantities for an event. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `guests` | int | no | (default `120`) | | `duration_hours` | int | no | (default `5`) | | `drinking_level` | str | no | one of: light, moderate, heavy — light \| moderate \| heavy (default `moderate`) | | `non_drinkers_pct` | float | no | (default `15`) | | `wine_pct` | float | no | (default `50`) | | `beer_pct` | float | no | (default `30`) | | `spirits_pct` | float | no | (default `20`) | | `champagne_toast` | bool | no | (default `True`) | Example request body: ```json { "guests": 120, "duration_hours": 5, "drinking_level": "moderate", "non_drinkers_pct": 15, "wine_pct": 50, "beer_pct": 30, "spirits_pct": 20, "champagne_toast": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wedding-alcohol-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "guests": 120, "drinking_guests": 102, "non_drinkers": 18, "duration_hours": 5, "drinking_level": "moderate", "drinks_per_person": 3.0, "total_drinks": 306, "wine_drinks": 153, "beer_drinks": 92, "spirits_drinks": 61, "wine_bottles": 31, "beer_bottles_or_cans": 92, "spirits_bottles": 4, "champagne_bottles": 20, "total_bottles": 55, "total_cans": 92 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-wedding-alcohol-calculator.mdc copy prompt ```text --- description: MiniWebtool Wedding Alcohol Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Wedding Alcohol Calculator API ## The API **Wedding Alcohol Calculator** — Estimate wine, beer, spirits, and champagne quantities for an event. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `guests` | int | no | (default `120`) | | `duration_hours` | int | no | (default `5`) | | `drinking_level` | str | no | one of: light, moderate, heavy — light \| moderate \| heavy (default `moderate`) | | `non_drinkers_pct` | float | no | (default `15`) | | `wine_pct` | float | no | (default `50`) | | `beer_pct` | float | no | (default `30`) | | `spirits_pct` | float | no | (default `20`) | | `champagne_toast` | bool | no | (default `True`) | Example request body: ```json { "guests": 120, "duration_hours": 5, "drinking_level": "moderate", "non_drinkers_pct": 15, "wine_pct": 50, "beer_pct": 30, "spirits_pct": 20, "champagne_toast": true } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "wedding-alcohol-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "guests": 120, "drinking_guests": 102, "non_drinkers": 18, "duration_hours": 5, "drinking_level": "moderate", "drinks_per_person": 3.0, "total_drinks": 306, "wine_drinks": 153, "beer_drinks": 92, "spirits_drinks": 61, "wine_bottles": 31, "beer_bottles_or_cans": 92, "spirits_bottles": 4, "champagne_bottles": 20, "total_bottles": 55, "total_cans": 92 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `wedding-alcohol-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `wedding-alcohol-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call wedding-alcohol-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/wedding-alcohol-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Wedding Alcohol Calculator API do? + Estimate wine, beer, spirits, and champagne quantities for an event. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Wedding Alcohol Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Wedding Alcohol Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Wedding Alcohol Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Wedding Alcohol Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `wedding-alcohol-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`wedding-alcohol-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"wedding-alcohol-calculator"}}}' \ | jq.result.structuredContent ``` API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Depreciation Calculator API # Depreciation Calculator API finance 1 credit / call v2026-04-22 visual chart data Generate straight-line or declining-balance depreciation schedules with chart-ready book values. One POST adds Depreciation Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Depreciation Calculator on miniwebtool.com →](https://miniwebtool.com/depreciation-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/run ``` ### Request body Field Type Req. `asset_cost` `float` — `salvage_value` `float` — `useful_life_years` `int` — `method` straight_line | declining_balance `str` — `declining_rate_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → asset_cost (float) salvage_value (float) useful_life_years (int) method (str) straight_line declining_balance straight_line | declining_balance declining_rate_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`depreciation-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/depreciation-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/depreciation-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/depreciation-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/depreciation-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/depreciation-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`depreciation-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/depreciation-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/depreciation-calculator/prompt.md`](/tools/depreciation-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Depreciation Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Depreciation Calculator** — Generate straight-line or declining-balance depreciation schedules with chart-ready book values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `asset_cost` | float | no | (default `20000`) | | `salvage_value` | float | no | (default `2000`) | | `useful_life_years` | int | no | (default `5`) | | `method` | str | no | one of: straight_line, declining_balance — straight_line \| declining_balance (default `straight_line`) | | `declining_rate_percent` | float | no | (default `40`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "asset_cost": 20000.0, "salvage_value": 2000.0, "useful_life_years": 5, "method": "straight_line", "declining_rate_percent": 40.0, "annual_straight_line_depreciation": 3600.0, "total_depreciation": 18000.0, "ending_book_value": 2000.0, "schedule": [ { "label": "Year 0", "year": 0, "value": 20000.0, "depreciation": 0.0 }, { "label": "Year 1", "year": 1, "value": 16400.0, "depreciation": 3600.0 }, { "label": "Year 2", "year": 2, "value": 12800.0, "depreciation": 3600.0 }, { "label": "Year 3", "year": 3, "value": 9200.0, "depreciation": 3600.0 }, { "label": "Year 4", "year": 4, "value": 5600.0, "depreciation": 3600.0 }, { "label": "Year 5", "year": 5, "value": 2000.0, "depreciation": 3600.0 } ], "chart_data": { "series": [ { "label": "Year 0", "year": 0, "value": 20000.0, "depreciation": 0.0 }, { "label": "Year 1", "year": 1, "value": 16400.0, "depreciation": 3600.0 }, { "label": "Year 2", "year": 2, "value": 12800.0, "depreciation": 3600.0 }, { "label": "Year 3", "year": 3, "value": 9200.0, "depreciation": 3600.0 }, { "label": "Year 4", "year": 4, "value": 5600.0, "depreciation": 3600.0 }, { "label": "Year 5", "year": 5, "value": 2000.0, "depreciation": 3600.0 } ], "breakdown": [ { "label": "Depreciation", "value": 18000.0 }, { "label": "Ending book value", "value": 2000.0 } ], "series_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Depreciation Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Depreciation Calculator** — Generate straight-line or declining-balance depreciation schedules with chart-ready book values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `asset_cost` | float | no | (default `20000`) | | `salvage_value` | float | no | (default `2000`) | | `useful_life_years` | int | no | (default `5`) | | `method` | str | no | one of: straight_line, declining_balance — straight_line \| declining_balance (default `straight_line`) | | `declining_rate_percent` | float | no | (default `40`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "asset_cost": 20000.0, "salvage_value": 2000.0, "useful_life_years": 5, "method": "straight_line", "declining_rate_percent": 40.0, "annual_straight_line_depreciation": 3600.0, "total_depreciation": 18000.0, "ending_book_value": 2000.0, "schedule": [ { "label": "Year 0", "year": 0, "value": 20000.0, "depreciation": 0.0 }, { "label": "Year 1", "year": 1, "value": 16400.0, "depreciation": 3600.0 }, { "label": "Year 2", "year": 2, "value": 12800.0, "depreciation": 3600.0 }, { "label": "Year 3", "year": 3, "value": 9200.0, "depreciation": 3600.0 }, { "label": "Year 4", "year": 4, "value": 5600.0, "depreciation": 3600.0 }, { "label": "Year 5", "year": 5, "value": 2000.0, "depreciation": 3600.0 } ], "chart_data": { "series": [ { "label": "Year 0", "year": 0, "value": 20000.0, "depreciation": 0.0 }, { "label": "Year 1", "year": 1, "value": 16400.0, "depreciation": 3600.0 }, { "label": "Year 2", "year": 2, "value": 12800.0, "depreciation": 3600.0 }, { "label": "Year 3", "year": 3, "value": 9200.0, "depreciation": 3600.0 }, { "label": "Year 4", "year": 4, "value": 5600.0, "depreciation": 3600.0 }, { "label": "Year 5", "year": 5, "value": 2000.0, "depreciation": 3600.0 } ], "breakdown": [ { "label": "Depreciation", "value": 18000.0 }, { "label": "Ending book value", "value": 2000.0 } ], "series_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-depreciation-calculator.mdc copy prompt ```text --- description: MiniWebtool Depreciation Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Depreciation Calculator API ## The API **Depreciation Calculator** — Generate straight-line or declining-balance depreciation schedules with chart-ready book values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/depreciation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `asset_cost` | float | no | (default `20000`) | | `salvage_value` | float | no | (default `2000`) | | `useful_life_years` | int | no | (default `5`) | | `method` | str | no | one of: straight_line, declining_balance — straight_line \| declining_balance (default `straight_line`) | | `declining_rate_percent` | float | no | (default `40`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "asset_cost": 20000.0, "salvage_value": 2000.0, "useful_life_years": 5, "method": "straight_line", "declining_rate_percent": 40.0, "annual_straight_line_depreciation": 3600.0, "total_depreciation": 18000.0, "ending_book_value": 2000.0, "schedule": [ { "label": "Year 0", "year": 0, "value": 20000.0, "depreciation": 0.0 }, { "label": "Year 1", "year": 1, "value": 16400.0, "depreciation": 3600.0 }, { "label": "Year 2", "year": 2, "value": 12800.0, "depreciation": 3600.0 }, { "label": "Year 3", "year": 3, "value": 9200.0, "depreciation": 3600.0 }, { "label": "Year 4", "year": 4, "value": 5600.0, "depreciation": 3600.0 }, { "label": "Year 5", "year": 5, "value": 2000.0, "depreciation": 3600.0 } ], "chart_data": { "series": [ { "label": "Year 0", "year": 0, "value": 20000.0, "depreciation": 0.0 }, { "label": "Year 1", "year": 1, "value": 16400.0, "depreciation": 3600.0 }, { "label": "Year 2", "year": 2, "value": 12800.0, "depreciation": 3600.0 }, { "label": "Year 3", "year": 3, "value": 9200.0, "depreciation": 3600.0 }, { "label": "Year 4", "year": 4, "value": 5600.0, "depreciation": 3600.0 }, { "label": "Year 5", "year": 5, "value": 2000.0, "depreciation": 3600.0 } ], "breakdown": [ { "label": "Depreciation", "value": 18000.0 }, { "label": "Ending book value", "value": 2000.0 } ], "series_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `depreciation-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `depreciation-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call depreciation-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/depreciation-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Depreciation Calculator API do? + Generate straight-line or declining-balance depreciation schedules with chart-ready book values. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Depreciation Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Depreciation Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Depreciation Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Depreciation Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Depreciation Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `depreciation-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`depreciation-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"depreciation-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Car Depreciation Calculator API # Car Depreciation Calculator API finance 2 credits / call v2026-04-22 Estimate vehicle depreciation using a declining-balance annual rate. One POST adds Car Depreciation Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Car Depreciation Calculator on miniwebtool.com →](https://miniwebtool.com/car-depreciation-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run ``` ### Request body Field Type Req. `purchase_price` `float` ✓ `annual_rate` `float` ✓ `years` `int` ✓ ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "car-depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → purchase_price (float) * annual_rate (float) * years (int) * Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`car-depreciation-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"purchase_price":30000,"annual_rate":15,"years":5}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'purchase_price': 30000, 'annual_rate': 15, 'years': 5}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"purchase_price":30000,"annual_rate":15,"years":5}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'purchase_price' => 30000, 'annual_rate' => 15, 'years' => 5 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'purchase_price' => 30000, 'annual_rate' => 15, 'years' => 5 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "purchase_price": 30000, "annual_rate": 15, "years": 5, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"purchase_price\":30000,\"annual_rate\":15,\"years\":5}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`car-depreciation-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/car-depreciation-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/car-depreciation-calculator/prompt.md`](/tools/car-depreciation-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Car Depreciation Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Car Depreciation Calculator** — Estimate vehicle depreciation using a declining-balance annual rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `purchase_price` | float | yes | — | | `annual_rate` | float | yes | — | | `years` | int | yes | — | Example request body: ```json { "purchase_price": 30000, "annual_rate": 15, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "car-depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "purchase_price": 30000.0, "annual_rate_percent": 15.0, "years": 5, "final_value": 13311.16, "total_depreciation": 16688.84, "value_retained_percent": 44.370531, "value_lost_percent": 55.629469, "schedule": [ { "year": 1, "start_value": 30000.0, "end_value": 25500.0, "depreciation": 4500.0, "cumulative_depreciation": 4500.0 }, { "year": 2, "start_value": 25500.0, "end_value": 21675.0, "depreciation": 3825.0, "cumulative_depreciation": 8325.0 }, { "year": 3, "start_value": 21675.0, "end_value": 18423.75, "depreciation": 3251.25, "cumulative_depreciation": 11576.25 }, { "year": 4, "start_value": 18423.75, "end_value": 15660.19, "depreciation": 2763.56, "cumulative_depreciation": 14339.81 }, { "year": 5, "start_value": 15660.19, "end_value": 13311.16, "depreciation": 2349.03, "cumulative_depreciation": 16688.84 } ], "schedule_truncated": false } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Car Depreciation Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Car Depreciation Calculator** — Estimate vehicle depreciation using a declining-balance annual rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `purchase_price` | float | yes | — | | `annual_rate` | float | yes | — | | `years` | int | yes | — | Example request body: ```json { "purchase_price": 30000, "annual_rate": 15, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "car-depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "purchase_price": 30000.0, "annual_rate_percent": 15.0, "years": 5, "final_value": 13311.16, "total_depreciation": 16688.84, "value_retained_percent": 44.370531, "value_lost_percent": 55.629469, "schedule": [ { "year": 1, "start_value": 30000.0, "end_value": 25500.0, "depreciation": 4500.0, "cumulative_depreciation": 4500.0 }, { "year": 2, "start_value": 25500.0, "end_value": 21675.0, "depreciation": 3825.0, "cumulative_depreciation": 8325.0 }, { "year": 3, "start_value": 21675.0, "end_value": 18423.75, "depreciation": 3251.25, "cumulative_depreciation": 11576.25 }, { "year": 4, "start_value": 18423.75, "end_value": 15660.19, "depreciation": 2763.56, "cumulative_depreciation": 14339.81 }, { "year": 5, "start_value": 15660.19, "end_value": 13311.16, "depreciation": 2349.03, "cumulative_depreciation": 16688.84 } ], "schedule_truncated": false } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-car-depreciation-calculator.mdc copy prompt ```text --- description: MiniWebtool Car Depreciation Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Car Depreciation Calculator API ## The API **Car Depreciation Calculator** — Estimate vehicle depreciation using a declining-balance annual rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `purchase_price` | float | yes | — | | `annual_rate` | float | yes | — | | `years` | int | yes | — | Example request body: ```json { "purchase_price": 30000, "annual_rate": 15, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "car-depreciation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "purchase_price": 30000.0, "annual_rate_percent": 15.0, "years": 5, "final_value": 13311.16, "total_depreciation": 16688.84, "value_retained_percent": 44.370531, "value_lost_percent": 55.629469, "schedule": [ { "year": 1, "start_value": 30000.0, "end_value": 25500.0, "depreciation": 4500.0, "cumulative_depreciation": 4500.0 }, { "year": 2, "start_value": 25500.0, "end_value": 21675.0, "depreciation": 3825.0, "cumulative_depreciation": 8325.0 }, { "year": 3, "start_value": 21675.0, "end_value": 18423.75, "depreciation": 3251.25, "cumulative_depreciation": 11576.25 }, { "year": 4, "start_value": 18423.75, "end_value": 15660.19, "depreciation": 2763.56, "cumulative_depreciation": 14339.81 }, { "year": 5, "start_value": 15660.19, "end_value": 13311.16, "depreciation": 2349.03, "cumulative_depreciation": 16688.84 } ], "schedule_truncated": false } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `car-depreciation-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `car-depreciation-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call car-depreciation-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`purchase_price`,`annual_rate`,`years`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/car-depreciation-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Car Depreciation Calculator API do? + Estimate vehicle depreciation using a declining-balance annual rate. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Car Depreciation Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Car Depreciation Calculator API require? + Required fields: purchase_price, annual_rate, years. Full schema at /v1/openapi.json. Is the Car Depreciation Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Car Depreciation Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `car-depreciation-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`car-depreciation-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"car-depreciation-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Car Lease Calculator API # Car Lease Calculator API finance 2 credits / call v2026-04-22 visual chart data Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. One POST adds Car Lease Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Car Lease Calculator on miniwebtool.com →](https://miniwebtool.com/car-lease-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/run ``` ### Request body Field Type Req. `vehicle_price` `float` ✓ `residual_value` `float` ✓ `residual_mode` percent | amount `str` — `money_factor` `float` — `lease_term` `int` — `down_payment` `float` — `tax_rate` `float` — `fees` `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "car-lease-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → vehicle_price (float) * residual_value (float) * residual_mode (str) percent amount percent | amount money_factor (float) lease_term (int) down_payment (float) tax_rate (float) fees (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`car-lease-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"vehicle_price":42000,"residual_value":58,"residual_mode":"percent","money_factor":0.00185,"lease_term":36,"down_payment":3000,"tax_rate":7.5,"fees":895}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/car-lease-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'vehicle_price': 42000, 'residual_value': 58, 'residual_mode': 'percent', 'money_factor': 0.00185, 'lease_term': 36, 'down_payment': 3000, 'tax_rate': 7.5, 'fees': 895}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/car-lease-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"vehicle_price":42000,"residual_value":58,"residual_mode":"percent","money_factor":0.00185,"lease_term":36,"down_payment":3000,"tax_rate":7.5,"fees":895}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'vehicle_price' => 42000, 'residual_value' => 58, 'residual_mode' => 'percent', 'money_factor' => 0.00185, 'lease_term' => 36, 'down_payment' => 3000, 'tax_rate' => 7.5, 'fees' => 895 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/car-lease-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'vehicle_price' => 42000, 'residual_value' => 58, 'residual_mode' => 'percent', 'money_factor' => 0.00185, 'lease_term' => 36, 'down_payment' => 3000, 'tax_rate' => 7.5, 'fees' => 895 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "vehicle_price": 42000, "residual_value": 58, "residual_mode": "percent", "money_factor": 0.00185, "lease_term": 36, "down_payment": 3000, "tax_rate": 7.5, "fees": 895, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/car-lease-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/car-lease-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"vehicle_price\":42000,\"residual_value\":58,\"residual_mode\":\"percent\",\"money_factor\":0.00185,\"lease_term\":36,\"down_payment\":3000,\"tax_rate\":7.5,\"fees\":895}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`car-lease-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/car-lease-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/car-lease-calculator/prompt.md`](/tools/car-lease-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Car Lease Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Car Lease Calculator** — Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `vehicle_price` | float | yes | — | | `residual_value` | float | yes | — | | `residual_mode` | str | no | one of: percent, amount — percent \| amount (default `percent`) | | `money_factor` | float | no | (default `0.00185`) | | `lease_term` | int | no | (default `36`) | | `down_payment` | float | no | (default `0.0`) | | `tax_rate` | float | no | (default `0.0`) | | `fees` | float | no | (default `0.0`) | Example request body: ```json { "vehicle_price": 42000, "residual_value": 58, "residual_mode": "percent", "money_factor": 0.00185, "lease_term": 36, "down_payment": 3000, "tax_rate": 7.5, "fees": 895 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "car-lease-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "vehicle_price": 42000.0, "residual_mode": "percent", "residual_amount": 24360.0, "residual_percent": 58.0, "adjusted_cap_cost": 39895.0, "lease_term_months": 36, "money_factor": 0.00185, "apr_equivalent_percent": 4.44, "depreciation_charge": 431.53, "finance_charge": 118.87, "base_payment": 550.4, "tax_payment": 41.28, "monthly_payment": 591.68, "total_due_at_signing": 3591.68, "total_monthly_payments": 21300.46, "total_lease_cost": 24300.46, "chart_data": { "monthly_payment_breakdown": [ { "label": "Depreciation charge", "value": 431.53 }, { "label": "Finance charge", "value": 118.87 }, { "label": "Tax", "value": 41.28 } ], "total_cost_breakdown": [ { "label": "Down payment", "value": 3000.0 }, { "label": "Depreciation total", "value": 15535.0 }, { "label": "Finance total", "value": 4279.38 }, { "label": "Tax total", "value": 1486.08 } ], "vehicle_value": [ { "label": "Adjusted cap cost", "value": 39895.0 }, { "label": "Residual value", "value": 24360.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Car Lease Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Car Lease Calculator** — Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `vehicle_price` | float | yes | — | | `residual_value` | float | yes | — | | `residual_mode` | str | no | one of: percent, amount — percent \| amount (default `percent`) | | `money_factor` | float | no | (default `0.00185`) | | `lease_term` | int | no | (default `36`) | | `down_payment` | float | no | (default `0.0`) | | `tax_rate` | float | no | (default `0.0`) | | `fees` | float | no | (default `0.0`) | Example request body: ```json { "vehicle_price": 42000, "residual_value": 58, "residual_mode": "percent", "money_factor": 0.00185, "lease_term": 36, "down_payment": 3000, "tax_rate": 7.5, "fees": 895 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "car-lease-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "vehicle_price": 42000.0, "residual_mode": "percent", "residual_amount": 24360.0, "residual_percent": 58.0, "adjusted_cap_cost": 39895.0, "lease_term_months": 36, "money_factor": 0.00185, "apr_equivalent_percent": 4.44, "depreciation_charge": 431.53, "finance_charge": 118.87, "base_payment": 550.4, "tax_payment": 41.28, "monthly_payment": 591.68, "total_due_at_signing": 3591.68, "total_monthly_payments": 21300.46, "total_lease_cost": 24300.46, "chart_data": { "monthly_payment_breakdown": [ { "label": "Depreciation charge", "value": 431.53 }, { "label": "Finance charge", "value": 118.87 }, { "label": "Tax", "value": 41.28 } ], "total_cost_breakdown": [ { "label": "Down payment", "value": 3000.0 }, { "label": "Depreciation total", "value": 15535.0 }, { "label": "Finance total", "value": 4279.38 }, { "label": "Tax total", "value": 1486.08 } ], "vehicle_value": [ { "label": "Adjusted cap cost", "value": 39895.0 }, { "label": "Residual value", "value": 24360.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-car-lease-calculator.mdc copy prompt ```text --- description: MiniWebtool Car Lease Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Car Lease Calculator API ## The API **Car Lease Calculator** — Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/car-lease-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `vehicle_price` | float | yes | — | | `residual_value` | float | yes | — | | `residual_mode` | str | no | one of: percent, amount — percent \| amount (default `percent`) | | `money_factor` | float | no | (default `0.00185`) | | `lease_term` | int | no | (default `36`) | | `down_payment` | float | no | (default `0.0`) | | `tax_rate` | float | no | (default `0.0`) | | `fees` | float | no | (default `0.0`) | Example request body: ```json { "vehicle_price": 42000, "residual_value": 58, "residual_mode": "percent", "money_factor": 0.00185, "lease_term": 36, "down_payment": 3000, "tax_rate": 7.5, "fees": 895 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "car-lease-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "vehicle_price": 42000.0, "residual_mode": "percent", "residual_amount": 24360.0, "residual_percent": 58.0, "adjusted_cap_cost": 39895.0, "lease_term_months": 36, "money_factor": 0.00185, "apr_equivalent_percent": 4.44, "depreciation_charge": 431.53, "finance_charge": 118.87, "base_payment": 550.4, "tax_payment": 41.28, "monthly_payment": 591.68, "total_due_at_signing": 3591.68, "total_monthly_payments": 21300.46, "total_lease_cost": 24300.46, "chart_data": { "monthly_payment_breakdown": [ { "label": "Depreciation charge", "value": 431.53 }, { "label": "Finance charge", "value": 118.87 }, { "label": "Tax", "value": 41.28 } ], "total_cost_breakdown": [ { "label": "Down payment", "value": 3000.0 }, { "label": "Depreciation total", "value": 15535.0 }, { "label": "Finance total", "value": 4279.38 }, { "label": "Tax total", "value": 1486.08 } ], "vehicle_value": [ { "label": "Adjusted cap cost", "value": 39895.0 }, { "label": "Residual value", "value": 24360.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `car-lease-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `car-lease-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call car-lease-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`vehicle_price`,`residual_value`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/car-lease-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Car Lease Calculator API do? + Estimate monthly auto lease payment from cap cost, residual value, money factor, tax, and fees. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Car Lease Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Car Lease Calculator API require? + Required fields: vehicle_price, residual_value. Full schema at /v1/openapi.json. Is the Car Lease Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Car Lease Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Car Lease Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `car-lease-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`car-lease-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"car-lease-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Tip Calculator API # Tip Calculator API finance 1 credit / call v2026-04-22 visual chart data Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. One POST adds Tip Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Tip Calculator on miniwebtool.com →](https://miniwebtool.com/tip-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/tip-calculator/run ``` ### Request body Field Type Req. `bill_amount` `float` — `tip_percent` `float` — `people` `int` — `tax_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "tip-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → bill_amount (float) tip_percent (float) people (int) tax_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`tip-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/tip-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/tip-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/tip-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/tip-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/tip-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/tip-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`tip-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/tip-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/tip-calculator/prompt.md`](/tools/tip-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Tip Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Tip Calculator** — Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/tip-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/tip-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `bill_amount` | float | no | (default `80`) | | `tip_percent` | float | no | (default `18`) | | `people` | int | no | (default `4`) | | `tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "tip-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "bill_amount": 80.0, "tip_percent": 18.0, "tip_amount": 14.4, "tax_percent": 0.0, "tax_amount": 0.0, "total_amount": 94.4, "people": 4, "amount_per_person": 23.6, "tip_per_person": 3.6, "chart_data": { "breakdown": [ { "label": "Bill", "value": 80.0 }, { "label": "Tax", "value": 0.0 }, { "label": "Tip", "value": 14.4 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Tip Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Tip Calculator** — Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/tip-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/tip-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `bill_amount` | float | no | (default `80`) | | `tip_percent` | float | no | (default `18`) | | `people` | int | no | (default `4`) | | `tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "tip-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "bill_amount": 80.0, "tip_percent": 18.0, "tip_amount": 14.4, "tax_percent": 0.0, "tax_amount": 0.0, "total_amount": 94.4, "people": 4, "amount_per_person": 23.6, "tip_per_person": 3.6, "chart_data": { "breakdown": [ { "label": "Bill", "value": 80.0 }, { "label": "Tax", "value": 0.0 }, { "label": "Tip", "value": 14.4 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-tip-calculator.mdc copy prompt ```text --- description: MiniWebtool Tip Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Tip Calculator API ## The API **Tip Calculator** — Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/tip-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/tip-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `bill_amount` | float | no | (default `80`) | | `tip_percent` | float | no | (default `18`) | | `people` | int | no | (default `4`) | | `tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "tip-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "bill_amount": 80.0, "tip_percent": 18.0, "tip_amount": 14.4, "tax_percent": 0.0, "tax_amount": 0.0, "total_amount": 94.4, "people": 4, "amount_per_person": 23.6, "tip_per_person": 3.6, "chart_data": { "breakdown": [ { "label": "Bill", "value": 80.0 }, { "label": "Tax", "value": 0.0 }, { "label": "Tip", "value": 14.4 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `tip-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `tip-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call tip-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/tip-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Tip Calculator API do? + Calculate tip, tax, total bill, split amounts, and chart-ready bill breakdown. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Tip Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Tip Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Tip Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Tip Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Tip Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `tip-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`tip-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"tip-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Bond Convexity Calculator API # Bond Convexity Calculator API finance 2 credits / call v2026-04-22 Calculate bond price, duration, convexity, and a second-order yield-shock estimate. One POST adds Bond Convexity Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Bond Convexity Calculator on miniwebtool.com →](https://miniwebtool.com/bond-convexity-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run ``` ### Request body Field Type Req. `face_value` `float` — `coupon_rate_pct` `float` — `yield_to_maturity_pct` `float` — `years_to_maturity` `float` — `frequency` 1 | 2 | 4 | 12 `int` — `yield_shock_bps` `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "bond-convexity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → face_value (float) coupon_rate_pct (float) yield_to_maturity_pct (float) years_to_maturity (float) frequency (int) 1 | 2 | 4 | 12 yield_shock_bps (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`bond-convexity-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"face_value":1000,"coupon_rate_pct":5,"yield_to_maturity_pct":6,"years_to_maturity":10,"frequency":2,"yield_shock_bps":100}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'face_value': 1000, 'coupon_rate_pct': 5, 'yield_to_maturity_pct': 6, 'years_to_maturity': 10, 'frequency': 2, 'yield_shock_bps': 100}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"face_value":1000,"coupon_rate_pct":5,"yield_to_maturity_pct":6,"years_to_maturity":10,"frequency":2,"yield_shock_bps":100}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'face_value' => 1000, 'coupon_rate_pct' => 5, 'yield_to_maturity_pct' => 6, 'years_to_maturity' => 10, 'frequency' => 2, 'yield_shock_bps' => 100 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'face_value' => 1000, 'coupon_rate_pct' => 5, 'yield_to_maturity_pct' => 6, 'years_to_maturity' => 10, 'frequency' => 2, 'yield_shock_bps' => 100 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"face_value\":1000,\"coupon_rate_pct\":5,\"yield_to_maturity_pct\":6,\"years_to_maturity\":10,\"frequency\":2,\"yield_shock_bps\":100}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`bond-convexity-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/bond-convexity-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/bond-convexity-calculator/prompt.md`](/tools/bond-convexity-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Bond Convexity Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Convexity Calculator** — Calculate bond price, duration, convexity, and a second-order yield-shock estimate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | (default `1000`) | | `coupon_rate_pct` | float | no | (default `5`) | | `yield_to_maturity_pct` | float | no | (default `6`) | | `years_to_maturity` | float | no | (default `10`) | | `frequency` | int | no | 1 \| 2 \| 4 \| 12 (default `2`) | | `yield_shock_bps` | float | no | (default `100`) | Example request body: ```json { "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-convexity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bond_price": 925.61, "macaulay_duration_years": 7.894997, "modified_duration_years": 7.665046, "convexity_years_squared": 71.785398, "duration_only_price": 854.66, "duration_plus_convexity_price": 857.99, "convexity_adjustment": 3.322274, "chart_data": { "cash_flows": [ { "period": 1, "time_years": 0.5, "cash_flow": 25.0, "present_value": 24.27 }, { "period": 2, "time_years": 1.0, "cash_flow": 25.0, "present_value": 23.56 }, { "period": 3, "time_years": 1.5, "cash_flow": 25.0, "present_value": 22.88 }, { "period": 4, "time_years": 2.0, "cash_flow": 25.0, "present_value": 22.21 }, { "period": 5, "time_years": 2.5, "cash_flow": 25.0, "present_value": 21.57 }, { "period": 6, "time_years": 3.0, "cash_flow": 25.0, "present_value": 20.94 }, { "period": 7, "time_years": 3.5, "cash_flow": 25.0, "present_value": 20.33 }, { "period": 8, "time_years": 4.0, "cash_flow": 25.0, "present_value": 19.74 }, { "period": 9, "time_years": 4.5, "cash_flow": 25.0, "present_value": 19.16 }, { "period": 10, "time_years": 5.0, "cash_flow": 25.0, "present_value": 18.6 }, { "period": 11, "time_years": 5.5, "cash_flow": 25.0, "present_value": 18.06 }, { "period": 12, "time_years": 6.0, "cash_flow": 25.0, "present_value": 17.53 }, { "period": 13, "time_years": 6.5, "cash_flow": 25.0, "present_value": 17.02 }, { "period": 14, "time_years": 7.0, "cash_flow": 25.0, "present_value": 16.53 }, { "period": 15, "time_years": 7.5, "cash_flow": 25.0, "present_value": 16.05 }, { "period": 16, "time_years": 8.0, "cash_flow": 25.0, "present_value": 15.58 }, { "period": 17, "time_years": 8.5, "cash_flow": 25.0, "present_value": 15.13 }, { "period": 18, "time_years": 9.0, "cash_flow": 25.0, "present_value": 14.68 }, { "period": 19, "time_years": 9.5, "cash_flow": 25.0, "present_value": 14.26 }, { "period": 20, "time_years": 10.0, "cash_flow": 1025.0, "present_value": 567.52 } ], "cash_flows_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Bond Convexity Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Convexity Calculator** — Calculate bond price, duration, convexity, and a second-order yield-shock estimate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | (default `1000`) | | `coupon_rate_pct` | float | no | (default `5`) | | `yield_to_maturity_pct` | float | no | (default `6`) | | `years_to_maturity` | float | no | (default `10`) | | `frequency` | int | no | 1 \| 2 \| 4 \| 12 (default `2`) | | `yield_shock_bps` | float | no | (default `100`) | Example request body: ```json { "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-convexity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bond_price": 925.61, "macaulay_duration_years": 7.894997, "modified_duration_years": 7.665046, "convexity_years_squared": 71.785398, "duration_only_price": 854.66, "duration_plus_convexity_price": 857.99, "convexity_adjustment": 3.322274, "chart_data": { "cash_flows": [ { "period": 1, "time_years": 0.5, "cash_flow": 25.0, "present_value": 24.27 }, { "period": 2, "time_years": 1.0, "cash_flow": 25.0, "present_value": 23.56 }, { "period": 3, "time_years": 1.5, "cash_flow": 25.0, "present_value": 22.88 }, { "period": 4, "time_years": 2.0, "cash_flow": 25.0, "present_value": 22.21 }, { "period": 5, "time_years": 2.5, "cash_flow": 25.0, "present_value": 21.57 }, { "period": 6, "time_years": 3.0, "cash_flow": 25.0, "present_value": 20.94 }, { "period": 7, "time_years": 3.5, "cash_flow": 25.0, "present_value": 20.33 }, { "period": 8, "time_years": 4.0, "cash_flow": 25.0, "present_value": 19.74 }, { "period": 9, "time_years": 4.5, "cash_flow": 25.0, "present_value": 19.16 }, { "period": 10, "time_years": 5.0, "cash_flow": 25.0, "present_value": 18.6 }, { "period": 11, "time_years": 5.5, "cash_flow": 25.0, "present_value": 18.06 }, { "period": 12, "time_years": 6.0, "cash_flow": 25.0, "present_value": 17.53 }, { "period": 13, "time_years": 6.5, "cash_flow": 25.0, "present_value": 17.02 }, { "period": 14, "time_years": 7.0, "cash_flow": 25.0, "present_value": 16.53 }, { "period": 15, "time_years": 7.5, "cash_flow": 25.0, "present_value": 16.05 }, { "period": 16, "time_years": 8.0, "cash_flow": 25.0, "present_value": 15.58 }, { "period": 17, "time_years": 8.5, "cash_flow": 25.0, "present_value": 15.13 }, { "period": 18, "time_years": 9.0, "cash_flow": 25.0, "present_value": 14.68 }, { "period": 19, "time_years": 9.5, "cash_flow": 25.0, "present_value": 14.26 }, { "period": 20, "time_years": 10.0, "cash_flow": 1025.0, "present_value": 567.52 } ], "cash_flows_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-bond-convexity-calculator.mdc copy prompt ```text --- description: MiniWebtool Bond Convexity Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Bond Convexity Calculator API ## The API **Bond Convexity Calculator** — Calculate bond price, duration, convexity, and a second-order yield-shock estimate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | (default `1000`) | | `coupon_rate_pct` | float | no | (default `5`) | | `yield_to_maturity_pct` | float | no | (default `6`) | | `years_to_maturity` | float | no | (default `10`) | | `frequency` | int | no | 1 \| 2 \| 4 \| 12 (default `2`) | | `yield_shock_bps` | float | no | (default `100`) | Example request body: ```json { "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-convexity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bond_price": 925.61, "macaulay_duration_years": 7.894997, "modified_duration_years": 7.665046, "convexity_years_squared": 71.785398, "duration_only_price": 854.66, "duration_plus_convexity_price": 857.99, "convexity_adjustment": 3.322274, "chart_data": { "cash_flows": [ { "period": 1, "time_years": 0.5, "cash_flow": 25.0, "present_value": 24.27 }, { "period": 2, "time_years": 1.0, "cash_flow": 25.0, "present_value": 23.56 }, { "period": 3, "time_years": 1.5, "cash_flow": 25.0, "present_value": 22.88 }, { "period": 4, "time_years": 2.0, "cash_flow": 25.0, "present_value": 22.21 }, { "period": 5, "time_years": 2.5, "cash_flow": 25.0, "present_value": 21.57 }, { "period": 6, "time_years": 3.0, "cash_flow": 25.0, "present_value": 20.94 }, { "period": 7, "time_years": 3.5, "cash_flow": 25.0, "present_value": 20.33 }, { "period": 8, "time_years": 4.0, "cash_flow": 25.0, "present_value": 19.74 }, { "period": 9, "time_years": 4.5, "cash_flow": 25.0, "present_value": 19.16 }, { "period": 10, "time_years": 5.0, "cash_flow": 25.0, "present_value": 18.6 }, { "period": 11, "time_years": 5.5, "cash_flow": 25.0, "present_value": 18.06 }, { "period": 12, "time_years": 6.0, "cash_flow": 25.0, "present_value": 17.53 }, { "period": 13, "time_years": 6.5, "cash_flow": 25.0, "present_value": 17.02 }, { "period": 14, "time_years": 7.0, "cash_flow": 25.0, "present_value": 16.53 }, { "period": 15, "time_years": 7.5, "cash_flow": 25.0, "present_value": 16.05 }, { "period": 16, "time_years": 8.0, "cash_flow": 25.0, "present_value": 15.58 }, { "period": 17, "time_years": 8.5, "cash_flow": 25.0, "present_value": 15.13 }, { "period": 18, "time_years": 9.0, "cash_flow": 25.0, "present_value": 14.68 }, { "period": 19, "time_years": 9.5, "cash_flow": 25.0, "present_value": 14.26 }, { "period": 20, "time_years": 10.0, "cash_flow": 1025.0, "present_value": 567.52 } ], "cash_flows_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `bond-convexity-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `bond-convexity-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call bond-convexity-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/bond-convexity-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Bond Convexity Calculator API do? + Calculate bond price, duration, convexity, and a second-order yield-shock estimate. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Bond Convexity Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Bond Convexity Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Bond Convexity Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Bond Convexity Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `bond-convexity-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`bond-convexity-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"bond-convexity-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Bond Duration Calculator API # Bond Duration Calculator API finance 2 credits / call v2026-04-22 Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. One POST adds Bond Duration Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Bond Duration Calculator on miniwebtool.com →](https://miniwebtool.com/bond-duration-calculator-macaulay-modified/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run ``` ### Request body Field Type Req. `face_value` `float` — `coupon_rate_pct` `float` — `yield_to_maturity_pct` `float` — `years_to_maturity` `float` — `frequency` 1 | 2 | 4 | 12 `int` — `yield_shock_bps` `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "bond-duration-calculator-macaulay-modified", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → face_value (float) coupon_rate_pct (float) yield_to_maturity_pct (float) years_to_maturity (float) frequency (int) 1 | 2 | 4 | 12 yield_shock_bps (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`bond-duration-calculator-macaulay-modified`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"face_value":1000,"coupon_rate_pct":5,"yield_to_maturity_pct":6,"years_to_maturity":10,"frequency":2,"yield_shock_bps":100}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'face_value': 1000, 'coupon_rate_pct': 5, 'yield_to_maturity_pct': 6, 'years_to_maturity': 10, 'frequency': 2, 'yield_shock_bps': 100}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"face_value":1000,"coupon_rate_pct":5,"yield_to_maturity_pct":6,"years_to_maturity":10,"frequency":2,"yield_shock_bps":100}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'face_value' => 1000, 'coupon_rate_pct' => 5, 'yield_to_maturity_pct' => 6, 'years_to_maturity' => 10, 'frequency' => 2, 'yield_shock_bps' => 100 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'face_value' => 1000, 'coupon_rate_pct' => 5, 'yield_to_maturity_pct' => 6, 'years_to_maturity' => 10, 'frequency' => 2, 'yield_shock_bps' => 100 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"face_value\":1000,\"coupon_rate_pct\":5,\"yield_to_maturity_pct\":6,\"years_to_maturity\":10,\"frequency\":2,\"yield_shock_bps\":100}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`bond-duration-calculator-macaulay-modified`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/bond-duration-calculator-macaulay-modified/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/bond-duration-calculator-macaulay-modified/prompt.md`](/tools/bond-duration-calculator-macaulay-modified/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Bond Duration Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Duration Calculator** — Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | (default `1000`) | | `coupon_rate_pct` | float | no | (default `5`) | | `yield_to_maturity_pct` | float | no | (default `6`) | | `years_to_maturity` | float | no | (default `10`) | | `frequency` | int | no | 1 \| 2 \| 4 \| 12 (default `2`) | | `yield_shock_bps` | float | no | (default `100`) | Example request body: ```json { "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-duration-calculator-macaulay-modified", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bond_price": 925.61, "macaulay_duration_years": 7.894997, "modified_duration_years": 7.665046, "dv01": 0.709486, "yield_shock_bps": 100.0, "duration_estimated_price": 854.66, "exact_repriced_value": 857.88, "chart_data": { "cash_flows": [ { "period": 1, "time_years": 0.5, "cash_flow": 25.0, "present_value": 24.27 }, { "period": 2, "time_years": 1.0, "cash_flow": 25.0, "present_value": 23.56 }, { "period": 3, "time_years": 1.5, "cash_flow": 25.0, "present_value": 22.88 }, { "period": 4, "time_years": 2.0, "cash_flow": 25.0, "present_value": 22.21 }, { "period": 5, "time_years": 2.5, "cash_flow": 25.0, "present_value": 21.57 }, { "period": 6, "time_years": 3.0, "cash_flow": 25.0, "present_value": 20.94 }, { "period": 7, "time_years": 3.5, "cash_flow": 25.0, "present_value": 20.33 }, { "period": 8, "time_years": 4.0, "cash_flow": 25.0, "present_value": 19.74 }, { "period": 9, "time_years": 4.5, "cash_flow": 25.0, "present_value": 19.16 }, { "period": 10, "time_years": 5.0, "cash_flow": 25.0, "present_value": 18.6 }, { "period": 11, "time_years": 5.5, "cash_flow": 25.0, "present_value": 18.06 }, { "period": 12, "time_years": 6.0, "cash_flow": 25.0, "present_value": 17.53 }, { "period": 13, "time_years": 6.5, "cash_flow": 25.0, "present_value": 17.02 }, { "period": 14, "time_years": 7.0, "cash_flow": 25.0, "present_value": 16.53 }, { "period": 15, "time_years": 7.5, "cash_flow": 25.0, "present_value": 16.05 }, { "period": 16, "time_years": 8.0, "cash_flow": 25.0, "present_value": 15.58 }, { "period": 17, "time_years": 8.5, "cash_flow": 25.0, "present_value": 15.13 }, { "period": 18, "time_years": 9.0, "cash_flow": 25.0, "present_value": 14.68 }, { "period": 19, "time_years": 9.5, "cash_flow": 25.0, "present_value": 14.26 }, { "period": 20, "time_years": 10.0, "cash_flow": 1025.0, "present_value": 567.52 } ], "cash_flows_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Bond Duration Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Duration Calculator** — Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | (default `1000`) | | `coupon_rate_pct` | float | no | (default `5`) | | `yield_to_maturity_pct` | float | no | (default `6`) | | `years_to_maturity` | float | no | (default `10`) | | `frequency` | int | no | 1 \| 2 \| 4 \| 12 (default `2`) | | `yield_shock_bps` | float | no | (default `100`) | Example request body: ```json { "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-duration-calculator-macaulay-modified", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bond_price": 925.61, "macaulay_duration_years": 7.894997, "modified_duration_years": 7.665046, "dv01": 0.709486, "yield_shock_bps": 100.0, "duration_estimated_price": 854.66, "exact_repriced_value": 857.88, "chart_data": { "cash_flows": [ { "period": 1, "time_years": 0.5, "cash_flow": 25.0, "present_value": 24.27 }, { "period": 2, "time_years": 1.0, "cash_flow": 25.0, "present_value": 23.56 }, { "period": 3, "time_years": 1.5, "cash_flow": 25.0, "present_value": 22.88 }, { "period": 4, "time_years": 2.0, "cash_flow": 25.0, "present_value": 22.21 }, { "period": 5, "time_years": 2.5, "cash_flow": 25.0, "present_value": 21.57 }, { "period": 6, "time_years": 3.0, "cash_flow": 25.0, "present_value": 20.94 }, { "period": 7, "time_years": 3.5, "cash_flow": 25.0, "present_value": 20.33 }, { "period": 8, "time_years": 4.0, "cash_flow": 25.0, "present_value": 19.74 }, { "period": 9, "time_years": 4.5, "cash_flow": 25.0, "present_value": 19.16 }, { "period": 10, "time_years": 5.0, "cash_flow": 25.0, "present_value": 18.6 }, { "period": 11, "time_years": 5.5, "cash_flow": 25.0, "present_value": 18.06 }, { "period": 12, "time_years": 6.0, "cash_flow": 25.0, "present_value": 17.53 }, { "period": 13, "time_years": 6.5, "cash_flow": 25.0, "present_value": 17.02 }, { "period": 14, "time_years": 7.0, "cash_flow": 25.0, "present_value": 16.53 }, { "period": 15, "time_years": 7.5, "cash_flow": 25.0, "present_value": 16.05 }, { "period": 16, "time_years": 8.0, "cash_flow": 25.0, "present_value": 15.58 }, { "period": 17, "time_years": 8.5, "cash_flow": 25.0, "present_value": 15.13 }, { "period": 18, "time_years": 9.0, "cash_flow": 25.0, "present_value": 14.68 }, { "period": 19, "time_years": 9.5, "cash_flow": 25.0, "present_value": 14.26 }, { "period": 20, "time_years": 10.0, "cash_flow": 1025.0, "present_value": 567.52 } ], "cash_flows_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-bond-duration-calculator-macaulay-modified.mdc copy prompt ```text --- description: MiniWebtool Bond Duration Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Bond Duration Calculator API ## The API **Bond Duration Calculator** — Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | (default `1000`) | | `coupon_rate_pct` | float | no | (default `5`) | | `yield_to_maturity_pct` | float | no | (default `6`) | | `years_to_maturity` | float | no | (default `10`) | | `frequency` | int | no | 1 \| 2 \| 4 \| 12 (default `2`) | | `yield_shock_bps` | float | no | (default `100`) | Example request body: ```json { "face_value": 1000, "coupon_rate_pct": 5, "yield_to_maturity_pct": 6, "years_to_maturity": 10, "frequency": 2, "yield_shock_bps": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-duration-calculator-macaulay-modified", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bond_price": 925.61, "macaulay_duration_years": 7.894997, "modified_duration_years": 7.665046, "dv01": 0.709486, "yield_shock_bps": 100.0, "duration_estimated_price": 854.66, "exact_repriced_value": 857.88, "chart_data": { "cash_flows": [ { "period": 1, "time_years": 0.5, "cash_flow": 25.0, "present_value": 24.27 }, { "period": 2, "time_years": 1.0, "cash_flow": 25.0, "present_value": 23.56 }, { "period": 3, "time_years": 1.5, "cash_flow": 25.0, "present_value": 22.88 }, { "period": 4, "time_years": 2.0, "cash_flow": 25.0, "present_value": 22.21 }, { "period": 5, "time_years": 2.5, "cash_flow": 25.0, "present_value": 21.57 }, { "period": 6, "time_years": 3.0, "cash_flow": 25.0, "present_value": 20.94 }, { "period": 7, "time_years": 3.5, "cash_flow": 25.0, "present_value": 20.33 }, { "period": 8, "time_years": 4.0, "cash_flow": 25.0, "present_value": 19.74 }, { "period": 9, "time_years": 4.5, "cash_flow": 25.0, "present_value": 19.16 }, { "period": 10, "time_years": 5.0, "cash_flow": 25.0, "present_value": 18.6 }, { "period": 11, "time_years": 5.5, "cash_flow": 25.0, "present_value": 18.06 }, { "period": 12, "time_years": 6.0, "cash_flow": 25.0, "present_value": 17.53 }, { "period": 13, "time_years": 6.5, "cash_flow": 25.0, "present_value": 17.02 }, { "period": 14, "time_years": 7.0, "cash_flow": 25.0, "present_value": 16.53 }, { "period": 15, "time_years": 7.5, "cash_flow": 25.0, "present_value": 16.05 }, { "period": 16, "time_years": 8.0, "cash_flow": 25.0, "present_value": 15.58 }, { "period": 17, "time_years": 8.5, "cash_flow": 25.0, "present_value": 15.13 }, { "period": 18, "time_years": 9.0, "cash_flow": 25.0, "present_value": 14.68 }, { "period": 19, "time_years": 9.5, "cash_flow": 25.0, "present_value": 14.26 }, { "period": 20, "time_years": 10.0, "cash_flow": 1025.0, "present_value": 567.52 } ], "cash_flows_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `bond-duration-calculator-macaulay-modified` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `bond-duration-calculator-macaulay-modified` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call bond-duration-calculator-macaulay-modified - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/bond-duration-calculator-macaulay-modified/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Bond Duration Calculator API do? + Calculate Macaulay and modified duration, DV01, and exact versus estimated repricing. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Bond Duration Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Bond Duration Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Bond Duration Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Bond Duration Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `bond-duration-calculator-macaulay-modified` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`bond-duration-calculator-macaulay-modified`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"bond-duration-calculator-macaulay-modified"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Bond Equivalent Yield Calculator API # Bond Equivalent Yield Calculator API finance 2 credits / call v2026-04-22 Calculate bond equivalent yield for a discount security. One POST adds Bond Equivalent Yield Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Bond Equivalent Yield Calculator on miniwebtool.com →](https://miniwebtool.com/bond-equivalent-yield-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run ``` ### Request body Field Type Req. `face_value` `float` ✓ `purchase_price` `float` ✓ `days_to_maturity` `int` ✓ ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "bond-equivalent-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → face_value (float) * purchase_price (float) * days_to_maturity (int) * Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`bond-equivalent-yield-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"face_value":10000,"purchase_price":9800,"days_to_maturity":182}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'face_value': 10000, 'purchase_price': 9800, 'days_to_maturity': 182}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"face_value":10000,"purchase_price":9800,"days_to_maturity":182}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'face_value' => 10000, 'purchase_price' => 9800, 'days_to_maturity' => 182 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'face_value' => 10000, 'purchase_price' => 9800, 'days_to_maturity' => 182 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "face_value": 10000, "purchase_price": 9800, "days_to_maturity": 182, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"face_value\":10000,\"purchase_price\":9800,\"days_to_maturity\":182}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`bond-equivalent-yield-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/bond-equivalent-yield-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/bond-equivalent-yield-calculator/prompt.md`](/tools/bond-equivalent-yield-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Bond Equivalent Yield Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Equivalent Yield Calculator** — Calculate bond equivalent yield for a discount security. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | yes | — | | `purchase_price` | float | yes | — | | `days_to_maturity` | int | yes | — | Example request body: ```json { "face_value": 10000, "purchase_price": 9800, "days_to_maturity": 182 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-equivalent-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "face_value": 10000.0, "purchase_price": 9800.0, "days_to_maturity": 182, "discount": 200.0, "bond_equivalent_yield_percent": 4.092846, "holding_period_return_percent": 2.040816, "discount_rate_percent": 2.0, "effective_annual_yield_percent": 4.134841, "yield_rating": "moderate" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Bond Equivalent Yield Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Equivalent Yield Calculator** — Calculate bond equivalent yield for a discount security. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | yes | — | | `purchase_price` | float | yes | — | | `days_to_maturity` | int | yes | — | Example request body: ```json { "face_value": 10000, "purchase_price": 9800, "days_to_maturity": 182 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-equivalent-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "face_value": 10000.0, "purchase_price": 9800.0, "days_to_maturity": 182, "discount": 200.0, "bond_equivalent_yield_percent": 4.092846, "holding_period_return_percent": 2.040816, "discount_rate_percent": 2.0, "effective_annual_yield_percent": 4.134841, "yield_rating": "moderate" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-bond-equivalent-yield-calculator.mdc copy prompt ```text --- description: MiniWebtool Bond Equivalent Yield Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Bond Equivalent Yield Calculator API ## The API **Bond Equivalent Yield Calculator** — Calculate bond equivalent yield for a discount security. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | yes | — | | `purchase_price` | float | yes | — | | `days_to_maturity` | int | yes | — | Example request body: ```json { "face_value": 10000, "purchase_price": 9800, "days_to_maturity": 182 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-equivalent-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "face_value": 10000.0, "purchase_price": 9800.0, "days_to_maturity": 182, "discount": 200.0, "bond_equivalent_yield_percent": 4.092846, "holding_period_return_percent": 2.040816, "discount_rate_percent": 2.0, "effective_annual_yield_percent": 4.134841, "yield_rating": "moderate" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `bond-equivalent-yield-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `bond-equivalent-yield-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call bond-equivalent-yield-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`face_value`,`purchase_price`,`days_to_maturity`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/bond-equivalent-yield-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Bond Equivalent Yield Calculator API do? + Calculate bond equivalent yield for a discount security. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Bond Equivalent Yield Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Bond Equivalent Yield Calculator API require? + Required fields: face_value, purchase_price, days_to_maturity. Full schema at /v1/openapi.json. Is the Bond Equivalent Yield Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Bond Equivalent Yield Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `bond-equivalent-yield-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`bond-equivalent-yield-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"bond-equivalent-yield-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Bond Yield to Maturity Calculator API # Bond Yield to Maturity Calculator API finance 2 credits / call v2026-04-22 Calculate bond yield to maturity with current yield and return metrics. One POST adds Bond Yield to Maturity Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Bond Yield to Maturity Calculator on miniwebtool.com →](https://miniwebtool.com/bond-yield-to-maturity-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run ``` ### Request body Field Type Req. `current_bond_price` `float` — `bond_par_value` `float` — `bond_coupon_rate` `float` — `years` `int` — `payments_per_year` 1, 2, 4, or 12 `int` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "bond-yield-to-maturity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → current_bond_price (float) bond_par_value (float) bond_coupon_rate (float) years (int) payments_per_year (int) 1, 2, 4, or 12 precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`bond-yield-to-maturity-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`bond-yield-to-maturity-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/bond-yield-to-maturity-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/bond-yield-to-maturity-calculator/prompt.md`](/tools/bond-yield-to-maturity-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Bond Yield to Maturity Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Yield to Maturity Calculator** — Calculate bond yield to maturity with current yield and return metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `current_bond_price` | float | no | (default `950`) | | `bond_par_value` | float | no | (default `1000`) | | `bond_coupon_rate` | float | no | (default `5`) | | `years` | int | no | (default `10`) | | `payments_per_year` | int | no | 1, 2, 4, or 12 (default `2`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-yield-to-maturity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ytm_percent": 5.661689, "periodic_ytm_percent": 2.830845, "converged": true, "iterations": 3, "approximate_ytm_percent": 5.641026, "current_yield_percent": 5.263158, "annual_coupon": 50.0, "coupon_per_period": 25.0, "total_periods": 20, "capital_gain_loss": 50.0, "capital_gain_loss_percent": 5.263158, "total_interest": 500.0, "total_return": 550.0, "total_return_percent": 57.894737, "price_status": "discount" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Bond Yield to Maturity Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bond Yield to Maturity Calculator** — Calculate bond yield to maturity with current yield and return metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `current_bond_price` | float | no | (default `950`) | | `bond_par_value` | float | no | (default `1000`) | | `bond_coupon_rate` | float | no | (default `5`) | | `years` | int | no | (default `10`) | | `payments_per_year` | int | no | 1, 2, 4, or 12 (default `2`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-yield-to-maturity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ytm_percent": 5.661689, "periodic_ytm_percent": 2.830845, "converged": true, "iterations": 3, "approximate_ytm_percent": 5.641026, "current_yield_percent": 5.263158, "annual_coupon": 50.0, "coupon_per_period": 25.0, "total_periods": 20, "capital_gain_loss": 50.0, "capital_gain_loss_percent": 5.263158, "total_interest": 500.0, "total_return": 550.0, "total_return_percent": 57.894737, "price_status": "discount" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-bond-yield-to-maturity-calculator.mdc copy prompt ```text --- description: MiniWebtool Bond Yield to Maturity Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Bond Yield to Maturity Calculator API ## The API **Bond Yield to Maturity Calculator** — Calculate bond yield to maturity with current yield and return metrics. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `current_bond_price` | float | no | (default `950`) | | `bond_par_value` | float | no | (default `1000`) | | `bond_coupon_rate` | float | no | (default `5`) | | `years` | int | no | (default `10`) | | `payments_per_year` | int | no | 1, 2, 4, or 12 (default `2`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bond-yield-to-maturity-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ytm_percent": 5.661689, "periodic_ytm_percent": 2.830845, "converged": true, "iterations": 3, "approximate_ytm_percent": 5.641026, "current_yield_percent": 5.263158, "annual_coupon": 50.0, "coupon_per_period": 25.0, "total_periods": 20, "capital_gain_loss": 50.0, "capital_gain_loss_percent": 5.263158, "total_interest": 500.0, "total_return": 550.0, "total_return_percent": 57.894737, "price_status": "discount" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `bond-yield-to-maturity-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `bond-yield-to-maturity-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call bond-yield-to-maturity-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/bond-yield-to-maturity-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Bond Yield to Maturity Calculator API do? + Calculate bond yield to maturity with current yield and return metrics. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Bond Yield to Maturity Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Bond Yield to Maturity Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Bond Yield to Maturity Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Bond Yield to Maturity Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `bond-yield-to-maturity-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`bond-yield-to-maturity-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"bond-yield-to-maturity-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) [ Retirement Calculator Estimate retirement savings growth, inflation-adjusted value, and contribution … ](/tools/retirement-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Treasury Inflation-Protected Securities (TIPS) Calculator API # Treasury Inflation-Protected Securities (TIPS) Calculator API finance 2 credits / call v2026-04-22 Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. One POST adds Treasury Inflation-Protected Securities (TIPS) Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Treasury Inflation-Protected Securities (TIPS) Calculator on miniwebtool.com →](https://miniwebtool.com/treasury-inflation-protected-securities-tips-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run ``` ### Request body Field Type Req. `face_value` original principal `float` — `coupon_rate` real coupon rate percent per year `float` — `years` years to maturity `float` — `payments_per_year` 1, 2, 4 or 12 `int` — `inflation_rate` assumed annual CPI percent `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "treasury-inflation-protected-securities-tips-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → face_value (float) original principal coupon_rate (float) real coupon rate percent per year years (float) years to maturity payments_per_year (int) 1, 2, 4 or 12 inflation_rate (float) assumed annual CPI percent Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`treasury-inflation-protected-securities-tips-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"face_value":1000.0,"coupon_rate":2.0,"years":10.0,"payments_per_year":2,"inflation_rate":2.5}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'face_value': 1000.0, 'coupon_rate': 2.0, 'years': 10.0, 'payments_per_year': 2, 'inflation_rate': 2.5}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"face_value":1000.0,"coupon_rate":2.0,"years":10.0,"payments_per_year":2,"inflation_rate":2.5}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'face_value' => 1000.0, 'coupon_rate' => 2.0, 'years' => 10.0, 'payments_per_year' => 2, 'inflation_rate' => 2.5 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'face_value' => 1000.0, 'coupon_rate' => 2.0, 'years' => 10.0, 'payments_per_year' => 2, 'inflation_rate' => 2.5 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "face_value": 1000.0, "coupon_rate": 2.0, "years": 10.0, "payments_per_year": 2, "inflation_rate": 2.5, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"face_value\":1000.0,\"coupon_rate\":2.0,\"years\":10.0,\"payments_per_year\":2,\"inflation_rate\":2.5}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`treasury-inflation-protected-securities-tips-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/treasury-inflation-protected-securities-tips-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/treasury-inflation-protected-securities-tips-calculator/prompt.md`](/tools/treasury-inflation-protected-securities-tips-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Treasury Inflation-Protected Securities (TIPS) Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Treasury Inflation-Protected Securities (TIPS) Calculator** — Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | original principal (default `1000.0`) | | `coupon_rate` | float | no | real coupon rate percent per year (default `2.0`) | | `years` | float | no | years to maturity (default `10.0`) | | `payments_per_year` | int | no | 1, 2, 4 or 12 (default `2`) | | `inflation_rate` | float | no | assumed annual CPI percent (default `2.5`) | Example request body: ```json { "face_value": 1000.0, "coupon_rate": 2.0, "years": 10.0, "payments_per_year": 2, "inflation_rate": 2.5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "treasury-inflation-protected-securities-tips-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "face_value": 1000.0, "real_coupon_rate_percent": 2.0, "years": 10.0, "payments_per_year": 2, "assumed_inflation_percent": 2.5, "periods": 20, "period_inflation_percent": 1.242284, "first_coupon": 10.12, "final_coupon": 12.8, "final_index_ratio": 1.280085, "final_adjusted_principal": 1280.08, "principal_repaid": 1280.08, "deflation_floor_applied": false, "total_coupons": 228.26, "total_coupons_in_todays_money": 200.0, "total_received": 1508.34, "fixed_rate_treasury_coupons": 200.0, "coupon_advantage_vs_fixed": 28.26, "schedule": [ { "period": 1, "years": 0.5, "index_ratio": 1.012423, "adjusted_principal": 1012.42, "coupon_payment": 10.12, "principal_payment": 0.0, "total_cash_flow": 10.12, "cumulative_coupons": 10.12 }, { "period": 2, "years": 1.0, "index_ratio": 1.025, "adjusted_principal": 1025.0, "coupon_payment": 10.25, "principal_payment": 0.0, "total_cash_flow": 10.25, "cumulative_coupons": 20.37 }, { "period": 3, "years": 1.5, "index_ratio": 1.037733, "adjusted_principal": 1037.73, "coupon_payment": 10.38, "principal_payment": 0.0, "total_cash_flow": 10.38, "cumulative_coupons": 30.75 }, { "period": 4, "years": 2.0, "index_ratio": 1.050625, "adjusted_principal": 1050.62, "coupon_payment": 10.51, "principal_payment": 0.0, "total_cash_flow": 10.51, "cumulative_coupons": 41.26 }, { "period": 5, "years": 2.5, "index_ratio": 1.063677, "adjusted_principal": 1063.68, "coupon_payment": 10.64, "principal_payment": 0.0, "total_cash_flow": 10.64, "cumulative_coupons": 51.89 }, { "period": 6, "years": 3.0, "index_ratio": 1.076891, "adjusted_principal": 1076.89, "coupon_payment": 10.77, "principal_payment": 0.0, "total_cash_flow": 10.77, "cumulative_coupons": 62.66 }, { "period": 7, "years": 3.5, "index_ratio": 1.090269, "adjusted_principal": 1090.27, "coupon_payment": 10.9, "principal_payment": 0.0, "total_cash_flow": 10.9, "cumulative_coupons": 73.57 }, { "period": 8, "years": 4.0, "index_ratio": 1.103813, "adjusted_principal": 1103.81, "coupon_payment": 11.04, "principal_payment": 0.0, "total_cash_flow": 11.04, "cumulative_coupons": 84.6 }, { "period": 9, "years": 4.5, "index_ratio": 1.117525, "adjusted_principal": 1117.53, "coupon_payment": 11.18, "principal_payment": 0.0, "total_cash_flow": 11.18, "cumulative_coupons": 95.78 }, { "period": 10, "years": 5.0, "index_ratio": 1.131408, "adjusted_principal": 1131.41, "coupon_payment": 11.31, "principal_payment": 0.0, "total_cash_flow": 11.31, "cumulative_coupons": 107.09 }, { "period": 11, "years": 5.5, "index_ratio": 1.145464, "adjusted_principal": 1145.46, "coupon_payment": 11.45, "principal_payment": 0.0, "total_cash_flow": 11.45, "cumulative_coupons": 118.55 }, { "period": 12, "years": 6.0, "index_ratio": 1.159693, "adjusted_principal": 1159.69, "coupon_payment": 11.6, "principal_payment": 0.0, "total_cash_flow": 11.6, "cumulative_coupons": 130.15 }, { "period": 13, "years": 6.5, "index_ratio": 1.1741, "adjusted_principal": 1174.1, "coupon_payment": 11.74, "principal_payment": 0.0, "total_cash_flow": 11.74, "cumulative_coupons": 141.89 }, { "period": 14, "years": 7.0, "index_ratio": 1.188686, "adjusted_principal": 1188.69, "coupon_payment": 11.89, "principal_payment": 0.0, "total_cash_flow": 11.89, "cumulative_coupons": 153.77 }, { "period": 15, "years": 7.5, "index_ratio": 1.203453, "adjusted_principal": 1203.45, "coupon_payment": 12.03, "principal_payment": 0.0, "total_cash_flow": 12.03, "cumulative_coupons": 165.81 }, { "period": 16, "years": 8.0, "index_ratio": 1.218403, "adjusted_principal": 1218.4, "coupon_payment": 12.18, "principal_payment": 0.0, "total_cash_flow": 12.18, "cumulative_coupons": 177.99 }, { "period": 17, "years": 8.5, "index_ratio": 1.233539, "adjusted_principal": 1233.54, "coupon_payment": 12.34, "principal_payment": 0.0, "total_cash_flow": 12.34, "cumulative_coupons": 190.33 }, { "period": 18, "years": 9.0, "index_ratio": 1.248863, "adjusted_principal": 1248.86, "coupon_payment": 12.49, "principal_payment": 0.0, "total_cash_flow": 12.49, "cumulative_coupons": 202.82 }, { "period": 19, "years": 9.5, "index_ratio": 1.264377, "adjusted_principal": 1264.38, "coupon_payment": 12.64, "principal_payment": 0.0, "total_cash_flow": 12.64, "cumulative_coupons": 215.46 }, { "period": 20, "years": 10.0, "index_ratio": 1.280085, "adjusted_principal": 1280.08, "coupon_payment": 12.8, "principal_payment": 1280.08, "total_cash_flow": 1292.89, "cumulative_coupons": 228.26 } ], "schedule_truncated": false, "note": "TIPS principal is indexed to CPI; the deflation floor repays at least par at maturity" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Treasury Inflation-Protected Securities (TIPS) Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Treasury Inflation-Protected Securities (TIPS) Calculator** — Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | original principal (default `1000.0`) | | `coupon_rate` | float | no | real coupon rate percent per year (default `2.0`) | | `years` | float | no | years to maturity (default `10.0`) | | `payments_per_year` | int | no | 1, 2, 4 or 12 (default `2`) | | `inflation_rate` | float | no | assumed annual CPI percent (default `2.5`) | Example request body: ```json { "face_value": 1000.0, "coupon_rate": 2.0, "years": 10.0, "payments_per_year": 2, "inflation_rate": 2.5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "treasury-inflation-protected-securities-tips-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "face_value": 1000.0, "real_coupon_rate_percent": 2.0, "years": 10.0, "payments_per_year": 2, "assumed_inflation_percent": 2.5, "periods": 20, "period_inflation_percent": 1.242284, "first_coupon": 10.12, "final_coupon": 12.8, "final_index_ratio": 1.280085, "final_adjusted_principal": 1280.08, "principal_repaid": 1280.08, "deflation_floor_applied": false, "total_coupons": 228.26, "total_coupons_in_todays_money": 200.0, "total_received": 1508.34, "fixed_rate_treasury_coupons": 200.0, "coupon_advantage_vs_fixed": 28.26, "schedule": [ { "period": 1, "years": 0.5, "index_ratio": 1.012423, "adjusted_principal": 1012.42, "coupon_payment": 10.12, "principal_payment": 0.0, "total_cash_flow": 10.12, "cumulative_coupons": 10.12 }, { "period": 2, "years": 1.0, "index_ratio": 1.025, "adjusted_principal": 1025.0, "coupon_payment": 10.25, "principal_payment": 0.0, "total_cash_flow": 10.25, "cumulative_coupons": 20.37 }, { "period": 3, "years": 1.5, "index_ratio": 1.037733, "adjusted_principal": 1037.73, "coupon_payment": 10.38, "principal_payment": 0.0, "total_cash_flow": 10.38, "cumulative_coupons": 30.75 }, { "period": 4, "years": 2.0, "index_ratio": 1.050625, "adjusted_principal": 1050.62, "coupon_payment": 10.51, "principal_payment": 0.0, "total_cash_flow": 10.51, "cumulative_coupons": 41.26 }, { "period": 5, "years": 2.5, "index_ratio": 1.063677, "adjusted_principal": 1063.68, "coupon_payment": 10.64, "principal_payment": 0.0, "total_cash_flow": 10.64, "cumulative_coupons": 51.89 }, { "period": 6, "years": 3.0, "index_ratio": 1.076891, "adjusted_principal": 1076.89, "coupon_payment": 10.77, "principal_payment": 0.0, "total_cash_flow": 10.77, "cumulative_coupons": 62.66 }, { "period": 7, "years": 3.5, "index_ratio": 1.090269, "adjusted_principal": 1090.27, "coupon_payment": 10.9, "principal_payment": 0.0, "total_cash_flow": 10.9, "cumulative_coupons": 73.57 }, { "period": 8, "years": 4.0, "index_ratio": 1.103813, "adjusted_principal": 1103.81, "coupon_payment": 11.04, "principal_payment": 0.0, "total_cash_flow": 11.04, "cumulative_coupons": 84.6 }, { "period": 9, "years": 4.5, "index_ratio": 1.117525, "adjusted_principal": 1117.53, "coupon_payment": 11.18, "principal_payment": 0.0, "total_cash_flow": 11.18, "cumulative_coupons": 95.78 }, { "period": 10, "years": 5.0, "index_ratio": 1.131408, "adjusted_principal": 1131.41, "coupon_payment": 11.31, "principal_payment": 0.0, "total_cash_flow": 11.31, "cumulative_coupons": 107.09 }, { "period": 11, "years": 5.5, "index_ratio": 1.145464, "adjusted_principal": 1145.46, "coupon_payment": 11.45, "principal_payment": 0.0, "total_cash_flow": 11.45, "cumulative_coupons": 118.55 }, { "period": 12, "years": 6.0, "index_ratio": 1.159693, "adjusted_principal": 1159.69, "coupon_payment": 11.6, "principal_payment": 0.0, "total_cash_flow": 11.6, "cumulative_coupons": 130.15 }, { "period": 13, "years": 6.5, "index_ratio": 1.1741, "adjusted_principal": 1174.1, "coupon_payment": 11.74, "principal_payment": 0.0, "total_cash_flow": 11.74, "cumulative_coupons": 141.89 }, { "period": 14, "years": 7.0, "index_ratio": 1.188686, "adjusted_principal": 1188.69, "coupon_payment": 11.89, "principal_payment": 0.0, "total_cash_flow": 11.89, "cumulative_coupons": 153.77 }, { "period": 15, "years": 7.5, "index_ratio": 1.203453, "adjusted_principal": 1203.45, "coupon_payment": 12.03, "principal_payment": 0.0, "total_cash_flow": 12.03, "cumulative_coupons": 165.81 }, { "period": 16, "years": 8.0, "index_ratio": 1.218403, "adjusted_principal": 1218.4, "coupon_payment": 12.18, "principal_payment": 0.0, "total_cash_flow": 12.18, "cumulative_coupons": 177.99 }, { "period": 17, "years": 8.5, "index_ratio": 1.233539, "adjusted_principal": 1233.54, "coupon_payment": 12.34, "principal_payment": 0.0, "total_cash_flow": 12.34, "cumulative_coupons": 190.33 }, { "period": 18, "years": 9.0, "index_ratio": 1.248863, "adjusted_principal": 1248.86, "coupon_payment": 12.49, "principal_payment": 0.0, "total_cash_flow": 12.49, "cumulative_coupons": 202.82 }, { "period": 19, "years": 9.5, "index_ratio": 1.264377, "adjusted_principal": 1264.38, "coupon_payment": 12.64, "principal_payment": 0.0, "total_cash_flow": 12.64, "cumulative_coupons": 215.46 }, { "period": 20, "years": 10.0, "index_ratio": 1.280085, "adjusted_principal": 1280.08, "coupon_payment": 12.8, "principal_payment": 1280.08, "total_cash_flow": 1292.89, "cumulative_coupons": 228.26 } ], "schedule_truncated": false, "note": "TIPS principal is indexed to CPI; the deflation floor repays at least par at maturity" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-treasury-inflation-protected-securities-tips-calculator.mdc copy prompt ```text --- description: MiniWebtool Treasury Inflation-Protected Securities (TIPS) Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Treasury Inflation-Protected Securities (TIPS) Calculator API ## The API **Treasury Inflation-Protected Securities (TIPS) Calculator** — Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `face_value` | float | no | original principal (default `1000.0`) | | `coupon_rate` | float | no | real coupon rate percent per year (default `2.0`) | | `years` | float | no | years to maturity (default `10.0`) | | `payments_per_year` | int | no | 1, 2, 4 or 12 (default `2`) | | `inflation_rate` | float | no | assumed annual CPI percent (default `2.5`) | Example request body: ```json { "face_value": 1000.0, "coupon_rate": 2.0, "years": 10.0, "payments_per_year": 2, "inflation_rate": 2.5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "treasury-inflation-protected-securities-tips-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "face_value": 1000.0, "real_coupon_rate_percent": 2.0, "years": 10.0, "payments_per_year": 2, "assumed_inflation_percent": 2.5, "periods": 20, "period_inflation_percent": 1.242284, "first_coupon": 10.12, "final_coupon": 12.8, "final_index_ratio": 1.280085, "final_adjusted_principal": 1280.08, "principal_repaid": 1280.08, "deflation_floor_applied": false, "total_coupons": 228.26, "total_coupons_in_todays_money": 200.0, "total_received": 1508.34, "fixed_rate_treasury_coupons": 200.0, "coupon_advantage_vs_fixed": 28.26, "schedule": [ { "period": 1, "years": 0.5, "index_ratio": 1.012423, "adjusted_principal": 1012.42, "coupon_payment": 10.12, "principal_payment": 0.0, "total_cash_flow": 10.12, "cumulative_coupons": 10.12 }, { "period": 2, "years": 1.0, "index_ratio": 1.025, "adjusted_principal": 1025.0, "coupon_payment": 10.25, "principal_payment": 0.0, "total_cash_flow": 10.25, "cumulative_coupons": 20.37 }, { "period": 3, "years": 1.5, "index_ratio": 1.037733, "adjusted_principal": 1037.73, "coupon_payment": 10.38, "principal_payment": 0.0, "total_cash_flow": 10.38, "cumulative_coupons": 30.75 }, { "period": 4, "years": 2.0, "index_ratio": 1.050625, "adjusted_principal": 1050.62, "coupon_payment": 10.51, "principal_payment": 0.0, "total_cash_flow": 10.51, "cumulative_coupons": 41.26 }, { "period": 5, "years": 2.5, "index_ratio": 1.063677, "adjusted_principal": 1063.68, "coupon_payment": 10.64, "principal_payment": 0.0, "total_cash_flow": 10.64, "cumulative_coupons": 51.89 }, { "period": 6, "years": 3.0, "index_ratio": 1.076891, "adjusted_principal": 1076.89, "coupon_payment": 10.77, "principal_payment": 0.0, "total_cash_flow": 10.77, "cumulative_coupons": 62.66 }, { "period": 7, "years": 3.5, "index_ratio": 1.090269, "adjusted_principal": 1090.27, "coupon_payment": 10.9, "principal_payment": 0.0, "total_cash_flow": 10.9, "cumulative_coupons": 73.57 }, { "period": 8, "years": 4.0, "index_ratio": 1.103813, "adjusted_principal": 1103.81, "coupon_payment": 11.04, "principal_payment": 0.0, "total_cash_flow": 11.04, "cumulative_coupons": 84.6 }, { "period": 9, "years": 4.5, "index_ratio": 1.117525, "adjusted_principal": 1117.53, "coupon_payment": 11.18, "principal_payment": 0.0, "total_cash_flow": 11.18, "cumulative_coupons": 95.78 }, { "period": 10, "years": 5.0, "index_ratio": 1.131408, "adjusted_principal": 1131.41, "coupon_payment": 11.31, "principal_payment": 0.0, "total_cash_flow": 11.31, "cumulative_coupons": 107.09 }, { "period": 11, "years": 5.5, "index_ratio": 1.145464, "adjusted_principal": 1145.46, "coupon_payment": 11.45, "principal_payment": 0.0, "total_cash_flow": 11.45, "cumulative_coupons": 118.55 }, { "period": 12, "years": 6.0, "index_ratio": 1.159693, "adjusted_principal": 1159.69, "coupon_payment": 11.6, "principal_payment": 0.0, "total_cash_flow": 11.6, "cumulative_coupons": 130.15 }, { "period": 13, "years": 6.5, "index_ratio": 1.1741, "adjusted_principal": 1174.1, "coupon_payment": 11.74, "principal_payment": 0.0, "total_cash_flow": 11.74, "cumulative_coupons": 141.89 }, { "period": 14, "years": 7.0, "index_ratio": 1.188686, "adjusted_principal": 1188.69, "coupon_payment": 11.89, "principal_payment": 0.0, "total_cash_flow": 11.89, "cumulative_coupons": 153.77 }, { "period": 15, "years": 7.5, "index_ratio": 1.203453, "adjusted_principal": 1203.45, "coupon_payment": 12.03, "principal_payment": 0.0, "total_cash_flow": 12.03, "cumulative_coupons": 165.81 }, { "period": 16, "years": 8.0, "index_ratio": 1.218403, "adjusted_principal": 1218.4, "coupon_payment": 12.18, "principal_payment": 0.0, "total_cash_flow": 12.18, "cumulative_coupons": 177.99 }, { "period": 17, "years": 8.5, "index_ratio": 1.233539, "adjusted_principal": 1233.54, "coupon_payment": 12.34, "principal_payment": 0.0, "total_cash_flow": 12.34, "cumulative_coupons": 190.33 }, { "period": 18, "years": 9.0, "index_ratio": 1.248863, "adjusted_principal": 1248.86, "coupon_payment": 12.49, "principal_payment": 0.0, "total_cash_flow": 12.49, "cumulative_coupons": 202.82 }, { "period": 19, "years": 9.5, "index_ratio": 1.264377, "adjusted_principal": 1264.38, "coupon_payment": 12.64, "principal_payment": 0.0, "total_cash_flow": 12.64, "cumulative_coupons": 215.46 }, { "period": 20, "years": 10.0, "index_ratio": 1.280085, "adjusted_principal": 1280.08, "coupon_payment": 12.8, "principal_payment": 1280.08, "total_cash_flow": 1292.89, "cumulative_coupons": 228.26 } ], "schedule_truncated": false, "note": "TIPS principal is indexed to CPI; the deflation floor repays at least par at maturity" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `treasury-inflation-protected-securities-tips-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `treasury-inflation-protected-securities-tips-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call treasury-inflation-protected-securities-tips-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/treasury-inflation-protected-securities-tips-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Treasury Inflation-Protected Securities (TIPS) Calculator API do? + Inflation-adjusted principal, growing coupons and the deflation floor for a TIPS holding. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Treasury Inflation-Protected Securities (TIPS) Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Treasury Inflation-Protected Securities (TIPS) Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Treasury Inflation-Protected Securities (TIPS) Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Treasury Inflation-Protected Securities (TIPS) Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `treasury-inflation-protected-securities-tips-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`treasury-inflation-protected-securities-tips-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"treasury-inflation-protected-securities-tips-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Zero Coupon Bond Calculator API # Zero Coupon Bond Calculator API finance 2 credits / call v2026-04-22 Calculate zero coupon bond price or yield to maturity. One POST adds Zero Coupon Bond Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Zero Coupon Bond Calculator on miniwebtool.com →](https://miniwebtool.com/zero-coupon-bond-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run ``` ### Request body Field Type Req. `calc_type` price | ytm `str` — `face_value` `float` — `current_price` `float | None` — `rate_percent` `float | None` — `years` `float` — `compound` 1 | 2 | 4 | 12 | 365 | continuous `str` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "zero-coupon-bond-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → calc_type (str) price ytm price | ytm face_value (float) current_price (float | None) rate_percent (float | None) years (float) compound (str) 1 2 4 12 365 continuous 1 | 2 | 4 | 12 | 365 | continuous precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`zero-coupon-bond-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"calc_type":"price","face_value":1000,"rate_percent":5,"years":10,"compound":"1"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'calc_type': 'price', 'face_value': 1000, 'rate_percent': 5, 'years': 10, 'compound': '1'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"calc_type":"price","face_value":1000,"rate_percent":5,"years":10,"compound":"1"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'calc_type' => 'price', 'face_value' => 1000, 'rate_percent' => 5, 'years' => 10, 'compound' => '1' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'calc_type' => 'price', 'face_value' => 1000, 'rate_percent' => 5, 'years' => 10, 'compound' => '1' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "calc_type": "price", "face_value": 1000, "rate_percent": 5, "years": 10, "compound": "1", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"calc_type\":\"price\",\"face_value\":1000,\"rate_percent\":5,\"years\":10,\"compound\":\"1\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`zero-coupon-bond-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/zero-coupon-bond-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/zero-coupon-bond-calculator/prompt.md`](/tools/zero-coupon-bond-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Zero Coupon Bond Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Zero Coupon Bond Calculator** — Calculate zero coupon bond price or yield to maturity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_type` | str | no | one of: price, ytm — price \| ytm (default `price`) | | `face_value` | float | no | (default `1000.0`) | | `current_price` | float | None | no | — | | `rate_percent` | float | None | no | (default `5.0`) | | `years` | float | no | (default `10.0`) | | `compound` | str | no | one of: 1, 2, 4, 12, 365, continuous — 1 \| 2 \| 4 \| 12 \| 365 \| continuous (default `1`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "calc_type": "price", "face_value": 1000, "rate_percent": 5, "years": 10, "compound": "1" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "zero-coupon-bond-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calc_type": "price", "face_value": 1000.0, "bond_price": 613.9133, "years": 10.0, "compound": "1", "periods_per_year": 1, "rate_percent": 5.0, "ytm_percent": 5.0, "discount": 386.0867, "discount_percent": 38.6087, "total_return_percent": 62.8895, "effective_yield_percent": 5.0, "duration_years": 10.0, "rating": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Zero Coupon Bond Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Zero Coupon Bond Calculator** — Calculate zero coupon bond price or yield to maturity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_type` | str | no | one of: price, ytm — price \| ytm (default `price`) | | `face_value` | float | no | (default `1000.0`) | | `current_price` | float | None | no | — | | `rate_percent` | float | None | no | (default `5.0`) | | `years` | float | no | (default `10.0`) | | `compound` | str | no | one of: 1, 2, 4, 12, 365, continuous — 1 \| 2 \| 4 \| 12 \| 365 \| continuous (default `1`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "calc_type": "price", "face_value": 1000, "rate_percent": 5, "years": 10, "compound": "1" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "zero-coupon-bond-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calc_type": "price", "face_value": 1000.0, "bond_price": 613.9133, "years": 10.0, "compound": "1", "periods_per_year": 1, "rate_percent": 5.0, "ytm_percent": 5.0, "discount": 386.0867, "discount_percent": 38.6087, "total_return_percent": 62.8895, "effective_yield_percent": 5.0, "duration_years": 10.0, "rating": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-zero-coupon-bond-calculator.mdc copy prompt ```text --- description: MiniWebtool Zero Coupon Bond Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Zero Coupon Bond Calculator API ## The API **Zero Coupon Bond Calculator** — Calculate zero coupon bond price or yield to maturity. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_type` | str | no | one of: price, ytm — price \| ytm (default `price`) | | `face_value` | float | no | (default `1000.0`) | | `current_price` | float | None | no | — | | `rate_percent` | float | None | no | (default `5.0`) | | `years` | float | no | (default `10.0`) | | `compound` | str | no | one of: 1, 2, 4, 12, 365, continuous — 1 \| 2 \| 4 \| 12 \| 365 \| continuous (default `1`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "calc_type": "price", "face_value": 1000, "rate_percent": 5, "years": 10, "compound": "1" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "zero-coupon-bond-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calc_type": "price", "face_value": 1000.0, "bond_price": 613.9133, "years": 10.0, "compound": "1", "periods_per_year": 1, "rate_percent": 5.0, "ytm_percent": 5.0, "discount": 386.0867, "discount_percent": 38.6087, "total_return_percent": 62.8895, "effective_yield_percent": 5.0, "duration_years": 10.0, "rating": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `zero-coupon-bond-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `zero-coupon-bond-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call zero-coupon-bond-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/zero-coupon-bond-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Zero Coupon Bond Calculator API do? + Calculate zero coupon bond price or yield to maturity. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Zero Coupon Bond Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Zero Coupon Bond Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Zero Coupon Bond Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Zero Coupon Bond Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `zero-coupon-bond-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`zero-coupon-bond-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"zero-coupon-bond-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Cash Flow Calculator API # Cash Flow Calculator API finance 1 credit / call v2026-04-22 visual chart data Calculate net cash flow, ending cash, and optional month-by-month cash balance. One POST adds Cash Flow Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run ``` ### Request body Field Type Req. `beginning_cash` `float` — `cash_inflows` `float` — `cash_outflows` `float` — `monthly_net_flows` `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "cash-flow-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → beginning_cash (float) cash_inflows (float) cash_outflows (float) monthly_net_flows (str) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`cash-flow-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`cash-flow-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/cash-flow-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/cash-flow-calculator/prompt.md`](/tools/cash-flow-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Cash Flow Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cash Flow Calculator** — Calculate net cash flow, ending cash, and optional month-by-month cash balance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `beginning_cash` | float | no | (default `5000`) | | `cash_inflows` | float | no | (default `12000`) | | `cash_outflows` | float | no | (default `9000`) | | `monthly_net_flows` | str | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cash-flow-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "beginning_cash": 5000.0, "cash_inflows": 12000.0, "cash_outflows": 9000.0, "net_cash_flow": 3000.0, "ending_cash": 8000.0, "cash_flow_positive": true, "chart_data": { "series": [ { "label": "Start", "month": 0, "value": 5000.0 }, { "label": "End", "month": 1, "value": 8000.0, "cash_flow": 3000.0 } ], "breakdown": [ { "label": "Inflows", "value": 12000.0 }, { "label": "Outflows", "value": 9000.0 } ], "series_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Cash Flow Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Cash Flow Calculator** — Calculate net cash flow, ending cash, and optional month-by-month cash balance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `beginning_cash` | float | no | (default `5000`) | | `cash_inflows` | float | no | (default `12000`) | | `cash_outflows` | float | no | (default `9000`) | | `monthly_net_flows` | str | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cash-flow-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "beginning_cash": 5000.0, "cash_inflows": 12000.0, "cash_outflows": 9000.0, "net_cash_flow": 3000.0, "ending_cash": 8000.0, "cash_flow_positive": true, "chart_data": { "series": [ { "label": "Start", "month": 0, "value": 5000.0 }, { "label": "End", "month": 1, "value": 8000.0, "cash_flow": 3000.0 } ], "breakdown": [ { "label": "Inflows", "value": 12000.0 }, { "label": "Outflows", "value": 9000.0 } ], "series_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-cash-flow-calculator.mdc copy prompt ```text --- description: MiniWebtool Cash Flow Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Cash Flow Calculator API ## The API **Cash Flow Calculator** — Calculate net cash flow, ending cash, and optional month-by-month cash balance. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/cash-flow-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `beginning_cash` | float | no | (default `5000`) | | `cash_inflows` | float | no | (default `12000`) | | `cash_outflows` | float | no | (default `9000`) | | `monthly_net_flows` | str | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "cash-flow-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "beginning_cash": 5000.0, "cash_inflows": 12000.0, "cash_outflows": 9000.0, "net_cash_flow": 3000.0, "ending_cash": 8000.0, "cash_flow_positive": true, "chart_data": { "series": [ { "label": "Start", "month": 0, "value": 5000.0 }, { "label": "End", "month": 1, "value": 8000.0, "cash_flow": 3000.0 } ], "breakdown": [ { "label": "Inflows", "value": 12000.0 }, { "label": "Outflows", "value": 9000.0 } ], "series_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `cash-flow-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `cash-flow-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call cash-flow-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/cash-flow-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Cash Flow Calculator API do? + Calculate net cash flow, ending cash, and optional month-by-month cash balance. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Cash Flow Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Cash Flow Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Cash Flow Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Cash Flow Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Cash Flow Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `cash-flow-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`cash-flow-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"cash-flow-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Debt Service Coverage Ratio Calculator API # Debt Service Coverage Ratio Calculator API finance 1 credit / call v2026-04-22 visual chart data Calculate DSCR and cash flow after annual debt service. One POST adds Debt Service Coverage Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run ``` ### Request body Field Type Req. `net_operating_income` `float` — `annual_debt_service` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "debt-service-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → net_operating_income (float) annual_debt_service (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`debt-service-coverage-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`debt-service-coverage-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/debt-service-coverage-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/debt-service-coverage-ratio-calculator/prompt.md`](/tools/debt-service-coverage-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Debt Service Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Service Coverage Ratio Calculator** — Calculate DSCR and cash flow after annual debt service. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_operating_income` | float | no | (default `120000`) | | `annual_debt_service` | float | no | (default `90000`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-service-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "net_operating_income": 120000.0, "annual_debt_service": 90000.0, "dscr": 1.3333, "cash_flow_after_debt_service": 30000.0, "meets_1_25x_threshold": true, "chart_data": { "comparison": [ { "label": "NOI", "value": 120000.0 }, { "label": "Debt service", "value": 90000.0 } ], "breakdown": [ { "label": "Debt service", "value": 90000.0 }, { "label": "Surplus", "value": 30000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Debt Service Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Service Coverage Ratio Calculator** — Calculate DSCR and cash flow after annual debt service. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_operating_income` | float | no | (default `120000`) | | `annual_debt_service` | float | no | (default `90000`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-service-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "net_operating_income": 120000.0, "annual_debt_service": 90000.0, "dscr": 1.3333, "cash_flow_after_debt_service": 30000.0, "meets_1_25x_threshold": true, "chart_data": { "comparison": [ { "label": "NOI", "value": 120000.0 }, { "label": "Debt service", "value": 90000.0 } ], "breakdown": [ { "label": "Debt service", "value": 90000.0 }, { "label": "Surplus", "value": 30000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-debt-service-coverage-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Debt Service Coverage Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Debt Service Coverage Ratio Calculator API ## The API **Debt Service Coverage Ratio Calculator** — Calculate DSCR and cash flow after annual debt service. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_operating_income` | float | no | (default `120000`) | | `annual_debt_service` | float | no | (default `90000`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-service-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "net_operating_income": 120000.0, "annual_debt_service": 90000.0, "dscr": 1.3333, "cash_flow_after_debt_service": 30000.0, "meets_1_25x_threshold": true, "chart_data": { "comparison": [ { "label": "NOI", "value": 120000.0 }, { "label": "Debt service", "value": 90000.0 } ], "breakdown": [ { "label": "Debt service", "value": 90000.0 }, { "label": "Surplus", "value": 30000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `debt-service-coverage-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `debt-service-coverage-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call debt-service-coverage-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/debt-service-coverage-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Debt Service Coverage Ratio Calculator API do? + Calculate DSCR and cash flow after annual debt service. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Debt Service Coverage Ratio Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Debt Service Coverage Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Debt Service Coverage Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Debt Service Coverage Ratio Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Debt Service Coverage Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `debt-service-coverage-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`debt-service-coverage-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"debt-service-coverage-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Credit Card Interest Calculator API # Credit Card Interest Calculator API finance 2 credits / call v2026-04-22 visual chart data Estimate credit card payoff time, interest cost, and payment strategy savings. One POST adds Credit Card Interest Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Credit Card Interest Calculator on miniwebtool.com →](https://miniwebtool.com/credit-card-interest-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run ``` ### Request body Field Type Req. `balance` `float` ✓ `apr_percent` `float` ✓ `min_percent` `float` — `min_amount` `float` — `fixed_payment` `float | None` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "credit-card-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → balance (float) * apr_percent (float) * min_percent (float) min_amount (float) fixed_payment (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`credit-card-interest-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"balance":5000,"apr_percent":19.99,"min_percent":2,"min_amount":25,"fixed_payment":200}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'balance': 5000, 'apr_percent': 19.99, 'min_percent': 2, 'min_amount': 25, 'fixed_payment': 200}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"balance":5000,"apr_percent":19.99,"min_percent":2,"min_amount":25,"fixed_payment":200}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'balance' => 5000, 'apr_percent' => 19.99, 'min_percent' => 2, 'min_amount' => 25, 'fixed_payment' => 200 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'balance' => 5000, 'apr_percent' => 19.99, 'min_percent' => 2, 'min_amount' => 25, 'fixed_payment' => 200 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "balance": 5000, "apr_percent": 19.99, "min_percent": 2, "min_amount": 25, "fixed_payment": 200, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"balance\":5000,\"apr_percent\":19.99,\"min_percent\":2,\"min_amount\":25,\"fixed_payment\":200}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`credit-card-interest-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/credit-card-interest-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/credit-card-interest-calculator/prompt.md`](/tools/credit-card-interest-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Credit Card Interest Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Card Interest Calculator** — Estimate credit card payoff time, interest cost, and payment strategy savings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | yes | — | | `apr_percent` | float | yes | — | | `min_percent` | float | no | (default `2.0`) | | `min_amount` | float | no | (default `25.0`) | | `fixed_payment` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "balance": 5000, "apr_percent": 19.99, "min_percent": 2, "min_amount": 25, "fixed_payment": 200 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "balance": 5000.0, "apr_percent": 19.99, "minimum_payment_first_month": 100.0, "minimum_months": 523, "minimum_total_interest": 20151.45, "minimum_total_paid": 25151.45, "fixed_payment": 200.0, "fixed_months": 33, "fixed_total_interest": 1521.02, "fixed_interest_saved": 18630.43, "extra_50_months": 50, "extra_50_interest_saved": 17794.39, "extra_100_months": 33, "extra_100_interest_saved": 18630.43, "double_min_months": 33, "double_min_interest_saved": 18630.43, "interest_ratio_percent": 403.03, "cost_rating": "very_high", "schedule_sample": [ { "month": 1, "payment": 100.0, "principal": 16.71, "interest": 83.29, "ending_balance": 4983.29 }, { "month": 2, "payment": 99.67, "principal": 16.65, "interest": 83.01, "ending_balance": 4966.64 }, { "month": 3, "payment": 99.33, "principal": 16.6, "interest": 82.74, "ending_balance": 4950.04 }, { "month": 4, "payment": 99.0, "principal": 16.54, "interest": 82.46, "ending_balance": 4933.5 }, { "month": 5, "payment": 98.67, "principal": 16.49, "interest": 82.18, "ending_balance": 4917.01 }, { "month": 6, "payment": 98.34, "principal": 16.43, "interest": 81.91, "ending_balance": 4900.58 }, { "month": 7, "payment": 98.01, "principal": 16.38, "interest": 81.64, "ending_balance": 4884.21 }, { "month": 8, "payment": 97.68, "principal": 16.32, "interest": 81.36, "ending_balance": 4867.89 }, { "month": 9, "payment": 97.36, "principal": 16.27, "interest": 81.09, "ending_balance": 4851.62 }, { "month": 10, "payment": 97.03, "principal": 16.21, "interest": 80.82, "ending_balance": 4835.41 }, { "month": 11, "payment": 96.71, "principal": 16.16, "interest": 80.55, "ending_balance": 4819.25 }, { "month": 12, "payment": 96.38, "principal": 16.1, "interest": 80.28, "ending_balance": 4803.14 }, { "month": 523, "payment": 11.5, "principal": 11.31, "interest": 0.19, "ending_balance": 0.0 } ], "chart_data": { "payment_strategy_comparison": [ { "label": "Minimum payment", "months": 523, "total_interest": 20151.45, "interest_saved": 0.0 }, { "label": "Fixed payment", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 }, { "label": "Minimum + $50", "months": 50, "total_interest": 2357.06, "interest_saved": 17794.39 }, { "label": "Minimum + $100", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 }, { "label": "Double minimum", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 } ], "minimum_payment_balance_over_time": [ { "month": 0, "ending_balance": 5000.0 }, { "month": 1, "ending_balance": 4983.29 }, { "month": 2, "ending_balance": 4966.64 }, { "month": 3, "ending_balance": 4950.04 }, { "month": 4, "ending_balance": 4933.5 }, { "month": 5, "ending_balance": 4917.01 }, { "month": 6, "ending_balance": 4900.58 }, { "month": 7, "ending_balance": 4884.21 }, { "month": 8, "ending_balance": 4867.89 }, { "month": 9, "ending_balance": 4851.62 }, { "month": 10, "ending_balance": 4835.41 }, { "month": 11, "ending_balance": 4819.25 }, { "month": 12, "ending_balance": 4803.14 }, { "month": 523, "ending_balance": 0.0 } ], "minimum_payment_principal_interest": [ { "month": 1, "principal": 16.71, "interest": 83.29 }, { "month": 2, "principal": 16.65, "interest": 83.01 }, { "month": 3, "principal": 16.6, "interest": 82.74 }, { "month": 4, "principal": 16.54, "interest": 82.46 }, { "month": 5, "principal": 16.49, "interest": 82.18 }, { "month": 6, "principal": 16.43, "interest": 81.91 }, { "month": 7, "principal": 16.38, "interest": 81.64 }, { "month": 8, "principal": 16.32, "interest": 81.36 }, { "month": 9, "principal": 16.27, "interest": 81.09 }, { "month": 10, "principal": 16.21, "interest": 80.82 }, { "month": 11, "principal": 16.16, "interest": 80.55 }, { "month": 12, "principal": 16.1, "interest": 80.28 }, { "month": 523, "principal": 11.31, "interest": 0.19 } ], "minimum_schedule_sample": [ { "month": 1, "payment": 100.0, "principal": 16.71, "interest": 83.29, "ending_balance": 4983.29 }, { "month": 2, "payment": 99.67, "principal": 16.65, "interest": 83.01, "ending_balance": 4966.64 }, { "month": 3, "payment": 99.33, "principal": 16.6, "interest": 82.74, "ending_balance": 4950.04 }, { "month": 4, "payment": 99.0, "principal": 16.54, "interest": 82.46, "ending_balance": 4933.5 }, { "month": 5, "payment": 98.67, "principal": 16.49, "interest": 82.18, "ending_balance": 4917.01 }, { "month": 6, "payment": 98.34, "principal": 16.43, "interest": 81.91, "ending_balance": 4900.58 }, { "month": 7, "payment": 98.01, "principal": 16.38, "interest": 81.64, "ending_balance": 4884.21 }, { "month": 8, "payment": 97.68, "principal": 16.32, "interest": 81.36, "ending_balance": 4867.89 }, { "month": 9, "payment": 97.36, "principal": 16.27, "interest": 81.09, "ending_balance": 4851.62 }, { "month": 10, "payment": 97.03, "principal": 16.21, "interest": 80.82, "ending_balance": 4835.41 }, { "month": 11, "payment": 96.71, "principal": 16.16, "interest": 80.55, "ending_balance": 4819.25 }, { "month": 12, "payment": 96.38, "principal": 16.1, "interest": 80.28, "ending_balance": 4803.14 }, { "month": 523, "payment": 11.5, "principal": 11.31, "interest": 0.19, "ending_balance": 0.0 } ], "minimum_schedule_truncated": true } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Credit Card Interest Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Card Interest Calculator** — Estimate credit card payoff time, interest cost, and payment strategy savings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | yes | — | | `apr_percent` | float | yes | — | | `min_percent` | float | no | (default `2.0`) | | `min_amount` | float | no | (default `25.0`) | | `fixed_payment` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "balance": 5000, "apr_percent": 19.99, "min_percent": 2, "min_amount": 25, "fixed_payment": 200 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "balance": 5000.0, "apr_percent": 19.99, "minimum_payment_first_month": 100.0, "minimum_months": 523, "minimum_total_interest": 20151.45, "minimum_total_paid": 25151.45, "fixed_payment": 200.0, "fixed_months": 33, "fixed_total_interest": 1521.02, "fixed_interest_saved": 18630.43, "extra_50_months": 50, "extra_50_interest_saved": 17794.39, "extra_100_months": 33, "extra_100_interest_saved": 18630.43, "double_min_months": 33, "double_min_interest_saved": 18630.43, "interest_ratio_percent": 403.03, "cost_rating": "very_high", "schedule_sample": [ { "month": 1, "payment": 100.0, "principal": 16.71, "interest": 83.29, "ending_balance": 4983.29 }, { "month": 2, "payment": 99.67, "principal": 16.65, "interest": 83.01, "ending_balance": 4966.64 }, { "month": 3, "payment": 99.33, "principal": 16.6, "interest": 82.74, "ending_balance": 4950.04 }, { "month": 4, "payment": 99.0, "principal": 16.54, "interest": 82.46, "ending_balance": 4933.5 }, { "month": 5, "payment": 98.67, "principal": 16.49, "interest": 82.18, "ending_balance": 4917.01 }, { "month": 6, "payment": 98.34, "principal": 16.43, "interest": 81.91, "ending_balance": 4900.58 }, { "month": 7, "payment": 98.01, "principal": 16.38, "interest": 81.64, "ending_balance": 4884.21 }, { "month": 8, "payment": 97.68, "principal": 16.32, "interest": 81.36, "ending_balance": 4867.89 }, { "month": 9, "payment": 97.36, "principal": 16.27, "interest": 81.09, "ending_balance": 4851.62 }, { "month": 10, "payment": 97.03, "principal": 16.21, "interest": 80.82, "ending_balance": 4835.41 }, { "month": 11, "payment": 96.71, "principal": 16.16, "interest": 80.55, "ending_balance": 4819.25 }, { "month": 12, "payment": 96.38, "principal": 16.1, "interest": 80.28, "ending_balance": 4803.14 }, { "month": 523, "payment": 11.5, "principal": 11.31, "interest": 0.19, "ending_balance": 0.0 } ], "chart_data": { "payment_strategy_comparison": [ { "label": "Minimum payment", "months": 523, "total_interest": 20151.45, "interest_saved": 0.0 }, { "label": "Fixed payment", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 }, { "label": "Minimum + $50", "months": 50, "total_interest": 2357.06, "interest_saved": 17794.39 }, { "label": "Minimum + $100", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 }, { "label": "Double minimum", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 } ], "minimum_payment_balance_over_time": [ { "month": 0, "ending_balance": 5000.0 }, { "month": 1, "ending_balance": 4983.29 }, { "month": 2, "ending_balance": 4966.64 }, { "month": 3, "ending_balance": 4950.04 }, { "month": 4, "ending_balance": 4933.5 }, { "month": 5, "ending_balance": 4917.01 }, { "month": 6, "ending_balance": 4900.58 }, { "month": 7, "ending_balance": 4884.21 }, { "month": 8, "ending_balance": 4867.89 }, { "month": 9, "ending_balance": 4851.62 }, { "month": 10, "ending_balance": 4835.41 }, { "month": 11, "ending_balance": 4819.25 }, { "month": 12, "ending_balance": 4803.14 }, { "month": 523, "ending_balance": 0.0 } ], "minimum_payment_principal_interest": [ { "month": 1, "principal": 16.71, "interest": 83.29 }, { "month": 2, "principal": 16.65, "interest": 83.01 }, { "month": 3, "principal": 16.6, "interest": 82.74 }, { "month": 4, "principal": 16.54, "interest": 82.46 }, { "month": 5, "principal": 16.49, "interest": 82.18 }, { "month": 6, "principal": 16.43, "interest": 81.91 }, { "month": 7, "principal": 16.38, "interest": 81.64 }, { "month": 8, "principal": 16.32, "interest": 81.36 }, { "month": 9, "principal": 16.27, "interest": 81.09 }, { "month": 10, "principal": 16.21, "interest": 80.82 }, { "month": 11, "principal": 16.16, "interest": 80.55 }, { "month": 12, "principal": 16.1, "interest": 80.28 }, { "month": 523, "principal": 11.31, "interest": 0.19 } ], "minimum_schedule_sample": [ { "month": 1, "payment": 100.0, "principal": 16.71, "interest": 83.29, "ending_balance": 4983.29 }, { "month": 2, "payment": 99.67, "principal": 16.65, "interest": 83.01, "ending_balance": 4966.64 }, { "month": 3, "payment": 99.33, "principal": 16.6, "interest": 82.74, "ending_balance": 4950.04 }, { "month": 4, "payment": 99.0, "principal": 16.54, "interest": 82.46, "ending_balance": 4933.5 }, { "month": 5, "payment": 98.67, "principal": 16.49, "interest": 82.18, "ending_balance": 4917.01 }, { "month": 6, "payment": 98.34, "principal": 16.43, "interest": 81.91, "ending_balance": 4900.58 }, { "month": 7, "payment": 98.01, "principal": 16.38, "interest": 81.64, "ending_balance": 4884.21 }, { "month": 8, "payment": 97.68, "principal": 16.32, "interest": 81.36, "ending_balance": 4867.89 }, { "month": 9, "payment": 97.36, "principal": 16.27, "interest": 81.09, "ending_balance": 4851.62 }, { "month": 10, "payment": 97.03, "principal": 16.21, "interest": 80.82, "ending_balance": 4835.41 }, { "month": 11, "payment": 96.71, "principal": 16.16, "interest": 80.55, "ending_balance": 4819.25 }, { "month": 12, "payment": 96.38, "principal": 16.1, "interest": 80.28, "ending_balance": 4803.14 }, { "month": 523, "payment": 11.5, "principal": 11.31, "interest": 0.19, "ending_balance": 0.0 } ], "minimum_schedule_truncated": true } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-credit-card-interest-calculator.mdc copy prompt ```text --- description: MiniWebtool Credit Card Interest Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Credit Card Interest Calculator API ## The API **Credit Card Interest Calculator** — Estimate credit card payoff time, interest cost, and payment strategy savings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | yes | — | | `apr_percent` | float | yes | — | | `min_percent` | float | no | (default `2.0`) | | `min_amount` | float | no | (default `25.0`) | | `fixed_payment` | float | None | no | — | | `precision` | int | no | (default `2`) | Example request body: ```json { "balance": 5000, "apr_percent": 19.99, "min_percent": 2, "min_amount": 25, "fixed_payment": 200 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "balance": 5000.0, "apr_percent": 19.99, "minimum_payment_first_month": 100.0, "minimum_months": 523, "minimum_total_interest": 20151.45, "minimum_total_paid": 25151.45, "fixed_payment": 200.0, "fixed_months": 33, "fixed_total_interest": 1521.02, "fixed_interest_saved": 18630.43, "extra_50_months": 50, "extra_50_interest_saved": 17794.39, "extra_100_months": 33, "extra_100_interest_saved": 18630.43, "double_min_months": 33, "double_min_interest_saved": 18630.43, "interest_ratio_percent": 403.03, "cost_rating": "very_high", "schedule_sample": [ { "month": 1, "payment": 100.0, "principal": 16.71, "interest": 83.29, "ending_balance": 4983.29 }, { "month": 2, "payment": 99.67, "principal": 16.65, "interest": 83.01, "ending_balance": 4966.64 }, { "month": 3, "payment": 99.33, "principal": 16.6, "interest": 82.74, "ending_balance": 4950.04 }, { "month": 4, "payment": 99.0, "principal": 16.54, "interest": 82.46, "ending_balance": 4933.5 }, { "month": 5, "payment": 98.67, "principal": 16.49, "interest": 82.18, "ending_balance": 4917.01 }, { "month": 6, "payment": 98.34, "principal": 16.43, "interest": 81.91, "ending_balance": 4900.58 }, { "month": 7, "payment": 98.01, "principal": 16.38, "interest": 81.64, "ending_balance": 4884.21 }, { "month": 8, "payment": 97.68, "principal": 16.32, "interest": 81.36, "ending_balance": 4867.89 }, { "month": 9, "payment": 97.36, "principal": 16.27, "interest": 81.09, "ending_balance": 4851.62 }, { "month": 10, "payment": 97.03, "principal": 16.21, "interest": 80.82, "ending_balance": 4835.41 }, { "month": 11, "payment": 96.71, "principal": 16.16, "interest": 80.55, "ending_balance": 4819.25 }, { "month": 12, "payment": 96.38, "principal": 16.1, "interest": 80.28, "ending_balance": 4803.14 }, { "month": 523, "payment": 11.5, "principal": 11.31, "interest": 0.19, "ending_balance": 0.0 } ], "chart_data": { "payment_strategy_comparison": [ { "label": "Minimum payment", "months": 523, "total_interest": 20151.45, "interest_saved": 0.0 }, { "label": "Fixed payment", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 }, { "label": "Minimum + $50", "months": 50, "total_interest": 2357.06, "interest_saved": 17794.39 }, { "label": "Minimum + $100", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 }, { "label": "Double minimum", "months": 33, "total_interest": 1521.02, "interest_saved": 18630.43 } ], "minimum_payment_balance_over_time": [ { "month": 0, "ending_balance": 5000.0 }, { "month": 1, "ending_balance": 4983.29 }, { "month": 2, "ending_balance": 4966.64 }, { "month": 3, "ending_balance": 4950.04 }, { "month": 4, "ending_balance": 4933.5 }, { "month": 5, "ending_balance": 4917.01 }, { "month": 6, "ending_balance": 4900.58 }, { "month": 7, "ending_balance": 4884.21 }, { "month": 8, "ending_balance": 4867.89 }, { "month": 9, "ending_balance": 4851.62 }, { "month": 10, "ending_balance": 4835.41 }, { "month": 11, "ending_balance": 4819.25 }, { "month": 12, "ending_balance": 4803.14 }, { "month": 523, "ending_balance": 0.0 } ], "minimum_payment_principal_interest": [ { "month": 1, "principal": 16.71, "interest": 83.29 }, { "month": 2, "principal": 16.65, "interest": 83.01 }, { "month": 3, "principal": 16.6, "interest": 82.74 }, { "month": 4, "principal": 16.54, "interest": 82.46 }, { "month": 5, "principal": 16.49, "interest": 82.18 }, { "month": 6, "principal": 16.43, "interest": 81.91 }, { "month": 7, "principal": 16.38, "interest": 81.64 }, { "month": 8, "principal": 16.32, "interest": 81.36 }, { "month": 9, "principal": 16.27, "interest": 81.09 }, { "month": 10, "principal": 16.21, "interest": 80.82 }, { "month": 11, "principal": 16.16, "interest": 80.55 }, { "month": 12, "principal": 16.1, "interest": 80.28 }, { "month": 523, "principal": 11.31, "interest": 0.19 } ], "minimum_schedule_sample": [ { "month": 1, "payment": 100.0, "principal": 16.71, "interest": 83.29, "ending_balance": 4983.29 }, { "month": 2, "payment": 99.67, "principal": 16.65, "interest": 83.01, "ending_balance": 4966.64 }, { "month": 3, "payment": 99.33, "principal": 16.6, "interest": 82.74, "ending_balance": 4950.04 }, { "month": 4, "payment": 99.0, "principal": 16.54, "interest": 82.46, "ending_balance": 4933.5 }, { "month": 5, "payment": 98.67, "principal": 16.49, "interest": 82.18, "ending_balance": 4917.01 }, { "month": 6, "payment": 98.34, "principal": 16.43, "interest": 81.91, "ending_balance": 4900.58 }, { "month": 7, "payment": 98.01, "principal": 16.38, "interest": 81.64, "ending_balance": 4884.21 }, { "month": 8, "payment": 97.68, "principal": 16.32, "interest": 81.36, "ending_balance": 4867.89 }, { "month": 9, "payment": 97.36, "principal": 16.27, "interest": 81.09, "ending_balance": 4851.62 }, { "month": 10, "payment": 97.03, "principal": 16.21, "interest": 80.82, "ending_balance": 4835.41 }, { "month": 11, "payment": 96.71, "principal": 16.16, "interest": 80.55, "ending_balance": 4819.25 }, { "month": 12, "payment": 96.38, "principal": 16.1, "interest": 80.28, "ending_balance": 4803.14 }, { "month": 523, "payment": 11.5, "principal": 11.31, "interest": 0.19, "ending_balance": 0.0 } ], "minimum_schedule_truncated": true } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `credit-card-interest-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `credit-card-interest-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call credit-card-interest-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`balance`,`apr_percent`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/credit-card-interest-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Credit Card Interest Calculator API do? + Estimate credit card payoff time, interest cost, and payment strategy savings. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Credit Card Interest Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Credit Card Interest Calculator API require? + Required fields: balance, apr_percent. Full schema at /v1/openapi.json. Is the Credit Card Interest Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Credit Card Interest Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Credit Card Interest Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `credit-card-interest-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`credit-card-interest-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"credit-card-interest-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Credit Card Payment Calculator API # Credit Card Payment Calculator API finance 1 credit / call v2026-04-22 visual chart data Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. One POST adds Credit Card Payment Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Credit Card Payment Calculator on miniwebtool.com →](https://miniwebtool.com/credit-card-payment-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run ``` ### Request body Field Type Req. `balance` `float` — `apr` `float` — `months` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "credit-card-payment-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → balance (float) apr (float) months (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`credit-card-payment-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"balance":3000,"apr":17,"months":12}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'balance': 3000, 'apr': 17, 'months': 12}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"balance":3000,"apr":17,"months":12}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'balance' => 3000, 'apr' => 17, 'months' => 12 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'balance' => 3000, 'apr' => 17, 'months' => 12 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "balance": 3000, "apr": 17, "months": 12, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"balance\":3000,\"apr\":17,\"months\":12}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`credit-card-payment-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/credit-card-payment-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/credit-card-payment-calculator/prompt.md`](/tools/credit-card-payment-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Credit Card Payment Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Card Payment Calculator** — Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | no | (default `3000`) | | `apr` | float | no | (default `17`) | | `months` | int | no | (default `12`) | Example request body: ```json { "balance": 3000, "apr": 17, "months": 12 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-payment-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "balance": 3000.0, "apr": 17.0, "months": 12, "monthly_payment": 273.61, "total_paid": 3283.37, "total_interest": 283.37, "interest_share_percent": 8.6305, "chart_data": { "payment_breakdown": [ { "label": "Principal", "value": 3000.0 }, { "label": "Interest", "value": 283.37 } ], "balance_over_time": [ { "month": 0, "ending_balance": 3000.0 }, { "month": 1, "payment": 273.61, "principal": 231.11, "interest": 42.5, "ending_balance": 2768.89 }, { "month": 2, "payment": 273.61, "principal": 234.39, "interest": 39.23, "ending_balance": 2534.5 }, { "month": 3, "payment": 273.61, "principal": 237.71, "interest": 35.91, "ending_balance": 2296.79 }, { "month": 4, "payment": 273.61, "principal": 241.08, "interest": 32.54, "ending_balance": 2055.71 }, { "month": 5, "payment": 273.61, "principal": 244.49, "interest": 29.12, "ending_balance": 1811.22 }, { "month": 6, "payment": 273.61, "principal": 247.96, "interest": 25.66, "ending_balance": 1563.27 }, { "month": 7, "payment": 273.61, "principal": 251.47, "interest": 22.15, "ending_balance": 1311.8 }, { "month": 8, "payment": 273.61, "principal": 255.03, "interest": 18.58, "ending_balance": 1056.77 }, { "month": 9, "payment": 273.61, "principal": 258.64, "interest": 14.97, "ending_balance": 798.12 }, { "month": 10, "payment": 273.61, "principal": 262.31, "interest": 11.31, "ending_balance": 535.82 }, { "month": 11, "payment": 273.61, "principal": 266.02, "interest": 7.59, "ending_balance": 269.79 }, { "month": 12, "payment": 273.61, "principal": 269.79, "interest": 3.82, "ending_balance": 0.0 } ], "principal_interest_first_year": [ { "month": 1, "payment": 273.61, "principal": 231.11, "interest": 42.5, "ending_balance": 2768.89 }, { "month": 2, "payment": 273.61, "principal": 234.39, "interest": 39.23, "ending_balance": 2534.5 }, { "month": 3, "payment": 273.61, "principal": 237.71, "interest": 35.91, "ending_balance": 2296.79 }, { "month": 4, "payment": 273.61, "principal": 241.08, "interest": 32.54, "ending_balance": 2055.71 }, { "month": 5, "payment": 273.61, "principal": 244.49, "interest": 29.12, "ending_balance": 1811.22 }, { "month": 6, "payment": 273.61, "principal": 247.96, "interest": 25.66, "ending_balance": 1563.27 }, { "month": 7, "payment": 273.61, "principal": 251.47, "interest": 22.15, "ending_balance": 1311.8 }, { "month": 8, "payment": 273.61, "principal": 255.03, "interest": 18.58, "ending_balance": 1056.77 }, { "month": 9, "payment": 273.61, "principal": 258.64, "interest": 14.97, "ending_balance": 798.12 }, { "month": 10, "payment": 273.61, "principal": 262.31, "interest": 11.31, "ending_balance": 535.82 }, { "month": 11, "payment": 273.61, "principal": 266.02, "interest": 7.59, "ending_balance": 269.79 }, { "month": 12, "payment": 273.61, "principal": 269.79, "interest": 3.82, "ending_balance": 0.0 } ], "schedule_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Credit Card Payment Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Card Payment Calculator** — Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | no | (default `3000`) | | `apr` | float | no | (default `17`) | | `months` | int | no | (default `12`) | Example request body: ```json { "balance": 3000, "apr": 17, "months": 12 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-payment-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "balance": 3000.0, "apr": 17.0, "months": 12, "monthly_payment": 273.61, "total_paid": 3283.37, "total_interest": 283.37, "interest_share_percent": 8.6305, "chart_data": { "payment_breakdown": [ { "label": "Principal", "value": 3000.0 }, { "label": "Interest", "value": 283.37 } ], "balance_over_time": [ { "month": 0, "ending_balance": 3000.0 }, { "month": 1, "payment": 273.61, "principal": 231.11, "interest": 42.5, "ending_balance": 2768.89 }, { "month": 2, "payment": 273.61, "principal": 234.39, "interest": 39.23, "ending_balance": 2534.5 }, { "month": 3, "payment": 273.61, "principal": 237.71, "interest": 35.91, "ending_balance": 2296.79 }, { "month": 4, "payment": 273.61, "principal": 241.08, "interest": 32.54, "ending_balance": 2055.71 }, { "month": 5, "payment": 273.61, "principal": 244.49, "interest": 29.12, "ending_balance": 1811.22 }, { "month": 6, "payment": 273.61, "principal": 247.96, "interest": 25.66, "ending_balance": 1563.27 }, { "month": 7, "payment": 273.61, "principal": 251.47, "interest": 22.15, "ending_balance": 1311.8 }, { "month": 8, "payment": 273.61, "principal": 255.03, "interest": 18.58, "ending_balance": 1056.77 }, { "month": 9, "payment": 273.61, "principal": 258.64, "interest": 14.97, "ending_balance": 798.12 }, { "month": 10, "payment": 273.61, "principal": 262.31, "interest": 11.31, "ending_balance": 535.82 }, { "month": 11, "payment": 273.61, "principal": 266.02, "interest": 7.59, "ending_balance": 269.79 }, { "month": 12, "payment": 273.61, "principal": 269.79, "interest": 3.82, "ending_balance": 0.0 } ], "principal_interest_first_year": [ { "month": 1, "payment": 273.61, "principal": 231.11, "interest": 42.5, "ending_balance": 2768.89 }, { "month": 2, "payment": 273.61, "principal": 234.39, "interest": 39.23, "ending_balance": 2534.5 }, { "month": 3, "payment": 273.61, "principal": 237.71, "interest": 35.91, "ending_balance": 2296.79 }, { "month": 4, "payment": 273.61, "principal": 241.08, "interest": 32.54, "ending_balance": 2055.71 }, { "month": 5, "payment": 273.61, "principal": 244.49, "interest": 29.12, "ending_balance": 1811.22 }, { "month": 6, "payment": 273.61, "principal": 247.96, "interest": 25.66, "ending_balance": 1563.27 }, { "month": 7, "payment": 273.61, "principal": 251.47, "interest": 22.15, "ending_balance": 1311.8 }, { "month": 8, "payment": 273.61, "principal": 255.03, "interest": 18.58, "ending_balance": 1056.77 }, { "month": 9, "payment": 273.61, "principal": 258.64, "interest": 14.97, "ending_balance": 798.12 }, { "month": 10, "payment": 273.61, "principal": 262.31, "interest": 11.31, "ending_balance": 535.82 }, { "month": 11, "payment": 273.61, "principal": 266.02, "interest": 7.59, "ending_balance": 269.79 }, { "month": 12, "payment": 273.61, "principal": 269.79, "interest": 3.82, "ending_balance": 0.0 } ], "schedule_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-credit-card-payment-calculator.mdc copy prompt ```text --- description: MiniWebtool Credit Card Payment Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Credit Card Payment Calculator API ## The API **Credit Card Payment Calculator** — Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | no | (default `3000`) | | `apr` | float | no | (default `17`) | | `months` | int | no | (default `12`) | Example request body: ```json { "balance": 3000, "apr": 17, "months": 12 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-payment-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "balance": 3000.0, "apr": 17.0, "months": 12, "monthly_payment": 273.61, "total_paid": 3283.37, "total_interest": 283.37, "interest_share_percent": 8.6305, "chart_data": { "payment_breakdown": [ { "label": "Principal", "value": 3000.0 }, { "label": "Interest", "value": 283.37 } ], "balance_over_time": [ { "month": 0, "ending_balance": 3000.0 }, { "month": 1, "payment": 273.61, "principal": 231.11, "interest": 42.5, "ending_balance": 2768.89 }, { "month": 2, "payment": 273.61, "principal": 234.39, "interest": 39.23, "ending_balance": 2534.5 }, { "month": 3, "payment": 273.61, "principal": 237.71, "interest": 35.91, "ending_balance": 2296.79 }, { "month": 4, "payment": 273.61, "principal": 241.08, "interest": 32.54, "ending_balance": 2055.71 }, { "month": 5, "payment": 273.61, "principal": 244.49, "interest": 29.12, "ending_balance": 1811.22 }, { "month": 6, "payment": 273.61, "principal": 247.96, "interest": 25.66, "ending_balance": 1563.27 }, { "month": 7, "payment": 273.61, "principal": 251.47, "interest": 22.15, "ending_balance": 1311.8 }, { "month": 8, "payment": 273.61, "principal": 255.03, "interest": 18.58, "ending_balance": 1056.77 }, { "month": 9, "payment": 273.61, "principal": 258.64, "interest": 14.97, "ending_balance": 798.12 }, { "month": 10, "payment": 273.61, "principal": 262.31, "interest": 11.31, "ending_balance": 535.82 }, { "month": 11, "payment": 273.61, "principal": 266.02, "interest": 7.59, "ending_balance": 269.79 }, { "month": 12, "payment": 273.61, "principal": 269.79, "interest": 3.82, "ending_balance": 0.0 } ], "principal_interest_first_year": [ { "month": 1, "payment": 273.61, "principal": 231.11, "interest": 42.5, "ending_balance": 2768.89 }, { "month": 2, "payment": 273.61, "principal": 234.39, "interest": 39.23, "ending_balance": 2534.5 }, { "month": 3, "payment": 273.61, "principal": 237.71, "interest": 35.91, "ending_balance": 2296.79 }, { "month": 4, "payment": 273.61, "principal": 241.08, "interest": 32.54, "ending_balance": 2055.71 }, { "month": 5, "payment": 273.61, "principal": 244.49, "interest": 29.12, "ending_balance": 1811.22 }, { "month": 6, "payment": 273.61, "principal": 247.96, "interest": 25.66, "ending_balance": 1563.27 }, { "month": 7, "payment": 273.61, "principal": 251.47, "interest": 22.15, "ending_balance": 1311.8 }, { "month": 8, "payment": 273.61, "principal": 255.03, "interest": 18.58, "ending_balance": 1056.77 }, { "month": 9, "payment": 273.61, "principal": 258.64, "interest": 14.97, "ending_balance": 798.12 }, { "month": 10, "payment": 273.61, "principal": 262.31, "interest": 11.31, "ending_balance": 535.82 }, { "month": 11, "payment": 273.61, "principal": 266.02, "interest": 7.59, "ending_balance": 269.79 }, { "month": 12, "payment": 273.61, "principal": 269.79, "interest": 3.82, "ending_balance": 0.0 } ], "schedule_truncated": false } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `credit-card-payment-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `credit-card-payment-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call credit-card-payment-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/credit-card-payment-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Credit Card Payment Calculator API do? + Calculate the fixed monthly payment needed to pay off a credit card balance over a chosen number of months. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Credit Card Payment Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Credit Card Payment Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Credit Card Payment Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Credit Card Payment Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Credit Card Payment Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `credit-card-payment-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`credit-card-payment-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"credit-card-payment-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Credit Card Payoff Calculator API # Credit Card Payoff Calculator API finance 1 credit / call v2026-04-22 visual chart data Estimate how long a credit card payoff plan will take and how much interest it costs. One POST adds Credit Card Payoff Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Credit Card Payoff Calculator on miniwebtool.com →](https://miniwebtool.com/credit-card-payoff-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run ``` ### Request body Field Type Req. `balance` `float` — `apr` `float` — `payment` `float` — `monthly_charges` `float` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "credit-card-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → balance (float) apr (float) payment (float) monthly_charges (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`credit-card-payoff-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"balance":5000,"apr":22.99,"payment":200,"monthly_charges":0}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'balance': 5000, 'apr': 22.99, 'payment': 200, 'monthly_charges': 0}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"balance":5000,"apr":22.99,"payment":200,"monthly_charges":0}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'balance' => 5000, 'apr' => 22.99, 'payment' => 200, 'monthly_charges' => 0 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'balance' => 5000, 'apr' => 22.99, 'payment' => 200, 'monthly_charges' => 0 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "balance": 5000, "apr": 22.99, "payment": 200, "monthly_charges": 0, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"balance\":5000,\"apr\":22.99,\"payment\":200,\"monthly_charges\":0}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`credit-card-payoff-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/credit-card-payoff-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/credit-card-payoff-calculator/prompt.md`](/tools/credit-card-payoff-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Credit Card Payoff Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Card Payoff Calculator** — Estimate how long a credit card payoff plan will take and how much interest it costs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | no | (default `5000`) | | `apr` | float | no | (default `22.99`) | | `payment` | float | no | (default `200`) | | `monthly_charges` | float | no | (default `0`) | Example request body: ```json { "balance": 5000, "apr": 22.99, "payment": 200, "monthly_charges": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "months_to_payoff": 35, "years": 2, "remaining_months": 11, "total_interest": 1871.08, "total_charges": 0.0, "total_paid": 6871.08, "final_balance": 0.0, "chart_data": { "payment_breakdown": [ { "label": "Principal", "value": 5000.0 }, { "label": "Interest", "value": 1871.08 }, { "label": "New charges", "value": 0.0 } ], "balance_over_time": [ { "month": 0, "ending_balance": 5000.0 }, { "month": 1, "payment": 200.0, "principal": 104.21, "interest": 95.79, "new_charges": 0.0, "ending_balance": 4895.79 }, { "month": 2, "payment": 200.0, "principal": 106.2, "interest": 93.8, "new_charges": 0.0, "ending_balance": 4789.59 }, { "month": 3, "payment": 200.0, "principal": 108.24, "interest": 91.76, "new_charges": 0.0, "ending_balance": 4681.35 }, { "month": 4, "payment": 200.0, "principal": 110.31, "interest": 89.69, "new_charges": 0.0, "ending_balance": 4571.03 }, { "month": 5, "payment": 200.0, "principal": 112.43, "interest": 87.57, "new_charges": 0.0, "ending_balance": 4458.61 }, { "month": 6, "payment": 200.0, "principal": 114.58, "interest": 85.42, "new_charges": 0.0, "ending_balance": 4344.03 }, { "month": 7, "payment": 200.0, "principal": 116.78, "interest": 83.22, "new_charges": 0.0, "ending_balance": 4227.25 }, { "month": 8, "payment": 200.0, "principal": 119.01, "interest": 80.99, "new_charges": 0.0, "ending_balance": 4108.24 }, { "month": 9, "payment": 200.0, "principal": 121.29, "interest": 78.71, "new_charges": 0.0, "ending_balance": 3986.95 }, { "month": 10, "payment": 200.0, "principal": 123.62, "interest": 76.38, "new_charges": 0.0, "ending_balance": 3863.33 }, { "month": 11, "payment": 200.0, "principal": 125.99, "interest": 74.01, "new_charges": 0.0, "ending_balance": 3737.34 }, { "month": 35, "payment": 71.08, "principal": 69.74, "interest": 1.34, "new_charges": 0.0, "ending_balance": 0.0 } ], "principal_interest_first_year": [ { "month": 1, "payment": 200.0, "principal": 104.21, "interest": 95.79, "new_charges": 0.0, "ending_balance": 4895.79 }, { "month": 2, "payment": 200.0, "principal": 106.2, "interest": 93.8, "new_charges": 0.0, "ending_balance": 4789.59 }, { "month": 3, "payment": 200.0, "principal": 108.24, "interest": 91.76, "new_charges": 0.0, "ending_balance": 4681.35 }, { "month": 4, "payment": 200.0, "principal": 110.31, "interest": 89.69, "new_charges": 0.0, "ending_balance": 4571.03 }, { "month": 5, "payment": 200.0, "principal": 112.43, "interest": 87.57, "new_charges": 0.0, "ending_balance": 4458.61 }, { "month": 6, "payment": 200.0, "principal": 114.58, "interest": 85.42, "new_charges": 0.0, "ending_balance": 4344.03 }, { "month": 7, "payment": 200.0, "principal": 116.78, "interest": 83.22, "new_charges": 0.0, "ending_balance": 4227.25 }, { "month": 8, "payment": 200.0, "principal": 119.01, "interest": 80.99, "new_charges": 0.0, "ending_balance": 4108.24 }, { "month": 9, "payment": 200.0, "principal": 121.29, "interest": 78.71, "new_charges": 0.0, "ending_balance": 3986.95 }, { "month": 10, "payment": 200.0, "principal": 123.62, "interest": 76.38, "new_charges": 0.0, "ending_balance": 3863.33 }, { "month": 11, "payment": 200.0, "principal": 125.99, "interest": 74.01, "new_charges": 0.0, "ending_balance": 3737.34 }, { "month": 12, "payment": 200.0, "principal": 128.4, "interest": 71.6, "new_charges": 0.0, "ending_balance": 3608.94 } ], "schedule_truncated": true } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Credit Card Payoff Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Card Payoff Calculator** — Estimate how long a credit card payoff plan will take and how much interest it costs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | no | (default `5000`) | | `apr` | float | no | (default `22.99`) | | `payment` | float | no | (default `200`) | | `monthly_charges` | float | no | (default `0`) | Example request body: ```json { "balance": 5000, "apr": 22.99, "payment": 200, "monthly_charges": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "months_to_payoff": 35, "years": 2, "remaining_months": 11, "total_interest": 1871.08, "total_charges": 0.0, "total_paid": 6871.08, "final_balance": 0.0, "chart_data": { "payment_breakdown": [ { "label": "Principal", "value": 5000.0 }, { "label": "Interest", "value": 1871.08 }, { "label": "New charges", "value": 0.0 } ], "balance_over_time": [ { "month": 0, "ending_balance": 5000.0 }, { "month": 1, "payment": 200.0, "principal": 104.21, "interest": 95.79, "new_charges": 0.0, "ending_balance": 4895.79 }, { "month": 2, "payment": 200.0, "principal": 106.2, "interest": 93.8, "new_charges": 0.0, "ending_balance": 4789.59 }, { "month": 3, "payment": 200.0, "principal": 108.24, "interest": 91.76, "new_charges": 0.0, "ending_balance": 4681.35 }, { "month": 4, "payment": 200.0, "principal": 110.31, "interest": 89.69, "new_charges": 0.0, "ending_balance": 4571.03 }, { "month": 5, "payment": 200.0, "principal": 112.43, "interest": 87.57, "new_charges": 0.0, "ending_balance": 4458.61 }, { "month": 6, "payment": 200.0, "principal": 114.58, "interest": 85.42, "new_charges": 0.0, "ending_balance": 4344.03 }, { "month": 7, "payment": 200.0, "principal": 116.78, "interest": 83.22, "new_charges": 0.0, "ending_balance": 4227.25 }, { "month": 8, "payment": 200.0, "principal": 119.01, "interest": 80.99, "new_charges": 0.0, "ending_balance": 4108.24 }, { "month": 9, "payment": 200.0, "principal": 121.29, "interest": 78.71, "new_charges": 0.0, "ending_balance": 3986.95 }, { "month": 10, "payment": 200.0, "principal": 123.62, "interest": 76.38, "new_charges": 0.0, "ending_balance": 3863.33 }, { "month": 11, "payment": 200.0, "principal": 125.99, "interest": 74.01, "new_charges": 0.0, "ending_balance": 3737.34 }, { "month": 35, "payment": 71.08, "principal": 69.74, "interest": 1.34, "new_charges": 0.0, "ending_balance": 0.0 } ], "principal_interest_first_year": [ { "month": 1, "payment": 200.0, "principal": 104.21, "interest": 95.79, "new_charges": 0.0, "ending_balance": 4895.79 }, { "month": 2, "payment": 200.0, "principal": 106.2, "interest": 93.8, "new_charges": 0.0, "ending_balance": 4789.59 }, { "month": 3, "payment": 200.0, "principal": 108.24, "interest": 91.76, "new_charges": 0.0, "ending_balance": 4681.35 }, { "month": 4, "payment": 200.0, "principal": 110.31, "interest": 89.69, "new_charges": 0.0, "ending_balance": 4571.03 }, { "month": 5, "payment": 200.0, "principal": 112.43, "interest": 87.57, "new_charges": 0.0, "ending_balance": 4458.61 }, { "month": 6, "payment": 200.0, "principal": 114.58, "interest": 85.42, "new_charges": 0.0, "ending_balance": 4344.03 }, { "month": 7, "payment": 200.0, "principal": 116.78, "interest": 83.22, "new_charges": 0.0, "ending_balance": 4227.25 }, { "month": 8, "payment": 200.0, "principal": 119.01, "interest": 80.99, "new_charges": 0.0, "ending_balance": 4108.24 }, { "month": 9, "payment": 200.0, "principal": 121.29, "interest": 78.71, "new_charges": 0.0, "ending_balance": 3986.95 }, { "month": 10, "payment": 200.0, "principal": 123.62, "interest": 76.38, "new_charges": 0.0, "ending_balance": 3863.33 }, { "month": 11, "payment": 200.0, "principal": 125.99, "interest": 74.01, "new_charges": 0.0, "ending_balance": 3737.34 }, { "month": 12, "payment": 200.0, "principal": 128.4, "interest": 71.6, "new_charges": 0.0, "ending_balance": 3608.94 } ], "schedule_truncated": true } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-credit-card-payoff-calculator.mdc copy prompt ```text --- description: MiniWebtool Credit Card Payoff Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Credit Card Payoff Calculator API ## The API **Credit Card Payoff Calculator** — Estimate how long a credit card payoff plan will take and how much interest it costs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balance` | float | no | (default `5000`) | | `apr` | float | no | (default `22.99`) | | `payment` | float | no | (default `200`) | | `monthly_charges` | float | no | (default `0`) | Example request body: ```json { "balance": 5000, "apr": 22.99, "payment": 200, "monthly_charges": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-card-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "months_to_payoff": 35, "years": 2, "remaining_months": 11, "total_interest": 1871.08, "total_charges": 0.0, "total_paid": 6871.08, "final_balance": 0.0, "chart_data": { "payment_breakdown": [ { "label": "Principal", "value": 5000.0 }, { "label": "Interest", "value": 1871.08 }, { "label": "New charges", "value": 0.0 } ], "balance_over_time": [ { "month": 0, "ending_balance": 5000.0 }, { "month": 1, "payment": 200.0, "principal": 104.21, "interest": 95.79, "new_charges": 0.0, "ending_balance": 4895.79 }, { "month": 2, "payment": 200.0, "principal": 106.2, "interest": 93.8, "new_charges": 0.0, "ending_balance": 4789.59 }, { "month": 3, "payment": 200.0, "principal": 108.24, "interest": 91.76, "new_charges": 0.0, "ending_balance": 4681.35 }, { "month": 4, "payment": 200.0, "principal": 110.31, "interest": 89.69, "new_charges": 0.0, "ending_balance": 4571.03 }, { "month": 5, "payment": 200.0, "principal": 112.43, "interest": 87.57, "new_charges": 0.0, "ending_balance": 4458.61 }, { "month": 6, "payment": 200.0, "principal": 114.58, "interest": 85.42, "new_charges": 0.0, "ending_balance": 4344.03 }, { "month": 7, "payment": 200.0, "principal": 116.78, "interest": 83.22, "new_charges": 0.0, "ending_balance": 4227.25 }, { "month": 8, "payment": 200.0, "principal": 119.01, "interest": 80.99, "new_charges": 0.0, "ending_balance": 4108.24 }, { "month": 9, "payment": 200.0, "principal": 121.29, "interest": 78.71, "new_charges": 0.0, "ending_balance": 3986.95 }, { "month": 10, "payment": 200.0, "principal": 123.62, "interest": 76.38, "new_charges": 0.0, "ending_balance": 3863.33 }, { "month": 11, "payment": 200.0, "principal": 125.99, "interest": 74.01, "new_charges": 0.0, "ending_balance": 3737.34 }, { "month": 35, "payment": 71.08, "principal": 69.74, "interest": 1.34, "new_charges": 0.0, "ending_balance": 0.0 } ], "principal_interest_first_year": [ { "month": 1, "payment": 200.0, "principal": 104.21, "interest": 95.79, "new_charges": 0.0, "ending_balance": 4895.79 }, { "month": 2, "payment": 200.0, "principal": 106.2, "interest": 93.8, "new_charges": 0.0, "ending_balance": 4789.59 }, { "month": 3, "payment": 200.0, "principal": 108.24, "interest": 91.76, "new_charges": 0.0, "ending_balance": 4681.35 }, { "month": 4, "payment": 200.0, "principal": 110.31, "interest": 89.69, "new_charges": 0.0, "ending_balance": 4571.03 }, { "month": 5, "payment": 200.0, "principal": 112.43, "interest": 87.57, "new_charges": 0.0, "ending_balance": 4458.61 }, { "month": 6, "payment": 200.0, "principal": 114.58, "interest": 85.42, "new_charges": 0.0, "ending_balance": 4344.03 }, { "month": 7, "payment": 200.0, "principal": 116.78, "interest": 83.22, "new_charges": 0.0, "ending_balance": 4227.25 }, { "month": 8, "payment": 200.0, "principal": 119.01, "interest": 80.99, "new_charges": 0.0, "ending_balance": 4108.24 }, { "month": 9, "payment": 200.0, "principal": 121.29, "interest": 78.71, "new_charges": 0.0, "ending_balance": 3986.95 }, { "month": 10, "payment": 200.0, "principal": 123.62, "interest": 76.38, "new_charges": 0.0, "ending_balance": 3863.33 }, { "month": 11, "payment": 200.0, "principal": 125.99, "interest": 74.01, "new_charges": 0.0, "ending_balance": 3737.34 }, { "month": 12, "payment": 200.0, "principal": 128.4, "interest": 71.6, "new_charges": 0.0, "ending_balance": 3608.94 } ], "schedule_truncated": true } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `credit-card-payoff-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `credit-card-payoff-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call credit-card-payoff-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/credit-card-payoff-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Credit Card Payoff Calculator API do? + Estimate how long a credit card payoff plan will take and how much interest it costs. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Credit Card Payoff Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Credit Card Payoff Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Credit Card Payoff Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Credit Card Payoff Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Credit Card Payoff Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `credit-card-payoff-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`credit-card-payoff-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"credit-card-payoff-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Credit Utilization Calculator API # Credit Utilization Calculator API finance 2 credits / call v2026-04-22 Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. One POST adds Credit Utilization Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Credit Utilization Calculator on miniwebtool.com →](https://miniwebtool.com/credit-utilization-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run ``` ### Request body Field Type Req. `cards` Semicolon-separated 'balance,limit' pairs, e.g. '450,2000;1200,5000' `str` ✓ ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "credit-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cards (str) * 450,2000;1200,5000 Semicolon-separated 'balance,limit' pairs, e.g. '450,2000;1200,5000' Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`credit-utilization-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"cards":"450,2000;1200,5000"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'cards': '450,2000;1200,5000'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"cards":"450,2000;1200,5000"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'cards' => '450,2000;1200,5000' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'cards' => '450,2000;1200,5000' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "cards": "450,2000;1200,5000", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"cards\":\"450,2000;1200,5000\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`credit-utilization-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/credit-utilization-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/credit-utilization-calculator/prompt.md`](/tools/credit-utilization-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Credit Utilization Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Utilization Calculator** — Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cards` | str | yes | Semicolon-separated 'balance,limit' pairs, e.g. '450,2000;1200,5000' | Example request body: ```json { "cards": "450,2000;1200,5000" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "cards": [ { "card": 1, "balance": 450.0, "limit": 2000.0, "utilization_pct": 22.5, "band": "good", "pay_down_to_30pct": 0.0, "pay_down_to_10pct": 250.0 }, { "card": 2, "balance": 1200.0, "limit": 5000.0, "utilization_pct": 24.0, "band": "good", "pay_down_to_30pct": 0.0, "pay_down_to_10pct": 700.0 } ], "card_count": 2, "total_balance": 1650.0, "total_limit": 7000.0, "overall_utilization_pct": 23.57, "overall_band": "good", "overall_band_note": "under 30 percent is the classic rule of thumb", "highest_card_utilization_pct": 24.0, "highest_card": 2, "available_credit": 5350.0, "pay_down_overall_to_30pct": 0.0, "pay_down_overall_to_10pct": 950.0, "note": "Scoring models weigh both the aggregate utilization and the highest single-card utilization." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Credit Utilization Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Credit Utilization Calculator** — Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cards` | str | yes | Semicolon-separated 'balance,limit' pairs, e.g. '450,2000;1200,5000' | Example request body: ```json { "cards": "450,2000;1200,5000" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "cards": [ { "card": 1, "balance": 450.0, "limit": 2000.0, "utilization_pct": 22.5, "band": "good", "pay_down_to_30pct": 0.0, "pay_down_to_10pct": 250.0 }, { "card": 2, "balance": 1200.0, "limit": 5000.0, "utilization_pct": 24.0, "band": "good", "pay_down_to_30pct": 0.0, "pay_down_to_10pct": 700.0 } ], "card_count": 2, "total_balance": 1650.0, "total_limit": 7000.0, "overall_utilization_pct": 23.57, "overall_band": "good", "overall_band_note": "under 30 percent is the classic rule of thumb", "highest_card_utilization_pct": 24.0, "highest_card": 2, "available_credit": 5350.0, "pay_down_overall_to_30pct": 0.0, "pay_down_overall_to_10pct": 950.0, "note": "Scoring models weigh both the aggregate utilization and the highest single-card utilization." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-credit-utilization-calculator.mdc copy prompt ```text --- description: MiniWebtool Credit Utilization Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Credit Utilization Calculator API ## The API **Credit Utilization Calculator** — Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cards` | str | yes | Semicolon-separated 'balance,limit' pairs, e.g. '450,2000;1200,5000' | Example request body: ```json { "cards": "450,2000;1200,5000" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "credit-utilization-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "cards": [ { "card": 1, "balance": 450.0, "limit": 2000.0, "utilization_pct": 22.5, "band": "good", "pay_down_to_30pct": 0.0, "pay_down_to_10pct": 250.0 }, { "card": 2, "balance": 1200.0, "limit": 5000.0, "utilization_pct": 24.0, "band": "good", "pay_down_to_30pct": 0.0, "pay_down_to_10pct": 700.0 } ], "card_count": 2, "total_balance": 1650.0, "total_limit": 7000.0, "overall_utilization_pct": 23.57, "overall_band": "good", "overall_band_note": "under 30 percent is the classic rule of thumb", "highest_card_utilization_pct": 24.0, "highest_card": 2, "available_credit": 5350.0, "pay_down_overall_to_30pct": 0.0, "pay_down_overall_to_10pct": 950.0, "note": "Scoring models weigh both the aggregate utilization and the highest single-card utilization." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `credit-utilization-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `credit-utilization-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call credit-utilization-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`cards`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/credit-utilization-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Credit Utilization Calculator API do? + Per-card and overall credit utilization with score-band ratings and pay-down targets to reach 30 and 10 percent. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Credit Utilization Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Credit Utilization Calculator API require? + Required fields: cards. Full schema at /v1/openapi.json. Is the Credit Utilization Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Credit Utilization Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `credit-utilization-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`credit-utilization-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"credit-utilization-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Bitcoin Investment Calculator API # Bitcoin Investment Calculator API finance 2 credits / call v2026-04-22 Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. One POST adds Bitcoin Investment Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Bitcoin Investment Calculator on miniwebtool.com →](https://miniwebtool.com/bitcoin-investment-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run ``` ### Request body Field Type Req. `investment_amount` `float` — `purchase_price` `float` — `target_price` `float` — `holding_years` `float | None` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "bitcoin-investment-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → investment_amount (float) purchase_price (float) target_price (float) holding_years (float | None) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`bitcoin-investment-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"investment_amount":1000,"purchase_price":30000,"target_price":100000,"holding_years":3}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'investment_amount': 1000, 'purchase_price': 30000, 'target_price': 100000, 'holding_years': 3}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"investment_amount":1000,"purchase_price":30000,"target_price":100000,"holding_years":3}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'investment_amount' => 1000, 'purchase_price' => 30000, 'target_price' => 100000, 'holding_years' => 3 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'investment_amount' => 1000, 'purchase_price' => 30000, 'target_price' => 100000, 'holding_years' => 3 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "investment_amount": 1000, "purchase_price": 30000, "target_price": 100000, "holding_years": 3, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"investment_amount\":1000,\"purchase_price\":30000,\"target_price\":100000,\"holding_years\":3}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`bitcoin-investment-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/bitcoin-investment-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/bitcoin-investment-calculator/prompt.md`](/tools/bitcoin-investment-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Bitcoin Investment Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bitcoin Investment Calculator** — Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `investment_amount` | float | no | (default `1000`) | | `purchase_price` | float | no | (default `30000`) | | `target_price` | float | no | (default `100000`) | | `holding_years` | float | None | no | (default `3`) | Example request body: ```json { "investment_amount": 1000, "purchase_price": 30000, "target_price": 100000, "holding_years": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bitcoin-investment-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bitcoin_amount": 0.03333333, "satoshis": 3333333, "future_value": 3333.33, "profit_loss": 2333.33, "roi_pct": 233.33, "value_multiplier": 3.3333, "cagr_pct": 49.38, "sp500_comparison_value": 1331.0, "gold_comparison_value": 1225.04, "chart_data": { "scenarios": [ { "label": "Bear -25%", "price": 75000.0, "value": 2500.0 }, { "label": "Target", "price": 100000.0, "value": 3333.33 }, { "label": "Bull +25%", "price": 125000.0, "value": 4166.67 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Bitcoin Investment Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Bitcoin Investment Calculator** — Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `investment_amount` | float | no | (default `1000`) | | `purchase_price` | float | no | (default `30000`) | | `target_price` | float | no | (default `100000`) | | `holding_years` | float | None | no | (default `3`) | Example request body: ```json { "investment_amount": 1000, "purchase_price": 30000, "target_price": 100000, "holding_years": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bitcoin-investment-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bitcoin_amount": 0.03333333, "satoshis": 3333333, "future_value": 3333.33, "profit_loss": 2333.33, "roi_pct": 233.33, "value_multiplier": 3.3333, "cagr_pct": 49.38, "sp500_comparison_value": 1331.0, "gold_comparison_value": 1225.04, "chart_data": { "scenarios": [ { "label": "Bear -25%", "price": 75000.0, "value": 2500.0 }, { "label": "Target", "price": 100000.0, "value": 3333.33 }, { "label": "Bull +25%", "price": 125000.0, "value": 4166.67 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-bitcoin-investment-calculator.mdc copy prompt ```text --- description: MiniWebtool Bitcoin Investment Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Bitcoin Investment Calculator API ## The API **Bitcoin Investment Calculator** — Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `investment_amount` | float | no | (default `1000`) | | `purchase_price` | float | no | (default `30000`) | | `target_price` | float | no | (default `100000`) | | `holding_years` | float | None | no | (default `3`) | Example request body: ```json { "investment_amount": 1000, "purchase_price": 30000, "target_price": 100000, "holding_years": 3 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "bitcoin-investment-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "bitcoin_amount": 0.03333333, "satoshis": 3333333, "future_value": 3333.33, "profit_loss": 2333.33, "roi_pct": 233.33, "value_multiplier": 3.3333, "cagr_pct": 49.38, "sp500_comparison_value": 1331.0, "gold_comparison_value": 1225.04, "chart_data": { "scenarios": [ { "label": "Bear -25%", "price": 75000.0, "value": 2500.0 }, { "label": "Target", "price": 100000.0, "value": 3333.33 }, { "label": "Bull +25%", "price": 125000.0, "value": 4166.67 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `bitcoin-investment-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `bitcoin-investment-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call bitcoin-investment-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/bitcoin-investment-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Bitcoin Investment Calculator API do? + Project Bitcoin holdings, target value, profit, ROI, CAGR, and benchmark values. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Bitcoin Investment Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Bitcoin Investment Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Bitcoin Investment Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Bitcoin Investment Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `bitcoin-investment-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`bitcoin-investment-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"bitcoin-investment-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Crypto Arbitrage Calculator API # Crypto Arbitrage Calculator API finance 2 credits / call v2026-04-22 Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. One POST adds Crypto Arbitrage Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Crypto Arbitrage Calculator on miniwebtool.com →](https://miniwebtool.com/crypto-arbitrage-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run ``` ### Request body Field Type Req. `buy_price` `float` — `sell_price` `float` — `amount` `float` — `buy_fee_pct` `float` — `sell_fee_pct` `float` — `withdrawal_fee_crypto` `float` — `network_fee` `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "crypto-arbitrage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → buy_price (float) sell_price (float) amount (float) buy_fee_pct (float) sell_fee_pct (float) withdrawal_fee_crypto (float) network_fee (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`crypto-arbitrage-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"buy_price":60000,"sell_price":61500,"amount":0.25,"buy_fee_pct":0.1,"sell_fee_pct":0.1,"withdrawal_fee_crypto":0.0002,"network_fee":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'buy_price': 60000, 'sell_price': 61500, 'amount': 0.25, 'buy_fee_pct': 0.1, 'sell_fee_pct': 0.1, 'withdrawal_fee_crypto': 0.0002, 'network_fee': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"buy_price":60000,"sell_price":61500,"amount":0.25,"buy_fee_pct":0.1,"sell_fee_pct":0.1,"withdrawal_fee_crypto":0.0002,"network_fee":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'buy_price' => 60000, 'sell_price' => 61500, 'amount' => 0.25, 'buy_fee_pct' => 0.1, 'sell_fee_pct' => 0.1, 'withdrawal_fee_crypto' => 0.0002, 'network_fee' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'buy_price' => 60000, 'sell_price' => 61500, 'amount' => 0.25, 'buy_fee_pct' => 0.1, 'sell_fee_pct' => 0.1, 'withdrawal_fee_crypto' => 0.0002, 'network_fee' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "buy_price": 60000, "sell_price": 61500, "amount": 0.25, "buy_fee_pct": 0.1, "sell_fee_pct": 0.1, "withdrawal_fee_crypto": 0.0002, "network_fee": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"buy_price\":60000,\"sell_price\":61500,\"amount\":0.25,\"buy_fee_pct\":0.1,\"sell_fee_pct\":0.1,\"withdrawal_fee_crypto\":0.0002,\"network_fee\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`crypto-arbitrage-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/crypto-arbitrage-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/crypto-arbitrage-calculator/prompt.md`](/tools/crypto-arbitrage-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Crypto Arbitrage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crypto Arbitrage Calculator** — Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `buy_price` | float | no | (default `60000`) | | `sell_price` | float | no | (default `61500`) | | `amount` | float | no | (default `0.25`) | | `buy_fee_pct` | float | no | (default `0.1`) | | `sell_fee_pct` | float | no | (default `0.1`) | | `withdrawal_fee_crypto` | float | no | (default `0.0002`) | | `network_fee` | float | no | (default `2`) | Example request body: ```json { "buy_price": 60000, "sell_price": 61500, "amount": 0.25, "buy_fee_pct": 0.1, "sell_fee_pct": 0.1, "withdrawal_fee_crypto": 0.0002, "network_fee": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-arbitrage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "buy_subtotal": 15000.0, "buy_fee": 15.0, "total_buy_cost": 15015.0, "crypto_after_withdrawal": 0.2498, "gross_sell_value": 15362.7, "sell_fee": 15.36, "network_fee": 2.0, "total_fees_value": 44.66, "net_sell_revenue": 15347.34, "net_profit": 330.34, "roi_pct": 2.2, "break_even_sell_price": 60176.26914344, "profitable": true, "chart_data": { "breakdown": [ { "label": "Buy cost", "value": 15015.0 }, { "label": "Total fees", "value": 44.66 }, { "label": "Net profit", "value": 330.34 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Crypto Arbitrage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crypto Arbitrage Calculator** — Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `buy_price` | float | no | (default `60000`) | | `sell_price` | float | no | (default `61500`) | | `amount` | float | no | (default `0.25`) | | `buy_fee_pct` | float | no | (default `0.1`) | | `sell_fee_pct` | float | no | (default `0.1`) | | `withdrawal_fee_crypto` | float | no | (default `0.0002`) | | `network_fee` | float | no | (default `2`) | Example request body: ```json { "buy_price": 60000, "sell_price": 61500, "amount": 0.25, "buy_fee_pct": 0.1, "sell_fee_pct": 0.1, "withdrawal_fee_crypto": 0.0002, "network_fee": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-arbitrage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "buy_subtotal": 15000.0, "buy_fee": 15.0, "total_buy_cost": 15015.0, "crypto_after_withdrawal": 0.2498, "gross_sell_value": 15362.7, "sell_fee": 15.36, "network_fee": 2.0, "total_fees_value": 44.66, "net_sell_revenue": 15347.34, "net_profit": 330.34, "roi_pct": 2.2, "break_even_sell_price": 60176.26914344, "profitable": true, "chart_data": { "breakdown": [ { "label": "Buy cost", "value": 15015.0 }, { "label": "Total fees", "value": 44.66 }, { "label": "Net profit", "value": 330.34 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-crypto-arbitrage-calculator.mdc copy prompt ```text --- description: MiniWebtool Crypto Arbitrage Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Crypto Arbitrage Calculator API ## The API **Crypto Arbitrage Calculator** — Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `buy_price` | float | no | (default `60000`) | | `sell_price` | float | no | (default `61500`) | | `amount` | float | no | (default `0.25`) | | `buy_fee_pct` | float | no | (default `0.1`) | | `sell_fee_pct` | float | no | (default `0.1`) | | `withdrawal_fee_crypto` | float | no | (default `0.0002`) | | `network_fee` | float | no | (default `2`) | Example request body: ```json { "buy_price": 60000, "sell_price": 61500, "amount": 0.25, "buy_fee_pct": 0.1, "sell_fee_pct": 0.1, "withdrawal_fee_crypto": 0.0002, "network_fee": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-arbitrage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "buy_subtotal": 15000.0, "buy_fee": 15.0, "total_buy_cost": 15015.0, "crypto_after_withdrawal": 0.2498, "gross_sell_value": 15362.7, "sell_fee": 15.36, "network_fee": 2.0, "total_fees_value": 44.66, "net_sell_revenue": 15347.34, "net_profit": 330.34, "roi_pct": 2.2, "break_even_sell_price": 60176.26914344, "profitable": true, "chart_data": { "breakdown": [ { "label": "Buy cost", "value": 15015.0 }, { "label": "Total fees", "value": 44.66 }, { "label": "Net profit", "value": 330.34 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `crypto-arbitrage-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `crypto-arbitrage-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call crypto-arbitrage-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/crypto-arbitrage-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Crypto Arbitrage Calculator API do? + Estimate cross-exchange crypto arbitrage profit after trading, withdrawal, and network fees. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Crypto Arbitrage Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Crypto Arbitrage Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Crypto Arbitrage Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Crypto Arbitrage Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `crypto-arbitrage-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`crypto-arbitrage-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"crypto-arbitrage-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Crypto Leverage Calculator API # Crypto Leverage Calculator API finance 2 credits / call v2026-04-22 Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. One POST adds Crypto Leverage Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Crypto Leverage Calculator on miniwebtool.com →](https://miniwebtool.com/crypto-leverage-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run ``` ### Request body Field Type Req. `entry_price` `float` — `margin` `float` — `leverage` `int` — `direction` long | short `str` — `exit_price` `float | None` — `maintenance_margin_pct` `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "crypto-leverage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → entry_price (float) margin (float) leverage (int) direction (str) long short long | short exit_price (float | None) maintenance_margin_pct (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`crypto-leverage-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"entry_price":45000,"margin":1000,"leverage":10,"direction":"long","exit_price":50000}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'entry_price': 45000, 'margin': 1000, 'leverage': 10, 'direction': 'long', 'exit_price': 50000}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"entry_price":45000,"margin":1000,"leverage":10,"direction":"long","exit_price":50000}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'entry_price' => 45000, 'margin' => 1000, 'leverage' => 10, 'direction' => 'long', 'exit_price' => 50000 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'entry_price' => 45000, 'margin' => 1000, 'leverage' => 10, 'direction' => 'long', 'exit_price' => 50000 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "entry_price": 45000, "margin": 1000, "leverage": 10, "direction": "long", "exit_price": 50000, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"entry_price\":45000,\"margin\":1000,\"leverage\":10,\"direction\":\"long\",\"exit_price\":50000}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`crypto-leverage-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/crypto-leverage-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/crypto-leverage-calculator/prompt.md`](/tools/crypto-leverage-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Crypto Leverage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crypto Leverage Calculator** — Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `entry_price` | float | no | (default `45000`) | | `margin` | float | no | (default `1000`) | | `leverage` | int | no | (default `10`) | | `direction` | str | no | one of: long, short — long \| short (default `long`) | | `exit_price` | float | None | no | (default `50000`) | | `maintenance_margin_pct` | float | no | (default `0.5`) | Example request body: ```json { "entry_price": 45000, "margin": 1000, "leverage": 10, "direction": "long", "exit_price": 50000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-leverage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "position_value": 10000.0, "asset_quantity": 0.22222222, "liquidation_price": 40725.0, "distance_to_liquidation_pct": 9.5, "profit_loss": 1111.11, "roi_on_margin_pct": 111.11, "chart_data": { "price_scenarios": [ { "price_move_pct": -10, "price": 40500.0, "profit_loss": -1000.0 }, { "price_move_pct": -5, "price": 42750.0, "profit_loss": -500.0 }, { "price_move_pct": 0, "price": 45000.0, "profit_loss": 0.0 }, { "price_move_pct": 5, "price": 47250.0, "profit_loss": 500.0 }, { "price_move_pct": 10, "price": 49500.0, "profit_loss": 1000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Crypto Leverage Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crypto Leverage Calculator** — Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `entry_price` | float | no | (default `45000`) | | `margin` | float | no | (default `1000`) | | `leverage` | int | no | (default `10`) | | `direction` | str | no | one of: long, short — long \| short (default `long`) | | `exit_price` | float | None | no | (default `50000`) | | `maintenance_margin_pct` | float | no | (default `0.5`) | Example request body: ```json { "entry_price": 45000, "margin": 1000, "leverage": 10, "direction": "long", "exit_price": 50000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-leverage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "position_value": 10000.0, "asset_quantity": 0.22222222, "liquidation_price": 40725.0, "distance_to_liquidation_pct": 9.5, "profit_loss": 1111.11, "roi_on_margin_pct": 111.11, "chart_data": { "price_scenarios": [ { "price_move_pct": -10, "price": 40500.0, "profit_loss": -1000.0 }, { "price_move_pct": -5, "price": 42750.0, "profit_loss": -500.0 }, { "price_move_pct": 0, "price": 45000.0, "profit_loss": 0.0 }, { "price_move_pct": 5, "price": 47250.0, "profit_loss": 500.0 }, { "price_move_pct": 10, "price": 49500.0, "profit_loss": 1000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-crypto-leverage-calculator.mdc copy prompt ```text --- description: MiniWebtool Crypto Leverage Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Crypto Leverage Calculator API ## The API **Crypto Leverage Calculator** — Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `entry_price` | float | no | (default `45000`) | | `margin` | float | no | (default `1000`) | | `leverage` | int | no | (default `10`) | | `direction` | str | no | one of: long, short — long \| short (default `long`) | | `exit_price` | float | None | no | (default `50000`) | | `maintenance_margin_pct` | float | no | (default `0.5`) | Example request body: ```json { "entry_price": 45000, "margin": 1000, "leverage": 10, "direction": "long", "exit_price": 50000 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-leverage-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "position_value": 10000.0, "asset_quantity": 0.22222222, "liquidation_price": 40725.0, "distance_to_liquidation_pct": 9.5, "profit_loss": 1111.11, "roi_on_margin_pct": 111.11, "chart_data": { "price_scenarios": [ { "price_move_pct": -10, "price": 40500.0, "profit_loss": -1000.0 }, { "price_move_pct": -5, "price": 42750.0, "profit_loss": -500.0 }, { "price_move_pct": 0, "price": 45000.0, "profit_loss": 0.0 }, { "price_move_pct": 5, "price": 47250.0, "profit_loss": 500.0 }, { "price_move_pct": 10, "price": 49500.0, "profit_loss": 1000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `crypto-leverage-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `crypto-leverage-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call crypto-leverage-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/crypto-leverage-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Crypto Leverage Calculator API do? + Estimate leveraged crypto position size, liquidation price, P/L, ROI, and price scenarios. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Crypto Leverage Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Crypto Leverage Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Crypto Leverage Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Crypto Leverage Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `crypto-leverage-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`crypto-leverage-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"crypto-leverage-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Crypto Profit/Loss Calculator API # Crypto Profit/Loss Calculator API finance 2 credits / call v2026-04-22 Calculate crypto trade profit, ROI, transaction fees, and break-even price. One POST adds Crypto Profit/Loss Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Crypto Profit/Loss Calculator on miniwebtool.com →](https://miniwebtool.com/crypto-profit-loss-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run ``` ### Request body Field Type Req. `buy_price` `float` — `sell_price` `float` — `quantity` `float` — `buy_fee` `float` — `sell_fee` `float` — `fee_type` percent | flat `str` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "crypto-profit-loss-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → buy_price (float) sell_price (float) quantity (float) buy_fee (float) sell_fee (float) fee_type (str) percent flat percent | flat Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`crypto-profit-loss-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"buy_price":45000,"sell_price":52000,"quantity":0.5,"buy_fee":0.5,"sell_fee":0.5,"fee_type":"percent"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'buy_price': 45000, 'sell_price': 52000, 'quantity': 0.5, 'buy_fee': 0.5, 'sell_fee': 0.5, 'fee_type': 'percent'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"buy_price":45000,"sell_price":52000,"quantity":0.5,"buy_fee":0.5,"sell_fee":0.5,"fee_type":"percent"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'buy_price' => 45000, 'sell_price' => 52000, 'quantity' => 0.5, 'buy_fee' => 0.5, 'sell_fee' => 0.5, 'fee_type' => 'percent' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'buy_price' => 45000, 'sell_price' => 52000, 'quantity' => 0.5, 'buy_fee' => 0.5, 'sell_fee' => 0.5, 'fee_type' => 'percent' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "buy_price": 45000, "sell_price": 52000, "quantity": 0.5, "buy_fee": 0.5, "sell_fee": 0.5, "fee_type": "percent", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"buy_price\":45000,\"sell_price\":52000,\"quantity\":0.5,\"buy_fee\":0.5,\"sell_fee\":0.5,\"fee_type\":\"percent\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`crypto-profit-loss-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/crypto-profit-loss-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/crypto-profit-loss-calculator/prompt.md`](/tools/crypto-profit-loss-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Crypto Profit/Loss Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crypto Profit/Loss Calculator** — Calculate crypto trade profit, ROI, transaction fees, and break-even price. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `buy_price` | float | no | (default `45000`) | | `sell_price` | float | no | (default `52000`) | | `quantity` | float | no | (default `0.5`) | | `buy_fee` | float | no | (default `0.5`) | | `sell_fee` | float | no | (default `0.5`) | | `fee_type` | str | no | one of: percent, flat — percent \| flat (default `percent`) | Example request body: ```json { "buy_price": 45000, "sell_price": 52000, "quantity": 0.5, "buy_fee": 0.5, "sell_fee": 0.5, "fee_type": "percent" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-profit-loss-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "total_buy_cost": 22612.5, "net_sell_proceeds": 25870.0, "buy_fee_amount": 112.5, "sell_fee_amount": 130.0, "net_profit_loss": 3257.5, "roi_pct": 14.41, "price_change_pct": 15.56, "break_even_price": 45452.26130653, "profitable": true, "chart_data": { "breakdown": [ { "label": "Buy cost", "value": 22612.5 }, { "label": "Sell proceeds", "value": 25870.0 }, { "label": "Profit/loss", "value": 3257.5 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Crypto Profit/Loss Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Crypto Profit/Loss Calculator** — Calculate crypto trade profit, ROI, transaction fees, and break-even price. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `buy_price` | float | no | (default `45000`) | | `sell_price` | float | no | (default `52000`) | | `quantity` | float | no | (default `0.5`) | | `buy_fee` | float | no | (default `0.5`) | | `sell_fee` | float | no | (default `0.5`) | | `fee_type` | str | no | one of: percent, flat — percent \| flat (default `percent`) | Example request body: ```json { "buy_price": 45000, "sell_price": 52000, "quantity": 0.5, "buy_fee": 0.5, "sell_fee": 0.5, "fee_type": "percent" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-profit-loss-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "total_buy_cost": 22612.5, "net_sell_proceeds": 25870.0, "buy_fee_amount": 112.5, "sell_fee_amount": 130.0, "net_profit_loss": 3257.5, "roi_pct": 14.41, "price_change_pct": 15.56, "break_even_price": 45452.26130653, "profitable": true, "chart_data": { "breakdown": [ { "label": "Buy cost", "value": 22612.5 }, { "label": "Sell proceeds", "value": 25870.0 }, { "label": "Profit/loss", "value": 3257.5 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-crypto-profit-loss-calculator.mdc copy prompt ```text --- description: MiniWebtool Crypto Profit/Loss Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Crypto Profit/Loss Calculator API ## The API **Crypto Profit/Loss Calculator** — Calculate crypto trade profit, ROI, transaction fees, and break-even price. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `buy_price` | float | no | (default `45000`) | | `sell_price` | float | no | (default `52000`) | | `quantity` | float | no | (default `0.5`) | | `buy_fee` | float | no | (default `0.5`) | | `sell_fee` | float | no | (default `0.5`) | | `fee_type` | str | no | one of: percent, flat — percent \| flat (default `percent`) | Example request body: ```json { "buy_price": 45000, "sell_price": 52000, "quantity": 0.5, "buy_fee": 0.5, "sell_fee": 0.5, "fee_type": "percent" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "crypto-profit-loss-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "total_buy_cost": 22612.5, "net_sell_proceeds": 25870.0, "buy_fee_amount": 112.5, "sell_fee_amount": 130.0, "net_profit_loss": 3257.5, "roi_pct": 14.41, "price_change_pct": 15.56, "break_even_price": 45452.26130653, "profitable": true, "chart_data": { "breakdown": [ { "label": "Buy cost", "value": 22612.5 }, { "label": "Sell proceeds", "value": 25870.0 }, { "label": "Profit/loss", "value": 3257.5 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `crypto-profit-loss-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `crypto-profit-loss-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call crypto-profit-loss-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/crypto-profit-loss-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Crypto Profit/Loss Calculator API do? + Calculate crypto trade profit, ROI, transaction fees, and break-even price. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Crypto Profit/Loss Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Crypto Profit/Loss Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Crypto Profit/Loss Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Crypto Profit/Loss Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `crypto-profit-loss-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`crypto-profit-loss-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"crypto-profit-loss-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Debt Consolidation Calculator API # Debt Consolidation Calculator API finance 2 credits / call v2026-04-22 Estimate a consolidated debt payment and interest cost. One POST adds Debt Consolidation Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Debt Consolidation Calculator on miniwebtool.com →](https://miniwebtool.com/debt-consolidation-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run ``` ### Request body Field Type Req. `balances` `list` — `aprs` `list` — `new_apr` `float` — `term_months` `int` — `minimum_payment_percent` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "debt-consolidation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → balances (list) aprs (list) new_apr (float) term_months (int) minimum_payment_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`debt-consolidation-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`debt-consolidation-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/debt-consolidation-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/debt-consolidation-calculator/prompt.md`](/tools/debt-consolidation-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Debt Consolidation Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Consolidation Calculator** — Estimate a consolidated debt payment and interest cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balances` | list | no | (default `PydanticUndefined`) | | `aprs` | list | no | (default `PydanticUndefined`) | | `new_apr` | float | no | (default `12`) | | `term_months` | int | no | (default `24`) | | `minimum_payment_percent` | float | no | (default `2.5`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-consolidation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "debt_count": 2, "total_balance": 3000.0, "weighted_current_apr": 22.0, "current_monthly_interest": 55.0, "estimated_current_minimum_payment": 75.0, "new_apr": 12.0, "term_months": 24, "consolidated_monthly_payment": 141.220417, "consolidated_total_paid": 3389.29, "consolidated_total_interest": 389.29, "monthly_payment_change": 66.220417, "interest_rate_reduction_points": 10.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Debt Consolidation Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Consolidation Calculator** — Estimate a consolidated debt payment and interest cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balances` | list | no | (default `PydanticUndefined`) | | `aprs` | list | no | (default `PydanticUndefined`) | | `new_apr` | float | no | (default `12`) | | `term_months` | int | no | (default `24`) | | `minimum_payment_percent` | float | no | (default `2.5`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-consolidation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "debt_count": 2, "total_balance": 3000.0, "weighted_current_apr": 22.0, "current_monthly_interest": 55.0, "estimated_current_minimum_payment": 75.0, "new_apr": 12.0, "term_months": 24, "consolidated_monthly_payment": 141.220417, "consolidated_total_paid": 3389.29, "consolidated_total_interest": 389.29, "monthly_payment_change": 66.220417, "interest_rate_reduction_points": 10.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-debt-consolidation-calculator.mdc copy prompt ```text --- description: MiniWebtool Debt Consolidation Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Debt Consolidation Calculator API ## The API **Debt Consolidation Calculator** — Estimate a consolidated debt payment and interest cost. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `balances` | list | no | (default `PydanticUndefined`) | | `aprs` | list | no | (default `PydanticUndefined`) | | `new_apr` | float | no | (default `12`) | | `term_months` | int | no | (default `24`) | | `minimum_payment_percent` | float | no | (default `2.5`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-consolidation-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "debt_count": 2, "total_balance": 3000.0, "weighted_current_apr": 22.0, "current_monthly_interest": 55.0, "estimated_current_minimum_payment": 75.0, "new_apr": 12.0, "term_months": 24, "consolidated_monthly_payment": 141.220417, "consolidated_total_paid": 3389.29, "consolidated_total_interest": 389.29, "monthly_payment_change": 66.220417, "interest_rate_reduction_points": 10.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `debt-consolidation-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `debt-consolidation-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call debt-consolidation-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/debt-consolidation-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Debt Consolidation Calculator API do? + Estimate a consolidated debt payment and interest cost. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Debt Consolidation Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Debt Consolidation Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Debt Consolidation Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Debt Consolidation Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `debt-consolidation-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`debt-consolidation-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"debt-consolidation-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) [ Retirement Calculator Estimate retirement savings growth, inflation-adjusted value, and contribution … ](/tools/retirement-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Debt Coverage Ratio Calculator API # Debt Coverage Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. One POST adds Debt Coverage Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Debt Coverage Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/debt-coverage-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run ``` ### Request body Field Type Req. `calc_mode` basic | advanced | reverse `str` — `net_operating_income` `float | None` — `total_debt_service` `float | None` — `target_dscr` `float | None` — `gross_rental_income` `float | None` — `other_income` `float` — `vacancy_rate_percent` `float` — `operating_expenses` `float | None` — `loan_amount` `float | None` — `interest_rate_percent` `float | None` — `loan_term_years` `float | None` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "debt-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → calc_mode (str) basic advanced reverse basic | advanced | reverse net_operating_income (float | None) total_debt_service (float | None) target_dscr (float | None) gross_rental_income (float | None) other_income (float) vacancy_rate_percent (float) operating_expenses (float | None) loan_amount (float | None) interest_rate_percent (float | None) loan_term_years (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`debt-coverage-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"calc_mode":"basic","net_operating_income":150000,"total_debt_service":120000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'calc_mode': 'basic', 'net_operating_income': 150000, 'total_debt_service': 120000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"calc_mode":"basic","net_operating_income":150000,"total_debt_service":120000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'calc_mode' => 'basic', 'net_operating_income' => 150000, 'total_debt_service' => 120000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'calc_mode' => 'basic', 'net_operating_income' => 150000, 'total_debt_service' => 120000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "calc_mode": "basic", "net_operating_income": 150000, "total_debt_service": 120000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"calc_mode\":\"basic\",\"net_operating_income\":150000,\"total_debt_service\":120000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`debt-coverage-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/debt-coverage-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/debt-coverage-ratio-calculator/prompt.md`](/tools/debt-coverage-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Debt Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Coverage Ratio Calculator** — Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: basic, advanced, reverse — basic \| advanced \| reverse (default `basic`) | | `net_operating_income` | float | None | no | (default `150000.0`) | | `total_debt_service` | float | None | no | (default `120000.0`) | | `target_dscr` | float | None | no | — | | `gross_rental_income` | float | None | no | — | | `other_income` | float | no | (default `0.0`) | | `vacancy_rate_percent` | float | no | (default `0.0`) | | `operating_expenses` | float | None | no | — | | `loan_amount` | float | None | no | — | | `interest_rate_percent` | float | None | no | — | | `loan_term_years` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "calc_mode": "basic", "net_operating_income": 150000, "total_debt_service": 120000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calc_mode": "basic", "net_operating_income": 150000.0, "total_debt_service": 120000.0, "debt_service_coverage_ratio": 1.25, "coverage_cushion_percent": 25.0, "maximum_debt_service_at_1x": 150000.0, "rating": "good", "gross_income": null, "vacancy_loss": null, "effective_gross_income": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Debt Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Coverage Ratio Calculator** — Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: basic, advanced, reverse — basic \| advanced \| reverse (default `basic`) | | `net_operating_income` | float | None | no | (default `150000.0`) | | `total_debt_service` | float | None | no | (default `120000.0`) | | `target_dscr` | float | None | no | — | | `gross_rental_income` | float | None | no | — | | `other_income` | float | no | (default `0.0`) | | `vacancy_rate_percent` | float | no | (default `0.0`) | | `operating_expenses` | float | None | no | — | | `loan_amount` | float | None | no | — | | `interest_rate_percent` | float | None | no | — | | `loan_term_years` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "calc_mode": "basic", "net_operating_income": 150000, "total_debt_service": 120000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calc_mode": "basic", "net_operating_income": 150000.0, "total_debt_service": 120000.0, "debt_service_coverage_ratio": 1.25, "coverage_cushion_percent": 25.0, "maximum_debt_service_at_1x": 150000.0, "rating": "good", "gross_income": null, "vacancy_loss": null, "effective_gross_income": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-debt-coverage-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Debt Coverage Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Debt Coverage Ratio Calculator API ## The API **Debt Coverage Ratio Calculator** — Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: basic, advanced, reverse — basic \| advanced \| reverse (default `basic`) | | `net_operating_income` | float | None | no | (default `150000.0`) | | `total_debt_service` | float | None | no | (default `120000.0`) | | `target_dscr` | float | None | no | — | | `gross_rental_income` | float | None | no | — | | `other_income` | float | no | (default `0.0`) | | `vacancy_rate_percent` | float | no | (default `0.0`) | | `operating_expenses` | float | None | no | — | | `loan_amount` | float | None | no | — | | `interest_rate_percent` | float | None | no | — | | `loan_term_years` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "calc_mode": "basic", "net_operating_income": 150000, "total_debt_service": 120000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calc_mode": "basic", "net_operating_income": 150000.0, "total_debt_service": 120000.0, "debt_service_coverage_ratio": 1.25, "coverage_cushion_percent": 25.0, "maximum_debt_service_at_1x": 150000.0, "rating": "good", "gross_income": null, "vacancy_loss": null, "effective_gross_income": null } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `debt-coverage-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `debt-coverage-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call debt-coverage-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/debt-coverage-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Debt Coverage Ratio Calculator API do? + Calculate debt service coverage ratio from NOI and debt service, or build NOI from property inputs. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Debt Coverage Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Debt Coverage Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Debt Coverage Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Debt Coverage Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `debt-coverage-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`debt-coverage-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"debt-coverage-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Debt to Income Ratio Calculator API # Debt to Income Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate debt-to-income ratio from monthly income and debt payments. One POST adds Debt to Income Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Debt to Income Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/debt-to-income-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run ``` ### Request body Field Type Req. `gross_monthly_income` `float` ✓ `mortgage_rent` `float` — `auto_loans` `float` — `student_loans` `float` — `credit_cards` `float` — `personal_loans` `float` — `other_debts` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "debt-to-income-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → gross_monthly_income (float) * mortgage_rent (float) auto_loans (float) student_loans (float) credit_cards (float) personal_loans (float) other_debts (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`debt-to-income-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"gross_monthly_income":6000,"mortgage_rent":1500,"auto_loans":350,"student_loans":250,"credit_cards":100}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'gross_monthly_income': 6000, 'mortgage_rent': 1500, 'auto_loans': 350, 'student_loans': 250, 'credit_cards': 100}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"gross_monthly_income":6000,"mortgage_rent":1500,"auto_loans":350,"student_loans":250,"credit_cards":100}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'gross_monthly_income' => 6000, 'mortgage_rent' => 1500, 'auto_loans' => 350, 'student_loans' => 250, 'credit_cards' => 100 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'gross_monthly_income' => 6000, 'mortgage_rent' => 1500, 'auto_loans' => 350, 'student_loans' => 250, 'credit_cards' => 100 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "gross_monthly_income": 6000, "mortgage_rent": 1500, "auto_loans": 350, "student_loans": 250, "credit_cards": 100, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"gross_monthly_income\":6000,\"mortgage_rent\":1500,\"auto_loans\":350,\"student_loans\":250,\"credit_cards\":100}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`debt-to-income-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/debt-to-income-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/debt-to-income-ratio-calculator/prompt.md`](/tools/debt-to-income-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Debt to Income Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt to Income Ratio Calculator** — Calculate debt-to-income ratio from monthly income and debt payments. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `gross_monthly_income` | float | yes | — | | `mortgage_rent` | float | no | (default `0.0`) | | `auto_loans` | float | no | (default `0.0`) | | `student_loans` | float | no | (default `0.0`) | | `credit_cards` | float | no | (default `0.0`) | | `personal_loans` | float | no | (default `0.0`) | | `other_debts` | float | no | (default `0.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "gross_monthly_income": 6000, "mortgage_rent": 1500, "auto_loans": 350, "student_loans": 250, "credit_cards": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-to-income-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "gross_monthly_income": 6000.0, "monthly_debts": { "mortgage_rent": 1500.0, "auto_loans": 350.0, "student_loans": 250.0, "credit_cards": 100.0, "personal_loans": 0.0, "other_debts": 0.0 }, "total_monthly_debt": 2200.0, "debt_to_income_percent": 36.6667, "front_end_ratio_percent": 25.0, "annual_income": 72000.0, "annual_debt_payments": 26400.0, "dti_rating": "fair" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Debt to Income Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt to Income Ratio Calculator** — Calculate debt-to-income ratio from monthly income and debt payments. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `gross_monthly_income` | float | yes | — | | `mortgage_rent` | float | no | (default `0.0`) | | `auto_loans` | float | no | (default `0.0`) | | `student_loans` | float | no | (default `0.0`) | | `credit_cards` | float | no | (default `0.0`) | | `personal_loans` | float | no | (default `0.0`) | | `other_debts` | float | no | (default `0.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "gross_monthly_income": 6000, "mortgage_rent": 1500, "auto_loans": 350, "student_loans": 250, "credit_cards": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-to-income-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "gross_monthly_income": 6000.0, "monthly_debts": { "mortgage_rent": 1500.0, "auto_loans": 350.0, "student_loans": 250.0, "credit_cards": 100.0, "personal_loans": 0.0, "other_debts": 0.0 }, "total_monthly_debt": 2200.0, "debt_to_income_percent": 36.6667, "front_end_ratio_percent": 25.0, "annual_income": 72000.0, "annual_debt_payments": 26400.0, "dti_rating": "fair" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-debt-to-income-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Debt to Income Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Debt to Income Ratio Calculator API ## The API **Debt to Income Ratio Calculator** — Calculate debt-to-income ratio from monthly income and debt payments. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `gross_monthly_income` | float | yes | — | | `mortgage_rent` | float | no | (default `0.0`) | | `auto_loans` | float | no | (default `0.0`) | | `student_loans` | float | no | (default `0.0`) | | `credit_cards` | float | no | (default `0.0`) | | `personal_loans` | float | no | (default `0.0`) | | `other_debts` | float | no | (default `0.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "gross_monthly_income": 6000, "mortgage_rent": 1500, "auto_loans": 350, "student_loans": 250, "credit_cards": 100 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-to-income-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "gross_monthly_income": 6000.0, "monthly_debts": { "mortgage_rent": 1500.0, "auto_loans": 350.0, "student_loans": 250.0, "credit_cards": 100.0, "personal_loans": 0.0, "other_debts": 0.0 }, "total_monthly_debt": 2200.0, "debt_to_income_percent": 36.6667, "front_end_ratio_percent": 25.0, "annual_income": 72000.0, "annual_debt_payments": 26400.0, "dti_rating": "fair" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `debt-to-income-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `debt-to-income-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call debt-to-income-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`gross_monthly_income`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/debt-to-income-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Debt to Income Ratio Calculator API do? + Calculate debt-to-income ratio from monthly income and debt payments. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Debt to Income Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Debt to Income Ratio Calculator API require? + Required fields: gross_monthly_income. Full schema at /v1/openapi.json. Is the Debt to Income Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Debt to Income Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `debt-to-income-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`debt-to-income-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"debt-to-income-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Fixed Charge Coverage Ratio Calculator API # Fixed Charge Coverage Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. One POST adds Fixed Charge Coverage Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Fixed Charge Coverage Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/fixed-charge-coverage-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run ``` ### Request body Field Type Req. `ebit` `float` — `lease_payments` `float` — `interest_expense` `float` — `depreciation_amortization` `float` — `principal_payments` `float` — `tax_rate_percent` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fixed-charge-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → ebit (float) lease_payments (float) interest_expense (float) depreciation_amortization (float) principal_payments (float) tax_rate_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fixed-charge-coverage-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"ebit":500000,"lease_payments":100000,"interest_expense":75000,"depreciation_amortization":50000,"principal_payments":25000,"tax_rate_percent":25,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'ebit': 500000, 'lease_payments': 100000, 'interest_expense': 75000, 'depreciation_amortization': 50000, 'principal_payments': 25000, 'tax_rate_percent': 25, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"ebit":500000,"lease_payments":100000,"interest_expense":75000,"depreciation_amortization":50000,"principal_payments":25000,"tax_rate_percent":25,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'ebit' => 500000, 'lease_payments' => 100000, 'interest_expense' => 75000, 'depreciation_amortization' => 50000, 'principal_payments' => 25000, 'tax_rate_percent' => 25, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'ebit' => 500000, 'lease_payments' => 100000, 'interest_expense' => 75000, 'depreciation_amortization' => 50000, 'principal_payments' => 25000, 'tax_rate_percent' => 25, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "ebit": 500000, "lease_payments": 100000, "interest_expense": 75000, "depreciation_amortization": 50000, "principal_payments": 25000, "tax_rate_percent": 25, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"ebit\":500000,\"lease_payments\":100000,\"interest_expense\":75000,\"depreciation_amortization\":50000,\"principal_payments\":25000,\"tax_rate_percent\":25,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fixed-charge-coverage-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fixed-charge-coverage-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/fixed-charge-coverage-ratio-calculator/prompt.md`](/tools/fixed-charge-coverage-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Fixed Charge Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fixed Charge Coverage Ratio Calculator** — Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ebit` | float | no | (default `500000.0`) | | `lease_payments` | float | no | (default `100000.0`) | | `interest_expense` | float | no | (default `75000.0`) | | `depreciation_amortization` | float | no | (default `50000.0`) | | `principal_payments` | float | no | (default `25000.0`) | | `tax_rate_percent` | float | no | (default `25.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "ebit": 500000, "lease_payments": 100000, "interest_expense": 75000, "depreciation_amortization": 50000, "principal_payments": 25000, "tax_rate_percent": 25, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fixed-charge-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ebit": 500000.0, "depreciation_amortization": 50000.0, "ebitda": 550000.0, "lease_payments": 100000.0, "interest_expense": 75000.0, "principal_payments": 25000.0, "principal_adjusted_for_tax": 33333.33, "basic_numerator": 600000.0, "basic_denominator": 175000.0, "fixed_charge_coverage_ratio": 3.4286, "ebitda_fixed_charge_coverage_ratio": 3.7143, "extended_fixed_charge_coverage_ratio": 2.88, "excess_earnings": 425000.0, "coverage_cushion_percent": 242.8571, "rating": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Fixed Charge Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fixed Charge Coverage Ratio Calculator** — Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ebit` | float | no | (default `500000.0`) | | `lease_payments` | float | no | (default `100000.0`) | | `interest_expense` | float | no | (default `75000.0`) | | `depreciation_amortization` | float | no | (default `50000.0`) | | `principal_payments` | float | no | (default `25000.0`) | | `tax_rate_percent` | float | no | (default `25.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "ebit": 500000, "lease_payments": 100000, "interest_expense": 75000, "depreciation_amortization": 50000, "principal_payments": 25000, "tax_rate_percent": 25, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fixed-charge-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ebit": 500000.0, "depreciation_amortization": 50000.0, "ebitda": 550000.0, "lease_payments": 100000.0, "interest_expense": 75000.0, "principal_payments": 25000.0, "principal_adjusted_for_tax": 33333.33, "basic_numerator": 600000.0, "basic_denominator": 175000.0, "fixed_charge_coverage_ratio": 3.4286, "ebitda_fixed_charge_coverage_ratio": 3.7143, "extended_fixed_charge_coverage_ratio": 2.88, "excess_earnings": 425000.0, "coverage_cushion_percent": 242.8571, "rating": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fixed-charge-coverage-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Fixed Charge Coverage Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Fixed Charge Coverage Ratio Calculator API ## The API **Fixed Charge Coverage Ratio Calculator** — Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ebit` | float | no | (default `500000.0`) | | `lease_payments` | float | no | (default `100000.0`) | | `interest_expense` | float | no | (default `75000.0`) | | `depreciation_amortization` | float | no | (default `50000.0`) | | `principal_payments` | float | no | (default `25000.0`) | | `tax_rate_percent` | float | no | (default `25.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "ebit": 500000, "lease_payments": 100000, "interest_expense": 75000, "depreciation_amortization": 50000, "principal_payments": 25000, "tax_rate_percent": 25, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fixed-charge-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ebit": 500000.0, "depreciation_amortization": 50000.0, "ebitda": 550000.0, "lease_payments": 100000.0, "interest_expense": 75000.0, "principal_payments": 25000.0, "principal_adjusted_for_tax": 33333.33, "basic_numerator": 600000.0, "basic_denominator": 175000.0, "fixed_charge_coverage_ratio": 3.4286, "ebitda_fixed_charge_coverage_ratio": 3.7143, "extended_fixed_charge_coverage_ratio": 2.88, "excess_earnings": 425000.0, "coverage_cushion_percent": 242.8571, "rating": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fixed-charge-coverage-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fixed-charge-coverage-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fixed-charge-coverage-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fixed-charge-coverage-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Fixed Charge Coverage Ratio Calculator API do? + Calculate fixed charge coverage ratio with optional EBITDA and principal-payment adjustments. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Fixed Charge Coverage Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Fixed Charge Coverage Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Fixed Charge Coverage Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Fixed Charge Coverage Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fixed-charge-coverage-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fixed-charge-coverage-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fixed-charge-coverage-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Interest Coverage Ratio Calculator API # Interest Coverage Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate EBIT or EBITDA based interest coverage ratio. One POST adds Interest Coverage Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Interest Coverage Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/interest-coverage-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run ``` ### Request body Field Type Req. `calculation_method` ebit | ebitda `str` — `ebit` `float` — `interest_expense` `float` — `depreciation_amortization` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "interest-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → calculation_method (str) ebit ebitda ebit | ebitda ebit (float) interest_expense (float) depreciation_amortization (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`interest-coverage-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"calculation_method":"ebit","ebit":500000,"interest_expense":100000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'calculation_method': 'ebit', 'ebit': 500000, 'interest_expense': 100000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"calculation_method":"ebit","ebit":500000,"interest_expense":100000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'calculation_method' => 'ebit', 'ebit' => 500000, 'interest_expense' => 100000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'calculation_method' => 'ebit', 'ebit' => 500000, 'interest_expense' => 100000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "calculation_method": "ebit", "ebit": 500000, "interest_expense": 100000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"calculation_method\":\"ebit\",\"ebit\":500000,\"interest_expense\":100000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`interest-coverage-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/interest-coverage-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/interest-coverage-ratio-calculator/prompt.md`](/tools/interest-coverage-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Interest Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Interest Coverage Ratio Calculator** — Calculate EBIT or EBITDA based interest coverage ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calculation_method` | str | no | one of: ebit, ebitda — ebit \| ebitda (default `ebit`) | | `ebit` | float | no | (default `500000.0`) | | `interest_expense` | float | no | (default `100000.0`) | | `depreciation_amortization` | float | no | (default `0.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "calculation_method": "ebit", "ebit": 500000, "interest_expense": 100000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "interest-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calculation_method": "ebit", "coverage_basis": "EBIT", "ebit": 500000.0, "depreciation_amortization": 0.0, "coverage_earnings": 500000.0, "interest_expense": 100000.0, "interest_coverage_ratio": 5.0, "times_interest_earned": 5.0, "benchmark_percent_of_10x": 50.0, "health_status": "healthy_financial_position" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Interest Coverage Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Interest Coverage Ratio Calculator** — Calculate EBIT or EBITDA based interest coverage ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calculation_method` | str | no | one of: ebit, ebitda — ebit \| ebitda (default `ebit`) | | `ebit` | float | no | (default `500000.0`) | | `interest_expense` | float | no | (default `100000.0`) | | `depreciation_amortization` | float | no | (default `0.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "calculation_method": "ebit", "ebit": 500000, "interest_expense": 100000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "interest-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calculation_method": "ebit", "coverage_basis": "EBIT", "ebit": 500000.0, "depreciation_amortization": 0.0, "coverage_earnings": 500000.0, "interest_expense": 100000.0, "interest_coverage_ratio": 5.0, "times_interest_earned": 5.0, "benchmark_percent_of_10x": 50.0, "health_status": "healthy_financial_position" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-interest-coverage-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Interest Coverage Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Interest Coverage Ratio Calculator API ## The API **Interest Coverage Ratio Calculator** — Calculate EBIT or EBITDA based interest coverage ratio. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calculation_method` | str | no | one of: ebit, ebitda — ebit \| ebitda (default `ebit`) | | `ebit` | float | no | (default `500000.0`) | | `interest_expense` | float | no | (default `100000.0`) | | `depreciation_amortization` | float | no | (default `0.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "calculation_method": "ebit", "ebit": 500000, "interest_expense": 100000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "interest-coverage-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "calculation_method": "ebit", "coverage_basis": "EBIT", "ebit": 500000.0, "depreciation_amortization": 0.0, "coverage_earnings": 500000.0, "interest_expense": 100000.0, "interest_coverage_ratio": 5.0, "times_interest_earned": 5.0, "benchmark_percent_of_10x": 50.0, "health_status": "healthy_financial_position" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `interest-coverage-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `interest-coverage-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call interest-coverage-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/interest-coverage-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Interest Coverage Ratio Calculator API do? + Calculate EBIT or EBITDA based interest coverage ratio. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Interest Coverage Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Interest Coverage Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Interest Coverage Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Interest Coverage Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `interest-coverage-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`interest-coverage-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"interest-coverage-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Times Interest Earned Ratio Calculator API # Times Interest Earned Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate times interest earned ratio and interest coverage safety margin. One POST adds Times Interest Earned Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Times Interest Earned Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/times-interest-earned-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run ``` ### Request body Field Type Req. `ebit` `float` — `interest_expense` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "times-interest-earned-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → ebit (float) interest_expense (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`times-interest-earned-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"ebit":500000,"interest_expense":100000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'ebit': 500000, 'interest_expense': 100000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"ebit":500000,"interest_expense":100000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'ebit' => 500000, 'interest_expense' => 100000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'ebit' => 500000, 'interest_expense' => 100000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "ebit": 500000, "interest_expense": 100000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"ebit\":500000,\"interest_expense\":100000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`times-interest-earned-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/times-interest-earned-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/times-interest-earned-ratio-calculator/prompt.md`](/tools/times-interest-earned-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Times Interest Earned Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Times Interest Earned Ratio Calculator** — Calculate times interest earned ratio and interest coverage safety margin. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ebit` | float | no | (default `500000.0`) | | `interest_expense` | float | no | (default `100000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "ebit": 500000, "interest_expense": 100000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "times-interest-earned-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ebit": 500000.0, "interest_expense": 100000.0, "times_interest_earned_ratio": 5.0, "interest_coverage_multiple": 5.0, "earnings_after_interest": 400000.0, "coverage_percentage_above_break_even": 400.0, "safety_margin_percent": 80.0, "assessment": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Times Interest Earned Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Times Interest Earned Ratio Calculator** — Calculate times interest earned ratio and interest coverage safety margin. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ebit` | float | no | (default `500000.0`) | | `interest_expense` | float | no | (default `100000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "ebit": 500000, "interest_expense": 100000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "times-interest-earned-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ebit": 500000.0, "interest_expense": 100000.0, "times_interest_earned_ratio": 5.0, "interest_coverage_multiple": 5.0, "earnings_after_interest": 400000.0, "coverage_percentage_above_break_even": 400.0, "safety_margin_percent": 80.0, "assessment": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-times-interest-earned-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Times Interest Earned Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Times Interest Earned Ratio Calculator API ## The API **Times Interest Earned Ratio Calculator** — Calculate times interest earned ratio and interest coverage safety margin. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `ebit` | float | no | (default `500000.0`) | | `interest_expense` | float | no | (default `100000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "ebit": 500000, "interest_expense": 100000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "times-interest-earned-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "ebit": 500000.0, "interest_expense": 100000.0, "times_interest_earned_ratio": 5.0, "interest_coverage_multiple": 5.0, "earnings_after_interest": 400000.0, "coverage_percentage_above_break_even": 400.0, "safety_margin_percent": 80.0, "assessment": "excellent" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `times-interest-earned-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `times-interest-earned-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call times-interest-earned-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/times-interest-earned-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Times Interest Earned Ratio Calculator API do? + Calculate times interest earned ratio and interest coverage safety margin. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Times Interest Earned Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Times Interest Earned Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Times Interest Earned Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Times Interest Earned Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `times-interest-earned-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`times-interest-earned-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"times-interest-earned-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Debt Payoff Calculator API # Debt Payoff Calculator API finance 1 credit / call v2026-04-22 Compare debt snowball and avalanche payoff strategies for a small list of debts. One POST adds Debt Payoff Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Debt Payoff Calculator on miniwebtool.com →](https://miniwebtool.com/debt-payoff-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run ``` ### Request body Field Type Req. `debts` `list` — `extra_monthly_payment` `float` — `method` both | avalanche | snowball `str` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "debt-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → debts (list) extra_monthly_payment (float) method (str) both avalanche snowball both | avalanche | snowball Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`debt-payoff-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"extra_monthly_payment":100,"method":"both"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'extra_monthly_payment': 100, 'method': 'both'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"extra_monthly_payment":100,"method":"both"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'extra_monthly_payment' => 100, 'method' => 'both' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'extra_monthly_payment' => 100, 'method' => 'both' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "extra_monthly_payment": 100, "method": "both", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"extra_monthly_payment\":100,\"method\":\"both\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`debt-payoff-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/debt-payoff-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/debt-payoff-calculator/prompt.md`](/tools/debt-payoff-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Debt Payoff Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Payoff Calculator** — Compare debt snowball and avalanche payoff strategies for a small list of debts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `debts` | list | no | (default `PydanticUndefined`) | | `extra_monthly_payment` | float | no | (default `100`) | | `method` | str | no | one of: both, avalanche, snowball — both \| avalanche \| snowball (default `both`) | Example request body: ```json { "extra_monthly_payment": 100, "method": "both" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "extra_monthly_payment": 100.0, "plans": [ { "method": "avalanche", "months": 40, "total_interest": 1858.69, "debts": [ { "name": "Card A", "paid_off_month": 19 }, { "name": "Loan B", "paid_off_month": 40 } ] }, { "method": "snowball", "months": 40, "total_interest": 1858.69, "debts": [ { "name": "Card A", "paid_off_month": 19 }, { "name": "Loan B", "paid_off_month": 40 } ] } ], "best_method": "avalanche" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Debt Payoff Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debt Payoff Calculator** — Compare debt snowball and avalanche payoff strategies for a small list of debts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `debts` | list | no | (default `PydanticUndefined`) | | `extra_monthly_payment` | float | no | (default `100`) | | `method` | str | no | one of: both, avalanche, snowball — both \| avalanche \| snowball (default `both`) | Example request body: ```json { "extra_monthly_payment": 100, "method": "both" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "extra_monthly_payment": 100.0, "plans": [ { "method": "avalanche", "months": 40, "total_interest": 1858.69, "debts": [ { "name": "Card A", "paid_off_month": 19 }, { "name": "Loan B", "paid_off_month": 40 } ] }, { "method": "snowball", "months": 40, "total_interest": 1858.69, "debts": [ { "name": "Card A", "paid_off_month": 19 }, { "name": "Loan B", "paid_off_month": 40 } ] } ], "best_method": "avalanche" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-debt-payoff-calculator.mdc copy prompt ```text --- description: MiniWebtool Debt Payoff Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Debt Payoff Calculator API ## The API **Debt Payoff Calculator** — Compare debt snowball and avalanche payoff strategies for a small list of debts. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `debts` | list | no | (default `PydanticUndefined`) | | `extra_monthly_payment` | float | no | (default `100`) | | `method` | str | no | one of: both, avalanche, snowball — both \| avalanche \| snowball (default `both`) | Example request body: ```json { "extra_monthly_payment": 100, "method": "both" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debt-payoff-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "extra_monthly_payment": 100.0, "plans": [ { "method": "avalanche", "months": 40, "total_interest": 1858.69, "debts": [ { "name": "Card A", "paid_off_month": 19 }, { "name": "Loan B", "paid_off_month": 40 } ] }, { "method": "snowball", "months": 40, "total_interest": 1858.69, "debts": [ { "name": "Card A", "paid_off_month": 19 }, { "name": "Loan B", "paid_off_month": 40 } ] } ], "best_method": "avalanche" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `debt-payoff-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `debt-payoff-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call debt-payoff-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/debt-payoff-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Debt Payoff Calculator API do? + Compare debt snowball and avalanche payoff strategies for a small list of debts. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Debt Payoff Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Debt Payoff Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Debt Payoff Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Debt Payoff Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `debt-payoff-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`debt-payoff-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"debt-payoff-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Actual Cash Value Calculator API # Actual Cash Value Calculator API finance 1 credit / call v2026-04-22 Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. One POST adds Actual Cash Value Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Actual Cash Value Calculator on miniwebtool.com →](https://miniwebtool.com/actual-cash-value-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run ``` ### Request body Field Type Req. `category` custom | smartphone | laptop | desktop | television | refrigerator | washer | dryer | dishwasher | microwave | hvac | water_heater | sofa | mattress | dining_set | carpet | roof | bicycle | jewelry | camera | furniture | appliance `str` — `replacement_cost` `float` — `current_age` `float` — `expected_life` `float | None` — `salvage_percent` `float` — `method` straight | declining | double_declining `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "actual-cash-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → category (str) custom smartphone laptop desktop television refrigerator washer dryer dishwasher microwave hvac water_heater sofa mattress dining_set carpet roof bicycle jewelry camera furniture appliance custom | smartphone | laptop | desktop | television | refrigerator | washer | dryer | dishwasher | microwave | hvac | water_heater | sofa | mattress | dining_set | carpet | roof | bicycle | jewelry | camera | furniture | appliance replacement_cost (float) current_age (float) expected_life (float | None) salvage_percent (float) method (str) straight declining double_declining straight | declining | double_declining precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`actual-cash-value-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"category":"laptop","replacement_cost":1000,"current_age":3,"method":"straight","precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'category': 'laptop', 'replacement_cost': 1000, 'current_age': 3, 'method': 'straight', 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"category":"laptop","replacement_cost":1000,"current_age":3,"method":"straight","precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'category' => 'laptop', 'replacement_cost' => 1000, 'current_age' => 3, 'method' => 'straight', 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'category' => 'laptop', 'replacement_cost' => 1000, 'current_age' => 3, 'method' => 'straight', 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "category": "laptop", "replacement_cost": 1000, "current_age": 3, "method": "straight", "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"category\":\"laptop\",\"replacement_cost\":1000,\"current_age\":3,\"method\":\"straight\",\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`actual-cash-value-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/actual-cash-value-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/actual-cash-value-calculator/prompt.md`](/tools/actual-cash-value-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Actual Cash Value Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Actual Cash Value Calculator** — Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `category` | str | no | one of: custom, smartphone, laptop, desktop, television, refrigerator, washer, dryer, dishwasher, microwave, hvac, water_heater, sofa, mattress, dining_set, carpet, roof, bicycle, jewelry, camera, furniture, appliance — custom \| smartphone \| laptop \| desktop \| television \| refrigerator \| washer \| dryer \| dishwasher \| microwave \| hvac \| water_heater \| sofa \| mattress \| dining_set \| carpet \| roof \| bicycle \| jewelry \| camera \| furniture \| appliance (default `laptop`) | | `replacement_cost` | float | no | (default `1000.0`) | | `current_age` | float | no | (default `3.0`) | | `expected_life` | float | None | no | — | | `salvage_percent` | float | no | (default `0.0`) | | `method` | str | no | one of: straight, declining, double_declining — straight \| declining \| double_declining (default `straight`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "category": "laptop", "replacement_cost": 1000, "current_age": 3, "method": "straight", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "actual-cash-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "category": "laptop", "method": "straight", "replacement_cost": 1000.0, "current_age": 3.0, "expected_life": 5.0, "remaining_life": 2.0, "salvage_percent": 0.0, "salvage_value": 0.0, "actual_cash_value": 400.0, "total_depreciation": 600.0, "depreciation_percent": 60.0, "remaining_percent": 40.0, "schedule": [ { "year": 0, "value": 1000.0, "depreciation": 0.0 }, { "year": 1, "value": 800.0, "depreciation": 200.0 }, { "year": 2, "value": 600.0, "depreciation": 400.0 }, { "year": 3, "value": 400.0, "depreciation": 600.0 }, { "year": 4, "value": 200.0, "depreciation": 800.0 }, { "year": 5, "value": 0.0, "depreciation": 1000.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Actual Cash Value Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Actual Cash Value Calculator** — Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `category` | str | no | one of: custom, smartphone, laptop, desktop, television, refrigerator, washer, dryer, dishwasher, microwave, hvac, water_heater, sofa, mattress, dining_set, carpet, roof, bicycle, jewelry, camera, furniture, appliance — custom \| smartphone \| laptop \| desktop \| television \| refrigerator \| washer \| dryer \| dishwasher \| microwave \| hvac \| water_heater \| sofa \| mattress \| dining_set \| carpet \| roof \| bicycle \| jewelry \| camera \| furniture \| appliance (default `laptop`) | | `replacement_cost` | float | no | (default `1000.0`) | | `current_age` | float | no | (default `3.0`) | | `expected_life` | float | None | no | — | | `salvage_percent` | float | no | (default `0.0`) | | `method` | str | no | one of: straight, declining, double_declining — straight \| declining \| double_declining (default `straight`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "category": "laptop", "replacement_cost": 1000, "current_age": 3, "method": "straight", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "actual-cash-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "category": "laptop", "method": "straight", "replacement_cost": 1000.0, "current_age": 3.0, "expected_life": 5.0, "remaining_life": 2.0, "salvage_percent": 0.0, "salvage_value": 0.0, "actual_cash_value": 400.0, "total_depreciation": 600.0, "depreciation_percent": 60.0, "remaining_percent": 40.0, "schedule": [ { "year": 0, "value": 1000.0, "depreciation": 0.0 }, { "year": 1, "value": 800.0, "depreciation": 200.0 }, { "year": 2, "value": 600.0, "depreciation": 400.0 }, { "year": 3, "value": 400.0, "depreciation": 600.0 }, { "year": 4, "value": 200.0, "depreciation": 800.0 }, { "year": 5, "value": 0.0, "depreciation": 1000.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-actual-cash-value-calculator.mdc copy prompt ```text --- description: MiniWebtool Actual Cash Value Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Actual Cash Value Calculator API ## The API **Actual Cash Value Calculator** — Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `category` | str | no | one of: custom, smartphone, laptop, desktop, television, refrigerator, washer, dryer, dishwasher, microwave, hvac, water_heater, sofa, mattress, dining_set, carpet, roof, bicycle, jewelry, camera, furniture, appliance — custom \| smartphone \| laptop \| desktop \| television \| refrigerator \| washer \| dryer \| dishwasher \| microwave \| hvac \| water_heater \| sofa \| mattress \| dining_set \| carpet \| roof \| bicycle \| jewelry \| camera \| furniture \| appliance (default `laptop`) | | `replacement_cost` | float | no | (default `1000.0`) | | `current_age` | float | no | (default `3.0`) | | `expected_life` | float | None | no | — | | `salvage_percent` | float | no | (default `0.0`) | | `method` | str | no | one of: straight, declining, double_declining — straight \| declining \| double_declining (default `straight`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "category": "laptop", "replacement_cost": 1000, "current_age": 3, "method": "straight", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "actual-cash-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "category": "laptop", "method": "straight", "replacement_cost": 1000.0, "current_age": 3.0, "expected_life": 5.0, "remaining_life": 2.0, "salvage_percent": 0.0, "salvage_value": 0.0, "actual_cash_value": 400.0, "total_depreciation": 600.0, "depreciation_percent": 60.0, "remaining_percent": 40.0, "schedule": [ { "year": 0, "value": 1000.0, "depreciation": 0.0 }, { "year": 1, "value": 800.0, "depreciation": 200.0 }, { "year": 2, "value": 600.0, "depreciation": 400.0 }, { "year": 3, "value": 400.0, "depreciation": 600.0 }, { "year": 4, "value": 200.0, "depreciation": 800.0 }, { "year": 5, "value": 0.0, "depreciation": 1000.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `actual-cash-value-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `actual-cash-value-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call actual-cash-value-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/actual-cash-value-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Actual Cash Value Calculator API do? + Calculate actual cash value from replacement cost, age, lifespan, salvage, and depreciation method. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Actual Cash Value Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Actual Cash Value Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Actual Cash Value Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Actual Cash Value Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `actual-cash-value-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`actual-cash-value-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"actual-cash-value-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Discount Calculator API # Discount Calculator API finance 1 credit / call v2026-04-22 Calculate final price, savings, tax, stacked discounts, or BOGO deals. One POST adds Discount Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Discount Calculator on miniwebtool.com →](https://miniwebtool.com/discount-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/discount-calculator/run ``` ### Request body Field Type Req. `calc_mode` simple | stacked | bogo `str` — `original_price` `float` ✓ `discount_type` percent | fixed `str` — `discount_value` `float` — `discount2_type` percent | fixed `str` — `discount2_value` `float | None` — `buy_quantity` `int` — `get_quantity` `int` — `quantity` `int` — `sales_tax_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "discount-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → calc_mode (str) simple stacked bogo simple | stacked | bogo original_price (float) * discount_type (str) percent fixed percent | fixed discount_value (float) discount2_type (str) percent fixed percent | fixed discount2_value (float | None) buy_quantity (int) get_quantity (int) quantity (int) sales_tax_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`discount-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/discount-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"calc_mode":"simple","original_price":100,"discount_type":"percent","discount_value":20,"discount2_type":"percent","quantity":1,"sales_tax_percent":0}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/discount-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'calc_mode': 'simple', 'original_price': 100, 'discount_type': 'percent', 'discount_value': 20, 'discount2_type': 'percent', 'quantity': 1, 'sales_tax_percent': 0}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/discount-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"calc_mode":"simple","original_price":100,"discount_type":"percent","discount_value":20,"discount2_type":"percent","quantity":1,"sales_tax_percent":0}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'calc_mode' => 'simple', 'original_price' => 100, 'discount_type' => 'percent', 'discount_value' => 20, 'discount2_type' => 'percent', 'quantity' => 1, 'sales_tax_percent' => 0 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/discount-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'calc_mode' => 'simple', 'original_price' => 100, 'discount_type' => 'percent', 'discount_value' => 20, 'discount2_type' => 'percent', 'quantity' => 1, 'sales_tax_percent' => 0 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "calc_mode": "simple", "original_price": 100, "discount_type": "percent", "discount_value": 20, "discount2_type": "percent", "quantity": 1, "sales_tax_percent": 0, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/discount-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/discount-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"calc_mode\":\"simple\",\"original_price\":100,\"discount_type\":\"percent\",\"discount_value\":20,\"discount2_type\":\"percent\",\"quantity\":1,\"sales_tax_percent\":0}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`discount-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/discount-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/discount-calculator/prompt.md`](/tools/discount-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Discount Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Discount Calculator** — Calculate final price, savings, tax, stacked discounts, or BOGO deals. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/discount-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/discount-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: simple, stacked, bogo — simple \| stacked \| bogo (default `simple`) | | `original_price` | float | yes | — | | `discount_type` | str | no | one of: percent, fixed — percent \| fixed (default `percent`) | | `discount_value` | float | no | (default `0`) | | `discount2_type` | str | no | one of: percent, fixed — percent \| fixed (default `percent`) | | `discount2_value` | float | None | no | — | | `buy_quantity` | int | no | (default `2`) | | `get_quantity` | int | no | (default `1`) | | `quantity` | int | no | (default `1`) | | `sales_tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "calc_mode": "simple", "original_price": 100, "discount_type": "percent", "discount_value": 20, "discount2_type": "percent", "quantity": 1, "sales_tax_percent": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "discount-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calc_mode": "simple", "original_total": 100.0, "subtotal": 80.0, "tax_amount": 0.0, "final_price": 80.0, "total_savings": 20.0, "effective_discount_percent": 20.0, "quantity": 1, "sales_tax_percent": 0.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Discount Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Discount Calculator** — Calculate final price, savings, tax, stacked discounts, or BOGO deals. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/discount-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/discount-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: simple, stacked, bogo — simple \| stacked \| bogo (default `simple`) | | `original_price` | float | yes | — | | `discount_type` | str | no | one of: percent, fixed — percent \| fixed (default `percent`) | | `discount_value` | float | no | (default `0`) | | `discount2_type` | str | no | one of: percent, fixed — percent \| fixed (default `percent`) | | `discount2_value` | float | None | no | — | | `buy_quantity` | int | no | (default `2`) | | `get_quantity` | int | no | (default `1`) | | `quantity` | int | no | (default `1`) | | `sales_tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "calc_mode": "simple", "original_price": 100, "discount_type": "percent", "discount_value": 20, "discount2_type": "percent", "quantity": 1, "sales_tax_percent": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "discount-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calc_mode": "simple", "original_total": 100.0, "subtotal": 80.0, "tax_amount": 0.0, "final_price": 80.0, "total_savings": 20.0, "effective_discount_percent": 20.0, "quantity": 1, "sales_tax_percent": 0.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-discount-calculator.mdc copy prompt ```text --- description: MiniWebtool Discount Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Discount Calculator API ## The API **Discount Calculator** — Calculate final price, savings, tax, stacked discounts, or BOGO deals. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/discount-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/discount-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `calc_mode` | str | no | one of: simple, stacked, bogo — simple \| stacked \| bogo (default `simple`) | | `original_price` | float | yes | — | | `discount_type` | str | no | one of: percent, fixed — percent \| fixed (default `percent`) | | `discount_value` | float | no | (default `0`) | | `discount2_type` | str | no | one of: percent, fixed — percent \| fixed (default `percent`) | | `discount2_value` | float | None | no | — | | `buy_quantity` | int | no | (default `2`) | | `get_quantity` | int | no | (default `1`) | | `quantity` | int | no | (default `1`) | | `sales_tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "calc_mode": "simple", "original_price": 100, "discount_type": "percent", "discount_value": 20, "discount2_type": "percent", "quantity": 1, "sales_tax_percent": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "discount-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "calc_mode": "simple", "original_total": 100.0, "subtotal": 80.0, "tax_amount": 0.0, "final_price": 80.0, "total_savings": 20.0, "effective_discount_percent": 20.0, "quantity": 1, "sales_tax_percent": 0.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `discount-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `discount-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call discount-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`original_price`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/discount-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Discount Calculator API do? + Calculate final price, savings, tax, stacked discounts, or BOGO deals. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Discount Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Discount Calculator API require? + Required fields: original_price. Full schema at /v1/openapi.json. Is the Discount Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Discount Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `discount-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`discount-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"discount-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Percent Off Calculator API # Percent Off Calculator API finance 1 credit / call v2026-04-22 Calculate discount amount and sale price from original price and percent off. One POST adds Percent Off Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Percent Off Calculator on miniwebtool.com →](https://miniwebtool.com/percent-off-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/run ``` ### Request body Field Type Req. `original_price` `float` ✓ `percent_off` `float` ✓ ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "percent-off-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → original_price (float) * percent_off (float) * Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`percent-off-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"original_price":80,"percent_off":25}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/percent-off-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'original_price': 80, 'percent_off': 25}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/percent-off-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"original_price":80,"percent_off":25}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'original_price' => 80, 'percent_off' => 25 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/percent-off-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'original_price' => 80, 'percent_off' => 25 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "original_price": 80, "percent_off": 25, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/percent-off-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/percent-off-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"original_price\":80,\"percent_off\":25}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`percent-off-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/percent-off-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/percent-off-calculator/prompt.md`](/tools/percent-off-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Percent Off Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Percent Off Calculator** — Calculate discount amount and sale price from original price and percent off. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_price` | float | yes | — | | `percent_off` | float | yes | — | Example request body: ```json { "original_price": 80, "percent_off": 25 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "percent-off-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_price": "80", "original_price_raw": 80.0, "percent_off": "25", "percent_off_raw": 25.0, "discount_amount": "20", "discount_amount_raw": 20.0, "sale_price": "60", "sale_price_raw": 60.0, "price_percentage": "75", "common_discounts": [ { "percent": 5, "discount_amount": "4", "sale_price": "76", "is_current": false }, { "percent": 10, "discount_amount": "8", "sale_price": "72", "is_current": false }, { "percent": 15, "discount_amount": "12", "sale_price": "68", "is_current": false }, { "percent": 20, "discount_amount": "16", "sale_price": "64", "is_current": false }, { "percent": 25, "discount_amount": "20", "sale_price": "60", "is_current": true }, { "percent": 30, "discount_amount": "24", "sale_price": "56", "is_current": false }, { "percent": 40, "discount_amount": "32", "sale_price": "48", "is_current": false }, { "percent": 50, "discount_amount": "40", "sale_price": "40", "is_current": false }, { "percent": 60, "discount_amount": "48", "sale_price": "32", "is_current": false }, { "percent": 70, "discount_amount": "56", "sale_price": "24", "is_current": false }, { "percent": 75, "discount_amount": "60", "sale_price": "20", "is_current": false } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Percent Off Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Percent Off Calculator** — Calculate discount amount and sale price from original price and percent off. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_price` | float | yes | — | | `percent_off` | float | yes | — | Example request body: ```json { "original_price": 80, "percent_off": 25 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "percent-off-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_price": "80", "original_price_raw": 80.0, "percent_off": "25", "percent_off_raw": 25.0, "discount_amount": "20", "discount_amount_raw": 20.0, "sale_price": "60", "sale_price_raw": 60.0, "price_percentage": "75", "common_discounts": [ { "percent": 5, "discount_amount": "4", "sale_price": "76", "is_current": false }, { "percent": 10, "discount_amount": "8", "sale_price": "72", "is_current": false }, { "percent": 15, "discount_amount": "12", "sale_price": "68", "is_current": false }, { "percent": 20, "discount_amount": "16", "sale_price": "64", "is_current": false }, { "percent": 25, "discount_amount": "20", "sale_price": "60", "is_current": true }, { "percent": 30, "discount_amount": "24", "sale_price": "56", "is_current": false }, { "percent": 40, "discount_amount": "32", "sale_price": "48", "is_current": false }, { "percent": 50, "discount_amount": "40", "sale_price": "40", "is_current": false }, { "percent": 60, "discount_amount": "48", "sale_price": "32", "is_current": false }, { "percent": 70, "discount_amount": "56", "sale_price": "24", "is_current": false }, { "percent": 75, "discount_amount": "60", "sale_price": "20", "is_current": false } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-percent-off-calculator.mdc copy prompt ```text --- description: MiniWebtool Percent Off Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Percent Off Calculator API ## The API **Percent Off Calculator** — Calculate discount amount and sale price from original price and percent off. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/percent-off-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_price` | float | yes | — | | `percent_off` | float | yes | — | Example request body: ```json { "original_price": 80, "percent_off": 25 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "percent-off-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_price": "80", "original_price_raw": 80.0, "percent_off": "25", "percent_off_raw": 25.0, "discount_amount": "20", "discount_amount_raw": 20.0, "sale_price": "60", "sale_price_raw": 60.0, "price_percentage": "75", "common_discounts": [ { "percent": 5, "discount_amount": "4", "sale_price": "76", "is_current": false }, { "percent": 10, "discount_amount": "8", "sale_price": "72", "is_current": false }, { "percent": 15, "discount_amount": "12", "sale_price": "68", "is_current": false }, { "percent": 20, "discount_amount": "16", "sale_price": "64", "is_current": false }, { "percent": 25, "discount_amount": "20", "sale_price": "60", "is_current": true }, { "percent": 30, "discount_amount": "24", "sale_price": "56", "is_current": false }, { "percent": 40, "discount_amount": "32", "sale_price": "48", "is_current": false }, { "percent": 50, "discount_amount": "40", "sale_price": "40", "is_current": false }, { "percent": 60, "discount_amount": "48", "sale_price": "32", "is_current": false }, { "percent": 70, "discount_amount": "56", "sale_price": "24", "is_current": false }, { "percent": 75, "discount_amount": "60", "sale_price": "20", "is_current": false } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `percent-off-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `percent-off-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call percent-off-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`original_price`,`percent_off`. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/percent-off-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Percent Off Calculator API do? + Calculate discount amount and sale price from original price and percent off. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Percent Off Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Percent Off Calculator API require? + Required fields: original_price, percent_off. Full schema at /v1/openapi.json. Is the Percent Off Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Percent Off Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `percent-off-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`percent-off-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"percent-off-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Sale Price Calculator API # Sale Price Calculator API finance 1 credit / call v2026-04-22 visual chart data Calculate discounted sale price, tax, final price, and chart-ready price breakdown. One POST adds Sale Price Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/run ``` ### Request body Field Type Req. `original_price` `float` — `discount_percent` `float` — `tax_percent` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "sale-price-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → original_price (float) discount_percent (float) tax_percent (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`sale-price-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/sale-price-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/sale-price-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/sale-price-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/sale-price-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/sale-price-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`sale-price-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/sale-price-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/sale-price-calculator/prompt.md`](/tools/sale-price-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Sale Price Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Sale Price Calculator** — Calculate discounted sale price, tax, final price, and chart-ready price breakdown. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_price` | float | no | (default `100`) | | `discount_percent` | float | no | (default `20`) | | `tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sale-price-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_price": 100.0, "discount_percent": 20.0, "discount_amount": 20.0, "sale_price_before_tax": 80.0, "tax_percent": 0.0, "tax_amount": 0.0, "final_price": 80.0, "total_savings": 20.0, "chart_data": { "breakdown": [ { "label": "Sale price", "value": 80.0 }, { "label": "Tax", "value": 0.0 } ], "comparison": [ { "label": "Original", "value": 100.0 }, { "label": "Final", "value": 80.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Sale Price Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Sale Price Calculator** — Calculate discounted sale price, tax, final price, and chart-ready price breakdown. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_price` | float | no | (default `100`) | | `discount_percent` | float | no | (default `20`) | | `tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sale-price-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_price": 100.0, "discount_percent": 20.0, "discount_amount": 20.0, "sale_price_before_tax": 80.0, "tax_percent": 0.0, "tax_amount": 0.0, "final_price": 80.0, "total_savings": 20.0, "chart_data": { "breakdown": [ { "label": "Sale price", "value": 80.0 }, { "label": "Tax", "value": 0.0 } ], "comparison": [ { "label": "Original", "value": 100.0 }, { "label": "Final", "value": 80.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-sale-price-calculator.mdc copy prompt ```text --- description: MiniWebtool Sale Price Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Sale Price Calculator API ## The API **Sale Price Calculator** — Calculate discounted sale price, tax, final price, and chart-ready price breakdown. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/sale-price-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `original_price` | float | no | (default `100`) | | `discount_percent` | float | no | (default `20`) | | `tax_percent` | float | no | (default `0`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "sale-price-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "original_price": 100.0, "discount_percent": 20.0, "discount_amount": 20.0, "sale_price_before_tax": 80.0, "tax_percent": 0.0, "tax_amount": 0.0, "final_price": 80.0, "total_savings": 20.0, "chart_data": { "breakdown": [ { "label": "Sale price", "value": 80.0 }, { "label": "Tax", "value": 0.0 } ], "comparison": [ { "label": "Original", "value": 100.0 }, { "label": "Final", "value": 80.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `sale-price-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `sale-price-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call sale-price-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/sale-price-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Sale Price Calculator API do? + Calculate discounted sale price, tax, final price, and chart-ready price breakdown. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Sale Price Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Sale Price Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Sale Price Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Sale Price Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Sale Price Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `sale-price-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`sale-price-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"sale-price-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Amazon FBA Calculator API # Amazon FBA Calculator API finance 2 credits / call v2026-04-22 Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. One POST adds Amazon FBA Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Amazon FBA Calculator on miniwebtool.com →](https://miniwebtool.com/amazon-fba-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run ``` ### Request body Field Type Req. `sale_price` `float` — `product_cost` `float` — `inbound_shipping` `float` — `length_in` `float` — `width_in` `float` — `height_in` `float` — `weight_oz` `float` — `category` default | electronics | computers | camera | cellphone | clothing | shoes | jewelry | watches | beauty | grocery | baby | books | home | toys | sports | tools | pet | furniture | automotive | custom `str` — `storage_months` `float` — `storage_season` low | peak `str` — `custom_referral_pct` `float | None` — `fba_fee_override` `float | None` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "amazon-fba-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → sale_price (float) product_cost (float) inbound_shipping (float) length_in (float) width_in (float) height_in (float) weight_oz (float) category (str) default electronics computers camera cellphone clothing shoes jewelry watches beauty grocery baby books home toys sports tools pet furniture automotive custom default | electronics | computers | camera | cellphone | clothing | shoes | jewelry | watches | beauty | grocery | baby | books | home | toys | sports | tools | pet | furniture | automotive | custom storage_months (float) storage_season (str) low peak low | peak custom_referral_pct (float | None) fba_fee_override (float | None) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`amazon-fba-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"sale_price":39.99,"product_cost":10,"inbound_shipping":1,"length_in":10,"width_in":8,"height_in":2,"weight_oz":12,"category":"default"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'sale_price': 39.99, 'product_cost': 10, 'inbound_shipping': 1, 'length_in': 10, 'width_in': 8, 'height_in': 2, 'weight_oz': 12, 'category': 'default'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"sale_price":39.99,"product_cost":10,"inbound_shipping":1,"length_in":10,"width_in":8,"height_in":2,"weight_oz":12,"category":"default"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'sale_price' => 39.99, 'product_cost' => 10, 'inbound_shipping' => 1, 'length_in' => 10, 'width_in' => 8, 'height_in' => 2, 'weight_oz' => 12, 'category' => 'default' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'sale_price' => 39.99, 'product_cost' => 10, 'inbound_shipping' => 1, 'length_in' => 10, 'width_in' => 8, 'height_in' => 2, 'weight_oz' => 12, 'category' => 'default' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "sale_price": 39.99, "product_cost": 10, "inbound_shipping": 1, "length_in": 10, "width_in": 8, "height_in": 2, "weight_oz": 12, "category": "default", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"sale_price\":39.99,\"product_cost\":10,\"inbound_shipping\":1,\"length_in\":10,\"width_in\":8,\"height_in\":2,\"weight_oz\":12,\"category\":\"default\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`amazon-fba-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/amazon-fba-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/amazon-fba-calculator/prompt.md`](/tools/amazon-fba-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Amazon FBA Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Amazon FBA Calculator** — Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sale_price` | float | no | (default `39.99`) | | `product_cost` | float | no | (default `10`) | | `inbound_shipping` | float | no | (default `1`) | | `length_in` | float | no | (default `10`) | | `width_in` | float | no | (default `8`) | | `height_in` | float | no | (default `2`) | | `weight_oz` | float | no | (default `12`) | | `category` | str | no | one of: default, electronics, computers, camera, cellphone, clothing, shoes, jewelry, watches, beauty, grocery, baby, books, home, toys, sports, tools, pet, furniture, automotive, custom — default \| electronics \| computers \| camera \| cellphone \| clothing \| shoes \| jewelry \| watches \| beauty \| grocery \| baby \| books \| home \| toys \| sports \| tools \| pet \| furniture \| automotive \| custom (default `default`) | | `storage_months` | float | no | (default `1`) | | `storage_season` | str | no | one of: low, peak — low \| peak (default `low`) | | `custom_referral_pct` | float | None | no | — | | `fba_fee_override` | float | None | no | — | Example request body: ```json { "sale_price": 39.99, "product_cost": 10, "inbound_shipping": 1, "length_in": 10, "width_in": 8, "height_in": 2, "weight_oz": 12, "category": "default" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "amazon-fba-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "size_tier": "large_standard", "shipping_weight_lb": 1.151, "dimensional_weight_lb": 1.151, "referral_rate_pct": 15.0, "referral_fee": 6.0, "fulfillment_fee": 4.99, "monthly_storage_allocated": 0.07, "total_amazon_fees": 11.06, "total_unit_cost": 11.0, "net_profit": 17.93, "profit_margin_pct": 44.83, "roi_on_cost_pct": 162.99, "break_even_price": 18.9, "chart_data": { "breakdown": [ { "label": "Referral", "value": 6.0 }, { "label": "Fulfillment", "value": 4.99 }, { "label": "Storage", "value": 0.07 }, { "label": "Product/inbound", "value": 11.0 }, { "label": "Profit", "value": 17.93 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Amazon FBA Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Amazon FBA Calculator** — Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sale_price` | float | no | (default `39.99`) | | `product_cost` | float | no | (default `10`) | | `inbound_shipping` | float | no | (default `1`) | | `length_in` | float | no | (default `10`) | | `width_in` | float | no | (default `8`) | | `height_in` | float | no | (default `2`) | | `weight_oz` | float | no | (default `12`) | | `category` | str | no | one of: default, electronics, computers, camera, cellphone, clothing, shoes, jewelry, watches, beauty, grocery, baby, books, home, toys, sports, tools, pet, furniture, automotive, custom — default \| electronics \| computers \| camera \| cellphone \| clothing \| shoes \| jewelry \| watches \| beauty \| grocery \| baby \| books \| home \| toys \| sports \| tools \| pet \| furniture \| automotive \| custom (default `default`) | | `storage_months` | float | no | (default `1`) | | `storage_season` | str | no | one of: low, peak — low \| peak (default `low`) | | `custom_referral_pct` | float | None | no | — | | `fba_fee_override` | float | None | no | — | Example request body: ```json { "sale_price": 39.99, "product_cost": 10, "inbound_shipping": 1, "length_in": 10, "width_in": 8, "height_in": 2, "weight_oz": 12, "category": "default" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "amazon-fba-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "size_tier": "large_standard", "shipping_weight_lb": 1.151, "dimensional_weight_lb": 1.151, "referral_rate_pct": 15.0, "referral_fee": 6.0, "fulfillment_fee": 4.99, "monthly_storage_allocated": 0.07, "total_amazon_fees": 11.06, "total_unit_cost": 11.0, "net_profit": 17.93, "profit_margin_pct": 44.83, "roi_on_cost_pct": 162.99, "break_even_price": 18.9, "chart_data": { "breakdown": [ { "label": "Referral", "value": 6.0 }, { "label": "Fulfillment", "value": 4.99 }, { "label": "Storage", "value": 0.07 }, { "label": "Product/inbound", "value": 11.0 }, { "label": "Profit", "value": 17.93 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-amazon-fba-calculator.mdc copy prompt ```text --- description: MiniWebtool Amazon FBA Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Amazon FBA Calculator API ## The API **Amazon FBA Calculator** — Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `sale_price` | float | no | (default `39.99`) | | `product_cost` | float | no | (default `10`) | | `inbound_shipping` | float | no | (default `1`) | | `length_in` | float | no | (default `10`) | | `width_in` | float | no | (default `8`) | | `height_in` | float | no | (default `2`) | | `weight_oz` | float | no | (default `12`) | | `category` | str | no | one of: default, electronics, computers, camera, cellphone, clothing, shoes, jewelry, watches, beauty, grocery, baby, books, home, toys, sports, tools, pet, furniture, automotive, custom — default \| electronics \| computers \| camera \| cellphone \| clothing \| shoes \| jewelry \| watches \| beauty \| grocery \| baby \| books \| home \| toys \| sports \| tools \| pet \| furniture \| automotive \| custom (default `default`) | | `storage_months` | float | no | (default `1`) | | `storage_season` | str | no | one of: low, peak — low \| peak (default `low`) | | `custom_referral_pct` | float | None | no | — | | `fba_fee_override` | float | None | no | — | Example request body: ```json { "sale_price": 39.99, "product_cost": 10, "inbound_shipping": 1, "length_in": 10, "width_in": 8, "height_in": 2, "weight_oz": 12, "category": "default" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "amazon-fba-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "size_tier": "large_standard", "shipping_weight_lb": 1.151, "dimensional_weight_lb": 1.151, "referral_rate_pct": 15.0, "referral_fee": 6.0, "fulfillment_fee": 4.99, "monthly_storage_allocated": 0.07, "total_amazon_fees": 11.06, "total_unit_cost": 11.0, "net_profit": 17.93, "profit_margin_pct": 44.83, "roi_on_cost_pct": 162.99, "break_even_price": 18.9, "chart_data": { "breakdown": [ { "label": "Referral", "value": 6.0 }, { "label": "Fulfillment", "value": 4.99 }, { "label": "Storage", "value": 0.07 }, { "label": "Product/inbound", "value": 11.0 }, { "label": "Profit", "value": 17.93 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `amazon-fba-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `amazon-fba-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call amazon-fba-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/amazon-fba-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Amazon FBA Calculator API do? + Estimate Amazon referral, fulfillment, and storage fees from category, dimensions, and weight. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Amazon FBA Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Amazon FBA Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Amazon FBA Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Amazon FBA Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `amazon-fba-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`amazon-fba-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"amazon-fba-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - eBay Fee Calculator API # eBay Fee Calculator API finance 2 credits / call v2026-04-22 Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. One POST adds eBay Fee Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the eBay Fee Calculator on miniwebtool.com →](https://miniwebtool.com/ebay-fee-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run ``` ### Request body Field Type Req. `item_price` `float` — `quantity` `int` — `shipping_charged` `float` — `product_cost` `float` — `shipping_cost` `float` — `category` most | books_media | clothing | sneakers | jewelry | electronics | guitars | cards | coins_bullion | heavy `str` — `final_value_fee_pct` `float | None` — `fixed_order_fee` `float` — `promoted_listing_pct` `float` — `insertion_fee_each` `float` — `target_margin_pct` `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "ebay-fee-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → item_price (float) quantity (int) shipping_charged (float) product_cost (float) shipping_cost (float) category (str) most books_media clothing sneakers jewelry electronics guitars cards coins_bullion heavy most | books_media | clothing | sneakers | jewelry | electronics | guitars | cards | coins_bullion | heavy final_value_fee_pct (float | None) fixed_order_fee (float) promoted_listing_pct (float) insertion_fee_each (float) target_margin_pct (float) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`ebay-fee-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"item_price":50,"quantity":1,"shipping_charged":5,"product_cost":20,"shipping_cost":4.5,"category":"most"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'item_price': 50, 'quantity': 1, 'shipping_charged': 5, 'product_cost': 20, 'shipping_cost': 4.5, 'category': 'most'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"item_price":50,"quantity":1,"shipping_charged":5,"product_cost":20,"shipping_cost":4.5,"category":"most"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'item_price' => 50, 'quantity' => 1, 'shipping_charged' => 5, 'product_cost' => 20, 'shipping_cost' => 4.5, 'category' => 'most' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'item_price' => 50, 'quantity' => 1, 'shipping_charged' => 5, 'product_cost' => 20, 'shipping_cost' => 4.5, 'category' => 'most' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "item_price": 50, "quantity": 1, "shipping_charged": 5, "product_cost": 20, "shipping_cost": 4.5, "category": "most", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"item_price\":50,\"quantity\":1,\"shipping_charged\":5,\"product_cost\":20,\"shipping_cost\":4.5,\"category\":\"most\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`ebay-fee-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/ebay-fee-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/ebay-fee-calculator/prompt.md`](/tools/ebay-fee-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool eBay Fee Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **eBay Fee Calculator** — Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `item_price` | float | no | (default `50`) | | `quantity` | int | no | (default `1`) | | `shipping_charged` | float | no | (default `5`) | | `product_cost` | float | no | (default `20`) | | `shipping_cost` | float | no | (default `4.5`) | | `category` | str | no | one of: most, books_media, clothing, sneakers, jewelry, electronics, guitars, cards, coins_bullion, heavy — most \| books_media \| clothing \| sneakers \| jewelry \| electronics \| guitars \| cards \| coins_bullion \| heavy (default `most`) | | `final_value_fee_pct` | float | None | no | — | | `fixed_order_fee` | float | no | (default `0.4`) | | `promoted_listing_pct` | float | no | (default `2`) | | `insertion_fee_each` | float | no | (default `0`) | | `target_margin_pct` | float | no | (default `25`) | Example request body: ```json { "item_price": 50, "quantity": 1, "shipping_charged": 5, "product_cost": 20, "shipping_cost": 4.5, "category": "most" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "ebay-fee-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "order_total": 55.0, "final_value_fee": 7.29, "fixed_order_fee": 0.4, "promoted_listing_fee": 1.1, "insertion_fees": 0.0, "total_ebay_fees": 8.79, "total_product_shipping_cost": 24.5, "net_profit": 21.71, "profit_margin_pct": 39.48, "effective_fee_pct": 15.98, "target_item_price": 36.67, "category_comparison": [ { "category": "most", "rate_pct": 13.25, "fee": 7.69 }, { "category": "books_media", "rate_pct": 14.95, "fee": 8.62 }, { "category": "clothing", "rate_pct": 13.25, "fee": 7.69 }, { "category": "sneakers", "rate_pct": 7.0, "fee": 4.25 }, { "category": "jewelry", "rate_pct": 15.0, "fee": 8.65 }, { "category": "electronics", "rate_pct": 13.25, "fee": 7.69 }, { "category": "guitars", "rate_pct": 6.7, "fee": 4.08 }, { "category": "cards", "rate_pct": 13.25, "fee": 7.69 }, { "category": "coins_bullion", "rate_pct": 13.25, "fee": 7.69 }, { "category": "heavy", "rate_pct": 3.0, "fee": 2.05 } ], "chart_data": { "breakdown": [ { "label": "eBay fees", "value": 8.79 }, { "label": "Product/shipping cost", "value": 24.5 }, { "label": "Net profit", "value": 21.71 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool eBay Fee Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **eBay Fee Calculator** — Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `item_price` | float | no | (default `50`) | | `quantity` | int | no | (default `1`) | | `shipping_charged` | float | no | (default `5`) | | `product_cost` | float | no | (default `20`) | | `shipping_cost` | float | no | (default `4.5`) | | `category` | str | no | one of: most, books_media, clothing, sneakers, jewelry, electronics, guitars, cards, coins_bullion, heavy — most \| books_media \| clothing \| sneakers \| jewelry \| electronics \| guitars \| cards \| coins_bullion \| heavy (default `most`) | | `final_value_fee_pct` | float | None | no | — | | `fixed_order_fee` | float | no | (default `0.4`) | | `promoted_listing_pct` | float | no | (default `2`) | | `insertion_fee_each` | float | no | (default `0`) | | `target_margin_pct` | float | no | (default `25`) | Example request body: ```json { "item_price": 50, "quantity": 1, "shipping_charged": 5, "product_cost": 20, "shipping_cost": 4.5, "category": "most" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "ebay-fee-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "order_total": 55.0, "final_value_fee": 7.29, "fixed_order_fee": 0.4, "promoted_listing_fee": 1.1, "insertion_fees": 0.0, "total_ebay_fees": 8.79, "total_product_shipping_cost": 24.5, "net_profit": 21.71, "profit_margin_pct": 39.48, "effective_fee_pct": 15.98, "target_item_price": 36.67, "category_comparison": [ { "category": "most", "rate_pct": 13.25, "fee": 7.69 }, { "category": "books_media", "rate_pct": 14.95, "fee": 8.62 }, { "category": "clothing", "rate_pct": 13.25, "fee": 7.69 }, { "category": "sneakers", "rate_pct": 7.0, "fee": 4.25 }, { "category": "jewelry", "rate_pct": 15.0, "fee": 8.65 }, { "category": "electronics", "rate_pct": 13.25, "fee": 7.69 }, { "category": "guitars", "rate_pct": 6.7, "fee": 4.08 }, { "category": "cards", "rate_pct": 13.25, "fee": 7.69 }, { "category": "coins_bullion", "rate_pct": 13.25, "fee": 7.69 }, { "category": "heavy", "rate_pct": 3.0, "fee": 2.05 } ], "chart_data": { "breakdown": [ { "label": "eBay fees", "value": 8.79 }, { "label": "Product/shipping cost", "value": 24.5 }, { "label": "Net profit", "value": 21.71 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-ebay-fee-calculator.mdc copy prompt ```text --- description: MiniWebtool eBay Fee Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool eBay Fee Calculator API ## The API **eBay Fee Calculator** — Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `item_price` | float | no | (default `50`) | | `quantity` | int | no | (default `1`) | | `shipping_charged` | float | no | (default `5`) | | `product_cost` | float | no | (default `20`) | | `shipping_cost` | float | no | (default `4.5`) | | `category` | str | no | one of: most, books_media, clothing, sneakers, jewelry, electronics, guitars, cards, coins_bullion, heavy — most \| books_media \| clothing \| sneakers \| jewelry \| electronics \| guitars \| cards \| coins_bullion \| heavy (default `most`) | | `final_value_fee_pct` | float | None | no | — | | `fixed_order_fee` | float | no | (default `0.4`) | | `promoted_listing_pct` | float | no | (default `2`) | | `insertion_fee_each` | float | no | (default `0`) | | `target_margin_pct` | float | no | (default `25`) | Example request body: ```json { "item_price": 50, "quantity": 1, "shipping_charged": 5, "product_cost": 20, "shipping_cost": 4.5, "category": "most" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "ebay-fee-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "order_total": 55.0, "final_value_fee": 7.29, "fixed_order_fee": 0.4, "promoted_listing_fee": 1.1, "insertion_fees": 0.0, "total_ebay_fees": 8.79, "total_product_shipping_cost": 24.5, "net_profit": 21.71, "profit_margin_pct": 39.48, "effective_fee_pct": 15.98, "target_item_price": 36.67, "category_comparison": [ { "category": "most", "rate_pct": 13.25, "fee": 7.69 }, { "category": "books_media", "rate_pct": 14.95, "fee": 8.62 }, { "category": "clothing", "rate_pct": 13.25, "fee": 7.69 }, { "category": "sneakers", "rate_pct": 7.0, "fee": 4.25 }, { "category": "jewelry", "rate_pct": 15.0, "fee": 8.65 }, { "category": "electronics", "rate_pct": 13.25, "fee": 7.69 }, { "category": "guitars", "rate_pct": 6.7, "fee": 4.08 }, { "category": "cards", "rate_pct": 13.25, "fee": 7.69 }, { "category": "coins_bullion", "rate_pct": 13.25, "fee": 7.69 }, { "category": "heavy", "rate_pct": 3.0, "fee": 2.05 } ], "chart_data": { "breakdown": [ { "label": "eBay fees", "value": 8.79 }, { "label": "Product/shipping cost", "value": 24.5 }, { "label": "Net profit", "value": 21.71 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `ebay-fee-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `ebay-fee-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call ebay-fee-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/ebay-fee-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the eBay Fee Calculator API do? + Estimate eBay final-value, order, promoted, and insertion fees plus net margin and target price. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to eBay Fee Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the eBay Fee Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the eBay Fee Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the eBay Fee Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `ebay-fee-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`ebay-fee-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"ebay-fee-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Average Collection Period Calculator API # Average Collection Period Calculator API finance 2 credits / call v2026-04-22 Calculate average collection period, receivables turnover, and industry benchmark spread. One POST adds Average Collection Period Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Average Collection Period Calculator on miniwebtool.com →](https://miniwebtool.com/average-collection-period-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run ``` ### Request body Field Type Req. `credit_sales` `float` — `average_accounts_receivable` `float` — `days_in_period` `int` — `industry` custom | retail | manufacturing | healthcare | technology | construction | wholesale | services `str` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "average-collection-period-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → credit_sales (float) average_accounts_receivable (float) days_in_period (int) industry (str) custom retail manufacturing healthcare technology construction wholesale services custom | retail | manufacturing | healthcare | technology | construction | wholesale | services precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`average-collection-period-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"credit_sales":1000000,"average_accounts_receivable":125000,"days_in_period":365,"industry":"custom","precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'credit_sales': 1000000, 'average_accounts_receivable': 125000, 'days_in_period': 365, 'industry': 'custom', 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"credit_sales":1000000,"average_accounts_receivable":125000,"days_in_period":365,"industry":"custom","precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'credit_sales' => 1000000, 'average_accounts_receivable' => 125000, 'days_in_period' => 365, 'industry' => 'custom', 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'credit_sales' => 1000000, 'average_accounts_receivable' => 125000, 'days_in_period' => 365, 'industry' => 'custom', 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "credit_sales": 1000000, "average_accounts_receivable": 125000, "days_in_period": 365, "industry": "custom", "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"credit_sales\":1000000,\"average_accounts_receivable\":125000,\"days_in_period\":365,\"industry\":\"custom\",\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`average-collection-period-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/average-collection-period-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/average-collection-period-calculator/prompt.md`](/tools/average-collection-period-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Average Collection Period Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Average Collection Period Calculator** — Calculate average collection period, receivables turnover, and industry benchmark spread. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `credit_sales` | float | no | (default `1000000.0`) | | `average_accounts_receivable` | float | no | (default `125000.0`) | | `days_in_period` | int | no | (default `365`) | | `industry` | str | no | one of: custom, retail, manufacturing, healthcare, technology, construction, wholesale, services — custom \| retail \| manufacturing \| healthcare \| technology \| construction \| wholesale \| services (default `custom`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "credit_sales": 1000000, "average_accounts_receivable": 125000, "days_in_period": 365, "industry": "custom", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "average-collection-period-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "credit_sales": 1000000.0, "average_accounts_receivable": 125000.0, "days_in_period": 365, "receivables_turnover_ratio": 8.0, "average_collection_period_days": 45.625, "daily_credit_sales": 2739.73, "industry": "custom", "industry_average_days": 45.0, "industry_good_days": 30.0, "days_vs_industry_average": 0.625, "potential_collection_improvement": 42808.22, "efficiency_rating": "below_average" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Average Collection Period Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Average Collection Period Calculator** — Calculate average collection period, receivables turnover, and industry benchmark spread. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `credit_sales` | float | no | (default `1000000.0`) | | `average_accounts_receivable` | float | no | (default `125000.0`) | | `days_in_period` | int | no | (default `365`) | | `industry` | str | no | one of: custom, retail, manufacturing, healthcare, technology, construction, wholesale, services — custom \| retail \| manufacturing \| healthcare \| technology \| construction \| wholesale \| services (default `custom`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "credit_sales": 1000000, "average_accounts_receivable": 125000, "days_in_period": 365, "industry": "custom", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "average-collection-period-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "credit_sales": 1000000.0, "average_accounts_receivable": 125000.0, "days_in_period": 365, "receivables_turnover_ratio": 8.0, "average_collection_period_days": 45.625, "daily_credit_sales": 2739.73, "industry": "custom", "industry_average_days": 45.0, "industry_good_days": 30.0, "days_vs_industry_average": 0.625, "potential_collection_improvement": 42808.22, "efficiency_rating": "below_average" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-average-collection-period-calculator.mdc copy prompt ```text --- description: MiniWebtool Average Collection Period Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Average Collection Period Calculator API ## The API **Average Collection Period Calculator** — Calculate average collection period, receivables turnover, and industry benchmark spread. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `credit_sales` | float | no | (default `1000000.0`) | | `average_accounts_receivable` | float | no | (default `125000.0`) | | `days_in_period` | int | no | (default `365`) | | `industry` | str | no | one of: custom, retail, manufacturing, healthcare, technology, construction, wholesale, services — custom \| retail \| manufacturing \| healthcare \| technology \| construction \| wholesale \| services (default `custom`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "credit_sales": 1000000, "average_accounts_receivable": 125000, "days_in_period": 365, "industry": "custom", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "average-collection-period-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "credit_sales": 1000000.0, "average_accounts_receivable": 125000.0, "days_in_period": 365, "receivables_turnover_ratio": 8.0, "average_collection_period_days": 45.625, "daily_credit_sales": 2739.73, "industry": "custom", "industry_average_days": 45.0, "industry_good_days": 30.0, "days_vs_industry_average": 0.625, "potential_collection_improvement": 42808.22, "efficiency_rating": "below_average" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `average-collection-period-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `average-collection-period-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call average-collection-period-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/average-collection-period-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Average Collection Period Calculator API do? + Calculate average collection period, receivables turnover, and industry benchmark spread. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Average Collection Period Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Average Collection Period Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Average Collection Period Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Average Collection Period Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `average-collection-period-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`average-collection-period-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"average-collection-period-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Debtor Days Calculator API # Debtor Days Calculator API finance 2 credits / call v2026-04-22 Calculate debtor days, receivables ratio, and working capital above a 30-day target. One POST adds Debtor Days Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Debtor Days Calculator on miniwebtool.com →](https://miniwebtool.com/debtor-days-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run ``` ### Request body Field Type Req. `debtors` `float` ✓ `sales` `float` ✓ `days` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "debtor-days-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → debtors (float) * sales (float) * days (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`debtor-days-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"debtors":50000,"sales":500000,"days":365}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'debtors': 50000, 'sales': 500000, 'days': 365}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"debtors":50000,"sales":500000,"days":365}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'debtors' => 50000, 'sales' => 500000, 'days' => 365 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'debtors' => 50000, 'sales' => 500000, 'days' => 365 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "debtors": 50000, "sales": 500000, "days": 365, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"debtors\":50000,\"sales\":500000,\"days\":365}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`debtor-days-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/debtor-days-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/debtor-days-calculator/prompt.md`](/tools/debtor-days-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Debtor Days Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debtor Days Calculator** — Calculate debtor days, receivables ratio, and working capital above a 30-day target. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `debtors` | float | yes | — | | `sales` | float | yes | — | | `days` | int | no | (default `365`) | Example request body: ```json { "debtors": 50000, "sales": 500000, "days": 365 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debtor-days-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "debtors": 50000.0, "sales": 500000.0, "days_in_period": 365, "debtor_days": 36.5, "receivables_ratio_percent": 10.0, "daily_sales": 1369.86, "target_30_day_receivables": 41095.89, "working_capital_above_30_days": 8904.11, "rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Debtor Days Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Debtor Days Calculator** — Calculate debtor days, receivables ratio, and working capital above a 30-day target. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `debtors` | float | yes | — | | `sales` | float | yes | — | | `days` | int | no | (default `365`) | Example request body: ```json { "debtors": 50000, "sales": 500000, "days": 365 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debtor-days-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "debtors": 50000.0, "sales": 500000.0, "days_in_period": 365, "debtor_days": 36.5, "receivables_ratio_percent": 10.0, "daily_sales": 1369.86, "target_30_day_receivables": 41095.89, "working_capital_above_30_days": 8904.11, "rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-debtor-days-calculator.mdc copy prompt ```text --- description: MiniWebtool Debtor Days Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Debtor Days Calculator API ## The API **Debtor Days Calculator** — Calculate debtor days, receivables ratio, and working capital above a 30-day target. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/debtor-days-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `debtors` | float | yes | — | | `sales` | float | yes | — | | `days` | int | no | (default `365`) | Example request body: ```json { "debtors": 50000, "sales": 500000, "days": 365 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "debtor-days-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "debtors": 50000.0, "sales": 500000.0, "days_in_period": 365, "debtor_days": 36.5, "receivables_ratio_percent": 10.0, "daily_sales": 1369.86, "target_30_day_receivables": 41095.89, "working_capital_above_30_days": 8904.11, "rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `debtor-days-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `debtor-days-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call debtor-days-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`debtors`,`sales`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/debtor-days-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Debtor Days Calculator API do? + Calculate debtor days, receivables ratio, and working capital above a 30-day target. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Debtor Days Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Debtor Days Calculator API require? + Required fields: debtors, sales. Full schema at /v1/openapi.json. Is the Debtor Days Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Debtor Days Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `debtor-days-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`debtor-days-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"debtor-days-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Fixed Asset Turnover Calculator API # Fixed Asset Turnover Calculator API finance 2 credits / call v2026-04-22 Measure revenue generated per dollar of net fixed assets. One POST adds Fixed Asset Turnover Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Fixed Asset Turnover Calculator on miniwebtool.com →](https://miniwebtool.com/fixed-asset-turnover-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run ``` ### Request body Field Type Req. `net_sales` `float` — `average_fixed_assets` `float | None` — `beginning_fixed_assets` `float | None` — `ending_fixed_assets` `float | None` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "fixed-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → net_sales (float) average_fixed_assets (float | None) beginning_fixed_assets (float | None) ending_fixed_assets (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`fixed-asset-turnover-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"net_sales":5000000,"average_fixed_assets":2000000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'net_sales': 5000000, 'average_fixed_assets': 2000000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"net_sales":5000000,"average_fixed_assets":2000000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'net_sales' => 5000000, 'average_fixed_assets' => 2000000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'net_sales' => 5000000, 'average_fixed_assets' => 2000000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "net_sales": 5000000, "average_fixed_assets": 2000000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"net_sales\":5000000,\"average_fixed_assets\":2000000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`fixed-asset-turnover-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/fixed-asset-turnover-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/fixed-asset-turnover-calculator/prompt.md`](/tools/fixed-asset-turnover-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Fixed Asset Turnover Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fixed Asset Turnover Calculator** — Measure revenue generated per dollar of net fixed assets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_sales` | float | no | (default `5000000.0`) | | `average_fixed_assets` | float | None | no | (default `2000000.0`) | | `beginning_fixed_assets` | float | None | no | — | | `ending_fixed_assets` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_sales": 5000000, "average_fixed_assets": 2000000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fixed-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_sales": 5000000.0, "average_fixed_assets": 2000000.0, "asset_method": "direct", "fixed_asset_turnover_ratio": 2.5, "sales_per_fixed_asset_dollar": 2.5, "fixed_assets_to_sales_percent": 40.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Fixed Asset Turnover Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Fixed Asset Turnover Calculator** — Measure revenue generated per dollar of net fixed assets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_sales` | float | no | (default `5000000.0`) | | `average_fixed_assets` | float | None | no | (default `2000000.0`) | | `beginning_fixed_assets` | float | None | no | — | | `ending_fixed_assets` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_sales": 5000000, "average_fixed_assets": 2000000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fixed-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_sales": 5000000.0, "average_fixed_assets": 2000000.0, "asset_method": "direct", "fixed_asset_turnover_ratio": 2.5, "sales_per_fixed_asset_dollar": 2.5, "fixed_assets_to_sales_percent": 40.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-fixed-asset-turnover-calculator.mdc copy prompt ```text --- description: MiniWebtool Fixed Asset Turnover Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Fixed Asset Turnover Calculator API ## The API **Fixed Asset Turnover Calculator** — Measure revenue generated per dollar of net fixed assets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_sales` | float | no | (default `5000000.0`) | | `average_fixed_assets` | float | None | no | (default `2000000.0`) | | `beginning_fixed_assets` | float | None | no | — | | `ending_fixed_assets` | float | None | no | — | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_sales": 5000000, "average_fixed_assets": 2000000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "fixed-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_sales": 5000000.0, "average_fixed_assets": 2000000.0, "asset_method": "direct", "fixed_asset_turnover_ratio": 2.5, "sales_per_fixed_asset_dollar": 2.5, "fixed_assets_to_sales_percent": 40.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `fixed-asset-turnover-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `fixed-asset-turnover-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call fixed-asset-turnover-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/fixed-asset-turnover-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Fixed Asset Turnover Calculator API do? + Measure revenue generated per dollar of net fixed assets. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Fixed Asset Turnover Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Fixed Asset Turnover Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Fixed Asset Turnover Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Fixed Asset Turnover Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `fixed-asset-turnover-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`fixed-asset-turnover-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"fixed-asset-turnover-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Inventory Turnover Calculator API # Inventory Turnover Calculator API finance 2 credits / call v2026-04-22 Calculate inventory turnover, days sales in inventory, and annualized turnover. One POST adds Inventory Turnover Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Inventory Turnover Calculator on miniwebtool.com →](https://miniwebtool.com/inventory-turnover-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run ``` ### Request body Field Type Req. `cogs` `float` — `average_inventory` `float | None` — `beginning_inventory` `float | None` — `ending_inventory` `float | None` — `period` annual | quarterly | monthly `str` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "inventory-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cogs (float) average_inventory (float | None) beginning_inventory (float | None) ending_inventory (float | None) period (str) annual quarterly monthly annual | quarterly | monthly precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`inventory-turnover-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"cogs":500000,"average_inventory":100000,"period":"annual","precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'cogs': 500000, 'average_inventory': 100000, 'period': 'annual', 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"cogs":500000,"average_inventory":100000,"period":"annual","precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'cogs' => 500000, 'average_inventory' => 100000, 'period' => 'annual', 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'cogs' => 500000, 'average_inventory' => 100000, 'period' => 'annual', 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "cogs": 500000, "average_inventory": 100000, "period": "annual", "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"cogs\":500000,\"average_inventory\":100000,\"period\":\"annual\",\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`inventory-turnover-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/inventory-turnover-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/inventory-turnover-calculator/prompt.md`](/tools/inventory-turnover-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Inventory Turnover Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Inventory Turnover Calculator** — Calculate inventory turnover, days sales in inventory, and annualized turnover. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cogs` | float | no | (default `500000.0`) | | `average_inventory` | float | None | no | (default `100000.0`) | | `beginning_inventory` | float | None | no | — | | `ending_inventory` | float | None | no | — | | `period` | str | no | one of: annual, quarterly, monthly — annual \| quarterly \| monthly (default `annual`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "cogs": 500000, "average_inventory": 100000, "period": "annual", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inventory-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "cogs": 500000.0, "average_inventory": 100000.0, "inventory_method": "direct", "period": "annual", "days_in_period": 365, "inventory_turnover_ratio": 5.0, "days_sales_in_inventory": 73.0, "annual_turnover": 5.0, "annual_days_sales_in_inventory": 73.0, "annual_cogs": 500000.0, "weekly_turnover": 0.0962, "estimated_annual_holding_cost": 25000.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Inventory Turnover Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Inventory Turnover Calculator** — Calculate inventory turnover, days sales in inventory, and annualized turnover. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cogs` | float | no | (default `500000.0`) | | `average_inventory` | float | None | no | (default `100000.0`) | | `beginning_inventory` | float | None | no | — | | `ending_inventory` | float | None | no | — | | `period` | str | no | one of: annual, quarterly, monthly — annual \| quarterly \| monthly (default `annual`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "cogs": 500000, "average_inventory": 100000, "period": "annual", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inventory-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "cogs": 500000.0, "average_inventory": 100000.0, "inventory_method": "direct", "period": "annual", "days_in_period": 365, "inventory_turnover_ratio": 5.0, "days_sales_in_inventory": 73.0, "annual_turnover": 5.0, "annual_days_sales_in_inventory": 73.0, "annual_cogs": 500000.0, "weekly_turnover": 0.0962, "estimated_annual_holding_cost": 25000.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-inventory-turnover-calculator.mdc copy prompt ```text --- description: MiniWebtool Inventory Turnover Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Inventory Turnover Calculator API ## The API **Inventory Turnover Calculator** — Calculate inventory turnover, days sales in inventory, and annualized turnover. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cogs` | float | no | (default `500000.0`) | | `average_inventory` | float | None | no | (default `100000.0`) | | `beginning_inventory` | float | None | no | — | | `ending_inventory` | float | None | no | — | | `period` | str | no | one of: annual, quarterly, monthly — annual \| quarterly \| monthly (default `annual`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "cogs": 500000, "average_inventory": 100000, "period": "annual", "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inventory-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "cogs": 500000.0, "average_inventory": 100000.0, "inventory_method": "direct", "period": "annual", "days_in_period": 365, "inventory_turnover_ratio": 5.0, "days_sales_in_inventory": 73.0, "annual_turnover": 5.0, "annual_days_sales_in_inventory": 73.0, "annual_cogs": 500000.0, "weekly_turnover": 0.0962, "estimated_annual_holding_cost": 25000.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `inventory-turnover-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `inventory-turnover-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call inventory-turnover-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/inventory-turnover-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Inventory Turnover Calculator API do? + Calculate inventory turnover, days sales in inventory, and annualized turnover. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Inventory Turnover Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Inventory Turnover Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Inventory Turnover Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Inventory Turnover Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `inventory-turnover-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`inventory-turnover-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"inventory-turnover-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Inventory Turnover Ratio Calculator API # Inventory Turnover Ratio Calculator API finance 1 credit / call v2026-04-22 visual chart data Calculate inventory turnover ratio and days inventory outstanding. One POST adds Inventory Turnover Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run ``` ### Request body Field Type Req. `cost_of_goods_sold` `float` — `beginning_inventory` `float` — `ending_inventory` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "inventory-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → cost_of_goods_sold (float) beginning_inventory (float) ending_inventory (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`inventory-turnover-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`inventory-turnover-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/inventory-turnover-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/inventory-turnover-ratio-calculator/prompt.md`](/tools/inventory-turnover-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Inventory Turnover Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Inventory Turnover Ratio Calculator** — Calculate inventory turnover ratio and days inventory outstanding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cost_of_goods_sold` | float | no | (default `500000`) | | `beginning_inventory` | float | no | (default `80000`) | | `ending_inventory` | float | no | (default `120000`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inventory-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cost_of_goods_sold": 500000.0, "beginning_inventory": 80000.0, "ending_inventory": 120000.0, "average_inventory": 100000.0, "inventory_turnover_ratio": 5.0, "days_inventory_outstanding": 73.0, "chart_data": { "breakdown": [ { "label": "Beginning inventory", "value": 80000.0 }, { "label": "Ending inventory", "value": 120000.0 } ], "comparison": [ { "label": "COGS", "value": 500000.0 }, { "label": "Average inventory", "value": 100000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Inventory Turnover Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Inventory Turnover Ratio Calculator** — Calculate inventory turnover ratio and days inventory outstanding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cost_of_goods_sold` | float | no | (default `500000`) | | `beginning_inventory` | float | no | (default `80000`) | | `ending_inventory` | float | no | (default `120000`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inventory-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cost_of_goods_sold": 500000.0, "beginning_inventory": 80000.0, "ending_inventory": 120000.0, "average_inventory": 100000.0, "inventory_turnover_ratio": 5.0, "days_inventory_outstanding": 73.0, "chart_data": { "breakdown": [ { "label": "Beginning inventory", "value": 80000.0 }, { "label": "Ending inventory", "value": 120000.0 } ], "comparison": [ { "label": "COGS", "value": 500000.0 }, { "label": "Average inventory", "value": 100000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-inventory-turnover-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Inventory Turnover Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Inventory Turnover Ratio Calculator API ## The API **Inventory Turnover Ratio Calculator** — Calculate inventory turnover ratio and days inventory outstanding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `cost_of_goods_sold` | float | no | (default `500000`) | | `beginning_inventory` | float | no | (default `80000`) | | `ending_inventory` | float | no | (default `120000`) | | `precision` | int | no | (default `4`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "inventory-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "cost_of_goods_sold": 500000.0, "beginning_inventory": 80000.0, "ending_inventory": 120000.0, "average_inventory": 100000.0, "inventory_turnover_ratio": 5.0, "days_inventory_outstanding": 73.0, "chart_data": { "breakdown": [ { "label": "Beginning inventory", "value": 80000.0 }, { "label": "Ending inventory", "value": 120000.0 } ], "comparison": [ { "label": "COGS", "value": 500000.0 }, { "label": "Average inventory", "value": 100000.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `inventory-turnover-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `inventory-turnover-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call inventory-turnover-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/inventory-turnover-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Inventory Turnover Ratio Calculator API do? + Calculate inventory turnover ratio and days inventory outstanding. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Inventory Turnover Ratio Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Inventory Turnover Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Inventory Turnover Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Inventory Turnover Ratio Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Inventory Turnover Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `inventory-turnover-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`inventory-turnover-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"inventory-turnover-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Receivables Turnover Ratio Calculator API # Receivables Turnover Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate receivables turnover and days sales outstanding. One POST adds Receivables Turnover Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Receivables Turnover Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/receivables-turnover-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run ``` ### Request body Field Type Req. `net_credit_sales` `float` — `average_receivables` `float | None` — `beginning_receivables` `float | None` — `ending_receivables` `float | None` — `period_days` `int` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "receivables-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → net_credit_sales (float) average_receivables (float | None) beginning_receivables (float | None) ending_receivables (float | None) period_days (int) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`receivables-turnover-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"net_credit_sales":1000000,"beginning_receivables":200000,"ending_receivables":160000,"period_days":365,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'net_credit_sales': 1000000, 'beginning_receivables': 200000, 'ending_receivables': 160000, 'period_days': 365, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"net_credit_sales":1000000,"beginning_receivables":200000,"ending_receivables":160000,"period_days":365,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'net_credit_sales' => 1000000, 'beginning_receivables' => 200000, 'ending_receivables' => 160000, 'period_days' => 365, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'net_credit_sales' => 1000000, 'beginning_receivables' => 200000, 'ending_receivables' => 160000, 'period_days' => 365, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "net_credit_sales": 1000000, "beginning_receivables": 200000, "ending_receivables": 160000, "period_days": 365, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"net_credit_sales\":1000000,\"beginning_receivables\":200000,\"ending_receivables\":160000,\"period_days\":365,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`receivables-turnover-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/receivables-turnover-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/receivables-turnover-ratio-calculator/prompt.md`](/tools/receivables-turnover-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Receivables Turnover Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Receivables Turnover Ratio Calculator** — Calculate receivables turnover and days sales outstanding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_credit_sales` | float | no | (default `1000000.0`) | | `average_receivables` | float | None | no | — | | `beginning_receivables` | float | None | no | (default `200000.0`) | | `ending_receivables` | float | None | no | (default `160000.0`) | | `period_days` | int | no | (default `365`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_credit_sales": 1000000, "beginning_receivables": 200000, "ending_receivables": 160000, "period_days": 365, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "receivables-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_credit_sales": 1000000.0, "average_receivables": 180000.0, "receivables_method": "calculated", "period_days": 365, "receivables_turnover_ratio": 5.5556, "days_sales_outstanding": 65.7, "average_collection_period_days": 65.7, "efficiency_rating": "below_average" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Receivables Turnover Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Receivables Turnover Ratio Calculator** — Calculate receivables turnover and days sales outstanding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_credit_sales` | float | no | (default `1000000.0`) | | `average_receivables` | float | None | no | — | | `beginning_receivables` | float | None | no | (default `200000.0`) | | `ending_receivables` | float | None | no | (default `160000.0`) | | `period_days` | int | no | (default `365`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_credit_sales": 1000000, "beginning_receivables": 200000, "ending_receivables": 160000, "period_days": 365, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "receivables-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_credit_sales": 1000000.0, "average_receivables": 180000.0, "receivables_method": "calculated", "period_days": 365, "receivables_turnover_ratio": 5.5556, "days_sales_outstanding": 65.7, "average_collection_period_days": 65.7, "efficiency_rating": "below_average" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-receivables-turnover-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Receivables Turnover Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Receivables Turnover Ratio Calculator API ## The API **Receivables Turnover Ratio Calculator** — Calculate receivables turnover and days sales outstanding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_credit_sales` | float | no | (default `1000000.0`) | | `average_receivables` | float | None | no | — | | `beginning_receivables` | float | None | no | (default `200000.0`) | | `ending_receivables` | float | None | no | (default `160000.0`) | | `period_days` | int | no | (default `365`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_credit_sales": 1000000, "beginning_receivables": 200000, "ending_receivables": 160000, "period_days": 365, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "receivables-turnover-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_credit_sales": 1000000.0, "average_receivables": 180000.0, "receivables_method": "calculated", "period_days": 365, "receivables_turnover_ratio": 5.5556, "days_sales_outstanding": 65.7, "average_collection_period_days": 65.7, "efficiency_rating": "below_average" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `receivables-turnover-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `receivables-turnover-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call receivables-turnover-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/receivables-turnover-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Receivables Turnover Ratio Calculator API do? + Calculate receivables turnover and days sales outstanding. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Receivables Turnover Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Receivables Turnover Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Receivables Turnover Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Receivables Turnover Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `receivables-turnover-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`receivables-turnover-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"receivables-turnover-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Total Asset Turnover Calculator API # Total Asset Turnover Calculator API finance 2 credits / call v2026-04-22 Measure revenue generated per dollar of average total assets. One POST adds Total Asset Turnover Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Total Asset Turnover Calculator on miniwebtool.com →](https://miniwebtool.com/total-asset-turnover-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run ``` ### Request body Field Type Req. `net_sales` `float` — `total_assets` `float | None` — `total_assets_begin` `float | None` — `total_assets_end` `float | None` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "total-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → net_sales (float) total_assets (float | None) total_assets_begin (float | None) total_assets_end (float | None) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`total-asset-turnover-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"net_sales":5000000,"total_assets_begin":3000000,"total_assets_end":3500000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'net_sales': 5000000, 'total_assets_begin': 3000000, 'total_assets_end': 3500000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"net_sales":5000000,"total_assets_begin":3000000,"total_assets_end":3500000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'net_sales' => 5000000, 'total_assets_begin' => 3000000, 'total_assets_end' => 3500000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'net_sales' => 5000000, 'total_assets_begin' => 3000000, 'total_assets_end' => 3500000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "net_sales": 5000000, "total_assets_begin": 3000000, "total_assets_end": 3500000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"net_sales\":5000000,\"total_assets_begin\":3000000,\"total_assets_end\":3500000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`total-asset-turnover-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/total-asset-turnover-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/total-asset-turnover-calculator/prompt.md`](/tools/total-asset-turnover-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Total Asset Turnover Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Total Asset Turnover Calculator** — Measure revenue generated per dollar of average total assets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_sales` | float | no | (default `5000000.0`) | | `total_assets` | float | None | no | — | | `total_assets_begin` | float | None | no | (default `3000000.0`) | | `total_assets_end` | float | None | no | (default `3500000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_sales": 5000000, "total_assets_begin": 3000000, "total_assets_end": 3500000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "total-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_sales": 5000000.0, "average_total_assets": 3250000.0, "asset_method": "calculated", "total_asset_turnover_ratio": 1.5385, "sales_per_asset_dollar": 1.5385, "assets_to_sales_percent": 65.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Total Asset Turnover Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Total Asset Turnover Calculator** — Measure revenue generated per dollar of average total assets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_sales` | float | no | (default `5000000.0`) | | `total_assets` | float | None | no | — | | `total_assets_begin` | float | None | no | (default `3000000.0`) | | `total_assets_end` | float | None | no | (default `3500000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_sales": 5000000, "total_assets_begin": 3000000, "total_assets_end": 3500000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "total-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_sales": 5000000.0, "average_total_assets": 3250000.0, "asset_method": "calculated", "total_asset_turnover_ratio": 1.5385, "sales_per_asset_dollar": 1.5385, "assets_to_sales_percent": 65.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-total-asset-turnover-calculator.mdc copy prompt ```text --- description: MiniWebtool Total Asset Turnover Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Total Asset Turnover Calculator API ## The API **Total Asset Turnover Calculator** — Measure revenue generated per dollar of average total assets. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_sales` | float | no | (default `5000000.0`) | | `total_assets` | float | None | no | — | | `total_assets_begin` | float | None | no | (default `3000000.0`) | | `total_assets_end` | float | None | no | (default `3500000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_sales": 5000000, "total_assets_begin": 3000000, "total_assets_end": 3500000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "total-asset-turnover-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_sales": 5000000.0, "average_total_assets": 3250000.0, "asset_method": "calculated", "total_asset_turnover_ratio": 1.5385, "sales_per_asset_dollar": 1.5385, "assets_to_sales_percent": 65.0, "efficiency_rating": "good" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `total-asset-turnover-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `total-asset-turnover-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call total-asset-turnover-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/total-asset-turnover-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Total Asset Turnover Calculator API do? + Measure revenue generated per dollar of average total assets. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Total Asset Turnover Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Total Asset Turnover Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Total Asset Turnover Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Total Asset Turnover Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `total-asset-turnover-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`total-asset-turnover-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"total-asset-turnover-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Pizza Value Calculator API # Pizza Value Calculator API finance 1 credit / call v2026-04-22 Compare two pizzas by area, price per area, slice value, and savings percentage. One POST adds Pizza Value Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Pizza Value Calculator on miniwebtool.com →](https://miniwebtool.com/pizza-value-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run ``` ### Request body Field Type Req. `diameter_a` `float` — `price_a` `float` — `slices_a` `int` — `diameter_b` `float` — `price_b` `float` — `slices_b` `int` — `unit` in | cm `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "pizza-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → diameter_a (float) price_a (float) slices_a (int) diameter_b (float) price_b (float) slices_b (int) unit (str) in cm in | cm precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`pizza-value-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`pizza-value-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/pizza-value-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/pizza-value-calculator/prompt.md`](/tools/pizza-value-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Pizza Value Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pizza Value Calculator** — Compare two pizzas by area, price per area, slice value, and savings percentage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `diameter_a` | float | no | (default `12`) | | `price_a` | float | no | (default `9.99`) | | `slices_a` | int | no | (default `8`) | | `diameter_b` | float | no | (default `16`) | | `price_b` | float | no | (default `14.99`) | | `slices_b` | int | no | (default `8`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pizza-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit": "in", "area_unit": "sq_in", "diameter_a": 12.0, "diameter_b": 16.0, "area_a": 113.097336, "area_b": 201.06193, "price_a": 9.99, "price_b": 14.99, "price_per_area_a": 0.088331, "price_per_area_b": 0.074554, "price_per_slice_a": 1.24875, "price_per_slice_b": 1.87375, "area_per_slice_a": 14.137167, "area_per_slice_b": 25.132741, "winner": "B", "savings_percent": 15.596847, "equivalent_count": 1.777778, "area_ratio": 1.777778, "visual_percent_a": 56.25, "visual_percent_b": 100.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Pizza Value Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Pizza Value Calculator** — Compare two pizzas by area, price per area, slice value, and savings percentage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `diameter_a` | float | no | (default `12`) | | `price_a` | float | no | (default `9.99`) | | `slices_a` | int | no | (default `8`) | | `diameter_b` | float | no | (default `16`) | | `price_b` | float | no | (default `14.99`) | | `slices_b` | int | no | (default `8`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pizza-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit": "in", "area_unit": "sq_in", "diameter_a": 12.0, "diameter_b": 16.0, "area_a": 113.097336, "area_b": 201.06193, "price_a": 9.99, "price_b": 14.99, "price_per_area_a": 0.088331, "price_per_area_b": 0.074554, "price_per_slice_a": 1.24875, "price_per_slice_b": 1.87375, "area_per_slice_a": 14.137167, "area_per_slice_b": 25.132741, "winner": "B", "savings_percent": 15.596847, "equivalent_count": 1.777778, "area_ratio": 1.777778, "visual_percent_a": 56.25, "visual_percent_b": 100.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-pizza-value-calculator.mdc copy prompt ```text --- description: MiniWebtool Pizza Value Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Pizza Value Calculator API ## The API **Pizza Value Calculator** — Compare two pizzas by area, price per area, slice value, and savings percentage. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/pizza-value-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `diameter_a` | float | no | (default `12`) | | `price_a` | float | no | (default `9.99`) | | `slices_a` | int | no | (default `8`) | | `diameter_b` | float | no | (default `16`) | | `price_b` | float | no | (default `14.99`) | | `slices_b` | int | no | (default `8`) | | `unit` | str | no | one of: in, cm — in \| cm (default `in`) | | `precision` | int | no | (default `6`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "pizza-value-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "unit": "in", "area_unit": "sq_in", "diameter_a": 12.0, "diameter_b": 16.0, "area_a": 113.097336, "area_b": 201.06193, "price_a": 9.99, "price_b": 14.99, "price_per_area_a": 0.088331, "price_per_area_b": 0.074554, "price_per_slice_a": 1.24875, "price_per_slice_b": 1.87375, "area_per_slice_a": 14.137167, "area_per_slice_b": 25.132741, "winner": "B", "savings_percent": 15.596847, "equivalent_count": 1.777778, "area_ratio": 1.777778, "visual_percent_a": 56.25, "visual_percent_b": 100.0 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `pizza-value-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `pizza-value-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call pizza-value-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/pizza-value-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Pizza Value Calculator API do? + Compare two pizzas by area, price per area, slice value, and savings percentage. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Pizza Value Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Pizza Value Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Pizza Value Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Pizza Value Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `pizza-value-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`pizza-value-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"pizza-value-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Goodwill to Assets Ratio Calculator API # Goodwill to Assets Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate goodwill-to-assets ratio and tangible asset share. One POST adds Goodwill to Assets Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Goodwill to Assets Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/goodwill-to-assets-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run ``` ### Request body Field Type Req. `unamortized_goodwill` `float` — `total_assets` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "goodwill-to-assets-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → unamortized_goodwill (float) total_assets (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`goodwill-to-assets-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"unamortized_goodwill":150000,"total_assets":1000000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'unamortized_goodwill': 150000, 'total_assets': 1000000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"unamortized_goodwill":150000,"total_assets":1000000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'unamortized_goodwill' => 150000, 'total_assets' => 1000000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'unamortized_goodwill' => 150000, 'total_assets' => 1000000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "unamortized_goodwill": 150000, "total_assets": 1000000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"unamortized_goodwill\":150000,\"total_assets\":1000000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`goodwill-to-assets-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/goodwill-to-assets-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/goodwill-to-assets-ratio-calculator/prompt.md`](/tools/goodwill-to-assets-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Goodwill to Assets Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Goodwill to Assets Ratio Calculator** — Calculate goodwill-to-assets ratio and tangible asset share. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unamortized_goodwill` | float | no | (default `150000.0`) | | `total_assets` | float | no | (default `1000000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "unamortized_goodwill": 150000, "total_assets": 1000000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "goodwill-to-assets-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "unamortized_goodwill": 150000.0, "total_assets": 1000000.0, "goodwill_to_assets_ratio": 0.15, "goodwill_to_assets_percent": 15.0, "tangible_assets": 850000.0, "tangible_assets_percent": 85.0, "risk_level": "moderate" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Goodwill to Assets Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Goodwill to Assets Ratio Calculator** — Calculate goodwill-to-assets ratio and tangible asset share. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unamortized_goodwill` | float | no | (default `150000.0`) | | `total_assets` | float | no | (default `1000000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "unamortized_goodwill": 150000, "total_assets": 1000000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "goodwill-to-assets-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "unamortized_goodwill": 150000.0, "total_assets": 1000000.0, "goodwill_to_assets_ratio": 0.15, "goodwill_to_assets_percent": 15.0, "tangible_assets": 850000.0, "tangible_assets_percent": 85.0, "risk_level": "moderate" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-goodwill-to-assets-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Goodwill to Assets Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Goodwill to Assets Ratio Calculator API ## The API **Goodwill to Assets Ratio Calculator** — Calculate goodwill-to-assets ratio and tangible asset share. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `unamortized_goodwill` | float | no | (default `150000.0`) | | `total_assets` | float | no | (default `1000000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "unamortized_goodwill": 150000, "total_assets": 1000000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "goodwill-to-assets-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "unamortized_goodwill": 150000.0, "total_assets": 1000000.0, "goodwill_to_assets_ratio": 0.15, "goodwill_to_assets_percent": 15.0, "tangible_assets": 850000.0, "tangible_assets_percent": 85.0, "risk_level": "moderate" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `goodwill-to-assets-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `goodwill-to-assets-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call goodwill-to-assets-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/goodwill-to-assets-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Goodwill to Assets Ratio Calculator API do? + Calculate goodwill-to-assets ratio and tangible asset share. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Goodwill to Assets Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Goodwill to Assets Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Goodwill to Assets Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Goodwill to Assets Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `goodwill-to-assets-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`goodwill-to-assets-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"goodwill-to-assets-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Retention Ratio Calculator API # Retention Ratio Calculator API finance 2 credits / call v2026-04-22 Calculate retention ratio, payout ratio, and retained earnings. One POST adds Retention Ratio Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Retention Ratio Calculator on miniwebtool.com →](https://miniwebtool.com/retention-ratio-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run ``` ### Request body Field Type Req. `net_income` `float` — `dividends` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "retention-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → net_income (float) dividends (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`retention-ratio-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"net_income":1000000,"dividends":400000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'net_income': 1000000, 'dividends': 400000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"net_income":1000000,"dividends":400000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'net_income' => 1000000, 'dividends' => 400000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'net_income' => 1000000, 'dividends' => 400000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "net_income": 1000000, "dividends": 400000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"net_income\":1000000,\"dividends\":400000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`retention-ratio-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/retention-ratio-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/retention-ratio-calculator/prompt.md`](/tools/retention-ratio-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Retention Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Retention Ratio Calculator** — Calculate retention ratio, payout ratio, and retained earnings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_income` | float | no | (default `1000000.0`) | | `dividends` | float | no | (default `400000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_income": 1000000, "dividends": 400000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "retention-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_income": 1000000.0, "dividends": 400000.0, "retained_earnings": 600000.0, "retention_ratio_percent": 60.0, "dividend_payout_ratio_percent": 40.0, "retention_rating": "high_retention" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Retention Ratio Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Retention Ratio Calculator** — Calculate retention ratio, payout ratio, and retained earnings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_income` | float | no | (default `1000000.0`) | | `dividends` | float | no | (default `400000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_income": 1000000, "dividends": 400000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "retention-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_income": 1000000.0, "dividends": 400000.0, "retained_earnings": 600000.0, "retention_ratio_percent": 60.0, "dividend_payout_ratio_percent": 40.0, "retention_rating": "high_retention" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-retention-ratio-calculator.mdc copy prompt ```text --- description: MiniWebtool Retention Ratio Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Retention Ratio Calculator API ## The API **Retention Ratio Calculator** — Calculate retention ratio, payout ratio, and retained earnings. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `net_income` | float | no | (default `1000000.0`) | | `dividends` | float | no | (default `400000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "net_income": 1000000, "dividends": 400000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "retention-ratio-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "net_income": 1000000.0, "dividends": 400000.0, "retained_earnings": 600000.0, "retention_ratio_percent": 60.0, "dividend_payout_ratio_percent": 40.0, "retention_rating": "high_retention" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `retention-ratio-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `retention-ratio-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call retention-ratio-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/retention-ratio-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Retention Ratio Calculator API do? + Calculate retention ratio, payout ratio, and retained earnings. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Retention Ratio Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Retention Ratio Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Retention Ratio Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Retention Ratio Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `retention-ratio-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`retention-ratio-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"retention-ratio-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Home Affordability Calculator API # Home Affordability Calculator API finance 2 credits / call v2026-04-22 Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. One POST adds Home Affordability Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Home Affordability Calculator on miniwebtool.com →](https://miniwebtool.com/home-affordability-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run ``` ### Request body Field Type Req. `annual_income` gross annual household income `float` — `monthly_debt` existing monthly debt payments `float` — `down_payment` cash down payment `float` — `interest_rate` annual mortgage rate % `float` — `loan_term` 30 | 20 | 15 | 10 `str` — `property_tax_rate` annual property tax as % of value `float` — `annual_insurance` annual homeowners insurance, 0 to estimate `float` — `monthly_hoa` monthly HOA fees `float` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "home-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → annual_income (float) gross annual household income monthly_debt (float) existing monthly debt payments down_payment (float) cash down payment interest_rate (float) annual mortgage rate % loan_term (str) 30 20 15 10 30 | 20 | 15 | 10 property_tax_rate (float) annual property tax as % of value annual_insurance (float) annual homeowners insurance, 0 to estimate monthly_hoa (float) monthly HOA fees Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`home-affordability-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"annual_income":90000,"monthly_debt":500,"down_payment":60000,"interest_rate":6.5,"loan_term":"30","property_tax_rate":1.1,"annual_insurance":0,"monthly_hoa":0}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'annual_income': 90000, 'monthly_debt': 500, 'down_payment': 60000, 'interest_rate': 6.5, 'loan_term': '30', 'property_tax_rate': 1.1, 'annual_insurance': 0, 'monthly_hoa': 0}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"annual_income":90000,"monthly_debt":500,"down_payment":60000,"interest_rate":6.5,"loan_term":"30","property_tax_rate":1.1,"annual_insurance":0,"monthly_hoa":0}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'annual_income' => 90000, 'monthly_debt' => 500, 'down_payment' => 60000, 'interest_rate' => 6.5, 'loan_term' => '30', 'property_tax_rate' => 1.1, 'annual_insurance' => 0, 'monthly_hoa' => 0 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'annual_income' => 90000, 'monthly_debt' => 500, 'down_payment' => 60000, 'interest_rate' => 6.5, 'loan_term' => '30', 'property_tax_rate' => 1.1, 'annual_insurance' => 0, 'monthly_hoa' => 0 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "annual_income": 90000, "monthly_debt": 500, "down_payment": 60000, "interest_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "annual_insurance": 0, "monthly_hoa": 0, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"annual_income\":90000,\"monthly_debt\":500,\"down_payment\":60000,\"interest_rate\":6.5,\"loan_term\":\"30\",\"property_tax_rate\":1.1,\"annual_insurance\":0,\"monthly_hoa\":0}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`home-affordability-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/home-affordability-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/home-affordability-calculator/prompt.md`](/tools/home-affordability-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Home Affordability Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Home Affordability Calculator** — Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_income` | float | no | gross annual household income (default `90000`) | | `monthly_debt` | float | no | existing monthly debt payments (default `500`) | | `down_payment` | float | no | cash down payment (default `60000`) | | `interest_rate` | float | no | annual mortgage rate % (default `6.5`) | | `loan_term` | str | no | one of: 30, 20, 15, 10 — 30 \| 20 \| 15 \| 10 (default `30`) | | `property_tax_rate` | float | no | annual property tax as % of value (default `1.1`) | | `annual_insurance` | float | no | annual homeowners insurance, 0 to estimate (default `0`) | | `monthly_hoa` | float | no | monthly HOA fees (default `0`) | Example request body: ```json { "annual_income": 90000, "monthly_debt": 500, "down_payment": 60000, "interest_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "annual_insurance": 0, "monthly_hoa": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "home-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "annual_income": 90000.0, "monthly_income": 7500.0, "monthly_debt": 500.0, "max_home_price": 315170.54, "max_loan_amount": 255170.54, "down_payment": 60000.0, "down_payment_pct": 19.04, "max_monthly_housing_payment": 2100.0, "monthly_principal_interest": 1612.85, "monthly_property_tax": 288.91, "monthly_home_insurance": 91.92, "monthly_pmi": 106.32, "monthly_hoa": 0.0, "total_monthly_payment": 2100.0, "front_end_ratio_pct": 28.0, "back_end_ratio_pct": 34.67, "affordability_rating": "acceptable", "loan_term_years": 30, "rule": "28/36" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Home Affordability Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Home Affordability Calculator** — Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_income` | float | no | gross annual household income (default `90000`) | | `monthly_debt` | float | no | existing monthly debt payments (default `500`) | | `down_payment` | float | no | cash down payment (default `60000`) | | `interest_rate` | float | no | annual mortgage rate % (default `6.5`) | | `loan_term` | str | no | one of: 30, 20, 15, 10 — 30 \| 20 \| 15 \| 10 (default `30`) | | `property_tax_rate` | float | no | annual property tax as % of value (default `1.1`) | | `annual_insurance` | float | no | annual homeowners insurance, 0 to estimate (default `0`) | | `monthly_hoa` | float | no | monthly HOA fees (default `0`) | Example request body: ```json { "annual_income": 90000, "monthly_debt": 500, "down_payment": 60000, "interest_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "annual_insurance": 0, "monthly_hoa": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "home-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "annual_income": 90000.0, "monthly_income": 7500.0, "monthly_debt": 500.0, "max_home_price": 315170.54, "max_loan_amount": 255170.54, "down_payment": 60000.0, "down_payment_pct": 19.04, "max_monthly_housing_payment": 2100.0, "monthly_principal_interest": 1612.85, "monthly_property_tax": 288.91, "monthly_home_insurance": 91.92, "monthly_pmi": 106.32, "monthly_hoa": 0.0, "total_monthly_payment": 2100.0, "front_end_ratio_pct": 28.0, "back_end_ratio_pct": 34.67, "affordability_rating": "acceptable", "loan_term_years": 30, "rule": "28/36" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-home-affordability-calculator.mdc copy prompt ```text --- description: MiniWebtool Home Affordability Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Home Affordability Calculator API ## The API **Home Affordability Calculator** — Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/home-affordability-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `annual_income` | float | no | gross annual household income (default `90000`) | | `monthly_debt` | float | no | existing monthly debt payments (default `500`) | | `down_payment` | float | no | cash down payment (default `60000`) | | `interest_rate` | float | no | annual mortgage rate % (default `6.5`) | | `loan_term` | str | no | one of: 30, 20, 15, 10 — 30 \| 20 \| 15 \| 10 (default `30`) | | `property_tax_rate` | float | no | annual property tax as % of value (default `1.1`) | | `annual_insurance` | float | no | annual homeowners insurance, 0 to estimate (default `0`) | | `monthly_hoa` | float | no | monthly HOA fees (default `0`) | Example request body: ```json { "annual_income": 90000, "monthly_debt": 500, "down_payment": 60000, "interest_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "annual_insurance": 0, "monthly_hoa": 0 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "home-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "annual_income": 90000.0, "monthly_income": 7500.0, "monthly_debt": 500.0, "max_home_price": 315170.54, "max_loan_amount": 255170.54, "down_payment": 60000.0, "down_payment_pct": 19.04, "max_monthly_housing_payment": 2100.0, "monthly_principal_interest": 1612.85, "monthly_property_tax": 288.91, "monthly_home_insurance": 91.92, "monthly_pmi": 106.32, "monthly_hoa": 0.0, "total_monthly_payment": 2100.0, "front_end_ratio_pct": 28.0, "back_end_ratio_pct": 34.67, "affordability_rating": "acceptable", "loan_term_years": 30, "rule": "28/36" } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `home-affordability-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `home-affordability-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call home-affordability-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/home-affordability-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Home Affordability Calculator API do? + Maximum home price under the 28/36 rule with the full escrow breakdown and DTI ratios. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Home Affordability Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Home Affordability Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Home Affordability Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Home Affordability Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `home-affordability-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`home-affordability-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"home-affordability-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Rent Affordability Calculator API # Rent Affordability Calculator API finance 1 credit / call v2026-04-22 visual chart data Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. One POST adds Rent Affordability Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Rent Affordability Calculator on miniwebtool.com →](https://miniwebtool.com/rent-affordability-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run ``` ### Request body Field Type Req. `monthly_income` `float` — `rent_percent` `float` — `monthly_debt` `float` — `utilities` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "rent-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → monthly_income (float) rent_percent (float) monthly_debt (float) utilities (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`rent-affordability-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={}, ) resp.raise_for_status() data = resp.json() print(data) result = data['result'] chart_data = result.get('chart_data', {}) balance_series = ( chart_data.get('balance_over_time') or chart_data.get('minimum_payment_balance_over_time') or chart_data.get('series') or chart_data.get('points') or [] ) breakdown = ( chart_data.get('payment_breakdown') or chart_data.get('monthly_payment_breakdown') or chart_data.get('total_cost_breakdown') or chart_data.get('breakdown') or chart_data.get('comparison') or [] ) strategy_series = chart_data.get('payment_strategy_comparison', []) def chart_label(point): return point.get('label') or point.get('month') or point.get('year') or point.get('n') or point.get('x') def chart_value(point): return point.get('value') or point.get('ending_balance') or point.get('y') or point.get('total_interest') print('chart labels:', [chart_label(point) for point in balance_series]) print('chart values:', [chart_value(point) for point in balance_series]) print('breakdown:', breakdown) print('strategy interest:', [(item['label'], item['total_interest']) for item in strategy_series]) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({}), } ); const data = await resp.json(); console.log(data); const result = data.result; const chartData = result.chart_data?? {}; const balanceSeries = chartData.balance_over_time?? chartData.minimum_payment_balance_over_time?? chartData.series?? chartData.points?? []; const breakdown = chartData.payment_breakdown?? chartData.monthly_payment_breakdown?? chartData.total_cost_breakdown?? chartData.breakdown?? chartData.comparison?? []; // Pass these arrays to Chart.js, Recharts, ECharts, etc. const chartLabel = (item) => item.label?? item.month?? item.year?? item.n?? item.x; const chartValue = (item) => item.value?? item.ending_balance?? item.y?? item.total_interest; const balanceChart = { labels: balanceSeries.map(chartLabel), values: balanceSeries.map(chartValue), }; const breakdownChart = { labels: breakdown.map(chartLabel), values: breakdown.map(chartValue), }; const strategySeries = chartData.payment_strategy_comparison?? []; const strategyChart = { labels: strategySeries.map((item) => item.label), values: strategySeries.map((item) => item.total_interest), }; console.log({ balanceChart, breakdownChart, strategyChart }); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ , }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`rent-affordability-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/rent-affordability-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/rent-affordability-calculator/prompt.md`](/tools/rent-affordability-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Rent Affordability Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Rent Affordability Calculator** — Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `monthly_income` | float | no | (default `6000`) | | `rent_percent` | float | no | (default `30`) | | `monthly_debt` | float | no | (default `500`) | | `utilities` | float | no | (default `250`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rent-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "monthly_income": 6000.0, "rent_percent": 30.0, "gross_rent_budget": 1800.0, "monthly_debt": 500.0, "utilities": 250.0, "affordable_rent": 1050.0, "total_housing_budget": 1300.0, "remaining_income_after_debt_and_housing": 4200.0, "chart_data": { "breakdown": [ { "label": "Rent", "value": 1050.0 }, { "label": "Utilities", "value": 250.0 }, { "label": "Debt", "value": 500.0 }, { "label": "Remaining", "value": 4200.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Rent Affordability Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Rent Affordability Calculator** — Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `monthly_income` | float | no | (default `6000`) | | `rent_percent` | float | no | (default `30`) | | `monthly_debt` | float | no | (default `500`) | | `utilities` | float | no | (default `250`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rent-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "monthly_income": 6000.0, "rent_percent": 30.0, "gross_rent_budget": 1800.0, "monthly_debt": 500.0, "utilities": 250.0, "affordable_rent": 1050.0, "total_housing_budget": 1300.0, "remaining_income_after_debt_and_housing": 4200.0, "chart_data": { "breakdown": [ { "label": "Rent", "value": 1050.0 }, { "label": "Utilities", "value": 250.0 }, { "label": "Debt", "value": 500.0 }, { "label": "Remaining", "value": 4200.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-rent-affordability-calculator.mdc copy prompt ```text --- description: MiniWebtool Rent Affordability Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Rent Affordability Calculator API ## The API **Rent Affordability Calculator** — Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `monthly_income` | float | no | (default `6000`) | | `rent_percent` | float | no | (default `30`) | | `monthly_debt` | float | no | (default `500`) | | `utilities` | float | no | (default `250`) | | `precision` | int | no | (default `2`) | Example request body: ```json {} ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rent-affordability-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "monthly_income": 6000.0, "rent_percent": 30.0, "gross_rent_budget": 1800.0, "monthly_debt": 500.0, "utilities": 250.0, "affordable_rent": 1050.0, "total_housing_budget": 1300.0, "remaining_income_after_debt_and_housing": 4200.0, "chart_data": { "breakdown": [ { "label": "Rent", "value": 1050.0 }, { "label": "Utilities", "value": 250.0 }, { "label": "Debt", "value": 500.0 }, { "label": "Remaining", "value": 4200.0 } ] } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `rent-affordability-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `rent-affordability-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call rent-affordability-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/rent-affordability-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Rent Affordability Calculator API do? + Estimate affordable monthly rent from income, debt, utilities, and rent budget percent. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Rent Affordability Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Rent Affordability Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Rent Affordability Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Does the Rent Affordability Calculator API include visual chart data? + Yes. Successful responses include `result.chart_data` with compact arrays for line or bar charts, so clients can render visuals with Chart.js, Recharts, ECharts, SVG, or canvas without requesting an image. Can an AI agent call the Rent Affordability Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `rent-affordability-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`rent-affordability-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"rent-affordability-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Rent vs Buy Calculator API # Rent vs Buy Calculator API finance 2 credits / call v2026-04-22 Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. One POST adds Rent vs Buy Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Rent vs Buy Calculator on miniwebtool.com →](https://miniwebtool.com/rent-vs-buy-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run ``` ### Request body Field Type Req. `home_price` purchase price `float` — `down_payment_pct` down payment % of price `float` — `mortgage_rate` annual mortgage rate % `float` — `loan_term` 30 | 20 | 15 `str` — `property_tax_rate` annual property tax % of value `float` — `home_insurance` annual homeowners insurance `float` — `hoa_fees` monthly HOA fees `float` — `maintenance_rate` annual maintenance % of value `float` — `closing_cost_pct` closing costs % of price `float` — `home_appreciation` annual home appreciation % `float` — `selling_cost_pct` cost to sell % of value `float` — `monthly_rent` current monthly rent `float` — `rent_increase` annual rent increase % `float` — `renters_insurance` monthly renters insurance `float` — `investment_return` annual investment return % `float` — `tax_bracket` marginal tax bracket % `float` — `time_horizon` years to compare `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "rent-vs-buy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → home_price (float) purchase price down_payment_pct (float) down payment % of price mortgage_rate (float) annual mortgage rate % loan_term (str) 30 20 15 30 | 20 | 15 property_tax_rate (float) annual property tax % of value home_insurance (float) annual homeowners insurance hoa_fees (float) monthly HOA fees maintenance_rate (float) annual maintenance % of value closing_cost_pct (float) closing costs % of price home_appreciation (float) annual home appreciation % selling_cost_pct (float) cost to sell % of value monthly_rent (float) current monthly rent rent_increase (float) annual rent increase % renters_insurance (float) monthly renters insurance investment_return (float) annual investment return % tax_bracket (float) marginal tax bracket % time_horizon (int) years to compare Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`rent-vs-buy-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"home_price":400000,"down_payment_pct":20,"mortgage_rate":6.5,"loan_term":"30","property_tax_rate":1.1,"home_insurance":1800,"hoa_fees":0,"maintenance_rate":1.0,"closing_cost_pct":3.0,"home_appreciation":3.0,"selling_cost_pct":6.0,"monthly_rent":2200,"rent_increase":3.0,"renters_insurance":15,"investment_return":7.0,"tax_bracket":22,"time_horizon":10}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'home_price': 400000, 'down_payment_pct': 20, 'mortgage_rate': 6.5, 'loan_term': '30', 'property_tax_rate': 1.1, 'home_insurance': 1800, 'hoa_fees': 0, 'maintenance_rate': 1.0, 'closing_cost_pct': 3.0, 'home_appreciation': 3.0, 'selling_cost_pct': 6.0, 'monthly_rent': 2200, 'rent_increase': 3.0, 'renters_insurance': 15, 'investment_return': 7.0, 'tax_bracket': 22, 'time_horizon': 10}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"home_price":400000,"down_payment_pct":20,"mortgage_rate":6.5,"loan_term":"30","property_tax_rate":1.1,"home_insurance":1800,"hoa_fees":0,"maintenance_rate":1.0,"closing_cost_pct":3.0,"home_appreciation":3.0,"selling_cost_pct":6.0,"monthly_rent":2200,"rent_increase":3.0,"renters_insurance":15,"investment_return":7.0,"tax_bracket":22,"time_horizon":10}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'home_price' => 400000, 'down_payment_pct' => 20, 'mortgage_rate' => 6.5, 'loan_term' => '30', 'property_tax_rate' => 1.1, 'home_insurance' => 1800, 'hoa_fees' => 0, 'maintenance_rate' => 1.0, 'closing_cost_pct' => 3.0, 'home_appreciation' => 3.0, 'selling_cost_pct' => 6.0, 'monthly_rent' => 2200, 'rent_increase' => 3.0, 'renters_insurance' => 15, 'investment_return' => 7.0, 'tax_bracket' => 22, 'time_horizon' => 10 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'home_price' => 400000, 'down_payment_pct' => 20, 'mortgage_rate' => 6.5, 'loan_term' => '30', 'property_tax_rate' => 1.1, 'home_insurance' => 1800, 'hoa_fees' => 0, 'maintenance_rate' => 1.0, 'closing_cost_pct' => 3.0, 'home_appreciation' => 3.0, 'selling_cost_pct' => 6.0, 'monthly_rent' => 2200, 'rent_increase' => 3.0, 'renters_insurance' => 15, 'investment_return' => 7.0, 'tax_bracket' => 22, 'time_horizon' => 10 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "home_price": 400000, "down_payment_pct": 20, "mortgage_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "home_insurance": 1800, "hoa_fees": 0, "maintenance_rate": 1.0, "closing_cost_pct": 3.0, "home_appreciation": 3.0, "selling_cost_pct": 6.0, "monthly_rent": 2200, "rent_increase": 3.0, "renters_insurance": 15, "investment_return": 7.0, "tax_bracket": 22, "time_horizon": 10, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"home_price\":400000,\"down_payment_pct\":20,\"mortgage_rate\":6.5,\"loan_term\":\"30\",\"property_tax_rate\":1.1,\"home_insurance\":1800,\"hoa_fees\":0,\"maintenance_rate\":1.0,\"closing_cost_pct\":3.0,\"home_appreciation\":3.0,\"selling_cost_pct\":6.0,\"monthly_rent\":2200,\"rent_increase\":3.0,\"renters_insurance\":15,\"investment_return\":7.0,\"tax_bracket\":22,\"time_horizon\":10}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`rent-vs-buy-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/rent-vs-buy-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/rent-vs-buy-calculator/prompt.md`](/tools/rent-vs-buy-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Rent vs Buy Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Rent vs Buy Calculator** — Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `home_price` | float | no | purchase price (default `400000`) | | `down_payment_pct` | float | no | down payment % of price (default `20`) | | `mortgage_rate` | float | no | annual mortgage rate % (default `6.5`) | | `loan_term` | str | no | one of: 30, 20, 15 — 30 \| 20 \| 15 (default `30`) | | `property_tax_rate` | float | no | annual property tax % of value (default `1.1`) | | `home_insurance` | float | no | annual homeowners insurance (default `1800`) | | `hoa_fees` | float | no | monthly HOA fees (default `0`) | | `maintenance_rate` | float | no | annual maintenance % of value (default `1.0`) | | `closing_cost_pct` | float | no | closing costs % of price (default `3.0`) | | `home_appreciation` | float | no | annual home appreciation % (default `3.0`) | | `selling_cost_pct` | float | no | cost to sell % of value (default `6.0`) | | `monthly_rent` | float | no | current monthly rent (default `2200`) | | `rent_increase` | float | no | annual rent increase % (default `3.0`) | | `renters_insurance` | float | no | monthly renters insurance (default `15`) | | `investment_return` | float | no | annual investment return % (default `7.0`) | | `tax_bracket` | float | no | marginal tax bracket % (default `22`) | | `time_horizon` | int | no | years to compare (default `10`) | Example request body: ```json { "home_price": 400000, "down_payment_pct": 20, "mortgage_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "home_insurance": 1800, "hoa_fees": 0, "maintenance_rate": 1.0, "closing_cost_pct": 3.0, "home_appreciation": 3.0, "selling_cost_pct": 6.0, "monthly_rent": 2200, "rent_increase": 3.0, "renters_insurance": 15, "investment_return": 7.0, "tax_bracket": 22, "time_horizon": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rent-vs-buy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "home_price": 400000.0, "down_payment": 80000.0, "loan_amount": 320000.0, "closing_costs": 12000.0, "monthly_mortgage_payment": 2022.62, "time_horizon_years": 10, "total_buying_cost": 406331.21, "total_renting_cost": 304446.41, "total_mortgage_interest": 193997.73, "total_tax_savings": 42679.5, "final_home_value": 537566.55, "final_net_home_equity": 234028.95, "buyer_total_wealth": 234028.95, "renter_total_wealth": 266178.62, "net_advantage": -32149.66, "recommendation": "rent", "breakeven_year": null, "yearly": [ { "year": 1, "buy_yearly_cost": 29918.58, "rent_yearly_cost": 26580.0, "home_value": 412000.0, "remaining_balance": 316423.28, "net_home_equity": 70856.72, "buyer_total_wealth": 70856.72, "renter_total_wealth": 106847.81, "net_advantage": -35991.09, "monthly_rent": 2266.0 }, { "year": 2, "buy_yearly_cost": 30223.28, "rent_yearly_cost": 27372.0, "home_value": 424360.0, "remaining_balance": 312607.02, "net_home_equity": 86291.38, "buyer_total_wealth": 86291.38, "renter_total_wealth": 122208.05, "net_advantage": -35916.67, "monthly_rent": 2333.98 }, { "year": 3, "buy_yearly_cost": 30539.07, "rent_yearly_cost": 28187.76, "home_value": 437090.8, "remaining_balance": 308535.17, "net_home_equity": 102330.18, "buyer_total_wealth": 102330.18, "renter_total_wealth": 138100.94, "net_advantage": -35770.76, "monthly_rent": 2404.0 }, { "year": 4, "buy_yearly_cost": 30866.41, "rent_yearly_cost": 29027.99, "home_value": 450203.52, "remaining_balance": 304190.63, "net_home_equity": 119000.68, "buyer_total_wealth": 119000.68, "renter_total_wealth": 154547.64, "net_advantage": -35546.96, "monthly_rent": 2476.12 }, { "year": 5, "buy_yearly_cost": 31205.79, "rent_yearly_cost": 29893.43, "home_value": 463709.63, "remaining_balance": 299555.13, "net_home_equity": 136331.92, "buyer_total_wealth": 136331.92, "renter_total_wealth": 171570.35, "net_advantage": -35238.42, "monthly_rent": 2550.4 }, { "year": 6, "buy_yearly_cost": 31557.71, "rent_yearly_cost": 30784.84, "home_value": 477620.92, "remaining_balance": 294609.18, "net_home_equity": 154354.49, "buyer_total_wealth": 154354.49, "renter_total_wealth": 189192.31, "net_advantage": -34837.82, "monthly_rent": 2626.92 }, { "year": 7, "buy_yearly_cost": 31922.72, "rent_yearly_cost": 31702.98, "home_value": 491949.55, "remaining_balance": 289331.98, "net_home_equity": 173100.59, "buyer_total_wealth": 173100.59, "renter_total_wealth": 207437.9, "net_advantage": -34337.31, "monthly_rent": 2705.72 }, { "year": 8, "buy_yearly_cost": 32301.38, "rent_yearly_cost": 32648.67, "home_value": 506708.03, "remaining_balance": 283701.37, "net_home_equity": 192604.18, "buyer_total_wealth": 192604.18, "renter_total_wealth": 226332.7, "net_advantage": -33728.52, "monthly_rent": 2786.89 }, { "year": 9, "buy_yearly_cost": 32694.27, "rent_yearly_cost": 33622.73, "home_value": 521909.27, "remaining_balance": 277693.66, "net_home_equity": 212901.06, "buyer_total_wealth": 212901.06, "renter_total_wealth": 245903.55, "net_advantage": -33002.49, "monthly_rent": 2870.5 }, { "year": 10, "buy_yearly_cost": 33102.01, "rent_yearly_cost": 34626.01, "home_value": 537566.55, "remaining_balance": 271283.6, "net_home_equity": 234028.95, "buyer_total_wealth": 234028.95, "renter_total_wealth": 266178.62, "net_advantage": -32149.66, "monthly_rent": 2956.62 } ], "note": "The renter is assumed to invest the down payment, closing costs and any monthly cost difference at the given return." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Rent vs Buy Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Rent vs Buy Calculator** — Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `home_price` | float | no | purchase price (default `400000`) | | `down_payment_pct` | float | no | down payment % of price (default `20`) | | `mortgage_rate` | float | no | annual mortgage rate % (default `6.5`) | | `loan_term` | str | no | one of: 30, 20, 15 — 30 \| 20 \| 15 (default `30`) | | `property_tax_rate` | float | no | annual property tax % of value (default `1.1`) | | `home_insurance` | float | no | annual homeowners insurance (default `1800`) | | `hoa_fees` | float | no | monthly HOA fees (default `0`) | | `maintenance_rate` | float | no | annual maintenance % of value (default `1.0`) | | `closing_cost_pct` | float | no | closing costs % of price (default `3.0`) | | `home_appreciation` | float | no | annual home appreciation % (default `3.0`) | | `selling_cost_pct` | float | no | cost to sell % of value (default `6.0`) | | `monthly_rent` | float | no | current monthly rent (default `2200`) | | `rent_increase` | float | no | annual rent increase % (default `3.0`) | | `renters_insurance` | float | no | monthly renters insurance (default `15`) | | `investment_return` | float | no | annual investment return % (default `7.0`) | | `tax_bracket` | float | no | marginal tax bracket % (default `22`) | | `time_horizon` | int | no | years to compare (default `10`) | Example request body: ```json { "home_price": 400000, "down_payment_pct": 20, "mortgage_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "home_insurance": 1800, "hoa_fees": 0, "maintenance_rate": 1.0, "closing_cost_pct": 3.0, "home_appreciation": 3.0, "selling_cost_pct": 6.0, "monthly_rent": 2200, "rent_increase": 3.0, "renters_insurance": 15, "investment_return": 7.0, "tax_bracket": 22, "time_horizon": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rent-vs-buy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "home_price": 400000.0, "down_payment": 80000.0, "loan_amount": 320000.0, "closing_costs": 12000.0, "monthly_mortgage_payment": 2022.62, "time_horizon_years": 10, "total_buying_cost": 406331.21, "total_renting_cost": 304446.41, "total_mortgage_interest": 193997.73, "total_tax_savings": 42679.5, "final_home_value": 537566.55, "final_net_home_equity": 234028.95, "buyer_total_wealth": 234028.95, "renter_total_wealth": 266178.62, "net_advantage": -32149.66, "recommendation": "rent", "breakeven_year": null, "yearly": [ { "year": 1, "buy_yearly_cost": 29918.58, "rent_yearly_cost": 26580.0, "home_value": 412000.0, "remaining_balance": 316423.28, "net_home_equity": 70856.72, "buyer_total_wealth": 70856.72, "renter_total_wealth": 106847.81, "net_advantage": -35991.09, "monthly_rent": 2266.0 }, { "year": 2, "buy_yearly_cost": 30223.28, "rent_yearly_cost": 27372.0, "home_value": 424360.0, "remaining_balance": 312607.02, "net_home_equity": 86291.38, "buyer_total_wealth": 86291.38, "renter_total_wealth": 122208.05, "net_advantage": -35916.67, "monthly_rent": 2333.98 }, { "year": 3, "buy_yearly_cost": 30539.07, "rent_yearly_cost": 28187.76, "home_value": 437090.8, "remaining_balance": 308535.17, "net_home_equity": 102330.18, "buyer_total_wealth": 102330.18, "renter_total_wealth": 138100.94, "net_advantage": -35770.76, "monthly_rent": 2404.0 }, { "year": 4, "buy_yearly_cost": 30866.41, "rent_yearly_cost": 29027.99, "home_value": 450203.52, "remaining_balance": 304190.63, "net_home_equity": 119000.68, "buyer_total_wealth": 119000.68, "renter_total_wealth": 154547.64, "net_advantage": -35546.96, "monthly_rent": 2476.12 }, { "year": 5, "buy_yearly_cost": 31205.79, "rent_yearly_cost": 29893.43, "home_value": 463709.63, "remaining_balance": 299555.13, "net_home_equity": 136331.92, "buyer_total_wealth": 136331.92, "renter_total_wealth": 171570.35, "net_advantage": -35238.42, "monthly_rent": 2550.4 }, { "year": 6, "buy_yearly_cost": 31557.71, "rent_yearly_cost": 30784.84, "home_value": 477620.92, "remaining_balance": 294609.18, "net_home_equity": 154354.49, "buyer_total_wealth": 154354.49, "renter_total_wealth": 189192.31, "net_advantage": -34837.82, "monthly_rent": 2626.92 }, { "year": 7, "buy_yearly_cost": 31922.72, "rent_yearly_cost": 31702.98, "home_value": 491949.55, "remaining_balance": 289331.98, "net_home_equity": 173100.59, "buyer_total_wealth": 173100.59, "renter_total_wealth": 207437.9, "net_advantage": -34337.31, "monthly_rent": 2705.72 }, { "year": 8, "buy_yearly_cost": 32301.38, "rent_yearly_cost": 32648.67, "home_value": 506708.03, "remaining_balance": 283701.37, "net_home_equity": 192604.18, "buyer_total_wealth": 192604.18, "renter_total_wealth": 226332.7, "net_advantage": -33728.52, "monthly_rent": 2786.89 }, { "year": 9, "buy_yearly_cost": 32694.27, "rent_yearly_cost": 33622.73, "home_value": 521909.27, "remaining_balance": 277693.66, "net_home_equity": 212901.06, "buyer_total_wealth": 212901.06, "renter_total_wealth": 245903.55, "net_advantage": -33002.49, "monthly_rent": 2870.5 }, { "year": 10, "buy_yearly_cost": 33102.01, "rent_yearly_cost": 34626.01, "home_value": 537566.55, "remaining_balance": 271283.6, "net_home_equity": 234028.95, "buyer_total_wealth": 234028.95, "renter_total_wealth": 266178.62, "net_advantage": -32149.66, "monthly_rent": 2956.62 } ], "note": "The renter is assumed to invest the down payment, closing costs and any monthly cost difference at the given return." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-rent-vs-buy-calculator.mdc copy prompt ```text --- description: MiniWebtool Rent vs Buy Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Rent vs Buy Calculator API ## The API **Rent vs Buy Calculator** — Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `home_price` | float | no | purchase price (default `400000`) | | `down_payment_pct` | float | no | down payment % of price (default `20`) | | `mortgage_rate` | float | no | annual mortgage rate % (default `6.5`) | | `loan_term` | str | no | one of: 30, 20, 15 — 30 \| 20 \| 15 (default `30`) | | `property_tax_rate` | float | no | annual property tax % of value (default `1.1`) | | `home_insurance` | float | no | annual homeowners insurance (default `1800`) | | `hoa_fees` | float | no | monthly HOA fees (default `0`) | | `maintenance_rate` | float | no | annual maintenance % of value (default `1.0`) | | `closing_cost_pct` | float | no | closing costs % of price (default `3.0`) | | `home_appreciation` | float | no | annual home appreciation % (default `3.0`) | | `selling_cost_pct` | float | no | cost to sell % of value (default `6.0`) | | `monthly_rent` | float | no | current monthly rent (default `2200`) | | `rent_increase` | float | no | annual rent increase % (default `3.0`) | | `renters_insurance` | float | no | monthly renters insurance (default `15`) | | `investment_return` | float | no | annual investment return % (default `7.0`) | | `tax_bracket` | float | no | marginal tax bracket % (default `22`) | | `time_horizon` | int | no | years to compare (default `10`) | Example request body: ```json { "home_price": 400000, "down_payment_pct": 20, "mortgage_rate": 6.5, "loan_term": "30", "property_tax_rate": 1.1, "home_insurance": 1800, "hoa_fees": 0, "maintenance_rate": 1.0, "closing_cost_pct": 3.0, "home_appreciation": 3.0, "selling_cost_pct": 6.0, "monthly_rent": 2200, "rent_increase": 3.0, "renters_insurance": 15, "investment_return": 7.0, "tax_bracket": 22, "time_horizon": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "rent-vs-buy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "home_price": 400000.0, "down_payment": 80000.0, "loan_amount": 320000.0, "closing_costs": 12000.0, "monthly_mortgage_payment": 2022.62, "time_horizon_years": 10, "total_buying_cost": 406331.21, "total_renting_cost": 304446.41, "total_mortgage_interest": 193997.73, "total_tax_savings": 42679.5, "final_home_value": 537566.55, "final_net_home_equity": 234028.95, "buyer_total_wealth": 234028.95, "renter_total_wealth": 266178.62, "net_advantage": -32149.66, "recommendation": "rent", "breakeven_year": null, "yearly": [ { "year": 1, "buy_yearly_cost": 29918.58, "rent_yearly_cost": 26580.0, "home_value": 412000.0, "remaining_balance": 316423.28, "net_home_equity": 70856.72, "buyer_total_wealth": 70856.72, "renter_total_wealth": 106847.81, "net_advantage": -35991.09, "monthly_rent": 2266.0 }, { "year": 2, "buy_yearly_cost": 30223.28, "rent_yearly_cost": 27372.0, "home_value": 424360.0, "remaining_balance": 312607.02, "net_home_equity": 86291.38, "buyer_total_wealth": 86291.38, "renter_total_wealth": 122208.05, "net_advantage": -35916.67, "monthly_rent": 2333.98 }, { "year": 3, "buy_yearly_cost": 30539.07, "rent_yearly_cost": 28187.76, "home_value": 437090.8, "remaining_balance": 308535.17, "net_home_equity": 102330.18, "buyer_total_wealth": 102330.18, "renter_total_wealth": 138100.94, "net_advantage": -35770.76, "monthly_rent": 2404.0 }, { "year": 4, "buy_yearly_cost": 30866.41, "rent_yearly_cost": 29027.99, "home_value": 450203.52, "remaining_balance": 304190.63, "net_home_equity": 119000.68, "buyer_total_wealth": 119000.68, "renter_total_wealth": 154547.64, "net_advantage": -35546.96, "monthly_rent": 2476.12 }, { "year": 5, "buy_yearly_cost": 31205.79, "rent_yearly_cost": 29893.43, "home_value": 463709.63, "remaining_balance": 299555.13, "net_home_equity": 136331.92, "buyer_total_wealth": 136331.92, "renter_total_wealth": 171570.35, "net_advantage": -35238.42, "monthly_rent": 2550.4 }, { "year": 6, "buy_yearly_cost": 31557.71, "rent_yearly_cost": 30784.84, "home_value": 477620.92, "remaining_balance": 294609.18, "net_home_equity": 154354.49, "buyer_total_wealth": 154354.49, "renter_total_wealth": 189192.31, "net_advantage": -34837.82, "monthly_rent": 2626.92 }, { "year": 7, "buy_yearly_cost": 31922.72, "rent_yearly_cost": 31702.98, "home_value": 491949.55, "remaining_balance": 289331.98, "net_home_equity": 173100.59, "buyer_total_wealth": 173100.59, "renter_total_wealth": 207437.9, "net_advantage": -34337.31, "monthly_rent": 2705.72 }, { "year": 8, "buy_yearly_cost": 32301.38, "rent_yearly_cost": 32648.67, "home_value": 506708.03, "remaining_balance": 283701.37, "net_home_equity": 192604.18, "buyer_total_wealth": 192604.18, "renter_total_wealth": 226332.7, "net_advantage": -33728.52, "monthly_rent": 2786.89 }, { "year": 9, "buy_yearly_cost": 32694.27, "rent_yearly_cost": 33622.73, "home_value": 521909.27, "remaining_balance": 277693.66, "net_home_equity": 212901.06, "buyer_total_wealth": 212901.06, "renter_total_wealth": 245903.55, "net_advantage": -33002.49, "monthly_rent": 2870.5 }, { "year": 10, "buy_yearly_cost": 33102.01, "rent_yearly_cost": 34626.01, "home_value": 537566.55, "remaining_balance": 271283.6, "net_home_equity": 234028.95, "buyer_total_wealth": 234028.95, "renter_total_wealth": 266178.62, "net_advantage": -32149.66, "monthly_rent": 2956.62 } ], "note": "The renter is assumed to invest the down payment, closing costs and any monthly cost difference at the given return." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `rent-vs-buy-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `rent-vs-buy-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call rent-vs-buy-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/rent-vs-buy-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Rent vs Buy Calculator API do? + Year-by-year wealth comparison of renting and investing versus buying, with the breakeven year. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Rent vs Buy Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Rent vs Buy Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Rent vs Buy Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Rent vs Buy Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `rent-vs-buy-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`rent-vs-buy-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"rent-vs-buy-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - APR Calculator API # APR Calculator API finance 2 credits / call v2026-04-22 Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. One POST adds APR Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the APR Calculator on miniwebtool.com →](https://miniwebtool.com/apr-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/apr-calculator/run ``` ### Request body Field Type Req. `loan_amount` `float` ✓ `extra_cost` `float` — `interest_rate_percent` `float` — `term_months` `int` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → loan_amount (float) * extra_cost (float) interest_rate_percent (float) term_months (int) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`apr-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/apr-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"loan_amount":250000,"extra_cost":5000,"interest_rate_percent":6.5,"term_months":360}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/apr-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'loan_amount': 250000, 'extra_cost': 5000, 'interest_rate_percent': 6.5, 'term_months': 360}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/apr-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"loan_amount":250000,"extra_cost":5000,"interest_rate_percent":6.5,"term_months":360}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'loan_amount' => 250000, 'extra_cost' => 5000, 'interest_rate_percent' => 6.5, 'term_months' => 360 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/apr-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'loan_amount' => 250000, 'extra_cost' => 5000, 'interest_rate_percent' => 6.5, 'term_months' => 360 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "loan_amount": 250000, "extra_cost": 5000, "interest_rate_percent": 6.5, "term_months": 360, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/apr-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/apr-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"loan_amount\":250000,\"extra_cost\":5000,\"interest_rate_percent\":6.5,\"term_months\":360}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`apr-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/apr-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/apr-calculator/prompt.md`](/tools/apr-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool APR Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APR Calculator** — Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apr-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `loan_amount` | float | yes | — | | `extra_cost` | float | no | (default `0.0`) | | `interest_rate_percent` | float | no | (default `6.5`) | | `term_months` | int | no | (default `360`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "loan_amount": 250000, "extra_cost": 5000, "interest_rate_percent": 6.5, "term_months": 360 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "loan_amount": 250000.0, "extra_cost": 5000.0, "financed_amount": 255000.0, "term_months": 360, "interest_rate_percent": 6.5, "apr_percent": 6.6914, "apr_spread_percent": 0.1914, "monthly_payment": 1611.77, "total_payment": 580238.45, "interest_on_financed_amount": 325238.45, "finance_charge": 330238.45, "schedule_sample": [ { "month": 1, "payment": 1611.7735, "principal": 230.5235, "interest": 1381.25, "ending_balance": 254769.4765 }, { "month": 2, "payment": 1611.7735, "principal": 231.7721, "interest": 1380.0013, "ending_balance": 254537.7044 }, { "month": 3, "payment": 1611.7735, "principal": 233.0276, "interest": 1378.7459, "ending_balance": 254304.6769 }, { "month": 4, "payment": 1611.7735, "principal": 234.2898, "interest": 1377.4837, "ending_balance": 254070.3871 }, { "month": 5, "payment": 1611.7735, "principal": 235.5589, "interest": 1376.2146, "ending_balance": 253834.8282 }, { "month": 6, "payment": 1611.7735, "principal": 236.8348, "interest": 1374.9387, "ending_balance": 253597.9934 }, { "month": 7, "payment": 1611.7735, "principal": 238.1177, "interest": 1373.6558, "ending_balance": 253359.8757 }, { "month": 8, "payment": 1611.7735, "principal": 239.4075, "interest": 1372.366, "ending_balance": 253120.4683 }, { "month": 9, "payment": 1611.7735, "principal": 240.7043, "interest": 1371.0692, "ending_balance": 252879.764 }, { "month": 10, "payment": 1611.7735, "principal": 242.0081, "interest": 1369.7654, "ending_balance": 252637.7559 }, { "month": 11, "payment": 1611.7735, "principal": 243.3189, "interest": 1368.4545, "ending_balance": 252394.437 }, { "month": 12, "payment": 1611.7735, "principal": 244.6369, "interest": 1367.1365, "ending_balance": 252149.8001 }, { "month": 360, "payment": 1611.7735, "principal": 1603.0901, "interest": 8.6834, "ending_balance": 0.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool APR Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APR Calculator** — Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apr-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `loan_amount` | float | yes | — | | `extra_cost` | float | no | (default `0.0`) | | `interest_rate_percent` | float | no | (default `6.5`) | | `term_months` | int | no | (default `360`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "loan_amount": 250000, "extra_cost": 5000, "interest_rate_percent": 6.5, "term_months": 360 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "loan_amount": 250000.0, "extra_cost": 5000.0, "financed_amount": 255000.0, "term_months": 360, "interest_rate_percent": 6.5, "apr_percent": 6.6914, "apr_spread_percent": 0.1914, "monthly_payment": 1611.77, "total_payment": 580238.45, "interest_on_financed_amount": 325238.45, "finance_charge": 330238.45, "schedule_sample": [ { "month": 1, "payment": 1611.7735, "principal": 230.5235, "interest": 1381.25, "ending_balance": 254769.4765 }, { "month": 2, "payment": 1611.7735, "principal": 231.7721, "interest": 1380.0013, "ending_balance": 254537.7044 }, { "month": 3, "payment": 1611.7735, "principal": 233.0276, "interest": 1378.7459, "ending_balance": 254304.6769 }, { "month": 4, "payment": 1611.7735, "principal": 234.2898, "interest": 1377.4837, "ending_balance": 254070.3871 }, { "month": 5, "payment": 1611.7735, "principal": 235.5589, "interest": 1376.2146, "ending_balance": 253834.8282 }, { "month": 6, "payment": 1611.7735, "principal": 236.8348, "interest": 1374.9387, "ending_balance": 253597.9934 }, { "month": 7, "payment": 1611.7735, "principal": 238.1177, "interest": 1373.6558, "ending_balance": 253359.8757 }, { "month": 8, "payment": 1611.7735, "principal": 239.4075, "interest": 1372.366, "ending_balance": 253120.4683 }, { "month": 9, "payment": 1611.7735, "principal": 240.7043, "interest": 1371.0692, "ending_balance": 252879.764 }, { "month": 10, "payment": 1611.7735, "principal": 242.0081, "interest": 1369.7654, "ending_balance": 252637.7559 }, { "month": 11, "payment": 1611.7735, "principal": 243.3189, "interest": 1368.4545, "ending_balance": 252394.437 }, { "month": 12, "payment": 1611.7735, "principal": 244.6369, "interest": 1367.1365, "ending_balance": 252149.8001 }, { "month": 360, "payment": 1611.7735, "principal": 1603.0901, "interest": 8.6834, "ending_balance": 0.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-apr-calculator.mdc copy prompt ```text --- description: MiniWebtool APR Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool APR Calculator API ## The API **APR Calculator** — Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apr-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `loan_amount` | float | yes | — | | `extra_cost` | float | no | (default `0.0`) | | `interest_rate_percent` | float | no | (default `6.5`) | | `term_months` | int | no | (default `360`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "loan_amount": 250000, "extra_cost": 5000, "interest_rate_percent": 6.5, "term_months": 360 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "loan_amount": 250000.0, "extra_cost": 5000.0, "financed_amount": 255000.0, "term_months": 360, "interest_rate_percent": 6.5, "apr_percent": 6.6914, "apr_spread_percent": 0.1914, "monthly_payment": 1611.77, "total_payment": 580238.45, "interest_on_financed_amount": 325238.45, "finance_charge": 330238.45, "schedule_sample": [ { "month": 1, "payment": 1611.7735, "principal": 230.5235, "interest": 1381.25, "ending_balance": 254769.4765 }, { "month": 2, "payment": 1611.7735, "principal": 231.7721, "interest": 1380.0013, "ending_balance": 254537.7044 }, { "month": 3, "payment": 1611.7735, "principal": 233.0276, "interest": 1378.7459, "ending_balance": 254304.6769 }, { "month": 4, "payment": 1611.7735, "principal": 234.2898, "interest": 1377.4837, "ending_balance": 254070.3871 }, { "month": 5, "payment": 1611.7735, "principal": 235.5589, "interest": 1376.2146, "ending_balance": 253834.8282 }, { "month": 6, "payment": 1611.7735, "principal": 236.8348, "interest": 1374.9387, "ending_balance": 253597.9934 }, { "month": 7, "payment": 1611.7735, "principal": 238.1177, "interest": 1373.6558, "ending_balance": 253359.8757 }, { "month": 8, "payment": 1611.7735, "principal": 239.4075, "interest": 1372.366, "ending_balance": 253120.4683 }, { "month": 9, "payment": 1611.7735, "principal": 240.7043, "interest": 1371.0692, "ending_balance": 252879.764 }, { "month": 10, "payment": 1611.7735, "principal": 242.0081, "interest": 1369.7654, "ending_balance": 252637.7559 }, { "month": 11, "payment": 1611.7735, "principal": 243.3189, "interest": 1368.4545, "ending_balance": 252394.437 }, { "month": 12, "payment": 1611.7735, "principal": 244.6369, "interest": 1367.1365, "ending_balance": 252149.8001 }, { "month": 360, "payment": 1611.7735, "principal": 1603.0901, "interest": 8.6834, "ending_balance": 0.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `apr-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `apr-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call apr-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`loan_amount`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/apr-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the APR Calculator API do? + Calculate true APR from loan amount, rolled-in fees, nominal rate, and term. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to APR Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the APR Calculator API require? + Required fields: loan_amount. Full schema at /v1/openapi.json. Is the APR Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the APR Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `apr-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`apr-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"apr-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - APR to APY Calculator API # APR to APY Calculator API finance 2 credits / call v2026-04-22 Convert APR to APY for a selected compounding frequency. One POST adds APR to APY Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the APR to APY Calculator on miniwebtool.com →](https://miniwebtool.com/apr-to-apy-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run ``` ### Request body Field Type Req. `apr_percent` `float` ✓ `compounding` annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous `str` — `principal` `float` — `years` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "apr-to-apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → apr_percent (float) * compounding (str) annually semiannually quarterly monthly biweekly weekly daily continuous annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous principal (float) years (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`apr-to-apy-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"apr_percent":5,"compounding":"monthly","principal":1000,"years":10}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'apr_percent': 5, 'compounding': 'monthly', 'principal': 1000, 'years': 10}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"apr_percent":5,"compounding":"monthly","principal":1000,"years":10}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'apr_percent' => 5, 'compounding' => 'monthly', 'principal' => 1000, 'years' => 10 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'apr_percent' => 5, 'compounding' => 'monthly', 'principal' => 1000, 'years' => 10 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "apr_percent": 5, "compounding": "monthly", "principal": 1000, "years": 10, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"apr_percent\":5,\"compounding\":\"monthly\",\"principal\":1000,\"years\":10}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`apr-to-apy-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/apr-to-apy-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/apr-to-apy-calculator/prompt.md`](/tools/apr-to-apy-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool APR to APY Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APR to APY Calculator** — Convert APR to APY for a selected compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `apr_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `principal` | float | no | (default `1000.0`) | | `years` | float | no | (default `10.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "apr_percent": 5, "compounding": "monthly", "principal": 1000, "years": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apr-to-apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "apr_percent": 5.0, "compounding": "monthly", "periods_per_year": 12, "apy_percent": 5.11619, "rate_boost_percent": 0.11619, "basis_points_boost": 11.618979, "interest_per_1000": 51.161898, "future_value": 1647.009498, "simple_interest_value": 1500.0, "comparison": { "effective_rate_is_higher": true, "compound_growth_over_simple": 147.009498 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool APR to APY Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APR to APY Calculator** — Convert APR to APY for a selected compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `apr_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `principal` | float | no | (default `1000.0`) | | `years` | float | no | (default `10.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "apr_percent": 5, "compounding": "monthly", "principal": 1000, "years": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apr-to-apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "apr_percent": 5.0, "compounding": "monthly", "periods_per_year": 12, "apy_percent": 5.11619, "rate_boost_percent": 0.11619, "basis_points_boost": 11.618979, "interest_per_1000": 51.161898, "future_value": 1647.009498, "simple_interest_value": 1500.0, "comparison": { "effective_rate_is_higher": true, "compound_growth_over_simple": 147.009498 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-apr-to-apy-calculator.mdc copy prompt ```text --- description: MiniWebtool APR to APY Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool APR to APY Calculator API ## The API **APR to APY Calculator** — Convert APR to APY for a selected compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `apr_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `principal` | float | no | (default `1000.0`) | | `years` | float | no | (default `10.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "apr_percent": 5, "compounding": "monthly", "principal": 1000, "years": 10 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apr-to-apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "apr_percent": 5.0, "compounding": "monthly", "periods_per_year": 12, "apy_percent": 5.11619, "rate_boost_percent": 0.11619, "basis_points_boost": 11.618979, "interest_per_1000": 51.161898, "future_value": 1647.009498, "simple_interest_value": 1500.0, "comparison": { "effective_rate_is_higher": true, "compound_growth_over_simple": 147.009498 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `apr-to-apy-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `apr-to-apy-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call apr-to-apy-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`apr_percent`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/apr-to-apy-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the APR to APY Calculator API do? + Convert APR to APY for a selected compounding frequency. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to APR to APY Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the APR to APY Calculator API require? + Required fields: apr_percent. Full schema at /v1/openapi.json. Is the APR to APY Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the APR to APY Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `apr-to-apy-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`apr-to-apy-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"apr-to-apy-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - APY Calculator API # APY Calculator API finance 2 credits / call v2026-04-22 Calculate annual percentage yield and compound growth. One POST adds APY Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the APY Calculator on miniwebtool.com →](https://miniwebtool.com/apy-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/apy-calculator/run ``` ### Request body Field Type Req. `rate_percent` `float` ✓ `compounding` annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous `str` — `principal` `float` — `years` `float` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → rate_percent (float) * compounding (str) annually semiannually quarterly monthly biweekly weekly daily continuous annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous principal (float) years (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`apy-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/apy-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"rate_percent":5,"compounding":"monthly","principal":10000,"years":5}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/apy-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'rate_percent': 5, 'compounding': 'monthly', 'principal': 10000, 'years': 5}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/apy-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"rate_percent":5,"compounding":"monthly","principal":10000,"years":5}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'rate_percent' => 5, 'compounding' => 'monthly', 'principal' => 10000, 'years' => 5 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/apy-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'rate_percent' => 5, 'compounding' => 'monthly', 'principal' => 10000, 'years' => 5 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "rate_percent": 5, "compounding": "monthly", "principal": 10000, "years": 5, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/apy-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/apy-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"rate_percent\":5,\"compounding\":\"monthly\",\"principal\":10000,\"years\":5}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`apy-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/apy-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/apy-calculator/prompt.md`](/tools/apy-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool APY Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APY Calculator** — Calculate annual percentage yield and compound growth. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rate_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `principal` | float | no | (default `10000.0`) | | `years` | float | no | (default `5.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "rate_percent": 5, "compounding": "monthly", "principal": 10000, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 5.0, "compounding": "monthly", "periods_per_year": 12, "rate_per_period_percent": 0.416667, "apy_percent": 5.11619, "principal": 10000.0, "years": 5.0, "future_value": 12833.586785, "total_interest": 2833.586785, "growth_percent": 28.335868 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool APY Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APY Calculator** — Calculate annual percentage yield and compound growth. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rate_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `principal` | float | no | (default `10000.0`) | | `years` | float | no | (default `5.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "rate_percent": 5, "compounding": "monthly", "principal": 10000, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 5.0, "compounding": "monthly", "periods_per_year": 12, "rate_per_period_percent": 0.416667, "apy_percent": 5.11619, "principal": 10000.0, "years": 5.0, "future_value": 12833.586785, "total_interest": 2833.586785, "growth_percent": 28.335868 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-apy-calculator.mdc copy prompt ```text --- description: MiniWebtool APY Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool APY Calculator API ## The API **APY Calculator** — Calculate annual percentage yield and compound growth. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apy-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apy-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `rate_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `principal` | float | no | (default `10000.0`) | | `years` | float | no | (default `5.0`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "rate_percent": 5, "compounding": "monthly", "principal": 10000, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apy-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 5.0, "compounding": "monthly", "periods_per_year": 12, "rate_per_period_percent": 0.416667, "apy_percent": 5.11619, "principal": 10000.0, "years": 5.0, "future_value": 12833.586785, "total_interest": 2833.586785, "growth_percent": 28.335868 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `apy-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `apy-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call apy-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`rate_percent`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/apy-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the APY Calculator API do? + Calculate annual percentage yield and compound growth. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to APY Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the APY Calculator API require? + Required fields: rate_percent. Full schema at /v1/openapi.json. Is the APY Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the APY Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `apy-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`apy-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"apy-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - APY to APR Calculator API # APY to APR Calculator API finance 2 credits / call v2026-04-22 Convert APY back to nominal APR for a compounding frequency. One POST adds APY to APR Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the APY to APR Calculator on miniwebtool.com →](https://miniwebtool.com/apy-to-apr-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run ``` ### Request body Field Type Req. `apy_percent` `float` ✓ `compounding` annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous `str` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "apy-to-apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → apy_percent (float) * compounding (str) annually semiannually quarterly monthly biweekly weekly daily continuous annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`apy-to-apr-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"apy_percent":5.11619,"compounding":"monthly"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'apy_percent': 5.11619, 'compounding': 'monthly'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"apy_percent":5.11619,"compounding":"monthly"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'apy_percent' => 5.11619, 'compounding' => 'monthly' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'apy_percent' => 5.11619, 'compounding' => 'monthly' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "apy_percent": 5.11619, "compounding": "monthly", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"apy_percent\":5.11619,\"compounding\":\"monthly\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`apy-to-apr-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/apy-to-apr-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/apy-to-apr-calculator/prompt.md`](/tools/apy-to-apr-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool APY to APR Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APY to APR Calculator** — Convert APY back to nominal APR for a compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `apy_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "apy_percent": 5.11619, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apy-to-apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "apy_percent": 5.11619, "compounding": "monthly", "periods_per_year": 12, "apr_percent": 5.0, "periodic_rate_percent": 0.416667, "apy_minus_apr_percent": 0.11619, "basis_points_difference": 11.61898 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool APY to APR Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **APY to APR Calculator** — Convert APY back to nominal APR for a compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `apy_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "apy_percent": 5.11619, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apy-to-apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "apy_percent": 5.11619, "compounding": "monthly", "periods_per_year": 12, "apr_percent": 5.0, "periodic_rate_percent": 0.416667, "apy_minus_apr_percent": 0.11619, "basis_points_difference": 11.61898 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-apy-to-apr-calculator.mdc copy prompt ```text --- description: MiniWebtool APY to APR Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool APY to APR Calculator API ## The API **APY to APR Calculator** — Convert APY back to nominal APR for a compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `apy_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "apy_percent": 5.11619, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "apy-to-apr-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "apy_percent": 5.11619, "compounding": "monthly", "periods_per_year": 12, "apr_percent": 5.0, "periodic_rate_percent": 0.416667, "apy_minus_apr_percent": 0.11619, "basis_points_difference": 11.61898 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `apy-to-apr-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `apy-to-apr-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call apy-to-apr-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`apy_percent`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/apy-to-apr-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the APY to APR Calculator API do? + Convert APY back to nominal APR for a compounding frequency. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to APY to APR Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the APY to APR Calculator API require? + Required fields: apy_percent. Full schema at /v1/openapi.json. Is the APY to APR Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the APY to APR Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `apy-to-apr-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`apy-to-apr-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"apy-to-apr-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Compound Daily Interest Calculator API # Compound Daily Interest Calculator API finance 2 credits / call v2026-04-22 Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. One POST adds Compound Daily Interest Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Compound Daily Interest Calculator on miniwebtool.com →](https://miniwebtool.com/compound-daily-interest-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run ``` ### Request body Field Type Req. `starting_capital` `float` — `daily_gain_pct` `float` — `num_days` `int` — `trading_days_per_week` 5 | 6 | 7 `str` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "compound-daily-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → starting_capital (float) daily_gain_pct (float) num_days (int) trading_days_per_week (str) 5 6 7 5 | 6 | 7 Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`compound-daily-interest-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"starting_capital":10000,"daily_gain_pct":1,"num_days":30,"trading_days_per_week":"5"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'starting_capital': 10000, 'daily_gain_pct': 1, 'num_days': 30, 'trading_days_per_week': '5'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"starting_capital":10000,"daily_gain_pct":1,"num_days":30,"trading_days_per_week":"5"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'starting_capital' => 10000, 'daily_gain_pct' => 1, 'num_days' => 30, 'trading_days_per_week' => '5' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'starting_capital' => 10000, 'daily_gain_pct' => 1, 'num_days' => 30, 'trading_days_per_week' => '5' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "starting_capital": 10000, "daily_gain_pct": 1, "num_days": 30, "trading_days_per_week": "5", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"starting_capital\":10000,\"daily_gain_pct\":1,\"num_days\":30,\"trading_days_per_week\":\"5\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`compound-daily-interest-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/compound-daily-interest-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/compound-daily-interest-calculator/prompt.md`](/tools/compound-daily-interest-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Compound Daily Interest Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Compound Daily Interest Calculator** — Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `starting_capital` | float | no | (default `10000`) | | `daily_gain_pct` | float | no | (default `1`) | | `num_days` | int | no | (default `30`) | | `trading_days_per_week` | str | no | one of: 5, 6, 7 — 5 \| 6 \| 7 (default `5`) | Example request body: ```json { "starting_capital": 10000, "daily_gain_pct": 1, "num_days": 30, "trading_days_per_week": "5" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compound-daily-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "starting_capital": 10000.0, "daily_gain_pct": 1.0, "num_days": 30, "trading_days_per_week": 5, "weeks_equivalent": 6.0, "final_balance": 13478.49, "total_profit": 3478.49, "total_profit_pct": 34.78, "growth_factor": 1.35, "linear_final_balance": 13000.0, "compound_advantage": 478.49, "doubling_time_days": { "rule_of_72": 72.0, "exact": 69.7 }, "milestones": [], "target_analysis": [ { "target": 20000.0, "multiplier": 2, "days": 70 }, { "target": 50000.0, "multiplier": 5, "days": 162 }, { "target": 100000.0, "multiplier": 10, "days": 232 } ], "note": "Assumes an identical percentage gain every trading day; real trading returns vary and involve risk of loss." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Compound Daily Interest Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Compound Daily Interest Calculator** — Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `starting_capital` | float | no | (default `10000`) | | `daily_gain_pct` | float | no | (default `1`) | | `num_days` | int | no | (default `30`) | | `trading_days_per_week` | str | no | one of: 5, 6, 7 — 5 \| 6 \| 7 (default `5`) | Example request body: ```json { "starting_capital": 10000, "daily_gain_pct": 1, "num_days": 30, "trading_days_per_week": "5" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compound-daily-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "starting_capital": 10000.0, "daily_gain_pct": 1.0, "num_days": 30, "trading_days_per_week": 5, "weeks_equivalent": 6.0, "final_balance": 13478.49, "total_profit": 3478.49, "total_profit_pct": 34.78, "growth_factor": 1.35, "linear_final_balance": 13000.0, "compound_advantage": 478.49, "doubling_time_days": { "rule_of_72": 72.0, "exact": 69.7 }, "milestones": [], "target_analysis": [ { "target": 20000.0, "multiplier": 2, "days": 70 }, { "target": 50000.0, "multiplier": 5, "days": 162 }, { "target": 100000.0, "multiplier": 10, "days": 232 } ], "note": "Assumes an identical percentage gain every trading day; real trading returns vary and involve risk of loss." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-compound-daily-interest-calculator.mdc copy prompt ```text --- description: MiniWebtool Compound Daily Interest Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Compound Daily Interest Calculator API ## The API **Compound Daily Interest Calculator** — Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `starting_capital` | float | no | (default `10000`) | | `daily_gain_pct` | float | no | (default `1`) | | `num_days` | int | no | (default `30`) | | `trading_days_per_week` | str | no | one of: 5, 6, 7 — 5 \| 6 \| 7 (default `5`) | Example request body: ```json { "starting_capital": 10000, "daily_gain_pct": 1, "num_days": 30, "trading_days_per_week": "5" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compound-daily-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "starting_capital": 10000.0, "daily_gain_pct": 1.0, "num_days": 30, "trading_days_per_week": 5, "weeks_equivalent": 6.0, "final_balance": 13478.49, "total_profit": 3478.49, "total_profit_pct": 34.78, "growth_factor": 1.35, "linear_final_balance": 13000.0, "compound_advantage": 478.49, "doubling_time_days": { "rule_of_72": 72.0, "exact": 69.7 }, "milestones": [], "target_analysis": [ { "target": 20000.0, "multiplier": 2, "days": 70 }, { "target": 50000.0, "multiplier": 5, "days": 162 }, { "target": 100000.0, "multiplier": 10, "days": 232 } ], "note": "Assumes an identical percentage gain every trading day; real trading returns vary and involve risk of loss." } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `compound-daily-interest-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `compound-daily-interest-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call compound-daily-interest-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/compound-daily-interest-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Compound Daily Interest Calculator API do? + Daily compounding growth of a trading account vs linear gains, with doubling time, milestones, and target days. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Compound Daily Interest Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Compound Daily Interest Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Compound Daily Interest Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Compound Daily Interest Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `compound-daily-interest-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`compound-daily-interest-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"compound-daily-interest-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Compound Interest Calculator API # Compound Interest Calculator API finance 2 credits / call v2026-04-22 Compound-interest formula with selectable compounding frequency. One POST adds Compound Interest Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Compound Interest Calculator on miniwebtool.com →](https://miniwebtool.com/compound-interest-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run ``` ### Request body Field Type Req. `principal` `float` ✓ `annual_rate_percent` `float` ✓ `years` `float` ✓ `compounding` annually | semiannually | quarterly | monthly | weekly | daily `str` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "compound-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → principal (float) * annual_rate_percent (float) * years (float) * compounding (str) annually semiannually quarterly monthly weekly daily annually | semiannually | quarterly | monthly | weekly | daily Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`compound-interest-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"principal":1000,"annual_rate_percent":5,"years":10,"compounding":"monthly"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'principal': 1000, 'annual_rate_percent': 5, 'years': 10, 'compounding': 'monthly'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"principal":1000,"annual_rate_percent":5,"years":10,"compounding":"monthly"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'principal' => 1000, 'annual_rate_percent' => 5, 'years' => 10, 'compounding' => 'monthly' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'principal' => 1000, 'annual_rate_percent' => 5, 'years' => 10, 'compounding' => 'monthly' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "principal": 1000, "annual_rate_percent": 5, "years": 10, "compounding": "monthly", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"principal\":1000,\"annual_rate_percent\":5,\"years\":10,\"compounding\":\"monthly\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`compound-interest-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/compound-interest-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/compound-interest-calculator/prompt.md`](/tools/compound-interest-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Compound Interest Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Compound Interest Calculator** — Compound-interest formula with selectable compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `principal` | float | yes | — | | `annual_rate_percent` | float | yes | — | | `years` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, weekly, daily — annually \| semiannually \| quarterly \| monthly \| weekly \| daily (default `monthly`) | Example request body: ```json { "principal": 1000, "annual_rate_percent": 5, "years": 10, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compound-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "principal": 1000.0, "annual_rate_percent": 5.0, "years": 10.0, "compounding": "monthly", "compoundings_per_year": 12, "interest": 647.01, "total_amount": 1647.01, "effective_annual_yield_percent": 5.1162 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Compound Interest Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Compound Interest Calculator** — Compound-interest formula with selectable compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `principal` | float | yes | — | | `annual_rate_percent` | float | yes | — | | `years` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, weekly, daily — annually \| semiannually \| quarterly \| monthly \| weekly \| daily (default `monthly`) | Example request body: ```json { "principal": 1000, "annual_rate_percent": 5, "years": 10, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compound-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "principal": 1000.0, "annual_rate_percent": 5.0, "years": 10.0, "compounding": "monthly", "compoundings_per_year": 12, "interest": 647.01, "total_amount": 1647.01, "effective_annual_yield_percent": 5.1162 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-compound-interest-calculator.mdc copy prompt ```text --- description: MiniWebtool Compound Interest Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Compound Interest Calculator API ## The API **Compound Interest Calculator** — Compound-interest formula with selectable compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/compound-interest-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `principal` | float | yes | — | | `annual_rate_percent` | float | yes | — | | `years` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, weekly, daily — annually \| semiannually \| quarterly \| monthly \| weekly \| daily (default `monthly`) | Example request body: ```json { "principal": 1000, "annual_rate_percent": 5, "years": 10, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "compound-interest-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "principal": 1000.0, "annual_rate_percent": 5.0, "years": 10.0, "compounding": "monthly", "compoundings_per_year": 12, "interest": 647.01, "total_amount": 1647.01, "effective_annual_yield_percent": 5.1162 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `compound-interest-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `compound-interest-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call compound-interest-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`principal`,`annual_rate_percent`,`years`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/compound-interest-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Compound Interest Calculator API do? + Compound-interest formula with selectable compounding frequency. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Compound Interest Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Compound Interest Calculator API require? + Required fields: principal, annual_rate_percent, years. Full schema at /v1/openapi.json. Is the Compound Interest Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Compound Interest Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `compound-interest-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`compound-interest-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"compound-interest-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Continuous Compounding Calculator API # Continuous Compounding Calculator API finance 1 credit / call v2026-04-22 Calculate future value and interest with continuous compounding. One POST adds Continuous Compounding Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Continuous Compounding Calculator on miniwebtool.com →](https://miniwebtool.com/continuous-compounding-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run ``` ### Request body Field Type Req. `principal` `float` — `annual_rate_percent` `float` — `time_value` `float` — `time_unit` years | months | days `str` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "continuous-compounding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → principal (float) annual_rate_percent (float) time_value (float) time_unit (str) years months days years | months | days precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`continuous-compounding-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"principal":10000,"annual_rate_percent":5,"time_value":10,"time_unit":"years","precision":2}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'principal': 10000, 'annual_rate_percent': 5, 'time_value': 10, 'time_unit': 'years', 'precision': 2}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"principal":10000,"annual_rate_percent":5,"time_value":10,"time_unit":"years","precision":2}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'principal' => 10000, 'annual_rate_percent' => 5, 'time_value' => 10, 'time_unit' => 'years', 'precision' => 2 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'principal' => 10000, 'annual_rate_percent' => 5, 'time_value' => 10, 'time_unit' => 'years', 'precision' => 2 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "principal": 10000, "annual_rate_percent": 5, "time_value": 10, "time_unit": "years", "precision": 2, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"principal\":10000,\"annual_rate_percent\":5,\"time_value\":10,\"time_unit\":\"years\",\"precision\":2}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`continuous-compounding-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/continuous-compounding-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/continuous-compounding-calculator/prompt.md`](/tools/continuous-compounding-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Continuous Compounding Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Continuous Compounding Calculator** — Calculate future value and interest with continuous compounding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `principal` | float | no | (default `10000.0`) | | `annual_rate_percent` | float | no | (default `5.0`) | | `time_value` | float | no | (default `10.0`) | | `time_unit` | str | no | one of: years, months, days — years \| months \| days (default `years`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "principal": 10000, "annual_rate_percent": 5, "time_value": 10, "time_unit": "years", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "continuous-compounding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "principal": 10000.0, "annual_rate_percent": 5.0, "time_value": 10.0, "time_unit": "years", "time_years": 10.0, "future_value": 16487.21, "interest_earned": 6487.21, "effective_annual_rate_percent": 5.13, "doubling_time_years": 13.86, "continuous_advantage_over_annual": 198.27, "comparison": { "annual": 16288.95, "monthly": 16470.09, "daily": 16486.65, "continuous": 16487.21 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Continuous Compounding Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Continuous Compounding Calculator** — Calculate future value and interest with continuous compounding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `principal` | float | no | (default `10000.0`) | | `annual_rate_percent` | float | no | (default `5.0`) | | `time_value` | float | no | (default `10.0`) | | `time_unit` | str | no | one of: years, months, days — years \| months \| days (default `years`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "principal": 10000, "annual_rate_percent": 5, "time_value": 10, "time_unit": "years", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "continuous-compounding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "principal": 10000.0, "annual_rate_percent": 5.0, "time_value": 10.0, "time_unit": "years", "time_years": 10.0, "future_value": 16487.21, "interest_earned": 6487.21, "effective_annual_rate_percent": 5.13, "doubling_time_years": 13.86, "continuous_advantage_over_annual": 198.27, "comparison": { "annual": 16288.95, "monthly": 16470.09, "daily": 16486.65, "continuous": 16487.21 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-continuous-compounding-calculator.mdc copy prompt ```text --- description: MiniWebtool Continuous Compounding Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Continuous Compounding Calculator API ## The API **Continuous Compounding Calculator** — Calculate future value and interest with continuous compounding. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `principal` | float | no | (default `10000.0`) | | `annual_rate_percent` | float | no | (default `5.0`) | | `time_value` | float | no | (default `10.0`) | | `time_unit` | str | no | one of: years, months, days — years \| months \| days (default `years`) | | `precision` | int | no | (default `2`) | Example request body: ```json { "principal": 10000, "annual_rate_percent": 5, "time_value": 10, "time_unit": "years", "precision": 2 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "continuous-compounding-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "principal": 10000.0, "annual_rate_percent": 5.0, "time_value": 10.0, "time_unit": "years", "time_years": 10.0, "future_value": 16487.21, "interest_earned": 6487.21, "effective_annual_rate_percent": 5.13, "doubling_time_years": 13.86, "continuous_advantage_over_annual": 198.27, "comparison": { "annual": 16288.95, "monthly": 16470.09, "daily": 16486.65, "continuous": 16487.21 } } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `continuous-compounding-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `continuous-compounding-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call continuous-compounding-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/continuous-compounding-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Continuous Compounding Calculator API do? + Calculate future value and interest with continuous compounding. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Continuous Compounding Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Continuous Compounding Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Continuous Compounding Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Continuous Compounding Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `continuous-compounding-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`continuous-compounding-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"continuous-compounding-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Doubling Time Calculator API # Doubling Time Calculator API finance 1 credit / call v2026-04-22 Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. One POST adds Doubling Time Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Doubling Time Calculator on miniwebtool.com →](https://miniwebtool.com/doubling-time-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 1cr ```text POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run ``` ### Request body Field Type Req. `mode` rate_to_time | time_to_rate `str` — `growth_rate_percent` `float | None` — `target_time` `float | None` — `period` yearly | monthly | daily `str` — `initial_value` `float` — `precision` `int` — ### Cost & access - 1 credit per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "doubling-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → mode (str) rate_to_time time_to_rate rate_to_time | time_to_rate growth_rate_percent (float | None) target_time (float | None) period (str) yearly monthly daily yearly | monthly | daily initial_value (float) precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`doubling-time-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"mode":"rate_to_time","growth_rate_percent":7,"period":"yearly","initial_value":1000,"precision":4}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'mode': 'rate_to_time', 'growth_rate_percent': 7, 'period': 'yearly', 'initial_value': 1000, 'precision': 4}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"mode":"rate_to_time","growth_rate_percent":7,"period":"yearly","initial_value":1000,"precision":4}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'mode' => 'rate_to_time', 'growth_rate_percent' => 7, 'period' => 'yearly', 'initial_value' => 1000, 'precision' => 4 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'mode' => 'rate_to_time', 'growth_rate_percent' => 7, 'period' => 'yearly', 'initial_value' => 1000, 'precision' => 4 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "mode": "rate_to_time", "growth_rate_percent": 7, "period": "yearly", "initial_value": 1000, "precision": 4, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"mode\":\"rate_to_time\",\"growth_rate_percent\":7,\"period\":\"yearly\",\"initial_value\":1000,\"precision\":4}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`doubling-time-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/doubling-time-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (1 credit). Stable URL for this prompt: [`/tools/doubling-time-calculator/prompt.md`](/tools/doubling-time-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Doubling Time Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Doubling Time Calculator** — Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: rate_to_time, time_to_rate — rate_to_time \| time_to_rate (default `rate_to_time`) | | `growth_rate_percent` | float | None | no | (default `7.0`) | | `target_time` | float | None | no | — | | `period` | str | no | one of: yearly, monthly, daily — yearly \| monthly \| daily (default `yearly`) | | `initial_value` | float | no | (default `1000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "mode": "rate_to_time", "growth_rate_percent": 7, "period": "yearly", "initial_value": 1000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "doubling-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "rate_to_time", "growth_rate_percent": 7.0, "period": "yearly", "period_info": { "singular": "Year", "plural": "Years", "periods_per_year": 1 }, "exact_time": 10.2448, "continuous_time": 9.9021, "rule_72_time": 10.2857, "rule_70_time": 10.0, "rule_72_error_percent": 0.3997, "initial_value": 1000.0, "doubled_value": 2000.0, "milestones": [ { "multiplier": 2, "time": 10.2448, "value": 2000.0 }, { "multiplier": 3, "time": 16.2376, "value": 3000.0 }, { "multiplier": 4, "time": 20.4895, "value": 4000.0 }, { "multiplier": 5, "time": 23.7876, "value": 5000.0 }, { "multiplier": 10, "time": 34.0324, "value": 10000.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Doubling Time Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Doubling Time Calculator** — Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: rate_to_time, time_to_rate — rate_to_time \| time_to_rate (default `rate_to_time`) | | `growth_rate_percent` | float | None | no | (default `7.0`) | | `target_time` | float | None | no | — | | `period` | str | no | one of: yearly, monthly, daily — yearly \| monthly \| daily (default `yearly`) | | `initial_value` | float | no | (default `1000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "mode": "rate_to_time", "growth_rate_percent": 7, "period": "yearly", "initial_value": 1000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "doubling-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "rate_to_time", "growth_rate_percent": 7.0, "period": "yearly", "period_info": { "singular": "Year", "plural": "Years", "periods_per_year": 1 }, "exact_time": 10.2448, "continuous_time": 9.9021, "rule_72_time": 10.2857, "rule_70_time": 10.0, "rule_72_error_percent": 0.3997, "initial_value": 1000.0, "doubled_value": 2000.0, "milestones": [ { "multiplier": 2, "time": 10.2448, "value": 2000.0 }, { "multiplier": 3, "time": 16.2376, "value": 3000.0 }, { "multiplier": 4, "time": 20.4895, "value": 4000.0 }, { "multiplier": 5, "time": 23.7876, "value": 5000.0 }, { "multiplier": 10, "time": 34.0324, "value": 10000.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-doubling-time-calculator.mdc copy prompt ```text --- description: MiniWebtool Doubling Time Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Doubling Time Calculator API ## The API **Doubling Time Calculator** — Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run` — costs 1 credit - Dry run: `POST https://api.miniwebtool.com/v1/tools/doubling-time-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `mode` | str | no | one of: rate_to_time, time_to_rate — rate_to_time \| time_to_rate (default `rate_to_time`) | | `growth_rate_percent` | float | None | no | (default `7.0`) | | `target_time` | float | None | no | — | | `period` | str | no | one of: yearly, monthly, daily — yearly \| monthly \| daily (default `yearly`) | | `initial_value` | float | no | (default `1000.0`) | | `precision` | int | no | (default `4`) | Example request body: ```json { "mode": "rate_to_time", "growth_rate_percent": 7, "period": "yearly", "initial_value": 1000, "precision": 4 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "doubling-time-calculator", "tool_version": "2026-04-22", "credits_used": 1, "result": { "mode": "rate_to_time", "growth_rate_percent": 7.0, "period": "yearly", "period_info": { "singular": "Year", "plural": "Years", "periods_per_year": 1 }, "exact_time": 10.2448, "continuous_time": 9.9021, "rule_72_time": 10.2857, "rule_70_time": 10.0, "rule_72_error_percent": 0.3997, "initial_value": 1000.0, "doubled_value": 2000.0, "milestones": [ { "multiplier": 2, "time": 10.2448, "value": 2000.0 }, { "multiplier": 3, "time": 16.2376, "value": 3000.0 }, { "multiplier": 4, "time": 20.4895, "value": 4000.0 }, { "multiplier": 5, "time": 23.7876, "value": 5000.0 }, { "multiplier": 10, "time": 34.0324, "value": 10000.0 } ] } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `doubling-time-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `doubling-time-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 1 credit; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call doubling-time-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/doubling-time-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Doubling Time Calculator API do? + Calculate exact doubling time, Rule of 72 estimates, or the rate required to double. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Doubling Time Calculator cost? + 1 credit per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Doubling Time Calculator API require? + Required fields: (none). Full schema at /v1/openapi.json. Is the Doubling Time Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Doubling Time Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `doubling-time-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`doubling-time-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"doubling-time-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) [ Retirement Calculator Estimate retirement savings growth, inflation-adjusted value, and contribution … ](/tools/retirement-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Effective Interest Rate Calculator API # Effective Interest Rate Calculator API finance 2 credits / call v2026-04-22 Convert a nominal interest rate to its effective annual rate. One POST adds Effective Interest Rate Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Effective Interest Rate Calculator on miniwebtool.com →](https://miniwebtool.com/effective-interest-rate-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run ``` ### Request body Field Type Req. `nominal_rate_percent` `float` ✓ `compounding` annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous `str` — `precision` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "effective-interest-rate-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → nominal_rate_percent (float) * compounding (str) annually semiannually quarterly monthly biweekly weekly daily continuous annually | semiannually | quarterly | monthly | biweekly | weekly | daily | continuous precision (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`effective-interest-rate-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"nominal_rate_percent":7.5,"compounding":"monthly"}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'nominal_rate_percent': 7.5, 'compounding': 'monthly'}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"nominal_rate_percent":7.5,"compounding":"monthly"}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'nominal_rate_percent' => 7.5, 'compounding' => 'monthly' ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'nominal_rate_percent' => 7.5, 'compounding' => 'monthly' }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "nominal_rate_percent": 7.5, "compounding": "monthly", }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"nominal_rate_percent\":7.5,\"compounding\":\"monthly\"}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`effective-interest-rate-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/effective-interest-rate-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/effective-interest-rate-calculator/prompt.md`](/tools/effective-interest-rate-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Effective Interest Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Effective Interest Rate Calculator** — Convert a nominal interest rate to its effective annual rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `nominal_rate_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "nominal_rate_percent": 7.5, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "effective-interest-rate-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 7.5, "compounding": "monthly", "periods_per_year": 12, "periodic_rate_percent": 0.625, "effective_rate_percent": 7.76326, "rate_spread_percent": 0.26326, "basis_points_spread": 26.325989, "interest_on_1000": 77.632599, "doubling_time_years": 9.270814 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Effective Interest Rate Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Effective Interest Rate Calculator** — Convert a nominal interest rate to its effective annual rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `nominal_rate_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "nominal_rate_percent": 7.5, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "effective-interest-rate-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 7.5, "compounding": "monthly", "periods_per_year": 12, "periodic_rate_percent": 0.625, "effective_rate_percent": 7.76326, "rate_spread_percent": 0.26326, "basis_points_spread": 26.325989, "interest_on_1000": 77.632599, "doubling_time_years": 9.270814 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-effective-interest-rate-calculator.mdc copy prompt ```text --- description: MiniWebtool Effective Interest Rate Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Effective Interest Rate Calculator API ## The API **Effective Interest Rate Calculator** — Convert a nominal interest rate to its effective annual rate. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `nominal_rate_percent` | float | yes | — | | `compounding` | str | no | one of: annually, semiannually, quarterly, monthly, biweekly, weekly, daily, continuous — annually \| semiannually \| quarterly \| monthly \| biweekly \| weekly \| daily \| continuous (default `monthly`) | | `precision` | int | no | (default `6`) | Example request body: ```json { "nominal_rate_percent": 7.5, "compounding": "monthly" } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "effective-interest-rate-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 7.5, "compounding": "monthly", "periods_per_year": 12, "periodic_rate_percent": 0.625, "effective_rate_percent": 7.76326, "rate_spread_percent": 0.26326, "basis_points_spread": 26.325989, "interest_on_1000": 77.632599, "doubling_time_years": 9.270814 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `effective-interest-rate-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `effective-interest-rate-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call effective-interest-rate-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`nominal_rate_percent`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/effective-interest-rate-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Effective Interest Rate Calculator API do? + Convert a nominal interest rate to its effective annual rate. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Effective Interest Rate Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Effective Interest Rate Calculator API require? + Required fields: nominal_rate_percent. Full schema at /v1/openapi.json. Is the Effective Interest Rate Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Effective Interest Rate Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `effective-interest-rate-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`effective-interest-rate-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"effective-interest-rate-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with current yield and return metrics. ](/tools/bond-yield-to-maturity-calculator/) [ Recurring Deposit Calculator Project recurring monthly deposits with compound interest and chart-ready balan… ](/tools/recurring-deposit-calculator/) API OPERATIONAL v1 · OpenAPI 3.1 · MCP 2025-06-18 [terms](https://miniwebtool.com/about/terms-and-disclaimer/#api-terms) [privacy](https://miniwebtool.com/about/privacy/#api-privacy) [llms.txt](/llms.txt) [consumer site →](https://miniwebtool.com) © 2026 miniwebtool × welcome Every tool on miniwebtool.com, as a JSON API. 1080 ready-made endpoints — calculators, converters, text, hashes, finance — behind one key, one stable JSON envelope, and a fixed credit cost. Built for apps, sites, and AI agents. - 1 Try it right here — every tool page has a playground with a prefilled test key. No signup. - 2 Get your own key by email — 1,000 free calls every month, no card required. - 3 Ship it — copy-paste snippets in 7 languages, or connect AI agents via MCP. Get a free key → free plan stays free · failed calls never bill > For the complete documentation index, see [llms.txt](/llms.txt). [miniwebtool /api](/) [tools](/tools/) [docs](/docs/) [reference](/v1/docs) [pricing](/pricing/) [log in](/dashboard/login/) [get free key →](/billing/checkout/?plan=free) - [~](/) - / - [tools](/tools/) - / - [finance](/tools/#finance) - / - Effective Yield Calculator API # Effective Yield Calculator API finance 2 credits / call v2026-04-22 Calculate effective annual yield from nominal APR and compounding frequency. One POST adds Effective Yield Calculator to your app, site, workflow, or agent — formula, validation, edge cases, and docs already handled. prefer a UI? [Open the Effective Yield Calculator on miniwebtool.com →](https://miniwebtool.com/effective-yield-calculator/) Start free — get a key → 1,000 credits · no card · 30 seconds ### Endpoint POST · 2cr ```text POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run ``` ### Request body Field Type Req. `nominal_rate` `float` ✓ `periods` 1 | 2 | 4 | 12 | 26 | 52 | 365 `int` — `principal` `float` — `years` `int` — ### Cost & access - 2 credits per successful call — failed calls refund. - Starts on: Free. - Max payload:`65536`bytes. - Privacy mode:`hash_only` - Available on: free, starter, pro, business, scale ### Response envelope ```text { "request_id": "01K...", "tool": "effective-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": {... } } ``` ### Try it API key * Stored only in this browser tab. Playground test key is prefilled and only works on this page. Get a live key → nominal_rate (float) * periods (int) 1 | 2 | 4 | 12 | 26 | 52 | 365 principal (float) years (int) Send request → Response copy body This endpoint starts on Free Your key is valid, but its current plan cannot call`effective-yield-calculator`. Upgrade to Free or higher to run this tool. [Start Free →](/billing/checkout/?plan=free) [Compare plans](/pricing/) ```text ``` Response headers ```text ``` ✓ That ran on the shared playground key Get your own free key → (1,000 calls/mo, no card) ### Get your own key 1,000 free calls/mo · no card · key arrives by email Work email * Email me my free key → One verification click, then your key + a ready-to-run request. No card, no spam. ### Code examples cURL Python JavaScript PHP Ruby Go Java copy ```text curl -X POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run \ -H 'Authorization: Bearer mwt_live_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"nominal_rate":6.5,"periods":12,"principal":10000,"years":5}' ``` copy ```text import requests resp = requests.post( 'https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run', headers={'Authorization': 'Bearer mwt_live_YOUR_KEY'}, json={'nominal_rate': 6.5, 'periods': 12, 'principal': 10000, 'years': 5}, ) resp.raise_for_status() data = resp.json() print(data) ``` copy ```text const resp = await fetch( 'https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run', { method: 'POST', headers: { 'Authorization': 'Bearer mwt_live_YOUR_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({"nominal_rate":6.5,"periods":12,"principal":10000,"years":5}), } ); const data = await resp.json(); console.log(data); ``` copy ```text true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer mwt_live_YOUR_KEY', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'nominal_rate' => 6.5, 'periods' => 12, 'principal' => 10000, 'years' => 5 ]), ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); ``` copy ```text require 'net/http' require 'json' require 'uri' uri = URI('https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = (uri.scheme == 'https') req = Net::HTTP::Post.new(uri) req['Authorization'] = 'Bearer mwt_live_YOUR_KEY' req['Content-Type'] = 'application/json' req.body = { 'nominal_rate' => 6.5, 'periods' => 12, 'principal' => 10000, 'years' => 5 }.to_json resp = http.request(req) puts JSON.parse(resp.body).inspect ``` copy ```text package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) func main() { body, _:= json.Marshal(map[string]interface{}{ "nominal_rate": 6.5, "periods": 12, "principal": 10000, "years": 5, }) req, _:= http.NewRequest("POST", "https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run", bytes.NewReader(body)) req.Header.Set("Authorization", "Bearer mwt_live_YOUR_KEY") req.Header.Set("Content-Type", "application/json") resp, err:= http.DefaultClient.Do(req) if err!= nil { panic(err) } defer resp.Body.Close() out, _:= io.ReadAll(resp.Body) fmt.Println(string(out)) } ``` copy ```text import java.net.URI; import java.net.http.*; var client = HttpClient.newHttpClient(); var req = HttpRequest.newBuilder() .uri(URI.create("https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run")) .header("Authorization", "Bearer mwt_live_YOUR_KEY") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString("{\"nominal_rate\":6.5,\"periods\":12,\"principal\":10000,\"years\":5}")) .build(); var resp = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(resp.body()); ``` agents let your coding agent do it Copy this into Claude Code, Cursor, Codex, Aider or Cline. It carries the endpoint, the full schema, a sample response, and the credit rules — so the agent wires`effective-yield-calculator`up correctly without draining your key. Free to iterate: the prompt points the agent at`POST /v1/tools/effective-yield-calculator/dry-run`, which validates the request and returns the response shape for 0 credits. Only the final confirmation call is billed (2 credits). Stable URL for this prompt: [`/tools/effective-yield-calculator/prompt.md`](/tools/effective-yield-calculator/prompt.md) (`?variant=cursor`/`?variant=mcp`). Claude Code Codex / others Cursor MCP (no code) Paste into Claude Code, or save as CLAUDE.md context. copy prompt ```text Integrate the MiniWebtool Effective Yield Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Effective Yield Calculator** — Calculate effective annual yield from nominal APR and compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `nominal_rate` | float | yes | — | | `periods` | int | no | 1 \| 2 \| 4 \| 12 \| 26 \| 52 \| 365 (default `12`) | | `principal` | float | no | (default `10000.0`) | | `years` | int | no | (default `5`) | Example request body: ```json { "nominal_rate": 6.5, "periods": 12, "principal": 10000, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "effective-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 6.5, "compounding_periods_per_year": 12, "effective_yield_percent": 6.697185, "continuous_yield_percent": 6.715902, "yield_difference_percent": 0.197185, "principal": 10000.0, "years": 5, "simple_future_value": 13250.0, "compound_future_value": 13828.17, "extra_earnings_vs_simple": 578.17 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Paste into Codex, Aider, Cline, or any coding agent. copy prompt ```text Integrate the MiniWebtool Effective Yield Calculator API into this project. ## Your task 1. Read the reference below. 2. Ask me where this belongs in the codebase if it is not obvious. 3. Write the integration in the language and style of the surrounding code: a small typed client function, errors handled, key read from the environment (never hard-coded, never committed). 4. Verify with `/dry-run` first, then exactly one live call. 5. Show me the diff and the live result. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ## The API **Effective Yield Calculator** — Calculate effective annual yield from nominal APR and compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `nominal_rate` | float | yes | — | | `periods` | int | no | 1 \| 2 \| 4 \| 12 \| 26 \| 52 \| 365 (default `12`) | | `principal` | float | no | (default `10000.0`) | | `years` | int | no | (default `5`) | Example request body: ```json { "nominal_rate": 6.5, "periods": 12, "principal": 10000, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "effective-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 6.5, "compounding_periods_per_year": 12, "effective_yield_percent": 6.697185, "continuous_yield_percent": 6.715902, "yield_difference_percent": 0.197185, "principal": 10000.0, "years": 5, "simple_future_value": 13250.0, "compound_future_value": 13828.17, "extra_earnings_vs_simple": 578.17 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ``` Save as.cursor/rules/miniwebtool-effective-yield-calculator.mdc copy prompt ```text --- description: MiniWebtool Effective Yield Calculator API — usage and credit budget globs: alwaysApply: false --- # MiniWebtool Effective Yield Calculator API ## The API **Effective Yield Calculator** — Calculate effective annual yield from nominal APR and compounding frequency. - Live endpoint: `POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run` — costs 2 credits - Dry run: `POST https://api.miniwebtool.com/v1/tools/effective-yield-calculator/dry-run` — costs 0 credits, same auth and validation - Auth: `Authorization: Bearer ` - Content type: `application/json` - Tool version: `2026-04-22` (output shape is stable within a major version) - Full machine-readable spec: `https://api.miniwebtool.com/v1/openapi.json` ### Request body | field | type | required | notes | |---|---|---|---| | `nominal_rate` | float | yes | — | | `periods` | int | no | 1 \| 2 \| 4 \| 12 \| 26 \| 52 \| 365 (default `12`) | | `principal` | float | no | (default `10000.0`) | | `years` | int | no | (default `5`) | Example request body: ```json { "nominal_rate": 6.5, "periods": 12, "principal": 10000, "years": 5 } ``` ### Response envelope ```json { "request_id": "req_01H…", "tool": "effective-yield-calculator", "tool_version": "2026-04-22", "credits_used": 2, "result": { "nominal_rate_percent": 6.5, "compounding_periods_per_year": 12, "effective_yield_percent": 6.697185, "continuous_yield_percent": 6.715902, "yield_difference_percent": 0.197185, "principal": 10000.0, "years": 5, "simple_future_value": 13250.0, "compound_future_value": 13828.17, "extra_earnings_vs_simple": 578.17 } } ``` `result` holds the tool output. Errors come back as `application/problem+json` with `type`, `title`, `status`, and `detail`. ### Getting a key If `MINIWEBTOOL_API_KEY` is not already in the environment, stop and ask me for one — do not sign up, scrape, or guess a key. Free keys: https://api.miniwebtool.com/dashboard/ ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` Skip the HTTP client — connect the agent directly. copy prompt ```text Add the MiniWebtool MCP server to this project, then use the `effective-yield-calculator` tool from it. Server URL: https://api.miniwebtool.com/v1/mcp Transport: HTTP (Streamable HTTP / JSON-RPC 2.0) Auth header: `Authorization: Bearer ` Claude Code: ```bash claude mcp add --transport http miniwebtool https://api.miniwebtool.com/v1/mcp \ --header "Authorization: Bearer $MINIWEBTOOL_API_KEY" ``` Or add it to the MCP config file your client uses: ```json { "mcpServers": { "miniwebtool": { "type": "http", "url": "https://api.miniwebtool.com/v1/mcp", "headers": { "Authorization": "Bearer ${MINIWEBTOOL_API_KEY}" } } } } ``` Once connected, call `get_tool` with slug `effective-yield-calculator` for its JSON Schema and an example, then `run_tool` with matching arguments — no HTTP client to write. ## Credit budget — follow these exactly This API is metered. A live call costs 2 credits; the free tier includes 1,000 credits per month. Burning them during integration is the single most common way to waste this key. 1. **Do all wiring against `/dry-run`, which costs 0 credits.** It validates the payload for real and returns a sample result with the exact response shape. Iterate there until your request builds and your parsing works. 2. **Make at most ONE live `/run` call** — a single end-to-end confirmation once dry-run passes. Print the result, then stop. 3. **Never call the API from unit tests, examples, or a retry loop.** Assert against the sample response captured from `/dry-run` instead. 4. **On 4xx, fix the payload — do not retry.** The error body is RFC 7807 `application/problem+json` and says exactly what is wrong. 5. **On 429, honour `Retry-After`** and back off; do not tighten the loop. 6. **Read `X-MWT-Credits-Remaining`** on every response. If it drops below 50, stop making live calls and tell me. 7. If the integration needs repeated calls at runtime, **cache by input** — this tool is deterministic, so the same input always returns the same output. ``` how-to call effective-yield-calculator - Get an API key [Get an API key](/billing/checkout/?plan=free). Sign up free for a bearer token. 1,000 credits/month, no card. - Assemble the JSON body Required fields:`nominal_rate`,. See the Request body table above for the full schema. - POST to`https://api.miniwebtool.com/v1/tools/effective-yield-calculator/run` Headers:`Authorization: Bearer `and`Content-Type: application/json`. Copy-paste snippets in 7 languages are under Code examples. - Parse the response Envelope:`{request_id, tool, tool_version, credits_used, result}`. The typed output lives in`result`. faq frequently asked What does the Effective Yield Calculator API do? + Calculate effective annual yield from nominal APR and compounding frequency. Use it to add this utility without rebuilding formulas, validation, examples, and documentation. How much does one call to Effective Yield Calculator cost? + 2 credits per successful call. Failed calls (validation errors, 5xx) don't bill. What parameters does the Effective Yield Calculator API require? + Required fields: nominal_rate. Full schema at /v1/openapi.json. Is the Effective Yield Calculator API deterministic? + Yes — same input, same output, forever. Tool version 2026-04-22; output shape is stable within a major version. Can an AI agent call the Effective Yield Calculator API? + Yes. Connect to https://api.miniwebtool.com/v1/mcp over the Model Context Protocol. The agent discovers `effective-yield-calculator` with its JSON Schema automatically, so the model can plan while MiniWebtool handles the exact tool result. What format does the API return? + JSON with a stable envelope: `{request_id, tool, tool_version, credits_used, result}`. Errors are RFC 7807 `application/problem+json`. mcp use from an AI agent Every endpoint on this site is also exposed via the [Model Context Protocol](/docs/#mcp) at`https://api.miniwebtool.com/v1/mcp`. Claude, Cursor, and any MCP-capable agent find this tool (`effective-yield-calculator`) with`search_tools`, read its JSON Schema with`get_tool`, and call it with`run_tool`— no client codegen. ```text # What the agent sees for this tool (free, no key) curl -s https://api.miniwebtool.com/v1/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tool","arguments":{"slug":"effective-yield-calculator"}}}' \ | jq.result.structuredContent ``` see-also related finance tools [ Doubling Time Calculator Calculate exact doubling time, Rule of 72 estimates, or the rate required to do… ](/tools/doubling-time-calculator/) [ Debt Consolidation Calculator Estimate a consolidated debt payment and interest cost. ](/tools/debt-consolidation-calculator/) [ Bond Yield to Maturity Calculator Calculate bond yield to maturity with curren