Api Endpoint

fastx402.tools

Converts between CSS length units (px, rem, em, pt, cm, in, vw, vh) given a base font size and viewport dimensions. Returns the equivalent value in the target unit with precision.

Open interactive test console

Offering

Provider
fastx402.tools
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://fastx402.tools/css-unit-convert
MIME type
application/json
First seen
2026-10-23T22:48:47.298Z
Last seen
Tags
Dev

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
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0xFe6Ae9ec9DE12817f23958F11b6CE69194b6Bd7E"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "payTo": "5zYuctvYNqYyqQYURqJQjQ1HrM5AXaXx4SeRx3Jr2oeA"
  }
]

Observed health

Status
Healthy
Latest latency
194 ms
Average latency
479 ms
HTTP status
402
Last checked
Reachability
100% over 14 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": "Numeric value to convert"
        },
        "from": {
          "type": "string",
          "description": "Source unit: px, rem, em, pt, cm, in, vw, vh"
        },
        "to": {
          "type": "string",
          "description": "Target unit: px, rem, em, pt, cm, in, vw, vh"
        },
        "baseFontSize": {
          "type": "string",
          "description": "Base font size in px for rem/em conversions (default 16)"
        },
        "viewportWidth": {
          "type": "string",
          "description": "Viewport width in px for vw conversions (default 1920)"
        },
        "viewportHeight": {
          "type": "string",
          "description": "Viewport height in px for vh conversions (default 1080)"
        }
      },
      "required": [
        "value",
        "from",
        "to"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "value": {
          "type": "integer"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "result": {
          "type": "integer"
        },
        "baseFontSize": {
          "type": "integer"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}