{"slug":"x402-agentindex-world-rank-7f7e72","title":"Rank up to 50 documents by relevance to a query in a single call","host":"x402.agentindex.world","method":"POST","resource":"https://x402.agentindex.world/rank","category":"other","description":"Rank up to 50 documents by relevance to a query in a single call - each document returned with its relevance probability, sorted highest first. Try GET /rank/sample.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":870,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"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"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"documents":{"description":"Up to 50 documents to rank by relevance to the query. Each truncated to 2000 characters before scoring.","items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"query":{"description":"The query to rank documents against.","type":"string"}},"required":["query","documents"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"documents":{"description":"Input documents, sorted by relevance score descending.","items":{"properties":{"document":{"type":"string"},"score":{"description":"Relevance probability, 0-1.","type":"number"}},"type":"object"},"type":"array"},"x402_receipt":{"description":"Billing and provenance receipt for this call.","type":"object"}},"required":["documents"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":870,"error":null}],"description_full":"Rank up to 50 documents by relevance to a query in a single call - each document returned with its relevance probability, sorted highest first. Try GET /rank/sample.","last_updated":"2026-09-27T18:15:34.367Z","schemes":["exact"]}