2023-03-27 11:48:41 +00:00
|
|
|
_id: spc_2b420b2bed1d4d868807303a581fb8c1
|
|
|
|
type: ApiSpec
|
|
|
|
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
|
2023-03-27 12:11:53 +00:00
|
|
|
modified: 1679919032183
|
2023-03-27 11:48:41 +00:00
|
|
|
created: 1679916396495
|
|
|
|
fileName: youtubekids.yaml
|
2023-03-27 12:11:53 +00:00
|
|
|
contents: >+
|
2023-03-27 11:48:41 +00:00
|
|
|
openapi: 3.0.3
|
2023-03-27 12:11:53 +00:00
|
|
|
|
2023-03-27 11:48:41 +00:00
|
|
|
info:
|
|
|
|
title: YouTube Kids Public API
|
2023-03-27 11:51:54 +00:00
|
|
|
description: For generate API REST clients for Feelter UGC
|
2023-03-27 11:48:41 +00:00
|
|
|
contact:
|
2023-03-27 11:51:54 +00:00
|
|
|
email: garin1221@yandex.ru
|
2023-03-27 11:48:41 +00:00
|
|
|
version: 1.0.0
|
|
|
|
servers:
|
|
|
|
- url: https://www.youtubekids.com/youtubei/v1
|
|
|
|
tags:
|
|
|
|
- name: browse
|
|
|
|
description: Browse resource content
|
|
|
|
paths:
|
|
|
|
/browse:
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- browse
|
|
|
|
summary: Browse resource content
|
|
|
|
description: Get content for resource
|
|
|
|
operationId: browse
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-03-27 12:11:53 +00:00
|
|
|
$ref: '#/components/schemas/BrowseRequestPayload'
|
2023-03-27 11:48:41 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Successful operation
|
|
|
|
components:
|
|
|
|
schemas:
|
2023-03-27 12:11:53 +00:00
|
|
|
KidsAppContentSettings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
corpusPreference:
|
|
|
|
type: string
|
|
|
|
example: KIDS_CORPUS_PREFERENCE_TWEEN
|
|
|
|
kidsNoSearchMode:
|
|
|
|
type: string
|
|
|
|
example: YT_KIDS_NO_SEARCH_MODE_OFF
|
|
|
|
KidsAppCategorySettings:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
enabledCategories:
|
|
|
|
type: array
|
|
|
|
example: ["approved_for_you", "black_joy", "camp", "collections", "earth", "explore", "favorites", "gaming", "halloween", "hero", "learning", "making", "move", "music", "reading", "shared_by_parents", "shows", "soccer", "sports", "spotlight", "winter"]
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
KidsAppInfo:
|
|
|
|
type: object
|
|
|
|
description: Kids application configuration
|
|
|
|
properties:
|
|
|
|
contentSettings:
|
|
|
|
$ref: '#/components/schemas/KidsAppContentSettings'
|
|
|
|
categorySettings:
|
|
|
|
$ref: '#/components/schemas/KidsAppCategorySettings'
|
2023-03-27 11:48:41 +00:00
|
|
|
RequestClient:
|
|
|
|
type: object
|
2023-03-27 12:11:53 +00:00
|
|
|
description: Client information
|
|
|
|
properties:
|
|
|
|
clientName:
|
|
|
|
type: string
|
|
|
|
example: WEB_KIDS
|
|
|
|
clientVersion:
|
|
|
|
type: string
|
|
|
|
example: 2.20230202.00.00
|
|
|
|
hl:
|
|
|
|
type: string
|
|
|
|
example: ru
|
|
|
|
gl:
|
|
|
|
type: string
|
|
|
|
example: RU
|
|
|
|
experimentsToken:
|
|
|
|
type: string
|
|
|
|
browserName:
|
|
|
|
type: string
|
|
|
|
example: Safari
|
|
|
|
deviceMake:
|
|
|
|
type: string
|
|
|
|
example: apple
|
|
|
|
browserVersion:
|
|
|
|
type: string
|
|
|
|
example: '16.2'
|
|
|
|
osName:
|
|
|
|
type: string
|
|
|
|
example: Macintosh
|
|
|
|
osVersion:
|
|
|
|
type: string
|
|
|
|
example: 10_15_7
|
|
|
|
platform:
|
|
|
|
type: string
|
|
|
|
example: DESKTOP
|
|
|
|
kidsAppInfo:
|
|
|
|
$ref: '#/components/schemas/KidsAppInfo'
|
2023-03-27 11:48:41 +00:00
|
|
|
RequestContext:
|
|
|
|
type: object
|
2023-03-27 12:11:53 +00:00
|
|
|
description: Request context
|
2023-03-27 11:48:41 +00:00
|
|
|
properties:
|
|
|
|
client:
|
|
|
|
$ref: '#/components/schemas/RequestClient'
|
2023-03-27 12:11:53 +00:00
|
|
|
BrowseRequestPayload:
|
2023-03-27 11:48:41 +00:00
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
context:
|
|
|
|
$ref: '#/components/schemas/RequestContext'
|
|
|
|
browseId:
|
|
|
|
type: string
|
|
|
|
example: FEkids_home
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contentType: yaml
|