agentsvc.io

services / dev-search

weboperational · 718 ms

Developer Search

Search developer sources in one call: Hacker News stories (Algolia), GitHub repositories (by stars), npm packages (with weekly downloads), PyPI (exact package lookup, PyPI has no search API) and Stack Overflow questions. Each source returns its own list; a source that is rate limited reports an error without failing the call. Params: query (required), sources (default all: hackernews, github, npm, pypi, stackoverflow), limit per source (1 to 20, default 5).

Run free trial ↗1 free call per day with the example input. Paid: $0.003 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/dev-search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"query":"x402","limit":3}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
query *string
sourcesarray
limitinteger = 5

Output

FieldTypeDescription
querystring
sourcesobject
searched_atstring

Example response (data)

{
  "query": "x402",
  "sources": {
    "hackernews": [
      {
        "title": "Monetization Gateway: Charge for any resource behind Cloudflare via x402",
        "url": "https://blog.cloudflare.com/monetization-gateway/",
        "discussion": "https://news.ycombinator.com/item?id=48746914",
        "points": 355,
        "comments": 251,
        "author": "soheilpro",
        "date": "2026-07-01"
      }
    ],
    "npm": [
      {
        "name": "x402",
        "version": "1.2.0",
        "description": "x402 Payment Protocol",
        "weekly_downloads": 541785,
        "url": "https://www.npmjs.com/package/x402",
        "repository": "git+https://github.com/x402-foundation/x402.git",
        "updated": "2026-04-16"
      }
    ]
  },
  "searched_at": "2026-10-06T14:30:55.176Z"
}