X

x-preflight · Paid Grade

by x-preflight

POSTBase

$0.01

per call · USD Coin on Base

X Preflight: read a draft post against X's open-sourced ranking code. Returns what is already settled before you post, whether it enters the pool strangers are drawn from, how long it stays retrievable, which filters delete it, and which gates nobody can know in advance. Every claim cites a file and line in X's published source. Never writes the post. Nothing stored.

Endpoint

POST https://kevinhoff.com/api/paid/grade

8

Calls / 30d

2

Unique payers / 30d

Sep 8

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://kevinhoff.com/api/paid/grade", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "text": "the draft post you are about to publish on x.com"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://kevinhoff.com/api/paid/grade" \
  -H "Content-Type: application/json" \
  -d '{"text":"the draft post you are about to publish on x.com"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "gates": [
    {
      "head": "It can be found by strangers.",
      "n": 1,
      "name": "On the list",
      "src": "phoenixRankAllCandidateProcessor.strato:446-451",
      "state": "go"
    }
  ],
  "model": {
    "built_for": "copy_link",
    "negative_risk": {
      "level": "low"
    },
    "survival": {
      "verdict": "clear"
    }
  },
  "structural": [
    {
      "detail": "An original or a quote is written to the index out-of-network readers are drawn from.",
      "fact": "enters the pool",
      "src": "phoenixRankAllCandidateProcessor.strato:446-451"
    }
  ]
}

Payment details

Pay to0x3a7292b88471691946d8d8856925e22246bed743
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from x-preflight & similar services