OptimAI Search: an agent-ready decentralized search API powered by OptimAI Network nodes
OptimAI Search: an agent-ready decentralized search API powered by OptimAI Network nodes. Ask a natural-language question and get real-time, citation-backed search results across web, social, and crypto data.
1000 (raw units)
price
2
calls / 30d
1
unique payers
2026-08-28
updated
Provider
api-onchain.optimai.network · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x98C67dfAd5f7D70e2782521cD09BB80f560ea2c3",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bDa02913",
"amount": "1000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "5KWo5n7zdRB7c66FAnrZi3NbDKE2bWTiP6G2p6oyVsCk",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "search",
"discoverable": true,
"info": {
"input": {
"body": {
"query": "What are the latest updates on OptimAI Network?"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"id": "00000000-0000-0000-0000-000000000000",
"query": "What are the latest updates on OptimAI Network?",
"status": "pending",
"x402_payment_status": "verified_unsettled"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"query": {
"description": "Natural-language search or research question for an AI agent to answer with OptimAI Search.",
"maxLength": 1000,
"minLength": 1,
"type": "string"
},
"search_mode": {
"default": "search",
"description": "Select standard Search or text-only Agent mode.",
"enum": [
"search",
"agent"
],
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"id": {
"type": "string"
},
"query": {
"type": "string"
},
"result": {
"properties": {
"answer": {
"type": "string"
},
"citations": {
"items": {
"properties": {
"snippet": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"status": {
"enum": [
"pending",
"planning",
"searching",
"processing",
"aggregating",
"completed",
"failed",
"cancelled"
],
"type": "string"
},
"x402_payment_status": {
"enum": [
"verified_unsettled",
"settled",
"voided",
"settlement_failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"query"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"search",
"agent-search",
"decentralized-search",
"depin-search",
"crypto-search",
"agentic-ai",
"claw",
"agent-marketplace",
"agentic-trading"
]
}
}Use it
curl
curl "https://api-onchain.optimai.network/external/v1/x402/search" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api-onchain.optimai.network/external/v1/x402/search");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api-onchain.optimai.network/external/v1/x402/search")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5366.json, and this resource appears in /discovery/resources and /discovery/search.