Hacker News full-text search via the official Algolia mirror — free, fast, no key.
Agents that monitor HN for product mentions. Trend agents that surface the day's top posts.
GET/api/v1/search$0.001 USDC per upstream 2xx (4xx is free)curl -X POST https://spawnpay.ai/api/proxy \
-H 'Authorization: Bearer spk_live_…' \
-H 'Content-Type: application/json' \
-d '{
"provider": "hn",
"path": "/api/v1/search",
"method": "GET",
"query": {
"query": "spawnpay",
"tags": "story"
}
}'
import { proxy } from 'spawnpay-paywall';
const out = await proxy({
"provider": "hn",
"path": "/api/v1/search",
"method": "GET",
"query": {
"query": "spawnpay",
"tags": "story"
}
});
console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt
The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.