78trust / 100
Posts Comments
by SocialFetch in News & content
x402 APIPassing, checked 3 h ago
List comments on a Reddit post by URL.
GET https://api.socialfetch.dev/v1/reddit/posts/comments
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 250 ms typical, 283 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/posts/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fgadgets%2Fcomments%2F1tgimff%2Faura_displays_debuts_new_portable_monitor_with%2F"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%2Fapi.socialfetch.dev%2Fv1%2Freddit%2Fposts%2Fcomments
const res = await pay("https://api.socialfetch.dev/v1/reddit/posts/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fgadgets%2Fcomments%2F1tgimff%2Faura_displays_debuts_new_portable_monitor_with%2F");
console.log(await res.json());Example input
{
"url": "https://www.reddit.com/r/gadgets/comments/1tgimff/aura_displays_debuts_new_portable_monitor_with/"
}Example output
{
"data": {
"comments": [
{
"_truncated": true,
"author": "sweatybeard",
"createdAt": "2019-01-01T21:35:24.000Z",
"createdUtc": 1546378524,
"depth": 0,
"id": "ed1czme",
"parentId": "t3_ablzuq",
"permalink": "/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/ed1czme/",
"renderedHtml": "<div class=\"md\"><p>But when I finally do, it'll be the years biggest shit <sup><sup><sup><sup><sup>so</sup></sup></…",
"score": 12201,
"text": "But when I finally do, it'll be the years biggest shit ^^^^^so ^^^^^far",
"upvotes": 12201,
"url": "https://www.reddit.com/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/ed1czme/"
}
],
"lookupStatus": "found",
"page": {
"hasMore": true,
"nextCursor": "ed1jhoi,ed1f3kw,ed1qgjh,ed1e4vd,ed1benx,ed1e6rw,ed1k3ad,ed1eak1,eet1405,ed2bf3m,ef74u7f,ed1j20m,ed1mq5i,ed1khi5,ed1m0ya…"
},
"post": {
"_truncated": true,
"author": "ShoddySubstance",
"commentCount": 7901,
"createdAt": "2019-01-01T21:06:27.000Z",
"createdUtc": 1546376787,
"id": "ablzuq",
"permalink": "/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/",
"score": 221998,
"subreddit": "AskReddit",
"subredditNamePrefixed": "r/AskReddit",
"title": "People who haven't pooped in 2019 yet, why are you still holding on to last years shit?",
"upvoteRatio": 0.91,
"url": "https://www.reddit.com/r/AskReddit/comments/ablzuq/people_who_havent_pooped_in_2019_yet_why_are_you/"
}
},
"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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 279 ms | $0.014 |
| 7 h ago | Passed | 402 | 250 ms | $0.014 |
| 11 h ago | Passed | 402 | 338 ms | $0.014 |
| 14 h ago | Passed | 402 | 206 ms | $0.014 |
| 18 h ago | Passed | 402 | 229 ms | $0.014 |
| 22 h ago | Passed | 402 | 283 ms | $0.014 |
| 25 h ago | Passed | 402 | 268 ms | $0.014 |
| 30 h ago | Passed | 402 | 214 ms | $0.014 |