View raw JSON
{
"type": "object",
"required": [
"queryParams"
],
"properties": {
"queryParams": {
"type": "object",
"required": [
"subreddit_name"
],
"properties": {
"sort": {
"enum": [
"BEST",
"HOT",
"NEW",
"TOP",
"CONTROVERSIAL",
"RISING"
],
"type": "string",
"title": "Sort",
"default": "BEST",
"examples": [
"HOT"
],
"description": "Sort order: BEST, HOT, NEW, TOP, CONTROVERSIAL or RISING."
},
"after": {
"type": "string",
"title": "After",
"maxLength": 4096,
"description": "Pagination parameter."
},
"language": {
"type": "string",
"title": "Language",
"default": "en-US",
"pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
"maxLength": 16,
"minLength": 2,
"description": "Preferred response language as an IETF language tag; defaults to en-US."
},
"need_format": {
"type": "boolean",
"title": "Need Format",
"default": false,
"description": "Whether to clean and format the data."
},
"filter_posts": {
"type": "array",
"items": {
"type": "string",
"pattern": "^t3_[a-z0-9]+$",
"maxLength": 20,
"minLength": 4
},
"title": "Filter Posts",
"default": [],
"maxItems": 100,
"description": "Optional post ID filters."
},
"subreddit_name": {
"type": "string",
"title": "Subreddit Name",
"pattern": "^[A-Za-z0-9_]+$",
"examples": [
"AskReddit"
],
"maxLength": 21,
"minLength": 2,
"description": "Subreddit name."
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}