Simulated DeFi yield opportunity finder, pay-per-call via x402 USDC on Base
What it does
The `/api/yield-finder` endpoint on httpay.xyz returns simulated DeFi yield opportunities across protocols and chains. It is a simple GET endpoint requiring no query parameters — you call it, pay $0.02 in USDC on Base via the x402 protocol, and receive a JSON response with yield data. The endpoint also supports MPP (Machine Payments Protocol) settlement via pathUSD on Tempo at $0.02 per call. A free demo mode is available by appending `?demo=true` (limited to 10 calls per IP per hour).
httpay.xyz is a pay-per-call API marketplace hosting 307+ endpoints across categories like crypto/finance, AI, web scraping, and utilities. No API keys or subscriptions are needed — payment is handled inline via the HTTP 402 challenge-response flow. The platform is live on Base L2 with real USDC transactions settling on-chain. An MCP server (`npx @httpay/mcp`) is available for integration with Claude Desktop, Cursor, or other MCP-compatible agents.
Important caveat: the endpoint is explicitly described as "simulated" in both its title and the x402 challenge metadata. The yield opportunities returned are not sourced from live on-chain data. No documentation exists beyond the landing page description, so the exact structure and content of the response is unclear.
Capabilities
Use cases
- —Exploring simulated DeFi yield data for prototyping agent workflows
- —Testing x402 payment flows with a low-cost endpoint
- —Demonstrating pay-per-call API integration in crypto/DeFi contexts
- —Building dashboards that display hypothetical yield opportunities
Fit
Best for
- —Developers prototyping x402 or MPP payment integrations
- —AI agents exploring DeFi data endpoints via MCP
- —Testing micropayment workflows with a cheap, simple GET endpoint
Not for
- —Production DeFi yield optimization — data is explicitly simulated
- —Users needing real-time, live on-chain yield data from actual protocols
- —High-frequency trading or arbitrage strategies
Quick start
# Free demo (no payment needed, 10 calls/IP/hour)
curl "https://httpay.xyz/api/yield-finder?demo=true"
# With x402 payment (Node.js)
import { withPayment } from "x402-fetch";
const res = await withPayment(
fetch("https://httpay.xyz/api/yield-finder"),
wallet
);Example
Response
{
"description": "Find the best yield opportunities (simulated)"
}Endpoint
Quality
The endpoint is live (402 challenge captured) with clear pricing ($0.02 USDC on Base), but the response schema is essentially unknown — the only example provided is a single description string. No dedicated docs page exists (/docs returns 404). The data is explicitly simulated, limiting real-world utility.
Warnings
- —Data is explicitly labeled as 'simulated' — not real DeFi yield data
- —No documentation available (/docs returns 404)
- —Response schema is unknown beyond a trivial example object with only a 'description' field
- —robots.txt disallows /api/ crawling (except specific whitelisted paths, not including this one)
Citations
- —Endpoint costs $0.02 per call in USDC on Base (maxAmountRequired: 20000 base units, 6 decimals)https://httpay.xyz/api/yield-finder
- —httpay.xyz hosts 307+ pay-per-call endpoints on Basehttps://httpay.xyz
- —Yield-finder endpoint is listed at $0.02 and described as finding DeFi yield opportunitieshttps://httpay.xyz
- —Free demo mode available via ?demo=true (10 calls/IP/hour)https://httpay.xyz/api/yield-finder
- —MCP server available via npx @httpay/mcphttps://httpay.xyz
- —MPP settlement supported via pathUSD on Tempo at $0.02https://httpay.xyz/api/yield-finder