extracto.cloud

Reddit Scraper

Search Reddit by keyword, read a community or collect a known post and its comments as structured data.

Current pricing: $0.374593 / 1,000 results. Review the estimate before running.

reddit-scraper

Endpoint

Method
POST
URL
https://extracto.cloud/api/v1/parsers/reddit-scraper
Result delivery
Add webhook_url and optional webhook_secret to receive the saved result. Webhook setup and signatures →
Auth
X-API-KEY: ext_...

Response

Illustrative synchronous response structure. Returned records depend on your input.

{
  "success": true,
  "tool": "reddit-scraper",
  "parser": "reddit-scraper",
  "count": 0,
  "data": []
}

Extracto documentation

Reddit Scraper — Extracto API reference

Search Reddit by keyword, read a community or collect a known post and its comments as structured data.

Collection scope

Only publicly available content is collected. Comment caps can leave part of a thread uncollected; removed or private content is unavailable.

Using Extracto

Extracto provides a web interface and HTTP API for submitting scraping tasks, tracking their status and retrieving structured results. Some parsers use third-party scraping providers for execution. Your Extracto account, API key and credit balance are managed at extracto.cloud.

Create an account at https://extracto.cloud/register, confirm your email and create an API key at https://extracto.cloud/api-keys. You can also configure and run this parser in the web interface at https://extracto.cloud/marketplace/reddit-scraper.

Pricing and credits

Current Extracto price: $0.374593 / 1,000 results. Extracto charges your credit balance for parser usage. 1,000 credits correspond to $1 USD. The displayed rate includes Extracto pricing; additional enabled options are shown in the estimate. Review the cost estimate in the web interface or POST your request body to https://extracto.cloud/api/v1/parsers/reddit-scraper/estimate before launching a task. An estimate does not start scraping. Credit packages are listed at https://extracto.cloud/pricing; billing details are at https://extracto.cloud/docs#billing.

Input

Send JSON with the parser settings inside an input object. The example is a starting point: replace the sources and limits with your own permitted targets. Launching it starts a real task and can spend credits.

{
    "input": {
        "mode": "search",
        "keyword": "small business",
        "maxItems": 10,
        "includeComments": false,
        "sort": "new"
    }
}
  • mode (string, optional)
  • keyword (string, optional)
  • subreddit (string, optional)
  • username (string, optional)
  • postUrls (array, optional)
  • sort (string, optional)
  • time (string, optional)
  • maxItems (integer, optional)
  • includeNsfw (boolean, optional)
  • includeComments (boolean, optional)
  • maxCommentsPerPost (integer, optional)
  • commentSort (string, optional)

Requests and authentication

Use your Extracto key in the X-API-KEY header. Send Content-Type: application/json and Accept: application/json. Keep the key private on your server.

POST https://extracto.cloud/api/v1/parsers/reddit-scraper — wait for a synchronous result. Successful output is in data, with the result count in count and usage in meta.credits. POST https://extracto.cloud/api/v1/parsers/reddit-scraper/queue — submit a queued task. Save run.id from the HTTP 202 response. GET https://extracto.cloud/api/v1/parser-runs/{run_id} — check a saved task using the same account's API key. Poll about once every five seconds while its status is queued or running. Stop at ok, partial, cancelled or error. Saved results are in run.result; failures are described in run.error.

Integration examples, response formats, errors and limits: https://extracto.cloud/docs.

Output

Returned fields depend on the parser, input and source availability. A successful task can return no matching records. Availability and completion time can change when the source website changes. The following sample is illustrative documentation data, not a customer run or a guarantee of results:

[
    {
        "type": "post",
        "title": "CONGRESS and APP OPPOSED  HAR GHAR TIRANGA CAMPAIGN  IN 2022",
        "subreddit": "AllindiaStudentUnion",
        "score": 2,
        "numComments": 1,
        "permalink": "https://www.reddit.com/r/AllindiaStudentUnion/comments/1x7lc5d/congress_and_app_opposed_har_ghar_tiranga/"
    }
]
  • type (string): Returned type. May be missing when the source does not provide it.
  • title (string): Returned title. May be missing when the source does not provide it.
  • subreddit (string): Returned subreddit. May be missing when the source does not provide it.
  • score (number): Returned score. May be missing when the source does not provide it.
  • numComments (number): Returned numComments. May be missing when the source does not provide it.
  • permalink (string): Returned permalink. May be missing when the source does not provide it.

Example uses

  • Find recurring questions in your market.
  • Research public product and brand discussions.
  • Save posts and comment threads for reporting.

Responsible use and support

Use this parser only for data you are permitted to access and process. Follow applicable laws, source website terms and Extracto's acceptable-use policy: https://extracto.cloud/acceptable-use. For help, email [email protected] and include the parser name and run ID. Never send your API key. Terms: https://extracto.cloud/terms Privacy: https://extracto.cloud/privacy Refund policy: https://extracto.cloud/refund-policy

Request Body

{
  "input": {
    "mode": "search",
    "keyword": "small business",
    "maxItems": 10,
    "includeComments": false,
    "sort": "new"
}
}

cURL

curl -X POST https://extracto.cloud/api/v1/parsers/reddit-scraper \
  -H "X-API-KEY: ext_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"input":{"mode":"search","keyword":"small business","maxItems":10,"includeComments":false,"sort":"new"}}'