GET /insights/seo-threads

SEO Threads

Reddit threads ranking on Google for a keyword, scored as places to comment. Reddit Scraper API endpoint /insights/seo-threads: parameters, JSON response fields and code examples.

The Reddit threads Google ranks best for q (its site:reddit.com results), best opportunity first: Reddit card, position among Reddit results on Google, thread_state, Google title and snippet and an opportunity_score (0–100); no AI model. Reads Google page 2 for 11–20 threads or when page 1 is short; kept 24 hours. Billed 3 requests per call up to 10 max_threads, 5 for 11–20. Pass up to 10 threads[].post.post_id values as post_ids to /insights/share-of-voice, with no second Google search.

HTTP Request

GET /insights/seo-threads

Cost (in requests): 3 (≤10 threads) / 5 (11–20). Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Search keyword as a user would type it on Google (1–200 characters).
max_threadsintegerNo10Threads to return (1–20).
enginestringNogoogleSearch engine: google.
countrystringNousCountry of the search results (ISO-3166 alpha-2, default us).
languagestringNoenLanguage of the search results (ISO-639-1, default en).
with_top_commentsbooleanNotrueAdds the top 3 comments of each thread (slower).
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.
freshbooleanNofalseDefault false. True recomputes instead of serving the stored result (bills the full cost).

Response

No live sample: this endpoint was unavailable (HTTP 503) when these docs were generated. The fields below come from the response schema.

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
errorobjectPresent only when status is false.
error.codestringMachine-readable reason: not_found, deleted, banned, quarantined, private, suspended, invalid_page_token; on the AI routes llm_timeout, llm_error or invalid_output (HTTP 503: the model did not answer, data keeps what was read, retry).
error.messagestringPlain-English explanation of the answer.
dataobjectPresent on success.
data.threadsarray of objectReddit threads ranking for the keyword, best opportunity first.
data.searchobjectWhat was read from Google.
data.truncatedbooleanTrue when a results page or a thread read was skipped.
data.computed_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
data.freshbooleanTrue when computed for this request; false when served from the stored result.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/seo-threads"

params = {
    "q": "fastapi",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

print(data)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/seo-threads";

const params = new URLSearchParams({
  q: "fastapi",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
console.log(data);
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/seo-threads" \
  --data-urlencode "q=fastapi" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  • Brand Compare : Compare how Reddit judges 2–4 brands: sentiment, strengths, weaknesses, head-to-head, switchers
  • Share of Voice : Share of voice of 1–10 brands in the Reddit threads of a keyword or of given posts
  • Opportunities : Recent Reddit posts worth answering about a product, scored and judged
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI