Api Endpoint

SiteCheck

SQL from a question and a schema (CREATE TABLE statements or a JSON description of tables and columns), for postgres (default), mysql, sqlite or bigquery. The tables and columns used are checked against the schema; a query that does not match it is retried once, then refused. Writes (INSERT, UPDATE, DELETE, DDL) are refused unless allowWrite is true. The query is not run.

Open interactive test console

Offering

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

Endpoint context

URL
https://api.sitecheck-api.workers.dev/api/sql/generate
MIME type
application/json
First seen
2026-10-16T01:51:40.954Z
Last seen
Tags
sql, query, text to sql, schema

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
66 ms
Average latency
532 ms
HTTP status
204
Last checked
Reachability
100% over 13 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": [
        "POST"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "question": {
          "type": "string",
          "description": "Question in plain language (max 1,000 characters)"
        },
        "schema": {
          "type": "string",
          "description": "CREATE TABLE statements, or a JSON object of tables and column lists (max 20,000 characters)"
        },
        "dialect": {
          "type": "string",
          "description": "postgres (default), mysql, sqlite or bigquery"
        },
        "allowWrite": {
          "type": "boolean",
          "description": "Allow INSERT, UPDATE, DELETE or DDL (default false)"
        }
      },
      "required": [
        "question",
        "schema"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}