83trust / 100

Reddit Search

by SocialFetch in News & content

x402 APIPassing, checked 3 h ago

Search Reddit posts site-wide by keyword (not scoped to one subreddit — use reddit.subreddit.search.list for that).

GET https://api.socialfetch.dev/v1/reddit/search

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.socialfetch.dev/v1/reddit/search?query=web+scraping"
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.socialfetch.dev%2Fv1%2Freddit%2Fsearch
const res = await pay("https://api.socialfetch.dev/v1/reddit/search?query=web+scraping");
console.log(await res.json());

Example input

{
  "query": "web scraping"
}

Example output

{
  "data": {
    "page": {
      "hasMore": true,
      "nextCursor": "t3_1scld0y"
    },
    "posts": [
      {
        "_truncated": true,
        "author": "smokedX",
        "bodyText": "we’ve hit a wall, the site we've been scraping for a year has updated their security and we can't figure out a bypass..…",
        "id": "1sa1sgp",
        "name": "t3_1sa1sgp",
        "permalink": "https://www.reddit.com/r/webscraping/comments/1sa1sgp/a_cry_to_the_webscraping_gods_need_web_scrapping/",
        "score": 43,
        "subreddit": "webscraping",
        "subredditPrefixedName": "r/webscraping",
        "title": "A cry to the Webscraping Gods, need web scrapping pro to save us",
        "upvoteRatio": 0.97,
        "upvotes": 43,
        "url": "https://www.reddit.com/r/webscraping/comments/1sa1sgp/a_cry_to_the_webscraping_gods_need_web_scrapping/"
      }
    ],
    "query": "webscraping",
    "totalResults": 25
  },
  "meta": {
    "creditsCharged": 1,
    "requestId": "req_01example",
    "version": "v1"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402221 ms$0.014