# PreFlight Web Search

> PreFlight Web Search is a paid API for AI agents from meryol-agenticmarket-x402.hf.space, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Searches the web for pre-trade intelligence, token due diligence, calldata red-flag data, oracle freshness, bridge security, and DeFi risk information to help autonomous agents verify before signing transactions.

## Facts

- Endpoint: GET https://meryol-agenticmarket-x402.hf.space/search
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preflight-web-search-cd2eac70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iM64cajlsnTQ-pkk5ji2Z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability preflight-web-search-cd2eac70
```

Example prompt: Before I bridge 50,000 USDC from Ethereum to Base using Stargate, search for any known exploits, security incidents, or red flags about Stargate bridge on Base mainnet — give me up to 10 results.

## When to prefer this

Use this endpoint when an autonomous agent needs open-web intelligence about a token, protocol, bridge, or transaction before signing — especially for due diligence queries that benefit from recent news, forum posts, or audit reports. Prefer this over on-chain data endpoints when the information needed is narrative, historical, or community-sourced rather than structured contract data.

## Known failure modes

- Missing required 'q' parameter returns a 400 or empty result
- Query returns zero results if topic is too niche or obscure
- Search engines may return stale cached results for rapidly evolving DeFi events
- max_results out of range (>20 or <1) may be rejected or clamped
- Payment not included or insufficient USDC results in 402 response
- Rate limits or HuggingFace Space cold-start latency may cause timeouts

## How this service works

Pre-trade & pre-sign checks for autonomous agents: everything an agent verifies BEFORE signing a transaction — token due diligence, calldata red-flag decoding, oracle freshness, holder concentration, bridge routing with executable calldata, cross-venue perp funding, gas and price sanity checks. EVM chains: Ethereum, Base, Arbitrum, Optimism.

## Output

Returns a JSON object with a list of web search results (URL, title, snippet, relevance score, and engine), along with the original query, any inline answers, and query suggestions — all sourced from multiple search engines aggregated by SearXNG.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "search query (required)"
      },
      "categories": {
       "type": "string",
       "description": "general|news|it|science"
      },
      "max_results": {
       "type": "string",
       "description": "1-20, default 8"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "results",
      "query"
     ]
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "notes": [],
  "query": "base mainnet usdc bridge exploit",
  "answers": [],
  "results": [
   {
    "url": "https://...",
    "score": 4.2,
    "title": "...",
    "engine": "duckduckgo",
    "snippet": "..."
   }
  ],
  "suggestions": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preflight-web-search-cd2eac70/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meryol-agenticmarket-x402.hf.space](https://www.zero.xyz/host/meryol-agenticmarket-x402.hf.space/llms.txt)
