{"openapi":"3.1.0","info":{"title":"AgentIndex x402","description":"Pay-per-call services for AI agents: web search, translation, async research jobs.","contact":{"email":"comallagency@gmail.com"},"version":"1.0.0","x-guidance":"AgentIndex x402 sells three pay-per-call tools for AI agents, paid in USDC on Base via x402 (HTTP 402) - no account, no API key, no subscription. POST /search takes a query and returns up to 10 web results with title, URL, a cleaned page extract, and publish date when available. POST /translate takes text plus a target language and returns the translated text with the detected source language; markdown, HTML, and {x} placeholders are preserved. POST /jobs takes a research subject and returns a job_id immediately; poll GET /jobs/{job_id} and read GET /jobs/{job_id}/result (both free) for a structured, sourced brief - use this instead of running many of your own search-and-read cycles. Every paid route has a free GET .../sample that returns a real example response, so you can inspect the shape before paying."},"paths":{"/search/sample":{"get":{"summary":"Search Sample","operationId":"search_sample_search_sample_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/search":{"post":{"summary":"Search","description":"Real-time web search - up to 10 results with title, URL, a cleaned page extract and publish date when available, plus an optional short summary. Also accepts up to 5 queries in one call, merged and de-duplicated - one call instead of five. First call free per wallet, then normal price. No account, no API key, no quota. Try a real, live sample at GET /search/sample.","operationId":"search_search_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"Payment required. Body carries an x402 PaymentRequired envelope (also base64-encoded in the payment-required response header); retry with a signed payment in the Payment-Signature request header.","headers":{"payment-required":{"description":"Base64-encoded x402 PaymentRequired challenge (JSON).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"x402Version":2,"error":"Payment required","accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"100000","payTo":"0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d","extra":{"name":"USD Coin","version":"2"}}]}}}}},"x-payment-info":{"price":{"mode":"fixed","currency":"USDC","amount":"0.100000"},"protocols":[{"x402":{}}]}}},"/translate/sample":{"get":{"summary":"Translate Sample","operationId":"translate_sample_translate_sample_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/translate":{"post":{"summary":"Translate","description":"Translate up to 200 text segments in a single call - the same result that would otherwise take 200 separate calls to translate a whole file. Markdown, HTML and {x} placeholders preserved per segment, order and count kept intact, source language auto-detected, automatic fallback across multiple models for uptime, providers that train on submitted prompts excluded. A single string also works. First call free per wallet, then normal price. No account, no API key. Try GET /translate/sample.","operationId":"translate_translate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"Payment required. Body carries an x402 PaymentRequired envelope (also base64-encoded in the payment-required response header); retry with a signed payment in the Payment-Signature request header.","headers":{"payment-required":{"description":"Base64-encoded x402 PaymentRequired challenge (JSON).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"x402Version":2,"error":"Payment required","accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"100000","payTo":"0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d","extra":{"name":"USD Coin","version":"2"}}]}}}}},"x-payment-info":{"price":{"mode":"fixed","currency":"USDC","amount":"0.100000"},"protocols":[{"x402":{}}]}}},"/jobs/sample":{"get":{"summary":"Jobs Sample","operationId":"jobs_sample_jobs_sample_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/jobs":{"post":{"summary":"Create Job","description":"Multi-query web research, read and synthesized into one sourced JSON brief in a single call - what would otherwise cost an agent twenty calls and its whole context window. First call free per wallet, then normal price. Free status polling and result retrieval. Try GET /jobs/sample.","operationId":"create_job_jobs_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"Payment required. Body carries an x402 PaymentRequired envelope (also base64-encoded in the payment-required response header); retry with a signed payment in the Payment-Signature request header.","headers":{"payment-required":{"description":"Base64-encoded x402 PaymentRequired challenge (JSON).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"x402Version":2,"error":"Payment required","accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000000","payTo":"0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d","extra":{"name":"USD Coin","version":"2"}}]}}}}},"x-payment-info":{"price":{"mode":"fixed","currency":"USDC","amount":"1.000000"},"protocols":[{"x402":{}}]}}},"/jobs/{job_id}":{"get":{"summary":"Get Job Status","operationId":"get_job_status_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/jobs/{job_id}/result":{"get":{"summary":"Get Job Result","operationId":"get_job_result_jobs__job_id__result_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/.well-known/x402":{"get":{"summary":"Well Known X402","operationId":"well_known_x402__well_known_x402_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent.json":{"get":{"summary":"Agent Json","operationId":"agent_json_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin":{"get":{"summary":"Admin Page","operationId":"admin_page_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}},"security":[{"HTTPBasic":[]}]}},"/admin/live":{"get":{"summary":"Admin Live Page","operationId":"admin_live_page_admin_live_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}},"security":[{"HTTPBasic":[]}]}},"/admin/data.json":{"get":{"summary":"Admin Data","operationId":"admin_data_admin_data_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/favicon.ico":{"get":{"summary":"Favicon","operationId":"favicon_favicon_ico_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBasic":{"type":"http","scheme":"basic"}}},"externalDocs":{"description":"Agent-oriented capability card with pricing, schemas and live samples","url":"https://x402.agentindex.world/agent.json"}}