{"openapi":"3.1.0","info":{"title":"TikTok & TikTok Shop Vietnam OpenAPI Server","version":"v1","description":"Hệ thống OpenAPI tự vận hành chuẩn TikToday v1 (/health/v1, /creator/v1, /product/v1, /video/v1), tích hợp Rockxy Proxy để capture & đồng bộ dữ liệu TikTok / TikTok Shop Việt Nam."},"servers":[{"url":"https://openapi.alita.vn"}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"tags":[{"name":"health","description":"Kiểm tra API key và kết nối (không tính quota)"},{"name":"creator","description":"Hồ sơ TikTok, hồ sơ affiliate TikTok Shop, tìm kiếm KOC & video creator"},{"name":"product","description":"Chi tiết và tìm kiếm sản phẩm TikTok Shop tại Việt Nam"},{"name":"video","description":"Chi tiết và tìm kiếm video TikTok tại Việt Nam"}],"paths":{"/health/v1/check":{"get":{"operationId":"health.check","tags":["health"],"summary":"Kiểm tra key và kết nối","description":"Trả `status: ok` khi key hợp lệ. Không tính quota, vẫn chịu rate limit. Key sai trả `401 UNAUTHENTICATED`.","responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"object","properties":{"status":{"type":["string","null"],"description":"Luôn là `ok`."}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":{"status":"ok"},"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/creator/v1/creators/{username}/profile":{"get":{"operationId":"creator.profile","tags":["creator"],"summary":"Hồ sơ TikTok của creator","description":"Hồ sơ công khai trên TikTok của một creator theo handle, ở mọi quốc gia: tên, tiểu sử, số người theo dõi, tổng lượt thích và vài video gần đây. Tài khoản riêng tư hoặc bị TikTok giới hạn trả `404 NOT_FOUND`.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"},"description":"Handle TikTok, có hoặc không có `@`: chữ cái, chữ số, `_` và `.`, tối đa 24 ký tự, không phân biệt hoa thường.","example":"example.creator"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id tài khoản TikTok."},"handle":{"type":["string","null"],"description":"Handle TikTok, không có `@`."},"nickname":{"type":["string","null"],"description":"Tên hiển thị."},"bio":{"type":["string","null"],"description":"Tiểu sử."},"avatar_url":{"type":["string","null"],"description":"Ảnh đại diện. Link có hạn dùng."},"follower_count":{"type":["integer","null"],"description":"Số người theo dõi."},"following_count":{"type":["integer","null"],"description":"Số tài khoản đang theo dõi."},"heart_count":{"type":["integer","null"],"description":"Tổng lượt thích của tài khoản."},"recent_videos":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id video."},"description":{"type":["string","null"],"description":"Nội dung mô tả của video."}}},"description":"Vài video gần đây trên trang hồ sơ."}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":{"id":"6800000000000000001","handle":"example.creator","nickname":"Example Creator","bio":"Review mỹ phẩm mỗi ngày","follower_count":152300,"following_count":120,"heart_count":2400000,"recent_videos":[{"id":"7400000000000000001","description":"Review son kem lì"}]},"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/creator/v1/creators/{username}/affiliate":{"get":{"operationId":"creator.affiliate","tags":["creator"],"summary":"Hồ sơ affiliate của creator","description":"Hồ sơ affiliate TikTok Shop mới nhất của một creator theo handle TikTok.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"},"description":"Handle TikTok, có hoặc không có `@`: chữ cái, chữ số, `_` và `.`, tối đa 24 ký tự, không phân biệt hoa thường.","example":"example.creator"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"object","properties":{"handle":{"type":["string","null"],"description":"Handle TikTok."},"nickname":{"type":["string","null"],"description":"Tên hiển thị."},"oecuid":{"type":["string","null"],"description":"Id affiliate TikTok Shop."},"avatar_url":{"type":["string","null"],"description":"Ảnh đại diện. Link có hạn dùng."},"region":{"type":["string","null"],"description":"Mã quốc gia, ví dụ `VN`."},"follower_count":{"type":["integer","null"],"description":"Số người theo dõi."},"categories":{"type":"array","items":{"type":"string"},"description":"Ngành hàng creator bán."},"level":{"type":["integer","null"],"description":"Cấp creator trên TikTok Shop."},"units_sold_range":{"type":["string","null"],"description":"Khoảng số sản phẩm đã bán, ví dụ `1K-10K`."},"gmv_range":{"type":["string","null"],"description":"Khoảng doanh thu, ví dụ `1M₫+`."},"gpm_range":{"type":["string","null"],"description":"Khoảng doanh thu trên 1.000 lượt xem."},"units_sold":{"type":["integer","null"],"description":"Số sản phẩm đã bán."},"gmv":{"type":["number","null"],"description":"Doanh thu (₫). `null` khi creator không công khai, xem `gmv_range`."},"video_gmv":{"type":["number","null"],"description":"Doanh thu từ video (₫). `null` khi creator không công khai."},"live_gmv":{"type":["number","null"],"description":"Doanh thu từ live (₫). `null` khi creator không công khai."},"gmv_share":{"type":["object","null"],"properties":{"video":{"type":["number","null"],"description":"Từ video."},"live":{"type":["number","null"],"description":"Từ live."}},"description":"Tỉ trọng doanh thu theo kênh, 0 đến 1."},"video_gpm_range":{"type":["string","null"],"description":"Khoảng doanh thu trên 1.000 lượt xem video."},"live_gpm_range":{"type":["string","null"],"description":"Khoảng doanh thu trên 1.000 lượt xem live."},"commission_rate_range":{"type":["string","null"],"description":"Khoảng tỉ lệ hoa hồng, ví dụ `0%-5%`. `null` khi creator không công khai."},"category_shares":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Ngành hàng."},"share":{"type":["number","null"],"description":"Tỉ trọng, 0 đến 1."}}},"description":"Tỉ trọng doanh thu theo ngành hàng. Phần chưa phân loại có `name` là `null`."},"agency":{"type":["string","null"],"description":"Agency (MCN) quản lý creator."},"fast_growing":{"type":["boolean","null"],"description":"Creator đang tăng trưởng nhanh."},"video_avg_views":{"type":["integer","null"],"description":"Lượt xem trung bình mỗi video."},"video_median_views":{"type":["integer","null"],"description":"Lượt xem trung vị mỗi video."},"stats_until":{"type":["integer","null"],"description":"Số liệu bán hàng tính đến thời điểm này (unix time, giây)."},"top_videos":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id video."},"description":{"type":["string","null"],"description":"Nội dung mô tả của video."},"create_time":{"type":["integer","null"],"description":"Thời điểm đăng (unix time, giây)."},"duration":{"type":["number","null"],"description":"Thời lượng (giây)."},"views":{"type":["integer","null"],"description":"Lượt xem."},"likes":{"type":["integer","null"],"description":"Lượt thích."},"comments":{"type":["integer","null"],"description":"Lượt bình luận."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id sản phẩm."},"name":{"type":["string","null"],"description":"Tên sản phẩm."},"min_price":{"type":["integer","null"],"description":"Giá bán thấp nhất (₫)."},"max_price":{"type":["integer","null"],"description":"Giá bán cao nhất (₫)."}}},"description":"Sản phẩm gắn trong video."}}},"description":"Video bán hàng nổi bật."},"bio":{"type":["string","null"],"description":"Tiểu sử."},"follower_genders":{"type":"array","items":{"type":"object","properties":{"group":{"type":["string","null"],"description":"`male` hoặc `female`."},"share":{"type":["number","null"],"description":"Tỉ lệ, 0 đến 1."}}},"description":"Tỉ lệ người theo dõi theo giới tính."},"follower_ages":{"type":"array","items":{"type":"object","properties":{"group":{"type":["string","null"],"description":"Nhóm tuổi, ví dụ `25-34`."},"share":{"type":["number","null"],"description":"Tỉ lệ, 0 đến 1."}}},"description":"Tỉ lệ người theo dõi theo độ tuổi."},"follower_regions":{"type":"array","items":{"type":"object","properties":{"region":{"type":["string","null"],"description":"Tỉnh/thành, ví dụ `HO CHI MINH`; `OTHER` là phần còn lại."},"count":{"type":["integer","null"],"description":"Số người theo dõi."}}},"description":"Số người theo dõi theo tỉnh/thành."}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":{"handle":"example.creator","nickname":"Example Creator","oecuid":"7494000000000000123","region":"VN","follower_count":152300,"categories":["Beauty & Personal Care"],"level":3,"units_sold_range":"1K-10K","gmv_range":"1M₫+","units_sold":25296,"gmv":1253946213.49,"commission_rate_range":"0%-5%","gmv_share":{"video":0.0171,"live":0.9829},"agency":"Example Agency","stats_until":1794873600,"follower_genders":[{"group":"female","share":0.62},{"group":"male","share":0.21}]},"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/creator/v1/creators/search":{"post":{"operationId":"creator.search","tags":["creator"],"summary":"Tìm creator affiliate trên TikTok Shop","description":"Tìm creator affiliate trên TikTok Shop tại Việt Nam, tối đa 50 kết quả, không phân trang. Mọi trường trong body đều tuỳ chọn.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"keyword":{"type":"string","description":"Handle hoặc từ khoá.","maxLength":200},"count":{"type":"integer","description":"Số creator.","minimum":1,"maximum":50,"default":20}},"additionalProperties":false},"example":{"keyword":"beauty","count":20}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"handle":{"type":["string","null"],"description":"Handle TikTok."},"nickname":{"type":["string","null"],"description":"Tên hiển thị."},"oecuid":{"type":["string","null"],"description":"Id affiliate TikTok Shop."},"avatar_url":{"type":["string","null"],"description":"Ảnh đại diện. Link có hạn dùng."},"region":{"type":["string","null"],"description":"Mã quốc gia, ví dụ `VN`."},"follower_count":{"type":["integer","null"],"description":"Số người theo dõi."},"categories":{"type":"array","items":{"type":"string"},"description":"Ngành hàng creator bán."},"level":{"type":["integer","null"],"description":"Cấp creator trên TikTok Shop."},"units_sold_range":{"type":["string","null"],"description":"Khoảng số sản phẩm đã bán, ví dụ `1K-10K`."},"gmv_range":{"type":["string","null"],"description":"Khoảng doanh thu, ví dụ `1M₫+`."},"gpm_range":{"type":["string","null"],"description":"Khoảng doanh thu trên 1.000 lượt xem."},"units_sold":{"type":["integer","null"],"description":"Số sản phẩm đã bán."},"gmv":{"type":["number","null"],"description":"Doanh thu (₫). `null` khi creator không công khai, xem `gmv_range`."},"video_gmv":{"type":["number","null"],"description":"Doanh thu từ video (₫). `null` khi creator không công khai."},"live_gmv":{"type":["number","null"],"description":"Doanh thu từ live (₫). `null` khi creator không công khai."},"gmv_share":{"type":["object","null"],"properties":{"video":{"type":["number","null"],"description":"Từ video."},"live":{"type":["number","null"],"description":"Từ live."}},"description":"Tỉ trọng doanh thu theo kênh, 0 đến 1."},"video_gpm_range":{"type":["string","null"],"description":"Khoảng doanh thu trên 1.000 lượt xem video."},"live_gpm_range":{"type":["string","null"],"description":"Khoảng doanh thu trên 1.000 lượt xem live."},"commission_rate_range":{"type":["string","null"],"description":"Khoảng tỉ lệ hoa hồng, ví dụ `0%-5%`. `null` khi creator không công khai."},"category_shares":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Ngành hàng."},"share":{"type":["number","null"],"description":"Tỉ trọng, 0 đến 1."}}},"description":"Tỉ trọng doanh thu theo ngành hàng. Phần chưa phân loại có `name` là `null`."},"agency":{"type":["string","null"],"description":"Agency (MCN) quản lý creator."},"fast_growing":{"type":["boolean","null"],"description":"Creator đang tăng trưởng nhanh."},"video_avg_views":{"type":["integer","null"],"description":"Lượt xem trung bình mỗi video."},"video_median_views":{"type":["integer","null"],"description":"Lượt xem trung vị mỗi video."},"stats_until":{"type":["integer","null"],"description":"Số liệu bán hàng tính đến thời điểm này (unix time, giây)."},"top_videos":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id video."},"description":{"type":["string","null"],"description":"Nội dung mô tả của video."},"create_time":{"type":["integer","null"],"description":"Thời điểm đăng (unix time, giây)."},"duration":{"type":["number","null"],"description":"Thời lượng (giây)."},"views":{"type":["integer","null"],"description":"Lượt xem."},"likes":{"type":["integer","null"],"description":"Lượt thích."},"comments":{"type":["integer","null"],"description":"Lượt bình luận."},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id sản phẩm."},"name":{"type":["string","null"],"description":"Tên sản phẩm."},"min_price":{"type":["integer","null"],"description":"Giá bán thấp nhất (₫)."},"max_price":{"type":["integer","null"],"description":"Giá bán cao nhất (₫)."}}},"description":"Sản phẩm gắn trong video."}}},"description":"Video bán hàng nổi bật."},"tiktok_user_id":{"type":["string","null"],"description":"Id tài khoản TikTok."},"shop_video_avg_views":{"type":["integer","null"],"description":"Lượt xem trung bình mỗi video có gắn sản phẩm."},"live_avg_viewers":{"type":["integer","null"],"description":"Người xem trung bình mỗi phiên live bán hàng."},"follower_ages":{"type":"array","items":{"type":"object","properties":{"group":{"type":["string","null"],"description":"Nhóm tuổi, ví dụ `25-34`."},"share":{"type":["number","null"],"description":"Tỉ lệ, 0 đến 1."}}},"description":"Tỉ lệ người theo dõi theo độ tuổi."}}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":[{"handle":"example.creator","nickname":"Example Creator","oecuid":"7494000000000000123","follower_count":152300,"categories":["Beauty & Personal Care"],"gmv_range":"1M₫+","units_sold":25296,"gmv":null,"gmv_share":{"video":0.45,"live":0.55}}],"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/creator/v1/creators/{username}/videos":{"get":{"operationId":"creator.videos","tags":["creator"],"summary":"Video mới nhất của creator","description":"Video mới nhất của một creator theo handle TikTok, video mới đăng lên trước.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"},"description":"Handle TikTok, có hoặc không có `@`: chữ cái, chữ số, `_` và `.`, tối đa 24 ký tự, không phân biệt hoa thường.","example":"example.creator"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20},"description":"Số video."},{"name":"since","in":"query","required":false,"schema":{"type":"integer"},"description":"Chỉ lấy video đăng từ thời điểm này trở đi (unix time, giây)."}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id video."},"description":{"type":["string","null"],"description":"Nội dung mô tả của video."},"create_time":{"type":["integer","null"],"description":"Thời điểm đăng (unix time, giây)."},"language":{"type":["string","null"],"description":"Mã ngôn ngữ của nội dung, ví dụ `vi`."},"is_ad":{"type":["boolean","null"],"description":"Video quảng cáo."},"hashtags":{"type":"array","items":{"type":"string"},"description":"Hashtag của video, không có `#`."},"author":{"type":["object","null"],"properties":{"id":{"type":["string","null"],"description":"Id tài khoản TikTok."},"handle":{"type":["string","null"],"description":"Handle TikTok, không có `@`."},"nickname":{"type":["string","null"],"description":"Tên hiển thị."},"verified":{"type":["boolean","null"],"description":"Tài khoản đã xác minh."},"avatar_url":{"type":["string","null"],"description":"Ảnh đại diện. Link có hạn dùng."}},"description":"Người đăng."},"author_stats":{"type":["object","null"],"properties":{"follower_count":{"type":["integer","null"],"description":"Số người theo dõi."},"heart_count":{"type":["integer","null"],"description":"Tổng lượt thích của tài khoản."},"video_count":{"type":["integer","null"],"description":"Số video đã đăng."}},"description":"Số liệu của người đăng lúc lấy dữ liệu."},"stats":{"type":["object","null"],"properties":{"play_count":{"type":["integer","null"],"description":"Lượt xem."},"like_count":{"type":["integer","null"],"description":"Lượt thích."},"comment_count":{"type":["integer","null"],"description":"Lượt bình luận."},"share_count":{"type":["integer","null"],"description":"Lượt chia sẻ."},"save_count":{"type":["integer","null"],"description":"Lượt lưu."}},"description":"Số liệu tương tác lúc lấy dữ liệu."},"video":{"type":["object","null"],"properties":{"duration":{"type":["integer","null"],"description":"Thời lượng (giây)."},"width":{"type":["integer","null"],"description":"Chiều rộng (px)."},"height":{"type":["integer","null"],"description":"Chiều cao (px)."},"cover_url":{"type":["string","null"],"description":"Ảnh bìa. Link có hạn dùng."}},"description":"Thông tin file video."},"music":{"type":["object","null"],"properties":{"id":{"type":["string","null"],"description":"Id nhạc."},"title":{"type":["string","null"],"description":"Tên bài."},"author_name":{"type":["string","null"],"description":"Tác giả."},"original":{"type":["boolean","null"],"description":"Âm thanh gốc của người đăng."}},"description":"Nhạc nền."}}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":[{"id":"7400000000000000001","description":"Review son kem lì","create_time":1742009416,"stats":{"play_count":120400,"like_count":8300,"comment_count":210,"share_count":95,"save_count":640}}],"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/product/v1/products/{id}/details":{"get":{"operationId":"product.details","tags":["product"],"summary":"Chi tiết mới nhất của sản phẩm","description":"Dữ liệu mới nhất của một sản phẩm trên TikTok Shop: thông tin sản phẩm, SKU, đánh giá và shop.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Id sản phẩm TikTok Shop, chỉ gồm chữ số.","example":"1729385000000000001"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"object","properties":{"product_id":{"type":["string","null"],"description":"Id sản phẩm."},"title":{"type":["string","null"],"description":"Tên sản phẩm."},"image_urls":{"type":"array","items":{"type":"string"},"description":"Ảnh sản phẩm. Link có hạn dùng."},"description":{"type":"array","items":{"type":"string"},"description":"Các đoạn mô tả."},"price":{"type":["object","null"],"properties":{"currency":{"type":["string","null"],"description":"Mã tiền tệ, ví dụ `VND`."},"sale_price_text":{"type":["string","null"],"description":"Giá bán, đã định dạng, ví dụ `14.799₫`."},"original_price_text":{"type":["string","null"],"description":"Giá gốc, đã định dạng."},"discount":{"type":["string","null"],"description":"Mức giảm, ví dụ `18%`."}},"description":"Giá hiển thị trên trang sản phẩm. Giá từng SKU ở `skus`."},"sold_count":{"type":["integer","null"],"description":"Tổng số đã bán."},"rating":{"type":["number","null"],"description":"Điểm đánh giá, 0 đến 5."},"review_count":{"type":["integer","null"],"description":"Số đánh giá."},"skus":{"type":"array","items":{"type":"object","properties":{"sku_id":{"type":["string","null"],"description":"Id SKU."},"stock":{"type":["integer","null"],"description":"Tồn kho."},"sale_price":{"type":["number","null"],"description":"Giá bán."},"original_price":{"type":["number","null"],"description":"Giá gốc."},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Tên thuộc tính."},"value":{"type":["string","null"],"description":"Giá trị."}}},"description":"Thuộc tính của SKU, ví dụ màu, dung tích."}}},"description":"Các phiên bản của sản phẩm."},"specifications":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"description":"Tên thông số."},"value":{"type":["string","null"],"description":"Giá trị."}}},"description":"Thông số sản phẩm."},"shipping":{"type":["object","null"],"properties":{"fee":{"type":["number","null"],"description":"Phí giao hàng."},"free_shipping":{"type":["boolean","null"],"description":"`true` khi đơn không mất phí giao hàng."},"min_days":{"type":["integer","null"],"description":"Số ngày giao nhanh nhất."},"max_days":{"type":["integer","null"],"description":"Số ngày giao chậm nhất."}},"description":"Giao hàng tới Việt Nam."},"shop":{"type":["object","null"],"properties":{"seller_id":{"type":["string","null"],"description":"Id shop."},"name":{"type":["string","null"],"description":"Tên shop."},"rating":{"type":["number","null"],"description":"Điểm shop, 0 đến 5."},"follower_count":{"type":["integer","null"],"description":"Số người theo dõi shop."},"sold_count":{"type":["integer","null"],"description":"Tổng số đã bán của shop."},"product_count":{"type":["integer","null"],"description":"Số sản phẩm đang bán."},"url":{"type":["string","null"],"description":"Trang shop trên TikTok Shop."}},"description":"Shop bán sản phẩm."},"reviews":{"type":"array","items":{"type":"object","properties":{"review_id":{"type":["string","null"],"description":"Id đánh giá."},"rating":{"type":["integer","null"],"description":"Số sao, 1 đến 5."},"text":{"type":["string","null"],"description":"Nội dung."},"create_time":{"type":["integer","null"],"description":"Thời điểm đánh giá (unix time, mili giây)."},"sku_specification":{"type":["string","null"],"description":"Phiên bản người mua đã chọn."},"verified_purchase":{"type":["boolean","null"],"description":"Đã mua hàng."}}},"description":"Một số đánh giá gần đây."}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":{"product_id":"1729385000000000001","title":"Son kem lì","price":{"currency":"VND","sale_price_text":"14.799₫","original_price_text":"18.000₫","discount":"18%"},"sold_count":15402,"rating":4.8,"review_count":2310,"skus":[{"sku_id":"1730000000000000001","stock":120,"sale_price":14799,"original_price":18000,"properties":[{"name":"Màu","value":"Đỏ"}]}],"shop":{"seller_id":"7494000000000000001","name":"Shop A","rating":4.8,"follower_count":9247}},"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/product/v1/products/search":{"post":{"operationId":"product.search","tags":["product"],"summary":"Tìm sản phẩm trên TikTok Shop","description":"Tìm sản phẩm trên TikTok Shop tại Việt Nam theo từ khoá, tối đa 50 kết quả, không phân trang.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Từ khoá.","maxLength":200},"limit":{"type":"integer","description":"Số sản phẩm.","minimum":1,"maximum":50,"default":20}},"additionalProperties":false,"required":["query"]},"example":{"query":"son kem lì","limit":20}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":["string","null"],"description":"Id sản phẩm."},"title":{"type":["string","null"],"description":"Tên sản phẩm."},"image_url":{"type":["string","null"],"description":"Ảnh chính. Link có hạn dùng."},"price":{"type":["object","null"],"properties":{"currency":{"type":["string","null"],"description":"Mã tiền tệ, ví dụ `VND`."},"sale_price":{"type":["number","null"],"description":"Giá bán."},"original_price":{"type":["number","null"],"description":"Giá gốc."},"discount":{"type":["string","null"],"description":"Mức giảm, ví dụ `18%`."}},"description":"Giá đang bán."},"rating":{"type":["number","null"],"description":"Điểm đánh giá, 0 đến 5."},"review_count":{"type":["integer","null"],"description":"Số đánh giá."},"sold_count":{"type":["integer","null"],"description":"Số đã bán."},"seller":{"type":["object","null"],"properties":{"seller_id":{"type":["string","null"],"description":"Id shop."},"shop_name":{"type":["string","null"],"description":"Tên shop."}},"description":"Shop bán."}}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":[{"product_id":"1729385000000000001","title":"Son kem lì","price":{"currency":"VND","sale_price":14799,"original_price":18000,"discount":"18%"},"rating":4.8,"sold_count":15402,"seller":{"seller_id":"7494000000000000001","shop_name":"Shop A"}}],"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/product/v1/products/{id}/affiliate":{"get":{"operationId":"product.affiliate","tags":["product"],"summary":"Thông tin affiliate của sản phẩm","description":"Đang hoạt động (đã kích hoạt trên server tự vận hành).\n\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Id sản phẩm TikTok Shop, chỉ gồm chữ số.","example":"1729385000000000001"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"501":{"$ref":"#/components/responses/NotAvailable"}}}},"/product/v1/products/affiliate/search":{"post":{"operationId":"product.affiliate_search","tags":["product"],"summary":"Tìm sản phẩm affiliate trên TikTok Shop","description":"Đang hoạt động (đã kích hoạt trên server tự vận hành).\n\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{},"request_id":{"type":"string"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"501":{"$ref":"#/components/responses/NotAvailable"}}}},"/video/v1/videos/{id}":{"get":{"operationId":"video.details","tags":["video"],"summary":"Thông tin một video","description":"Thông tin và số liệu tương tác của một video TikTok theo id, ở mọi quốc gia, kèm người đăng. Video đã xoá hoặc riêng tư trả `404 NOT_FOUND`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Id video TikTok: chỉ gồm chữ số, tối đa 20 ký tự, ví dụ số cuối trong link video.","example":"7400000000000000001"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id video."},"description":{"type":["string","null"],"description":"Nội dung mô tả của video."},"location":{"type":["string","null"],"description":"Mã quốc gia gắn với video, ví dụ `VN`."},"is_ad":{"type":["boolean","null"],"description":"Video quảng cáo."},"is_ecommerce":{"type":["boolean","null"],"description":"Video có gắn sản phẩm TikTok Shop."},"music":{"type":["object","null"],"properties":{"id":{"type":["string","null"],"description":"Id nhạc."}},"description":"Nhạc nền."},"stats":{"type":["object","null"],"properties":{"play_count":{"type":["integer","null"],"description":"Lượt xem."},"like_count":{"type":["integer","null"],"description":"Lượt thích."},"comment_count":{"type":["integer","null"],"description":"Lượt bình luận."},"share_count":{"type":["integer","null"],"description":"Lượt chia sẻ."}},"description":"Số liệu tương tác lúc lấy dữ liệu."},"author":{"type":["object","null"],"properties":{"id":{"type":["string","null"],"description":"Id tài khoản TikTok."},"handle":{"type":["string","null"],"description":"Handle TikTok, không có `@`."},"nickname":{"type":["string","null"],"description":"Tên hiển thị."},"avatar_url":{"type":["string","null"],"description":"Ảnh đại diện. Link có hạn dùng."}},"description":"Người đăng."},"author_stats":{"type":["object","null"],"properties":{"follower_count":{"type":["integer","null"],"description":"Số người theo dõi."},"heart_count":{"type":["integer","null"],"description":"Tổng lượt thích của tài khoản."},"video_count":{"type":["integer","null"],"description":"Số video đã đăng."}},"description":"Số liệu của người đăng lúc lấy dữ liệu."}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":{"id":"7400000000000000001","description":"Review son kem lì","location":"VN","is_ad":false,"is_ecommerce":true,"stats":{"play_count":120400,"like_count":8300,"comment_count":210,"share_count":95},"author":{"id":"6800000000000000001","handle":"example.creator","nickname":"Example Creator"},"author_stats":{"follower_count":152300,"heart_count":2400000,"video_count":310}},"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/video/v1/videos/play-url":{"post":{"operationId":"video.play_url","tags":["video"],"summary":"Lấy link phát video","description":"Đang hoạt động (đã kích hoạt trên server tự vận hành).\n\nLấy link phát trực tiếp của một video TikTok từ link video.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Link video TikTok, kể cả link rút gọn.","maxLength":500}},"additionalProperties":false,"required":["url"]},"example":{"url":"https://www.tiktok.com/@example.creator/video/7400000000000000001"}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"object","properties":{"play_url":{"type":["string","null"],"description":"Link phát video. Link có hạn dùng."}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":{"play_url":"https://example.com/video/7400000000000000001.mp4"},"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"501":{"$ref":"#/components/responses/NotAvailable"}}}},"/video/v1/videos/search":{"post":{"operationId":"video.search","tags":["video"],"summary":"Tìm video theo từ khoá","description":"Tìm video TikTok tại Việt Nam theo từ khoá, tối đa 50 kết quả, không phân trang.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Từ khoá.","maxLength":200},"limit":{"type":"integer","description":"Số video.","minimum":1,"maximum":50,"default":20}},"additionalProperties":false,"required":["query"]},"example":{"query":"son kem lì","limit":20}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","const":"OK"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Id video."},"description":{"type":["string","null"],"description":"Nội dung mô tả của video."},"create_time":{"type":["integer","null"],"description":"Thời điểm đăng (unix time, giây)."},"language":{"type":["string","null"],"description":"Mã ngôn ngữ của nội dung, ví dụ `vi`."},"is_ad":{"type":["boolean","null"],"description":"Video quảng cáo."},"hashtags":{"type":"array","items":{"type":"string"},"description":"Hashtag của video, không có `#`."},"author":{"type":["object","null"],"properties":{"id":{"type":["string","null"],"description":"Id tài khoản TikTok."},"handle":{"type":["string","null"],"description":"Handle TikTok, không có `@`."},"nickname":{"type":["string","null"],"description":"Tên hiển thị."},"verified":{"type":["boolean","null"],"description":"Tài khoản đã xác minh."},"avatar_url":{"type":["string","null"],"description":"Ảnh đại diện. Link có hạn dùng."}},"description":"Người đăng."},"author_stats":{"type":["object","null"],"properties":{"follower_count":{"type":["integer","null"],"description":"Số người theo dõi."},"heart_count":{"type":["integer","null"],"description":"Tổng lượt thích của tài khoản."},"video_count":{"type":["integer","null"],"description":"Số video đã đăng."}},"description":"Số liệu của người đăng lúc lấy dữ liệu."},"stats":{"type":["object","null"],"properties":{"play_count":{"type":["integer","null"],"description":"Lượt xem."},"like_count":{"type":["integer","null"],"description":"Lượt thích."},"comment_count":{"type":["integer","null"],"description":"Lượt bình luận."},"share_count":{"type":["integer","null"],"description":"Lượt chia sẻ."},"save_count":{"type":["integer","null"],"description":"Lượt lưu."}},"description":"Số liệu tương tác lúc lấy dữ liệu."},"video":{"type":["object","null"],"properties":{"duration":{"type":["integer","null"],"description":"Thời lượng (giây)."},"width":{"type":["integer","null"],"description":"Chiều rộng (px)."},"height":{"type":["integer","null"],"description":"Chiều cao (px)."},"cover_url":{"type":["string","null"],"description":"Ảnh bìa. Link có hạn dùng."}},"description":"Thông tin file video."},"music":{"type":["object","null"],"properties":{"id":{"type":["string","null"],"description":"Id nhạc."},"title":{"type":["string","null"],"description":"Tên bài."},"author_name":{"type":["string","null"],"description":"Tác giả."},"original":{"type":["boolean","null"],"description":"Âm thanh gốc của người đăng."}},"description":"Nhạc nền."}}}},"request_id":{"type":"string"}}},"example":{"code":"OK","message":"success","data":[{"id":"7400000000000000001","description":"Review son kem lì","create_time":1742009416,"hashtags":["sonkemli"],"author":{"id":"6800000000000000001","handle":"example.creator","nickname":"Example Creator"},"author_stats":{"follower_count":152300},"stats":{"play_count":120400,"like_count":8300,"comment_count":210,"share_count":95,"save_count":640}}],"request_id":"0193a1b2-0000-7000-8000-000000000000"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Unavailable"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer <key>"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key"}},"schemas":{"Error":{"type":"object","required":["code","message","data","request_id"],"properties":{"code":{"type":"string","enum":["INVALID_ARGUMENT","UNAUTHENTICATED","PERMISSION_DENIED","SUBJECT_SUSPENDED","NOT_FOUND","PAYLOAD_TOO_LARGE","RATE_LIMITED","QUOTA_EXCEEDED","INTERNAL","NOT_AVAILABLE","UNAVAILABLE","UPSTREAM_ERROR","DEADLINE_EXCEEDED","ENDPOINT_DISABLED"]},"message":{"type":"string"},"data":{"type":"null"},"request_id":{"type":"string"},"doc_url":{"type":"string","format":"uri"}}}},"headers":{"X-Request-Id":{"description":"Mã request, gửi kèm khi liên hệ hỗ trợ.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Số request tối đa của giới hạn tốc độ đang chặt nhất.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Số request còn gửi được ngay lúc này.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Số giây đến khi giới hạn đó hồi đầy.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Hạn mức của kỳ đang chặt nhất.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Hạn mức còn lại của kỳ đó.","schema":{"type":"integer"}},"X-Quota-Reset":{"description":"Số giây đến khi kỳ đó kết thúc.","schema":{"type":"integer"}},"Retry-After":{"description":"Số giây nên chờ trước khi gửi lại (429, 503).","schema":{"type":"integer"}},"Deprecation":{"description":"Thời điểm version bị deprecated (RFC 9745).","schema":{"type":"string"}},"Sunset":{"description":"Thời điểm version ngừng hoạt động (RFC 8594).","schema":{"type":"string"}},"Link":{"description":"Hướng dẫn chuyển version (rel=\"deprecation\").","schema":{"type":"string"}}},"responses":{"BadRequest":{"description":"Mã lỗi: INVALID_ARGUMENT. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"Mã lỗi: UNAUTHENTICATED. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Mã lỗi: PERMISSION_DENIED, SUBJECT_SUSPENDED. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Mã lỗi: NOT_FOUND. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PayloadTooLarge":{"description":"Mã lỗi: PAYLOAD_TOO_LARGE. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"Mã lỗi: RATE_LIMITED, QUOTA_EXCEEDED. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Limit":{"$ref":"#/components/headers/X-Quota-Limit"},"X-Quota-Remaining":{"$ref":"#/components/headers/X-Quota-Remaining"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Internal":{"description":"Mã lỗi: INTERNAL. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotAvailable":{"description":"Mã lỗi: NOT_AVAILABLE. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Mã lỗi: UNAVAILABLE, UPSTREAM_ERROR, DEADLINE_EXCEEDED, ENDPOINT_DISABLED. Chi tiết: https://developers.tiktoday.vn/guides/errors/","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}