Api Endpoint

SiteCheck

Convert a value between units of length, area, volume (US customary and metric, cooking measures), mass, speed, pressure, energy, power, data size (SI and binary), time and temperature. Factors are exact to the definitions in NIST SP 811 (international inch and pound, US gallon, calorie IT, Btu IT, mechanical horsepower). An unknown unit is a 400 that lists every supported unit. Pure code, no outside source.

Open interactive test console

Offering

Provider
api.sitecheck-api.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.sitecheck-api.workers.dev/api/units
MIME type
application/json
First seen
2026-10-16T01:51:02.144Z
Last seen
Tags
unit converter, convert units, metric imperial, length, weight, temperature, data size, cooking measures

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
2000 atomic units
Atomic price: 2000 · Network: eip155:5042 · Asset: 0x3600000000000000000000000000000000000000 · Scheme: exact
Payment option 4
0.002 USDC
Atomic price: 2000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 5
0.002 USDC
Atomic price: 2000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 6
0.002 USDC
Atomic price: 2000 · Network: eip155:143 · Asset: USDC · Scheme: exact
Payment option 7
0.002 USDC
Atomic price: 2000 · Network: eip155:480 · Asset: USDC · Scheme: exact
Payment option 8
0.002 USDC
Atomic price: 2000 · Network: eip155:10 · Asset: USDC · Scheme: exact
Payment option 9
2000 atomic units
Atomic price: 2000 · Network: eip155:42220 · Asset: 0xcebA9300f2b948710d2653dD7B07f33A8B32118C · Scheme: exact
Payment option 10
20000 atomic units
Atomic price: 20000 · Network: stellar:pubnet · Asset: CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75 · Scheme: exact
Payment option 11
1539 atomic units
Atomic price: 1539 · Network: xrpl:0 · Asset: XRP · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "payTo": "J8vnmBx4pS1X7UUBTfz1yWBKiw69Dj2yRGRHDaXBRdhR"
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:143",
    "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:480",
    "asset": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:10",
    "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:42220",
    "asset": "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "stellar:pubnet",
    "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
    "amount": "20000",
    "payTo": "GBIX2M7HNL2G2VYU5KZ446OSN55ZWHS3WBEUP4JTLS6R34VXIGTDOAFI"
  },
  {
    "scheme": "exact",
    "network": "xrpl:0",
    "asset": "XRP",
    "amount": "1539",
    "payTo": "rDxNZCDfLxUzeMWGGwsY3sjQT8eoZCf8UJ"
  }
]

Observed health

Status
Healthy
Latest latency
68 ms
Average latency
696 ms
HTTP status
402
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "The number to convert, up to 1e15 in size"
        },
        "from": {
          "type": "string",
          "description": "Unit to convert from, e.g. mi, kg, F, GiB, kWh, gal_us"
        },
        "to": {
          "type": "string",
          "description": "Unit to convert to, of the same kind, e.g. km, lb, C, MB"
        }
      },
      "required": [
        "value",
        "from",
        "to"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "from": {
              "description": "Unit to convert from, e.g. mi, kg, F, GiB, kWh, gal_us",
              "type": "string"
            },
            "to": {
              "description": "Unit to convert to, of the same kind, e.g. km, lb, C, MB",
              "type": "string"
            },
            "value": {
              "description": "The number to convert, up to 1e15 in size",
              "type": "string"
            }
          },
          "required": [
            "value",
            "from",
            "to"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}