29trust / 100

Converters Temperature Converter

by AgentTools in Documents & files

x402 APIFailing, checked 1 h ago

Convert between Celsius, Fahrenheit and Kelvin with exact formulas, reference points (freezing and boiling water) and step-by-step working. Use this when an agent needs to celsius, Fahrenheit and Kelvin, both ways.

GET https://agenttools-hub.vercel.app/api/v1/converters/temperature-converter

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
13.3%
Response time
152 ms typical, 152 ms slowest 5%
Last check
1 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/converters/temperature-converter?from=c&to=f&value=20"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fconverters%2Ftemperature-converter
const res = await pay("https://agenttools-hub.vercel.app/api/v1/converters/temperature-converter?from=c&to=f&value=20");
console.log(await res.json());

Example input

{
  "from": "c",
  "to": "f",
  "value": 20
}

Example output

{
  "result": {
    "answer": "68 °F",
    "answerLabel": "20 °C = ? °F",
    "details": [
      {
        "label": "Formula",
        "value": "°F = °C × 1.8 + 32"
      },
      {
        "label": "Water freezes at",
        "value": "0 °C · 32 °F · 273.15 K"
      },
      {
        "label": "Water boils at",
        "value": "100 °C · 212 °F · 373.15 K"
      }
    ],
    "steps": [
      "Convert 20 °C to Celsius: 20 °C",
      "Convert to Fahrenheit: 68 °F"
    ],
    "value": 68
  },
  "tool": "temperature-converter"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoExpected HTTP 402, got 30830873 ms-
6 h agoExpected HTTP 402, got 30830899 ms-
10 h agoExpected HTTP 402, got 308308104 ms-
14 h agoExpected HTTP 402, got 308308138 ms-
19 h agoExpected HTTP 402, got 30830880 ms-
23 h agoExpected HTTP 402, got 308308130 ms-
26 h agoExpected HTTP 402, got 30830897 ms-
30 h agoExpected HTTP 402, got 30830882 ms-
34 h agoExpected HTTP 402, got 30830885 ms-
39 h agoExpected HTTP 402, got 30830874 ms-
43 h agoExpected HTTP 402, got 308308121 ms-
47 h agoExpected HTTP 402, got 30830865 ms-
2 days agoExpected HTTP 402, got 30830883 ms-
2 days agoPassed402328 ms$0.002
2 days agoPassed402152 ms$0.002