x402-direct
Discover and search x402-enabled services via the x402.direct directory API. Use when an agent needs to find paid API services that accept x402 payments, browse the x402 ecosystem, look up service details, check trust scores, or search for specific capabilities (AI, image, weather, search, data, audio, video, developer, finance, language, storage). Triggers on "find x402 service", "x402 directory", "search x402", "x402 API", "paid API search", "x402.direct", agent-to-agent payments, crypto-native API discovery.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jovannyespinal/x402-directx402.direct -- Service Directory
The x402.direct API is a directory of x402-enabled services. It indexes services that accept x402 payments (HTTP 402 + crypto) and provides search, browsing, and trust scoring.
Base URL: https://x402.direct
Endpoints
1. Search (Paid -- $0.001 via x402)
GET /api/search?q=<query>
Full-text search across all indexed services. Results ranked by blended text relevance + trust score. Protected by x402 middleware -- first request returns HTTP 402, re-send with payment proof.
Parameters:
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | yes | Search query (max 500 chars) |
| category | string | no | Filter by category |
| network | string | no | Filter by blockchain network |
| maxPrice | string | no | Max price in atomic units (bigint) |
| minScore | integer | no | Minimum trust score (0-100) |
| limit | integer | no | Max results (default 20, max 50) |
Example:
curl "https://x402.direct/api/search?q=weather+api&minScore=60&limit=5"
Response shape:
{
"query": "weather api",
"count": 3,
"results": [
{
"id": 42,
"resourceUrl": "https://example.com/api/weather",
"description": "Real-time weather data for any location",
"category": "weather",
"provider": "example.com",
"network": "base-mainnet",
"price": "1000",
"priceUsd": "0.001",
"scoutScore": 85,
"scoutVerdict": "safe",
"relevance": 0.3214,
"score": 58.11
}
]
}
x402 payment flow:
- Send GET to
/api/search?q=...with no payment header. - Server returns HTTP 402 with payment details in the response body (price, network, payTo address, facilitator URL).
- Pay $0.001 USDC on Base (via agent wallet or Coinbase Agentic Wallet).
- Re-send the same request with
X-402-Payment: <proof>header. - Server verifies payment via facilitator and returns search results.
If using an x402-aware HTTP client (e.g., x402 npm package), the payment is handled automatically:
import { createX402Client } from "x402";
const client = createX402Client({ wallet: agentWallet });
const resp = await client.fetch("https://x402.direct/api/search?q=weather+api");
2. Browse Services (Free)
GET /api/services
Paginated list of all indexed services.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jovannyespinal-x402-direct": {
"enabled": true,
"auto_update": true
}
}
}