Skip to content
Fourohtwo

api.sitecheck-api.workers.dev/api/rerank

Orders up to 50 documents by relevance to a query with the BGE reranker and returns rank, index and score for each. Use it after a keyword or vector search to pick the best few. Scores compare documents within one call only.

BaseSolanaArcPolygonArbitrumWorld Chain+1Answering
POSThttps://api.sitecheck-api.workers.dev/api/rerank

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.sitecheck-api.workers.dev/api/rerank", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"documents":["Our office is closed on public holidays.","x402 lets an agent pay per request in USDC, with no account."],"query":"how do I pay per call"}),
});
console.log(await res.json());

Example input

{
  "documents": [
    "Our office is closed on public holidays.",
    "x402 lets an agent pay per request in USDC, with no account."
  ],
  "query": "how do I pay per call"
}

More from SiteCheckProvider status