Skip to content
YKTechHubInc

Public tools

Tool API.

Text, network, and calculation calls. Each one takes a JSON object and returns JSON. The complete list is at /tools/v1/openapi. File, camera, and microphone tools stay in the browser and are not available here. A key from API keys goes in the Authorization header. Files stay on the computer that opened them. This API does not take a file.

Tools

  • subnet

    Read an IPv4 address and prefix.

  • cron

    Explain a cron expression and return its next UTC run times.

  • regex

    Find the first 100 matches of a regular expression.

  • token

    Decode a compact token without checking its signature.

  • dns

    Look up public A, MX, and TXT records.

  • redirects

    Follow the public redirect chain for an address.

  • sitemap

    Collect public pages from a site for a sitemap.

  • stack

    Identify visible technologies on a public page.

  • chmod

    Explain an octal permission mode.

  • robots

    Build a robots.txt file.

  • gitignore

    Build a gitignore file for selected stacks.

  • epoch

    Convert a Unix timestamp to UTC.

  • json_csv

    Convert between JSON rows and CSV.

  • yaml_json

    Convert between YAML and JSON.

  • markdown_html

    Convert between Markdown and HTML.

  • compare

    Compare two texts line by line.

  • currency

    Convert an amount using the current reference rate.

  • loan

    Calculate a fixed monthly loan payment.

MCP

Connect Cursor, VS Code, GitHub Copilot, or Claude to https://www.yktechhub.com/mcp. Create a key at /tools/keys, then replace yk_... below. Reconnect the client after saving.

Cursor · .cursor/mcp.json

{
  "mcpServers": {
    "yktechhub": {
      "url": "https://www.yktechhub.com/mcp",
      "headers": {
        "Authorization": "Bearer yk_..."
      }
    }
  }
}

VS Code and GitHub Copilot · .vscode/mcp.json

{
  "servers": {
    "yktechhub": {
      "type": "http",
      "url": "https://www.yktechhub.com/mcp",
      "headers": {
        "Authorization": "Bearer yk_..."
      }
    }
  }
}

Claude Code · .mcp.json

{
  "mcpServers": {
    "yktechhub": {
      "type": "http",
      "url": "https://www.yktechhub.com/mcp",
      "headers": {
        "Authorization": "Bearer yk_..."
      }
    }
  }
}

In Claude Desktop, add a custom connector. Use the same address and Authorization header. A remote server does not belong in Claude Desktop’s local server file.

The call

POST https://www.yktechhub.com/tools/v1/{tool}. Send Content-Type: application/json. The body is at most 64 KB. The tools are listed above.

POST https://www.yktechhub.com/tools/v1/subnet
Authorization: Bearer yk_...
Content-Type: application/json

{"address":"192.168.1.10","mask":"24"}

A good call is HTTP 200 with { "ok": true, "result": { ... } }. A refused call is { "ok": false, "error": "..." } and one of these statuses.

  • 401. The header is missing, or the key is unknown or revoked.
  • 400. The JSON is not an object, or a field could not be read.
  • 404. The path is not one of the tools.
  • 413. The body is over 64 KB.
  • 429. The key is over its limit. Retry-After says how many seconds to wait.
  • 503. The key store could not be read. The call is not counted.

Key and limits

Create a key while signed in at /tools/keys. The full key is shown once. An account can keep 5 active keys. Revoke one to make another. Send it as Authorization: Bearer yk_...

Each key can make 60 calls a minute and 1,000 calls a day, in UTC. Every response sets X-RateLimit-Limit to 60. After the key is accepted, X-RateLimit-Remaining is how many calls are left in that minute. A minute limit answers with Retry-After: 60. A day limit answers with Retry-After: 3600.

Subnet

POST /tools/v1/subnet. An IPv4 address and a prefix from 0 to 32, or a dotted mask such as 255.255.255.0. The address can also carry the prefix, as in 192.168.1.10/24, and mask can be empty.

{"address":"192.168.1.10","mask":"24"}
{
  "ok": true,
  "result": {
    "address": "192.168.1.10",
    "prefix": 24,
    "mask": "255.255.255.0",
    "wildcard": "0.0.0.255",
    "network": "192.168.1.0",
    "broadcast": "192.168.1.255",
    "first": "192.168.1.1",
    "last": "192.168.1.254",
    "total": "256",
    "usable": "254",
    "note": "The first and last addresses of this block are the network and the broadcast."
  }
}

total and usable are text, with commas on larger blocks. A /32 is one address. A /31 uses both addresses.

Cron

POST /tools/v1/cron. Send expression, five or six fields, or a name such as @daily. The sentence is English. runs holds the next eight times as UTC timestamps, from the site clock at the moment of the call.

{"expression":"0 9 * * 1-5"}
{
  "ok": true,
  "result": {
    "summary": "At 9:00 AM, Monday through Friday.",
    "fields": [
      { "label": "Minute", "value": "0" },
      { "label": "Hour", "value": "9" },
      { "label": "Day of the month", "value": "every" },
      { "label": "Month", "value": "every" },
      { "label": "Day of the week", "value": "Monday through Friday" }
    ],
    "runs": ["<the next eight times, as UTC>"]
  }
}

runs is eight UTC timestamps, or fewer when the schedule has no match in the next two years. A six-field expression adds a Second field.

Regex

POST /tools/v1/regex. pattern is at most 500 characters. sample is at most 50,000. flags may be i, m, s, or u. g is always on. A pattern written as /pattern/im is read the same way. The result keeps the first 100 matches, and truncated is true when more were found. A pattern that runs longer than a second and a half is refused.

{"pattern":"(\\w+)@(\\w+\\.\\w+)","flags":"","sample":"Write ada@shop.test today."}
{
  "ok": true,
  "result": {
    "hits": [
      {
        "index": 6,
        "text": "ada@shop.test",
        "groups": [
          { "name": "1", "value": "ada" },
          { "name": "2", "value": "shop.test" }
        ]
      }
    ],
    "truncated": false,
    "flags": "g"
  }
}

index is where the match starts in the sample. Named groups are added after the numbered ones.

Token

POST /tools/v1/token. Send the compact token, with or without a leading Bearer. The readable header and payload come back as objects. signed is true when a third part is present. The signature is not checked. times lists Expires, Not before, and Issued when those claims are Unix seconds, written in UTC. The token is at most 20,000 characters.

Unsigned example only. The sample below uses alg: none, contains no signature, and must not be used as an authentication credential.

{"token":"eyJhbGciOiJub25lIn0.eyJzdWIiOiJhZGEifQ"}
{
  "ok": true,
  "result": {
    "header": { "alg": "none" },
    "payload": { "sub": "ada" },
    "signed": false,
    "times": []
  }
}

DNS

POST /tools/v1/dns. Send a public domain or website address. The result holds A, MX, and TXT records. Private and local names are refused.

{"name":"example.com"}
{
  "ok": true,
  "result": {
    "name": "example.com",
    "a": ["192.0.2.1"],
    "mx": [{ "priority": 10, "exchange": "mail.example.com" }],
    "txt": ["v=spf1 -all"]
  }
}

The records above are the shape of a result. A live call returns the records found at that moment.

Redirects

POST /tools/v1/redirects. Send one public HTTP or HTTPS address. Each hop includes its status and the next location. stop is empty when the chain ends normally.

{"url":"https://example.com"}
{
  "ok": true,
  "result": {
    "hops": [
      { "url": "https://example.com/", "status": 301, "location": "https://www.example.com/" },
      { "url": "https://www.example.com/", "status": 200, "location": "" }
    ],
    "stop": ""
  }
}

Sitemap

POST /tools/v1/sitemap. Send a public site address. urls lists pages found on that site, up to 500. stop is empty unless the crawl reaches its page or time limit.

{"url":"https://example.com"}
{
  "ok": true,
  "result": {
    "urls": ["https://example.com/", "https://example.com/about"],
    "stop": ""
  }
}

Stack

POST /tools/v1/stack. Send a public page address. The result names visible frameworks, hosting clues, the server header, and the generator tag when one is present.

{"url":"https://example.com"}
{
  "ok": true,
  "result": {
    "url": "https://example.com/",
    "server": "cloudflare",
    "poweredBy": "",
    "generator": "",
    "frameworks": [{ "name": "Next.js", "clue": "/_next/" }],
    "cms": [],
    "analytics": [],
    "hosting": [{ "name": "Cloudflare", "clue": "server" }]
  }
}

An empty list means that clue was not visible. It does not prove the technology is absent.

Chmod

POST /tools/v1/chmod. Send three or four octal digits. The result is the same mode in octal and symbolic form.

{"mode":"755"}
{
  "ok": true,
  "result": { "octal": "755", "symbol": "rwxr-xr-x" }
}

Robots

POST /tools/v1/robots. Paths go in allow and disallow, one per line, and each path starts with a slash or an asterisk. sitemap is optional and must be an HTTP or HTTPS address.

{"agent":"*","allow":"","disallow":"/private","sitemap":"https://example.com/sitemap.xml"}
{
  "ok": true,
  "result": {
    "file": "User-agent: *\nDisallow: /private\n\nSitemap: https://example.com/sitemap.xml\n"
  }
}

Gitignore

POST /tools/v1/gitignore. stacks accepts node, python, unity, godot, macos, and windows. The file joins the selected templates.

{"stacks":["node"]}
{
  "ok": true,
  "result": { "file": "# Node.js\nnode_modules/\n..." }
}

Epoch

POST /tools/v1/epoch. A number below one trillion is read as seconds. A larger number is read as milliseconds. utc is the UTC reading.

{"value":"1710000000"}
{
  "ok": true,
  "result": {
    "unit": "seconds",
    "utc": "Saturday, March 9, 2024 at 4:00:00 PM UTC",
    "unix_seconds": 1710000000,
    "iso": "2024-03-09T16:00:00.000Z"
  }
}

JSON and CSV

POST /tools/v1/json_csv. direction is json_to_csv or csv_to_json. text is the source. The converted text comes back in result.text.

{"direction":"json_to_csv","text":"[{\"name\":\"Ada\"}]"}
{
  "ok": true,
  "result": { "text": "name\nAda" }
}

YAML and JSON

POST /tools/v1/yaml_json. direction is yaml_to_json or json_to_yaml. Send one YAML document.

{"direction":"yaml_to_json","text":"name: Ada\n"}
{
  "ok": true,
  "result": { "text": "{\n  \"name\": \"Ada\"\n}\n" }
}

Markdown and HTML

POST /tools/v1/markdown_html. direction is markdown_to_html or html_to_markdown.

{"direction":"markdown_to_html","text":"# Hello\n"}
{
  "ok": true,
  "result": { "text": "<h1>Hello</h1>\n" }
}

Compare

POST /tools/v1/compare. Send the two texts as left and right. Each change says whether those lines were added, removed, or kept.

{"left":"one\n","right":"two\n"}
{
  "ok": true,
  "result": {
    "changes": [
      { "added": false, "removed": true, "value": "one\n" },
      { "added": true, "removed": false, "value": "two\n" }
    ]
  }
}

Currency

POST /tools/v1/currency. amount is a number, and from and to are three-letter currency codes. rate is the reference rate on date. converted is amount multiplied by that rate.

{"amount":10,"from":"USD","to":"EUR"}
{
  "ok": true,
  "result": {
    "date": "2026-12-01",
    "from": "USD",
    "to": "EUR",
    "rate": 0.92,
    "amount": 10,
    "converted": 9.2
  }
}

date, rate, and converted come from the current reference rate. The numbers above show the shape.

Loan

POST /tools/v1/loan. principal is the amount borrowed, annual_percent is the yearly rate, and months is the term from 1 to 600. monthly, total, and interest are the fixed-payment calculation. market is the latest published mortgage average when it is available.

{"principal":10000,"annual_percent":6,"months":12}
{
  "ok": true,
  "result": {
    "monthly": 860.6642970708236,
    "total": 10327.971564849884,
    "interest": 327.9715648498841,
    "market": null
  }
}