View raw JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"title": "FetchSearchVideosRequest",
"required": [
"keyword"
],
"properties": {
"raw": {
"type": "boolean",
"title": "Raw",
"default": true,
"description": "True=raw search response; False=simplified parsed structure"
},
"sort": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "Sort",
"default": "default",
"example": "hot",
"description": "2 (most liked); string key or integer"
},
"cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cursor",
"description": "Pagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response"
},
"offset": {
"type": "integer",
"title": "Offset",
"default": 0,
"minimum": 0,
"description": "Pass 0 for the first page; use cursor to paginate (offset alone does not work)"
},
"keyword": {
"type": "string",
"title": "Keyword",
"example": "美食",
"maxLength": 100,
"minLength": 1,
"description": "Search keyword (1-100 chars)"
},
"duration": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "Duration",
"default": "all",
"example": "short",
"description": "3 (20min+); string key or integer"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"title": "Publish Time",
"default": "all",
"example": "week",
"description": "3; string key or integer"
}
},
"x-readme-ref-name": "FetchSearchVideosRequest"
},
"queryParams": {
"type": "object",
"properties": {},
"additionalProperties": true
}
},
"additionalProperties": false
}