Skip to content

Developer docs

Every calculator and converter on Tools Directory is also a free JSON API and an MCP tool. It runs the same code as the tool page, so the API and the page always give the same answer. There is no key and no signup.

curl -X POST https://api.tools-directory.workers.dev/v1/tools/ascii-art-generator \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"mode":"text","text":"HI","fill":"#"}}'
const res = await fetch('https://api.tools-directory.workers.dev/v1/tools/ascii-art-generator', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"inputs":{"mode":"text","text":"HI","fill":"#"}}),
});
const out = await res.json();
if (!out.ok) throw new Error(out.error.message);
console.log(out.result.stats.primary.display);
import requests

r = requests.post(
    'https://api.tools-directory.workers.dev/v1/tools/ascii-art-generator',
    json={"inputs":{"mode":"text","text":"HI","fill":"#"}},
    timeout=10,
)
out = r.json()
print(out['result']['stats']['primary']['display'] if out['ok'] else out['error'])

Start here

For programs