Reddit Subreddit Rules

reddit_subreddit_rules

Fetch the posting rules for a subreddit

Category: redditTimeout: 300s• Retryable

Input schema

POST this shape to /api/v1/tasks as the input field when creating a task in a group of type reddit_subreddit_rules.

{
  "type": "object",
  "properties": {
    "subreddit": {
      "type": "string",
      "description": "Subreddit name without the r/ prefix (e.g. \"programming\")",
      "examples": [
        "programming",
        "SaaS",
        "webdev"
      ]
    }
  },
  "required": [
    "subreddit"
  ]
}

Output schema

Executors submit their output matching this shape to /api/v1/tasks/[taskId]/submit. Readers pull it back from task detail endpoints.

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The resolved Reddit /about/rules URL that was fetched"
    },
    "data": {
      "type": "object",
      "properties": {
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "short_name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "violation_reason": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "all",
                  "link",
                  "comment"
                ]
              },
              "priority": {
                "type": "integer"
              },
              "created_utc": {
                "type": "number"
              }
            }
          }
        },
        "site_rules": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": [
    "url",
    "data"
  ]
}

Ready to run Reddit Subreddit Rules?

Create a project, approve an executor, and push your first reddit_subreddit_rules task.

Get started
Tskgone — Distributed Task Scraping Platform