curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=VALUE'
text
JustOneAPI의 "동영상 댓글 (V1)" API를 사용하고 싶습니다.기본 URL: https://api.justoneapi.com.API 경로: /api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=VALUEAPI 주소: BASE_URL + /api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=VALUEHTTP 메서드: GET인증: URL에 "token" 쿼리 파라미터를 추가하세요.OpenAPI 정의: https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-comments-v1-ko.json요청 파라미터:- token (query): 이 API 서비스의 액세스 토큰입니다. (필수)- awemeId (query): 동영상의 고유 식별자(aweme_id)입니다. (필수)- page (query): 페이지 번호입니다. 1부터 시작합니다.응답 형식: 실제 Content-Type에 따라 JSON 또는 텍스트를 안전하게 처리하세요.응답 처리 및 오류 코드1. 응답 본문의 "code" 필드에서 처리 결과를 확인하세요. 0은 성공을 뜻합니다.2. 권장 요청 제한 시간은 120초입니다. 120초가 너무 길다면 최소 60초로 설정하세요. 일부 요청은 응답을 받기 전에 시간 초과될 수 있습니다.3. API 결과 코드 - 0: 성공 - 100: 유효하지 않거나 비활성화된 토큰 - 301: 데이터 수집에 실패했습니다. 다시 시도해 주세요. - 302: 호출 빈도 제한 초과 - 303: 일일 호출 한도 초과 - 400: 잘못된 파라미터 - 500: 서버 내부 오류 - 600: 호출 권한 없음 - 601: 계정 잔액 부족 - 602: API 토큰의 누적 예산 한도 초과4. 601은 공유 계정 잔액이 부족하다는 뜻입니다. 602는 현재 API 토큰의 누적 예산 한도에 도달했다는 뜻입니다. 토큰 예산을 설정해도 공유 계정 잔액은 별도로 배정되지 않습니다.제가 사용하는 프로그래밍 언어로 이 API를 호출하고 응답을 처리하는 스크립트를 작성해 주세요.
python
import requestsBASE_URL = "https://api.justoneapi.com" # OpenAPI 서버 설정에서 제공url = BASE_URL + "/api/douyin/get-video-comment/v1?token=YOUR_API_KEY&awemeId=VALUE"response = requests.get(url, timeout=120)print(response.status_code)if response.content: content_type = response.headers.get("content-type", "").lower() if "json" in content_type: try: print(response.json()) except ValueError: print(response.text) elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}: print(response.text) else: with open("response.bin", "wb") as output: output.write(response.content) print(f"Saved {len(response.content)} bytes to response.bin")
더우인(TikTok China) 동영상 댓글 API (V1)
aweme ID로 더우인(TikTok China) 동영상의 최상위 댓글을 페이지별로 조회합니다. 특정 동영상의 시청자 피드백을 검토하거나 토론을 분석할 수 있습니다.
요청 파라미터
tokenstringawemeIdstringpageinteger1코드 예제
응답 필드
성공 응답(
code = 0)의 주요 필드입니다.댓글 개요필드 7개
data.comments[]비디오에 대한 하나의 최상위 댓글.
cidstringaweme_idstringtextstringcreate_timeintegerip_labelstringcontent_typeintegerstatusinteger참여도 및 태그필드 13개
data.comments[]digg_countintegeris_hotbooleanis_foldedbooleanis_author_diggedbooleanuser_diggedintegercan_collectbooleancan_sharebooleanlabel_textstringlabel_typeintegerlabel_listarray | nulllabel_list[]objectlabel_list[].typeintegerlabel_list[].textstring댓글 작성자필드 17개
data.comments[].user댓글 작성자의 공개 계정 정보.
uidstringsec_uidstringshort_idstringunique_idstringnicknamestringavatar_thumbobjectavatar_thumb.uristringavatar_thumb.url_listarrayavatar_thumb.url_list[]stringavatar_thumb.widthintegeravatar_thumb.heightintegeravatar_mediumobjectavatar_medium.uristringavatar_medium.url_listarrayavatar_medium.url_list[]stringavatar_medium.widthintegeravatar_medium.heightinteger답장 미리보기필드 26개
data.comments[]reply_comment_totalintegerreply_idstringreply_to_reply_idstringreply_commentarray | nullreply_comment[]objectreply_comment[].cidstringreply_comment[].aweme_idstringreply_comment[].textstringreply_comment[].create_timeintegerreply_comment[].digg_countintegerreply_comment[].reply_idstringreply_comment[].reply_to_reply_idstringreply_comment[].is_author_diggedbooleanreply_comment[].label_textstringreply_comment[].userobjectreply_comment[].user.uidstringreply_comment[].user.sec_uidstringreply_comment[].user.short_idstringreply_comment[].user.unique_idstringreply_comment[].user.nicknamestringreply_comment[].user.avatar_thumbobjectreply_comment[].user.avatar_thumb.uristringreply_comment[].user.avatar_thumb.url_listarrayreply_comment[].user.avatar_thumb.url_list[]stringreply_comment[].user.avatar_thumb.widthintegerreply_comment[].user.avatar_thumb.heightinteger댓글 이미지필드 32개
data.comments[]image_listarray | nullimage_list[]objectimage_list[].origin_urlobjectimage_list[].origin_url.uristringimage_list[].origin_url.url_listarrayimage_list[].origin_url.url_list[]stringimage_list[].origin_url.widthintegerimage_list[].origin_url.heightintegerimage_list[].crop_urlobjectimage_list[].crop_url.uristringimage_list[].crop_url.url_listarrayimage_list[].crop_url.url_list[]stringimage_list[].crop_url.widthintegerimage_list[].crop_url.heightintegerimage_list[].thumb_urlobjectimage_list[].thumb_url.uristringimage_list[].thumb_url.url_listarrayimage_list[].thumb_url.url_list[]stringimage_list[].thumb_url.widthintegerimage_list[].thumb_url.heightintegerimage_list[].medium_urlobjectimage_list[].medium_url.uristringimage_list[].medium_url.url_listarrayimage_list[].medium_url.url_list[]stringimage_list[].medium_url.widthintegerimage_list[].medium_url.heightintegerimage_list[].download_urlobjectimage_list[].download_url.uristringimage_list[].download_url.url_listarrayimage_list[].download_url.url_list[]stringimage_list[].download_url.widthintegerimage_list[].download_url.heightinteger스티커필드 20개
data.comments[]stickerobjectsticker.idintegersticker.id_strstringsticker.author_sec_uidstringsticker.origin_package_idintegersticker.sticker_typeintegersticker.widthintegersticker.heightintegersticker.static_urlobjectsticker.static_url.uristringsticker.static_url.url_listarraysticker.static_url.url_list[]stringsticker.static_url.widthintegersticker.static_url.heightintegersticker.animate_urlobjectsticker.animate_url.uristringsticker.animate_url.url_listarraysticker.animate_url.url_list[]stringsticker.animate_url.widthintegersticker.animate_url.heightinteger텍스트 주석필드 7개
data.comments[]text_extraarraytext_extra[]objecttext_extra[].typeintegertext_extra[].startintegertext_extra[].endintegertext_extra[].user_idstringtext_extra[].sec_uidstring페이징 및 응답필드 8개
data요청된 Douyin 비디오에 대한 최상위 댓글의 하나의 페이지.
commentsarray | nullcomments[].item_comment_totalintegerstatus_codeintegercursorintegerhas_moreintegertotalintegerextraobjectextra.nowinteger응답 예시