API Acre · Developer X402 Preflight

by API Acre

POSTBaseSolana

$0.05

per call · USD Coin on Base

Probe a public endpoint without paying, grade its x402 v2 challenge, check exact-host x402-list presence and traction, and optionally rank licensed market matches with buyer-concentration caveats.

Endpoint

POST https://apiacre.com/v1/developer/x402-preflight

3

Calls / 30d

2

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/developer/x402-preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "body": {
      "document": "{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Example\",\"version\":\"1...",
      "format": "json"
    },
    "market_limit": 1,
    "market_query": "audit",
    "method": "POST",
    "url": "https://apiacre.com/v1/developer/openapi-audit"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/developer/x402-preflight" \
  -H "Content-Type: application/json" \
  -d '{"body":{"document":"{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Example\",\"version\":\"1...","format":"json"},"market_limit":1,"market_query":"audit","method":"POST","url":"https://apiacre.com/v1/developer/openapi-audit"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "checkedAt": "2026-08-09T00:00:00+00:00",
    "checks": [
      {
        "id": "http_402",
        "message": "Return HTTP 402 before payment.",
        "passed": true,
        "severity": "high"
      }
    ],
    "compliant": true,
    "directoryEvidence": {
      "market": {
        "query": "audit",
        "returned": 1,
        "status": "ok",
        "totalMatches": 31
      },
      "source": {
        "apiUrl": "https://x402-list.com/api/v1/services",
        "documentationUrl": "https://x402-list.com/api",
        "name": "x402 List",
        "url": "https://x402-list.com"
      },
      "target": {
        "hostname": "apiacre.com",
        "matchCount": 1,
        "matchMethod": "exact_host",
        "status": "matched"
      },
      "version": "apiacre-x402-directory-evidence/1"
    },
    "elapsedMs": 128,
    "finalUrl": "https://apiacre.com/v1/developer/openapi-audit",
    "grade": "A",
    "gradeVersion": "apiacre-x402-preflight/1",
    "limitations": "One unpaid target request only; no payment is signed and ...",
    "method": "POST",
    "payment": {
      "acceptsCount": 1,
      "network": "eip155:8453",
      "scheme": "exact",
      "version": 2
    },
    "remediation": [],
    "score": 100,
    "statusCode": 402,
    "url": "https://apiacre.com/v1/developer/openapi-audit"
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "developer.x402-preflight",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from API Acre & similar services