Rank up to 50 documents by relevance to a query in a single call
x402.agentindex.world/rank
Rank up to 50 documents by relevance to a query in a single call - each document returned with its relevance probability, sorted highest first. Powered by Jev (TypeSafe System One). $0.001 per call, no OpenRouter or TypeSafe account needed. Try GET /rank/sample.
POST
https://x402.agentindex.world/rankUptime100% of 1 check 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://x402.agentindex.world/rank", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"documents":["A blog post comparing REST API versioning strategies: URL path, header, and query param versioning.","A recipe for chocolate cake with step-by-step baking instructions.","A guide to RESTful resource naming conventions and correct HTTP verb usage."],"query":"best practices for REST API design"}),
});
console.log(await res.json());Example input
{
"documents": [
"A blog post comparing REST API versioning strategies: URL path, header, and query param versioning.",
"A recipe for chocolate cake with step-by-step baking instructions.",
"A guide to RESTful resource naming conventions and correct HTTP verb usage."
],
"query": "best practices for REST API design"
}