S

SocialFetch · Reddit Search

by SocialFetch

GETBase

$0.014

per call · USD Coin on Base

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

Endpoint

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

55

Calls / 30d

7

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.socialfetch.dev/v1/reddit/search", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.socialfetch.dev/v1/reddit/search?query=web+scraping" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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"
  }
}

Payment details

Pay to0x02c2fcafce36b4aadb39625866bc6b1699d83043
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from SocialFetch & similar services