View raw JSON
{
"type": "object",
"required": [],
"properties": {
"queryParams": {
"type": "object",
"properties": {
"sort": {
"enum": [
"BEST",
"HOT",
"NEW",
"TOP",
"CONTROVERSIAL",
"RISING"
],
"type": "string",
"title": "Sort",
"default": "BEST",
"examples": [
"HOT"
],
"description": "Sort method: BEST, HOT, NEW, TOP, CONTROVERSIAL or RISING."
},
"time": {
"enum": [
"ALL",
"HOUR",
"DAY",
"WEEK",
"MONTH",
"YEAR"
],
"type": "string",
"title": "Time",
"default": "ALL",
"examples": [
"DAY"
],
"description": "Time range: ALL, HOUR, DAY, WEEK, MONTH or YEAR."
},
"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": "Filter by post IDs."
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}