81trust / 100

Reddit

by agdata in News & content

x402 APIPassing, checked 4 h ago

Search Reddit or read a subreddit. Use mode hashtag with a subreddit name (no r/), profile with a username, or search with keywords, plus limit 1-20. Every record carries a normalized object with kind, title, body, author, subreddit, url, created_at, upvotes and comments_count. Comments are not fetched. upvotes and comments_count can be null, and subreddit mode may return the subreddit's own record (kind: community) with its description.

POST https://agdata.shveik.dev/x402/reddit

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
28 ms typical, 28 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agdata.shveik.dev/x402/reddit" \
  -H "content-type: application/json" \
  -d '{"limit":5,"mode":"hashtag","query":"programming"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagdata.shveik.dev%2Fx402%2Freddit
const res = await pay("https://agdata.shveik.dev/x402/reddit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":5,"mode":"hashtag","query":"programming"}),
});
console.log(await res.json());

Example input

{
  "limit": 5,
  "mode": "hashtag",
  "query": "programming"
}

Example output

{
  "author": "example_…",
  "body": "Do you u…",
  "comments_count": 44,
  "created_at": "2026-09-…",
  "id": "t3_1wro6…",
  "kind": "post",
  "members": 378852,
  "subreddit": "golang",
  "title": "What do…",
  "upvotes": 49,
  "url": "https://…"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40228 ms$0.053

History

11 Oct 2026Price changed from $0.05 to $0.053