Reddit Search
Search Reddit posts by query, subreddit, sort order and timeframe.
$0.02
USDC per call · x402
Endpoint
POST /v1/social/reddit/search
MCP name
agentbit.reddit_search
Status
active
Latency / uptime (7d)
207 ms · 100%
Call with x402
1. Send the request. 2. Receive 402 with accepts[]. 3. Sign the payment and retry with the X-PAYMENT header.
curl -X POST https://agentbit.app/v1/social/reddit/search \
-H 'Content-Type: application/json' \
-d '{"query":"laravel 13","limit":3,"sort":"new"}'
Input schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"subreddit": {
"type": "string"
},
"sort": {
"type": "string"
},
"timeframe": {
"type": "string"
},
"limit": {
"type": "integer"
}
},
"required": [
"query"
]
}Output schema
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": [],
"required": []
}
}
},
"required": []
}Code examples
// JavaScript (x402-fetch)
import { wrapFetchWithPayment } from "x402-fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const r = await fetchWithPay("https://agentbit.app/v1/social/reddit/search", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"query":"laravel 13","limit":3,"sort":"new"})
});
console.log(await r.json());
# Python (x402 client)
from x402.clients.requests import x402_requests
s = x402_requests(account)
r = s.post("https://agentbit.app/v1/social/reddit/search",
json={"query":"laravel 13","limit":3,"sort":"new"})
print(r.json())
// PHP
$r = Http::withHeaders(['X-PAYMENT' => $signedPayment])
->post('https://agentbit.app/v1/social/reddit/search',
array (
'query' => 'laravel 13',
'limit' => 3,
'sort' => 'new',
));
$data = $r->json();