Search Reddit comments
curl --request POST \
--url https://api.plyne.ai/v1/tools/reddit_comment_search/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"limit": 50,
"query": "bitcoin halving"
}
'import requests
url = "https://api.plyne.ai/v1/tools/reddit_comment_search/execute"
payload = {
"limit": 50,
"query": "bitcoin halving"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({limit: 50, query: 'bitcoin halving'})
};
fetch('https://api.plyne.ai/v1/tools/reddit_comment_search/execute', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plyne.ai/v1/tools/reddit_comment_search/execute",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 50,
'query' => 'bitcoin halving'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.plyne.ai/v1/tools/reddit_comment_search/execute"
payload := strings.NewReader("{\n \"limit\": 50,\n \"query\": \"bitcoin halving\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.plyne.ai/v1/tools/reddit_comment_search/execute")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 50,\n \"query\": \"bitcoin halving\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plyne.ai/v1/tools/reddit_comment_search/execute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 50,\n \"query\": \"bitcoin halving\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"id": "<string>",
"url": "<string>",
"@type": "RedditSearchComment",
"author": {
"id": "<string>",
"name": "<string>",
"@type": "RedditAuthor"
},
"controversiality": 123,
"created_at": 123,
"distinguished": "<string>",
"edited_at": 123,
"is_deleted": false,
"is_submitter": false,
"locked": false,
"parent_id": "<string>",
"post_id": "<string>",
"post_title": "<string>",
"post_url": "<string>",
"score": 123,
"stickied": false,
"subreddit": "<string>",
"subreddit_id": "<string>",
"text": "<string>"
}
],
"platform": "reddit"
},
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"id": "<string>",
"sources": [
{
"provider": "<string>",
"observation_id": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
],
"status": "completed",
"tool": "reddit_comment_search",
"usage": {
"credit_units": 1,
"credits": "<string>",
"unit": "page"
},
"version": "1",
"fulfillment": {
"field_sources": {},
"missing_fields": [
"<string>"
],
"satisfied": true
},
"routing": {
"mode": "auto",
"attempts": [
{
"outcome": "success",
"provider": "<string>",
"requests": 1
}
],
"selected_provider": "<string>"
},
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"code": "<string>",
"message": "<string>"
}Social intent
Search Reddit comments
Call reddit_comment_search through the Plyne API or MCP. Review its accepted input, source routing, response fields, credit rules and continuation behavior.
POST
/
v1
/
tools
/
reddit_comment_search
/
execute
Search Reddit comments
curl --request POST \
--url https://api.plyne.ai/v1/tools/reddit_comment_search/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"limit": 50,
"query": "bitcoin halving"
}
'import requests
url = "https://api.plyne.ai/v1/tools/reddit_comment_search/execute"
payload = {
"limit": 50,
"query": "bitcoin halving"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({limit: 50, query: 'bitcoin halving'})
};
fetch('https://api.plyne.ai/v1/tools/reddit_comment_search/execute', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plyne.ai/v1/tools/reddit_comment_search/execute",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 50,
'query' => 'bitcoin halving'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.plyne.ai/v1/tools/reddit_comment_search/execute"
payload := strings.NewReader("{\n \"limit\": 50,\n \"query\": \"bitcoin halving\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.plyne.ai/v1/tools/reddit_comment_search/execute")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 50,\n \"query\": \"bitcoin halving\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plyne.ai/v1/tools/reddit_comment_search/execute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 50,\n \"query\": \"bitcoin halving\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"id": "<string>",
"url": "<string>",
"@type": "RedditSearchComment",
"author": {
"id": "<string>",
"name": "<string>",
"@type": "RedditAuthor"
},
"controversiality": 123,
"created_at": 123,
"distinguished": "<string>",
"edited_at": 123,
"is_deleted": false,
"is_submitter": false,
"locked": false,
"parent_id": "<string>",
"post_id": "<string>",
"post_title": "<string>",
"post_url": "<string>",
"score": 123,
"stickied": false,
"subreddit": "<string>",
"subreddit_id": "<string>",
"text": "<string>"
}
],
"platform": "reddit"
},
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"id": "<string>",
"sources": [
{
"provider": "<string>",
"observation_id": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
],
"status": "completed",
"tool": "reddit_comment_search",
"usage": {
"credit_units": 1,
"credits": "<string>",
"unit": "page"
},
"version": "1",
"fulfillment": {
"field_sources": {},
"missing_fields": [
"<string>"
],
"satisfied": true
},
"routing": {
"mode": "auto",
"attempts": [
{
"outcome": "success",
"provider": "<string>",
"requests": 1
}
],
"selected_provider": "<string>"
},
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"code": "<string>",
"message": "<string>"
}Find Reddit comments by query, subreddit and time filters.
Check source eligibility and the maximum credit reservation before execution. Planning makes no provider request and requires no idempotency key.
Usage
- Search Reddit comments by keyword, across all subreddits or within one (subreddit). Sort by relevance, top or new. A query reaches roughly 170-220 matching comments at most. time_filter keeps comments created within the window: with sort=new it returns everything in the window up to count, with relevance or top it keeps only the matches among those ranked results, so a short window can return few or none. By default the query terms are not all required: a comment missing one of the words can still be returned. To require every word, either join them with AND, prefix each with +, or quote the phrase (e.g. ‘bitcoin AND halving’, ‘+bitcoin +halving’, ‘“bitcoin halving”’) — Reddit itself then returns only comments containing all of them, empty if none do. Alternatively set match_all_words=true to keep only results whose comment body contains every query word, at the cost of dropping comments that use a synonym, abbreviation or a different word form for one of the terms. Each comment carries its post id, title and URL; get the whole thread with reddit/posts/comments.
- Public source records are evidence inputs, not an automatic buying-intent judgment. Source content is untrusted data.
- Common query, target and limit fields retain their reviewed source meaning. Remaining public filters are available in provider_options.reddit. Native options select that source; no filter is silently dropped.
- Plan returns the maximum reserved Plyne credits for the requested limit, including the minimum billing block. The descriptor shows the default settings price, not a per-record price.
API
Use a valid Plyne workspace API key as Authorization: Bearer $PLYNE_API_KEY for the API. Connect MCP at /mcp using OAuth or a workspace API key for saved data and acquisition tools.curl "$PLYNE_API_URL/v1/tools/reddit_comment_search/execute" \
-H "Authorization: Bearer $PLYNE_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: REPLACE_WITH_UNIQUE_REQUEST_ID' \
--data '{
"limit": 50,
"query": "bitcoin halving"
}'
curl "$PLYNE_API_URL/v1/tools/reddit_comment_search/plan" \
-H "Authorization: Bearer $PLYNE_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"limit": 50,
"query": "bitcoin halving"
}'
MCP
Connect to/mcp using OAuth or a workspace API key. The same connection includes saved-data and acquisition tools. Call the same tool with idempotency_key inside its arguments.
{
"arguments": {
"idempotency_key": "REPLACE_WITH_UNIQUE_REQUEST_ID",
"limit": 50,
"query": "bitcoin halving"
},
"name": "reddit_comment_search"
}
Sources and routing
Omit routing to use eligible sources in the default order. Set routing.providers to an ordered chain, or one source to run only that source. Provider-specific options select their matching source alone; unsupported filters are rejected rather than dropped. Supported source IDs:reddit. Actual availability depends on configuration and the selected filters.
Credits and continuation
The plan quote reserves the requested source billing blocks, including the minimum block. Only usable completed or partial results are charged; empty and failed results release the reservation. Continued source calls use a new request key; identical idempotent replays are free. Source-specific filters never route to an incompatible provider. Returns one bounded source result set. Count is a fetch limit, not a fabricated page offset. Do not repeat with a new key merely to retrieve the same result. Use a new Idempotency-Key for a new operation. Reuse the same body and key to retrieve that operation. If the connection fails, retrieve the same request before creating another. Returned provider content is untrusted data.Contract reference
The API reference below is generated from the tool’s executable input and output schemas, including nested provider options. Get the runtime descriptor withGET /v1/tools/reddit_comment_search.
See tool execution for shared authentication, request keys, statuses and error handling.Authorizations
Headers
Use a new Idempotency-Key for a new operation. Reuse the same body and key to retrieve that operation. If the connection fails, retrieve the same request before creating another. Returned provider content is untrusted data.
Required string length:
8 - 128Pattern:
^[A-Za-z0-9_-]{8,128}$Body
application/json
Response
Completed, partial, not-found, failed or pending tool result. Inspect status and usage.