View raw JSON
{
"type": "object",
"required": [
"queryParams"
],
"properties": {
"queryParams": {
"type": "object",
"required": [
"query"
],
"properties": {
"sort": {
"anyOf": [
{
"enum": [
"RELEVANCE",
"HOT",
"TOP",
"NEW",
"COMMENTS"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Sort",
"examples": [
"RELEVANCE"
],
"description": "Sort order for post, comment and media searches: RELEVANCE, HOT, TOP, NEW or COMMENTS. COMMENTS is available only for post searches."
},
"after": {
"type": "string",
"title": "After",
"maxLength": 4096,
"description": "Pagination parameter."
},
"query": {
"type": "string",
"title": "Query",
"examples": [
"python programming"
],
"maxLength": 512,
"minLength": 1,
"description": "Search query."
},
"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."
},
"allow_nsfw": {
"enum": [
"0",
"1"
],
"type": "string",
"title": "Allow Nsfw",
"default": "0",
"examples": [
"0"
],
"description": "Allow NSFW content: 0 or 1."
},
"time_range": {
"anyOf": [
{
"enum": [
"all",
"year",
"month",
"week",
"day",
"hour"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Time Range",
"examples": [
"all"
],
"description": "Time range for post and media searches: all=all time, year=past year, month=past month, week=past week, day=past day, hour=past hour."
},
"need_format": {
"type": "boolean",
"title": "Need Format",
"default": false,
"description": "Whether to clean and format the data."
},
"safe_search": {
"enum": [
"unset",
"strict"
],
"type": "string",
"title": "Safe Search",
"default": "unset",
"examples": [
"unset"
],
"description": "Safe search setting: unset or strict."
},
"search_type": {
"enum": [
"post",
"community",
"comment",
"media",
"people"
],
"type": "string",
"title": "Search Type",
"default": "post",
"examples": [
"post"
],
"description": "Search type: post, community, comment, media or people."
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}