{
  "openapi": "3.1.0",
  "info": {
    "title": "YouTube การค้นหาอย่างทั่วไป API (V1)",
    "version": "v0",
    "description": "ค้นหาวิดีโอ YouTube โดยใช้คีย์เวิร์ด พร้อมตัวเลือกภาษา วันที่อัปโหลด ความยาว และการจัดเรียง หรืองดำเนินการต่อด้วยบัตรแบ่งหน้าแดชจูน ใช้เพื่อค้นหาวิดีโอสาธารณะหรือดูหน้าผลลัพธ์เพิ่มเติม"
  },
  "servers": [
    {
      "url": "https://api.justoneapi.com",
      "description": "API สำหรับการผลิตทั่วโลก (ค่าเริ่มต้น)"
    }
  ],
  "tags": [
    {
      "name": "YouTube",
      "description": "การอัปโหลดวิดีโอและรายละเอียดวิดีโอของช่อง YouTube สำหรับการจัดอันดับเนื้อหา การติดตามผู้สร้าง และการวิเคราะห์สื่อ",
      "x-platform-id": "youtube",
      "x-platform-aliases": [
        "YouTube",
        "油管"
      ],
      "x-platform-detection-aliases": [
        "YouTube",
        "油管"
      ]
    }
  ],
  "paths": {
    "/api/youtube/search/v1": {
      "get": {
        "tags": [
          "YouTube"
        ],
        "summary": "การค้นหาอย่างทั่วไป",
        "description": "ค้นหาวิดีโอ YouTube โดยใช้คีย์เวิร์ด พร้อมตัวเลือกภาษา วันที่อัปโหลด ความยาว และการจัดเรียง หรืองดำเนินการต่อด้วยบัตรแบ่งหน้าแดชจูน ใช้เพื่อค้นหาวิดีโอสาธารณะหรือดูหน้าผลลัพธ์เพิ่มเติม",
        "operationId": "getApiYoutubeSearchV1",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "โทเค็นการเข้าถึงสำหรับบริการ API นี้",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "คำค้นหา จำเป็นสำหรับหน้าแรก ให้ว่างเมื่อใช้ nextToken",
            "required": false,
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "แท็กภาษาตามมาตรฐาน IETF สำหรับแสดงผลเป็นภาษาที่เลือก เช่น en-US สามารถเว้นว่างเพื่อใช้ภาษาเริ่มต้น",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uploadDate",
            "in": "query",
            "description": "เครื่องมือกรองวันที่อัปโหลด\n\nค่าที่มีอยู่:\n- `all`: ไม่มีข้อจำกัดเรื่องวันที่อัปโหลด\n- `lastHour`: อัปโหลดในช่วงชั่วโมงที่ผ่านมา\n- `today`: อัปโหลดในวันนี้\n- `thisWeek`: อัปโหลดในสัปดาห์นี้\n- `thisMonth`: อัปโหลดในเดือนนี้\n- `thisYear`: อัปโหลดในปีนี้",
            "required": false,
            "schema": {
              "type": "string",
              "default": "all",
              "description": "ตัวกรองวันที่อัปโหลดการค้นหาของ YouTube",
              "enum": [
                "all",
                "lastHour",
                "today",
                "thisWeek",
                "thisMonth",
                "thisYear"
              ]
            }
          },
          {
            "name": "duration",
            "in": "query",
            "description": "เครื่องมือกรองระยะเวลาวิดีโอ\n\nค่าที่มีอยู่:\n- `all`: ไม่มีข้อจำกัดเรื่องระยะเวลา\n- `short`: วิดีโอที่มีความยาวน้อยกว่า 4 นาที\n- `medium`: วิดีโอที่มีความยาวระหว่าง 4 ถึง 20 นาที\n- `long`: วิดีโอที่มีความยาวมากกว่า 20 นาที",
            "required": false,
            "schema": {
              "type": "string",
              "default": "all",
              "description": "ตัวกรองความยาววิดีโอการค้นหาของ YouTube",
              "enum": [
                "all",
                "short",
                "medium",
                "long"
              ]
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "ลำดับการจัดเรียงผลการค้นหา\n\nค่าที่มีอยู่:\n- `relevance`: จัดเรียงตามความเกี่ยวข้อง\n- `uploadDate`: จัดเรียงตามวันที่อัปโหลด\n- `viewCount`: จัดเรียงตามจำนวนครั้งดู\n- `rating`: จัดเรียงตามคะแนน",
            "required": false,
            "schema": {
              "type": "string",
              "default": "relevance",
              "description": "ลำดับการจัดเรียงการค้นหาของ YouTube",
              "enum": [
                "relevance",
                "uploadDate",
                "viewCount",
                "rating"
              ]
            }
          },
          {
            "name": "nextToken",
            "in": "query",
            "description": "โทเค็นการแบ่งหน้าที่ได้จากการตอบกลับก่อนหน้า หากระบุโทเค็น ระบบจะไม่ใช้พารามิเตอร์คำค้นและตัวกรอง โทเค็นที่ยาวมากอาจเกินขีดจำกัดของ URL สำหรับ GET",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "if": {
                    "properties": {
                      "code": {
                        "const": 0
                      }
                    },
                    "required": [
                      "code"
                    ]
                  },
                  "then": {
                    "properties": {
                      "data": {
                        "type": "object",
                        "description": "ผลการค้นหาวิดีโอของ YouTube และข้อมูลการดำเนินการต่อไป",
                        "properties": {
                          "errorId": {
                            "type": "string",
                            "description": "ข้อความสถานะการค้นหา การค้นหาที่สำเร็จใน sample ที่ได้รับการยืนยันจะรายงานว่า Success"
                          },
                          "nextToken": {
                            "type": "string",
                            "description": "ส่งค่านี้โดยไม่เปลี่ยนแปลงเป็นพารามิเตอร์การค้นหา nextToken เพื่อดำเนินการต่อไป ตัวอักษรว่างหมายถึงไม่มีการส่งกลับข้อมูลการดำเนินการต่อไป"
                          },
                          "items": {
                            "type": "array",
                            "description": "วิดีโอของ YouTube ที่ส่งกลับมาในหน้านี้ รายการอาจว่างเปล่า",
                            "items": {
                              "type": "object",
                              "description": "ผลการค้นหาวิดีโอของ YouTube",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "ประเภทของผลการค้นหา ผลการค้นหาที่ได้รับการยืนยันจะใช้คำว่า video"
                                },
                                "id": {
                                  "type": "string",
                                  "description": "ตัวระบุวิดีโอของ YouTube"
                                },
                                "title": {
                                  "type": "string",
                                  "description": "ชื่อเรื่องของวิดีโอ"
                                },
                                "description": {
                                  "type": "string",
                                  "description": "ข้อความคำอธิบายวิดีโอที่แสดงในผลการค้นหา"
                                },
                                "channel": {
                                  "type": "object",
                                  "description": "ช่องสาธารณะที่เกี่ยวข้องกับวิดีโอนี้",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "description": "ประเภทของหน่วยงานที่เกี่ยวข้อง ผลการค้นหาที่ได้รับการยืนยันจะใช้คำว่า channel"
                                    },
                                    "id": {
                                      "type": "string",
                                      "description": "ตัวระบุช่องสาธารณะของ YouTube"
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "ชื่อที่ปรากฏสาธารณะของช่อง"
                                    },
                                    "isVerified": {
                                      "type": "boolean",
                                      "description": "ช่องนี้ถูกระบุว่าเป็นช่องที่ได้รับการยืนยันหรือไม่?"
                                    },
                                    "isVerifiedArtist": {
                                      "type": "boolean",
                                      "description": "ช่องนี้ถูกระบุว่าเป็นศิลปินที่ได้รับการยืนยันหรือไม่?"
                                    },
                                    "avatar": {
                                      "type": "array",
                                      "description": "ภาพ Avatar ของช่อง",
                                      "items": {
                                        "type": "object",
                                        "description": "ภาพ Avatar ของช่องหนึ่ง",
                                        "properties": {
                                          "url": {
                                            "type": "string",
                                            "description": "URL ของภาพ Avatar ของช่อง"
                                          },
                                          "width": {
                                            "type": "integer",
                                            "description": "ความกว้างของภาพในพิกเซล"
                                          },
                                          "height": {
                                            "type": "integer",
                                            "description": "ความสูงของภาพในพิกเซล"
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "isLiveNow": {
                                  "type": "boolean",
                                  "description": "วิดีโอนี้ถูกระบุว่าเป็นวิดีโอที่กำลังออกอากาศอยู่หรือไม่?"
                                },
                                "lengthText": {
                                  "type": "string",
                                  "description": "ความยาวของวิดีโอในรูปแบบข้อความที่แสดง"
                                },
                                "viewCountText": {
                                  "type": "string",
                                  "description": "จำนวนการดูเป็นข้อความที่แสดง"
                                },
                                "publishedTimeText": {
                                  "type": "string",
                                  "description": "เวลาการเผยแพร่ในรูปแบบข้อความแสดง"
                                },
                                "thumbnails": {
                                  "type": "array",
                                  "description": "ภาพขนาดย่อของวิดีโอที่ส่งกลับมา",
                                  "items": {
                                    "type": "object",
                                    "description": "ภาพขนาดย่อของวิดีโอหนึ่ง",
                                    "properties": {
                                      "url": {
                                        "type": "string",
                                        "description": "URL ของภาพขนาดย่อของวิดีโอ"
                                      },
                                      "width": {
                                        "type": "integer",
                                        "description": "ความกว้างของภาพในพิกเซล"
                                      },
                                      "height": {
                                        "type": "integer",
                                        "description": "ความสูงของภาพในพิกเซล"
                                      },
                                      "moving": {
                                        "type": "boolean",
                                        "description": "ว่าภาพขนาดย่อนั้นเป็นภาพที่เคลื่อนไหวหรือไม่"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "format": "int32",
                          "enum": [
                            0,
                            100,
                            101,
                            202,
                            300,
                            301,
                            302,
                            303,
                            400,
                            404,
                            500,
                            503,
                            600,
                            601,
                            602
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "data": {},
                        "recordTime": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "requestId": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        },
                        "requestParams": {
                          "type": "object",
                          "properties": {
                            "query": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "object"
                              }
                            },
                            "body": {
                              "type": "object",
                              "properties": {
                                "empty": {
                                  "type": "boolean"
                                },
                                "array": {
                                  "type": "boolean"
                                },
                                "null": {
                                  "type": "boolean"
                                },
                                "object": {
                                  "type": "boolean"
                                },
                                "float": {
                                  "type": "boolean"
                                },
                                "integralNumber": {
                                  "type": "boolean"
                                },
                                "floatingPointNumber": {
                                  "type": "boolean"
                                },
                                "valueNode": {
                                  "type": "boolean"
                                },
                                "nodeType": {
                                  "type": "string",
                                  "enum": [
                                    "ARRAY",
                                    "BINARY",
                                    "BOOLEAN",
                                    "MISSING",
                                    "NULL",
                                    "NUMBER",
                                    "OBJECT",
                                    "POJO",
                                    "STRING"
                                  ]
                                },
                                "string": {
                                  "type": "boolean"
                                },
                                "missingNode": {
                                  "type": "boolean"
                                },
                                "container": {
                                  "type": "boolean"
                                },
                                "pojo": {
                                  "type": "boolean"
                                },
                                "short": {
                                  "type": "boolean"
                                },
                                "int": {
                                  "type": "boolean"
                                },
                                "long": {
                                  "type": "boolean"
                                },
                                "double": {
                                  "type": "boolean"
                                },
                                "bigDecimal": {
                                  "type": "boolean"
                                },
                                "bigInteger": {
                                  "type": "boolean"
                                },
                                "textual": {
                                  "type": "boolean",
                                  "deprecated": true
                                },
                                "boolean": {
                                  "type": "boolean"
                                },
                                "binary": {
                                  "type": "boolean"
                                },
                                "number": {
                                  "type": "boolean"
                                },
                                "embeddedValue": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        }
                      },
                      "required": [
                        "code",
                        "data",
                        "message",
                        "recordTime"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "พารามิเตอร์หรือเนื้อหาของคำขอที่ไม่ถูกต้อง",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "ท่อนำข้อมูลหรือ access token ที่ไม่ถูกต้องหรือไม่มีการใช้งาน",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "การอนุญาตถูกปฏิเสธ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "อัตราการขอหรือจำนวนคำสั่งที่จำกัดในแต่ละวันถูกเกิน",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "ความผิดพลาดของเซิร์ฟเวอร์ภายใน",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "503": {
            "description": "บริการไม่สามารถใช้งานได้ในขณะนี้",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          }
        },
        "x-order": "25000900",
        "x-api-version": "v1",
        "x-docs-slug": "general-search-v1",
        "x-search-aliases": [
          "YouTube search",
          "YouTube video search",
          "YouTube filtered search",
          "YouTube next token search",
          "YouTube localized search",
          "YouTube搜索",
          "YouTube视频搜索",
          "YouTube筛选搜索",
          "YouTube翻页搜索",
          "YouTube本地化搜索"
        ],
        "x-highlights": [],
        "x-endpoint-family": "youtube_search"
      }
    }
  }
}