---
title: "TikTok 대댓글 API (V1)"
description: "TikTok 게시물의 특정 댓글에 달린 대댓글을 조회합니다. 커서 기반 페이지네이션으로 스레드를 확인하고 다음 대댓글 페이지를 조회할 수 있습니다."
aiUsagePrompt: true
---

# TikTok 대댓글 API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/tiktok/get-post-sub-comment/v1\"")'
  :summary='JSON.parse("\"대댓글 (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/tiktok/comment-replies-v1-ko.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"API 접근에 사용하는 보안 토큰입니다.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"awemeId\",\"in\":\"query\",\"description\":\"TikTok 게시물의 고유 ID입니다.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"commentId\",\"in\":\"query\",\"description\":\"답글을 조회할 댓글의 고유 ID입니다.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"페이지네이션 커서입니다. &#39;0&#39;부터 시작하세요.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"0\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"정상 응답(OK)\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"요청한 TikTok 게시물 댓글에 달린 대댓글 및 페이지네이션 정보입니다.\",\"properties\":{\"comments\":{\"type\":\"array\",\"description\":\"현재 페이지에서 반환된 답장들.\",\"items\":{\"type\":\"object\",\"description\":\"요청된 부모 댓글에 대해 하나의 답장이 반환되었습니다.\",\"properties\":{\"cid\":{\"type\":\"string\",\"description\":\"이 댓글의 TikTok 식별자.\"},\"aweme_id\":{\"type\":\"string\",\"description\":\"이 댓글과 관련된 TikTok 게시물 식별자.\"},\"reply_id\":{\"type\":\"string\",\"description\":\"요청된 답장이 포함된 부모 댓글의 ID.\"},\"reply_to_reply_id\":{\"type\":\"string\",\"description\":\"이 항목에서 직접 답장한 ID. 부모 댓글에 직접 답장한 경우 문자열 0이 관찰되었습니다.\"},\"reply_to_userid\":{\"type\":\"string\",\"description\":\"값이 제공되는 경우, 직접 답글을 받은 대댓글 작성자의 TikTok 사용자 ID입니다.\"},\"reply_to_username\":{\"type\":\"string\",\"description\":\"직접 답장한 작성자의 공개 사용자명, 제공된 경우.\"},\"reply_to_nickname\":{\"type\":\"string\",\"description\":\"직접 답장한 작가의 표시 이름, 제공된 경우.\"},\"thread_id\":{\"type\":\"integer\",\"description\":\"이 답장에 대해 보고된 숫자형 스레드 식별자.\"},\"thread_has_more\":{\"type\":\"boolean\",\"description\":\"이 답글의 스레드 수준 플래그입니다. 답글 목록의 다음 페이지를 요청할지는 응답 수준의 has_more로 판단하세요.\"},\"text\":{\"type\":\"string\",\"description\":\"댓글의 텍스트.\"},\"create_time\":{\"type\":\"integer\",\"description\":\"댓글 생성 시간이 Unix 타임스탬프 형태로 초 단위로 반환됨.\"},\"comment_language\":{\"type\":\"string\",\"description\":\"댓글에 보고된 언어 코드입니다.\"},\"content_type\":{\"type\":\"integer\",\"description\":\"댓글에 대한 숫자형 콘텐츠 유형입니다.\"},\"text_extra\":{\"type\":\"array\",\"description\":\"댓글에 대한 보조 텍스트 주석. 이 배열은 비어 있을 수 있습니다.\",\"items\":{\"type\":\"object\",\"description\":\"답장 텍스트에 첨부된 하나의 주석.\",\"properties\":{\"start\":{\"type\":\"integer\",\"description\":\"UTF-16 코드 단위로 나타낸 주석의 시작 인덱스입니다. 인덱스는 0부터 시작합니다.\"},\"end\":{\"type\":\"integer\",\"description\":\"UTF-16 코드 단위로 나타낸 주석의 끝 인덱스입니다. 인덱스는 0부터 시작하며 끝 위치는 범위에 포함되지 않습니다.\"},\"type\":{\"type\":\"integer\",\"description\":\"숫자 형식 주석. 사용자 언급에 형식 0이 관찰되었습니다.\"},\"user_id\":{\"type\":\"string\",\"description\":\"사용자 언급에 대해 보고된 TikTok 사용자 식별자.\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"사용자 언급에 대해 보고된 보조 TikTok 사용자 식별자.\"}}}},\"image_list\":{\"description\":\"댓글 첨부 이미지 필드. 검증된 응답은 null을 반환했습니다.\"},\"label_list\":{\"description\":\"댓글에 첨부된 라벨. 반환된 응답은 null이었습니다.\"},\"reply_comment\":{\"description\":\"이 기록에 대한 중첩 답장 미리보기. 반환된 응답은 null이었습니다.\"},\"digg_count\":{\"type\":\"integer\",\"description\":\"댓글에 대한 좋아요 수를 보고합니다.\"},\"is_author_digged\":{\"type\":\"boolean\",\"description\":\"게시물 작성자가 이 댓글에 좋아요를 눌렀는지 여부입니다.\"},\"is_comment_translatable\":{\"type\":\"boolean\",\"description\":\"TikTok이 댓글을 번역 가능한 것으로 표시했는지 여부.\"},\"status\":{\"type\":\"integer\",\"description\":\"댓글에 보고된 숫자 상태입니다.\"},\"share_info\":{\"type\":\"object\",\"description\":\"댓글과 관련된 정보를 공유합니다.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"댓글 공유 정보의 제목.\"},\"desc\":{\"type\":\"string\",\"description\":\"댓글 설명은 정보를 공유합니다.\"},\"url\":{\"type\":\"string\",\"description\":\"댓글 공유 정보의 URL.\"}}},\"user\":{\"type\":\"object\",\"description\":\"답장을 작성한 사용자의 공개 프로필.\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"TikTok 사용자 ID.\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"TikTok의 보조 사용자 식별자.\"},\"unique_id\":{\"type\":\"string\",\"description\":\"TikTok 사용자의 공개 사용자 이름입니다.\"},\"nickname\":{\"type\":\"string\",\"description\":\"TikTok 사용자의 이름을 표시합니다.\"},\"avatar_uri\":{\"type\":\"string\",\"description\":\"사용자 아바타에 대한 이미지 참조입니다.\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"아바타의 축소판 이미지 및 해당 이미지의 URL.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"아바타 썸네일에 대한 이미지 참조입니다.\"},\"width\":{\"type\":\"integer\",\"description\":\"아바타 썸네일의 픽셀 너비입니다.\"},\"height\":{\"type\":\"integer\",\"description\":\"아바타 썸네일의 픽셀 높이입니다.\"},\"url_list\":{\"type\":\"array\",\"description\":\"아바타 썸네일의 사용 가능한 URL입니다.\",\"items\":{\"type\":\"string\",\"description\":\"아바타 축소판 이미지의 URL.\"}}}},\"region\":{\"type\":\"string\",\"description\":\"이 사용자 프로필에 보고된 지역 코드.\"},\"language\":{\"type\":\"string\",\"description\":\"이 사용자 프로필에 보고된 언어 코드.\"}}}}}},\"cursor\":{\"type\":\"integer\",\"description\":\"답글의 다음 페이지를 조회할 때 사용하는 커서입니다. has_more가 1이면 같은 awemeId와 commentId를 사용하면서 이 정수를 정확한 십진수 문자열로 cursor에 전달하세요.\"},\"has_more\":{\"type\":\"integer\",\"description\":\"답글 페이지네이션 플래그입니다. 1이면 다음 페이지가 있습니다. cursor에 값이 있어도 0이면 중단하세요.\"},\"total\":{\"type\":\"integer\",\"description\":\"요청된 부모 댓글에 대한 보고된 총 답장 수. 현재 페이지에는 더 적은 수의 답장이 포함될 수 있습니다.\"},\"status_code\":{\"type\":\"integer\",\"description\":\"TikTok 댓글 페이로드의 숫자 상태 코드입니다.\"},\"status_msg\":{\"type\":\"string\",\"description\":\"TikTok 댓글 페이로드에 포함된 상태 메시지. 비어 있을 수 있습니다.\"}}}}},\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"유효하지 않거나 비활성화된 접근 토큰\",\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"글로벌 프로덕션 API (기본)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/tiktok/get-post-sub-comment/v1\"")' />

<p>TikTok 게시물의 특정 댓글에 달린 대댓글을 조회합니다. 커서 기반 페이지네이션으로 스레드를 확인하고 다음 대댓글 페이지를 조회할 수 있습니다.</p>

## 요청 파라미터

<div class="api-doc-table api-doc-table--params">

| 이름 | 위치 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | 예 | - | API 접근에 사용하는 보안 토큰입니다. |
| <code>awemeId</code> | query | <code>string</code> | 예 | - | TikTok 게시물의 고유 ID입니다. |
| <code>commentId</code> | query | <code>string</code> | 예 | - | 답글을 조회할 댓글의 고유 ID입니다. |
| <code>cursor</code> | query | <code>string</code> | 아니요 | <code>0</code> | 페이지네이션 커서입니다. '0'부터 시작하세요. |

</div>

## 코드 예제

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE'
```

```text [🤖 AI 프롬프트]
JustOneAPI의 "대댓글 (V1)" API를 사용하고 싶습니다.
기본 URL: https://api.justoneapi.com.
API 경로: /api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE
API 주소: BASE_URL + /api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE
HTTP 메서드: GET
인증: URL에 "token" 쿼리 파라미터를 추가하세요.
OpenAPI 정의: https://docs.justoneapi.com/openapi/tiktok/comment-replies-v1-ko.json

요청 파라미터:
- token (query): API 접근에 사용하는 보안 토큰입니다. (필수)
- awemeId (query): TikTok 게시물의 고유 ID입니다. (필수)
- commentId (query): 답글을 조회할 댓글의 고유 ID입니다. (필수)
- cursor (query): 페이지네이션 커서입니다. '0'부터 시작하세요.

응답 형식: 실제 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 [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # OpenAPI 서버 설정에서 제공

url = BASE_URL + "/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=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")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // OpenAPI 서버 설정에서 제공
const url = BASE_URL + "/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // OpenAPI 서버 설정에서 제공
        final String url = BASE_URL + "/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // OpenAPI 서버 설정에서 제공

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // OpenAPI 서버 설정에서 제공
$url = $BASE_URL . '/api/tiktok/get-post-sub-comment/v1?token=YOUR_API_KEY&awemeId=VALUE&commentId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/tiktok/comment-replies-v1-ko.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI 정의(JSON)]</a>
</div>

## 응답 필드

성공 응답(`code = 0`)의 주요 필드입니다.

<div class="api-doc-table api-doc-table--response">

| 필드 경로 | 유형 | 설명 |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | 요청한 TikTok 게시물 댓글에 달린 대댓글 및 페이지네이션 정보입니다. |
| <code>data.comments</code> | <code>array</code> | 현재 페이지에서 반환된 답장들. |
| <code>data.comments[]</code> | <code>object</code> | 요청된 부모 댓글에 대해 하나의 답장이 반환되었습니다. |
| <code>data.comments[].cid</code> | <code>string</code> | 이 댓글의 TikTok 식별자. |
| <code>data.comments[].aweme_id</code> | <code>string</code> | 이 댓글과 관련된 TikTok 게시물 식별자. |
| <code>data.comments[].reply_id</code> | <code>string</code> | 요청된 답장이 포함된 부모 댓글의 ID. |
| <code>data.comments[].reply_to_reply_id</code> | <code>string</code> | 이 항목에서 직접 답장한 ID. 부모 댓글에 직접 답장한 경우 문자열 0이 관찰되었습니다. |
| <code>data.comments[].reply_to_userid</code> | <code>string</code> | 값이 제공되는 경우, 직접 답글을 받은 대댓글 작성자의 TikTok 사용자 ID입니다. |
| <code>data.comments[].reply_to_username</code> | <code>string</code> | 직접 답장한 작성자의 공개 사용자명, 제공된 경우. |
| <code>data.comments[].reply_to_nickname</code> | <code>string</code> | 직접 답장한 작가의 표시 이름, 제공된 경우. |
| <code>data.comments[].thread_id</code> | <code>integer</code> | 이 답장에 대해 보고된 숫자형 스레드 식별자. |
| <code>data.comments[].thread_has_more</code> | <code>boolean</code> | 이 답글의 스레드 수준 플래그입니다. 답글 목록의 다음 페이지를 요청할지는 응답 수준의 has_more로 판단하세요. |
| <code>data.comments[].text</code> | <code>string</code> | 댓글의 텍스트. |
| <code>data.comments[].create_time</code> | <code>integer</code> | 댓글 생성 시간이 Unix 타임스탬프 형태로 초 단위로 반환됨. |
| <code>data.comments[].comment_language</code> | <code>string</code> | 댓글에 보고된 언어 코드입니다. |
| <code>data.comments[].content_type</code> | <code>integer</code> | 댓글에 대한 숫자형 콘텐츠 유형입니다. |
| <code>data.comments[].text_extra</code> | <code>array</code> | 댓글에 대한 보조 텍스트 주석. 이 배열은 비어 있을 수 있습니다. |
| <code>data.comments[].text_extra[]</code> | <code>object</code> | 답장 텍스트에 첨부된 하나의 주석. |
| <code>data.comments[].text_extra[].start</code> | <code>integer</code> | UTF-16 코드 단위로 나타낸 주석의 시작 인덱스입니다. 인덱스는 0부터 시작합니다. |
| <code>data.comments[].text_extra[].end</code> | <code>integer</code> | UTF-16 코드 단위로 나타낸 주석의 끝 인덱스입니다. 인덱스는 0부터 시작하며 끝 위치는 범위에 포함되지 않습니다. |
| <code>data.comments[].text_extra[].type</code> | <code>integer</code> | 숫자 형식 주석. 사용자 언급에 형식 0이 관찰되었습니다. |
| <code>data.comments[].text_extra[].user_id</code> | <code>string</code> | 사용자 언급에 대해 보고된 TikTok 사용자 식별자. |
| <code>data.comments[].text_extra[].sec_uid</code> | <code>string</code> | 사용자 언급에 대해 보고된 보조 TikTok 사용자 식별자. |
| <code>data.comments[].image_list</code> | - | 댓글 첨부 이미지 필드. 검증된 응답은 null을 반환했습니다. |
| <code>data.comments[].label_list</code> | - | 댓글에 첨부된 라벨. 반환된 응답은 null이었습니다. |
| <code>data.comments[].reply_comment</code> | - | 이 기록에 대한 중첩 답장 미리보기. 반환된 응답은 null이었습니다. |
| <code>data.comments[].digg_count</code> | <code>integer</code> | 댓글에 대한 좋아요 수를 보고합니다. |
| <code>data.comments[].is_author_digged</code> | <code>boolean</code> | 게시물 작성자가 이 댓글에 좋아요를 눌렀는지 여부입니다. |
| <code>data.comments[].is_comment_translatable</code> | <code>boolean</code> | TikTok이 댓글을 번역 가능한 것으로 표시했는지 여부. |
| <code>data.comments[].status</code> | <code>integer</code> | 댓글에 보고된 숫자 상태입니다. |
| <code>data.comments[].share_info</code> | <code>object</code> | 댓글과 관련된 정보를 공유합니다. |
| <code>data.comments[].share_info.title</code> | <code>string</code> | 댓글 공유 정보의 제목. |
| <code>data.comments[].share_info.desc</code> | <code>string</code> | 댓글 설명은 정보를 공유합니다. |
| <code>data.comments[].share_info.url</code> | <code>string</code> | 댓글 공유 정보의 URL. |
| <code>data.comments[].user</code> | <code>object</code> | 답장을 작성한 사용자의 공개 프로필. |
| <code>data.comments[].user.uid</code> | <code>string</code> | TikTok 사용자 ID. |
| <code>data.comments[].user.sec_uid</code> | <code>string</code> | TikTok의 보조 사용자 식별자. |
| <code>data.comments[].user.unique_id</code> | <code>string</code> | TikTok 사용자의 공개 사용자 이름입니다. |
| <code>data.comments[].user.nickname</code> | <code>string</code> | TikTok 사용자의 이름을 표시합니다. |
| <code>data.comments[].user.avatar_uri</code> | <code>string</code> | 사용자 아바타에 대한 이미지 참조입니다. |
| <code>data.comments[].user.avatar_thumb</code> | <code>object</code> | 아바타의 축소판 이미지 및 해당 이미지의 URL. |
| <code>data.comments[].user.avatar_thumb.uri</code> | <code>string</code> | 아바타 썸네일에 대한 이미지 참조입니다. |
| <code>data.comments[].user.avatar_thumb.width</code> | <code>integer</code> | 아바타 썸네일의 픽셀 너비입니다. |
| <code>data.comments[].user.avatar_thumb.height</code> | <code>integer</code> | 아바타 썸네일의 픽셀 높이입니다. |
| <code>data.comments[].user.avatar_thumb.url_list</code> | <code>array</code> | 아바타 썸네일의 사용 가능한 URL입니다. |
| <code>data.comments[].user.avatar_thumb.url_list[]</code> | <code>string</code> | 아바타 축소판 이미지의 URL. |
| <code>data.comments[].user.region</code> | <code>string</code> | 이 사용자 프로필에 보고된 지역 코드. |
| <code>data.comments[].user.language</code> | <code>string</code> | 이 사용자 프로필에 보고된 언어 코드. |
| <code>data.cursor</code> | <code>integer</code> | 답글의 다음 페이지를 조회할 때 사용하는 커서입니다. has_more가 1이면 같은 awemeId와 commentId를 사용하면서 이 정수를 정확한 십진수 문자열로 cursor에 전달하세요. |
| <code>data.has_more</code> | <code>integer</code> | 답글 페이지네이션 플래그입니다. 1이면 다음 페이지가 있습니다. cursor에 값이 있어도 0이면 중단하세요. |
| <code>data.total</code> | <code>integer</code> | 요청된 부모 댓글에 대한 보고된 총 답장 수. 현재 페이지에는 더 적은 수의 답장이 포함될 수 있습니다. |
| <code>data.status_code</code> | <code>integer</code> | TikTok 댓글 페이로드의 숫자 상태 코드입니다. |
| <code>data.status_msg</code> | <code>string</code> | TikTok 댓글 페이로드에 포함된 상태 메시지. 비어 있을 수 있습니다. |

</div>

## 응답 예시

<ApiExampleSection :api='JSON.parse("\"/api/tiktok/get-post-sub-comment/v1\"")' />

