YouTube 댓글 답글 API
댓글의 답글을 답글 토큰으로 한 번에 약 10개씩 조회합니다: 본문, 답글 작성자(핸들, 아바타, 인증), 좋아요, 대략적인 게시 시점(YouTube 표기 "6 years ago"). post_id와 parent_id는 토큰에서 읽습니다.
GEThttps://api.okdata.online/v1/youtube/comments/replies/list
다른 이름youtube repliesyoutube comment threadyoutube sub comments
- 가격
- $0.002
- 호출당 · 잘못된 파라미터는 무료
- 반환
- 페이지당 약 10개 댓글
- with a cursor for the next page
- 호출이 실패하면
- 1회만 과금
- A failed call is retried on our side first. A call that reached the platform is charged once even if it fails; bad parameters are free.
- 상태
- stable
- The contract holds: parameters and fields do not change under you.
결제About 100 calls fetch 1,000 comments: $0.20 in all. New accounts get $0.20 of credit, no card needed: 100 calls to this endpoint. 과금 규칙 →
Playground에서 실행파라미터
| 이름 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
id | string | 예 | The comment's replies token (YouTube's continuation for its replies, starting Eg0S), not the comment ID: ext.replies_token of the comment in youtube.videos.comments.list with view=full. | Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6S1lrc3FlUTVnQTN0MGcwRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pLWWtzcWVRNWdBM3QwZzBGNEFhQUJBZw%3D%3D |
cursor | string | 아니요 | Opaque cursor from page.next_cursor of the previous call. Each page is a separate call. | — |
view | stringbriefcompactstandardfull | 아니요 | How much of each object comes back. brief: IDs, title, the first 100 characters of the text, link, time and the main counts, for scanning a list (then get what you need by ID). compact leaves out empty fields and cuts long text at 500 characters. full adds platform-specific fields under ext. | — |
fields | string[] | 아니요 | Fields to keep, by path (author.name), to save tokens. In a query string: comma-separated. | — |
cursor, view and fields work the same on every endpoint: how requests work.
사용해 보기
New accounts get $0.20 of credit, no card needed: 100 calls to this endpoint.무료로 시작
This sends a real call to https://api.okdata.online and is billed as usual: at most $0.002, also when the platform comes back empty, not found or failed. Bad parameters are never charged. Your key goes only to that address and is never stored on this site.
알려진 제한 사항
- About 10 comments come back per page; the platform sets the page size, so there is no page-size parameter.
- 다음 페이지를 받으려면 다음을 전달하세요
page.next_cursor반환 형태cursor. A cursor stays valid for 24 hours. Whenpage.has_more이 false이면 더 이상 남은 항목이 없습니다.
반환 필드
data.items is a list of 댓글.
| 필드 | 유형 | 보기 | 설명 |
|---|---|---|---|
id | string | compact | 댓글 ID. |
post_id | string | compact | 댓글이 달린 게시물의 ID. |
parent_id | string | null | compact | The comment it replies to; null for top-level comments. |
text | string | compact | 댓글 내용.긴 텍스트: view=compact를 쓰면 줄어들 수 있습니다. |
published_at | string | compact | 게시 시각, UTC 기준 ISO 8601. |
author | AccountRef | compact | 작성자. |
10개 필드 모두 보기나머지 4개 숨기기
| 필드 | 유형 | 보기 | 설명 |
|---|---|---|---|
likes | integer | null | compact | 댓글 좋아요 수. |
replies | integer | null | compact | 달린 답글 수. |
ip_location | string | null | standard | Region label the platform shows next to the comment, if any. |
ext | 객체 | full | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. |
조회 수 열이 가장 작습니다 view 필드 반환 위치: compact returns only compact fields, standard adds the standard ones, full 는 모든 항목을 반환합니다. 기본값은 standard.
과금되는 경우
One call costs $0.002 and returns one page of about 10 comments. Collecting 1,000 comments takes about 100 calls, $0.20 in total. Each page is a separate call. A call that reached the platform is charged even when it comes back empty, not found or failed; calls stopped before reaching the platform are free.
데이터 반환호출당 $0.002
잘못된 파라미터, 잔액 부족, 일시 중지된 엔드포인트무료
| 시간 | 결제 금액 |
|---|---|
| 이후 페이지마다 | 새 호출: $0.002 |
| 호출 1회 최대 비용 | $0.002 |
| 빈 응답 | $0.002 |
| 찾을 수 없음(플랫폼에 해당 항목이 없음) | $0.002 |
| 플랫폼 오류 또는 시간 초과 시 | $0.002 |
| 잘못된 파라미터, 잔액 부족, 일시 중지된 엔드포인트 | 무료 |
| 24시간 이내 동일한 Idempotency-Key로 재전송 | 유지된 결과가 반환되면 무료 |
A call that reached the platform costs $0.002 even when the answer is empty, not found or a platform failure; a call stopped before that, such as for bad parameters, is free.
Prices from price book fb99dc8a88674793. 이 플랫폼의 모든 요금 →
자주 발생하는 오류
Every error has the same shape and says whether it was charged. The ones this endpoint can return:
| HTTP | 코드 | 의미 | 청구액 |
|---|---|---|---|
| 400 | invalid_params | A parameter is missing, has the wrong type or value, or the method is wrong. problems lists each one; param names the first.재시도: 수정 후 | 아니요 |
| 400 | cursor_mismatch | The cursor was sent to another endpoint, or with other parameters than the page it came from (view and fields may change).재시도: 수정 후 | 아니요 |
| 401 | unauthorized | The key is missing, malformed, revoked, disabled or expired (reason says which when known).Retry: 아니요 | 아니요 |
| 402 | insufficient_balance | The balance (available) cannot cover the most this call could cost (required).재시도: 수정 후 | 아니요 |
| 404 | not_found | The post, account or page does not exist or is not public. When the lookup reached the platform and was billed, or the endpoint's charge_when_not_found is above 0, this answer is charged: the body then says charged: true and amount.Retry: 아니요 | once, if it reached the platform |
| 410 | cursor_expired | The cursor is older than the endpoint's cursor lifetime (page.cursor_expires_at said when).Retry: 아니요 | 아니요 |
| 429 | rate_limited | The account sent too many requests this minute (reason: rate) or has too many calls running (reason: concurrency).재시도: 가능 | 아니요 |
| 500 | settlement_unknown | The data came back, but the charge could not be confirmed.Retry: 동일한 Idempotency-Key로 | unknown until looked up |
| 502 | fetch_failed | The request failed even after we retried automatically on our side. If it reached the platform and the request was billed, it is charged once at the endpoint's price (charged: true and amount); otherwise nothing is charged.재시도: 가능 | once, if it reached the platform |
| 503 | capability_paused | 이 엔드포인트는 현재 일시 중지되어 실행되지 않았습니다.재시도: 가능 | 아니요 |
| 504 | timeout | The data did not come back in time. If the request had reached the platform and was billed, it is charged once at the endpoint's price (charged: true and amount); otherwise the hold is released.재시도: 가능 | once, if it reached the platform |
질문
How much does the YouTube 댓글 답글 API cost?
One call costs $0.002 and returns one page of about 10 comments. Collecting 1,000 comments takes about 100 calls, $0.20 in total. Each page is a separate call. A call that reached the platform is charged even when it comes back empty, not found or failed; calls stopped before reaching the platform are free.
다음 페이지는 어떻게 받나요?
Pass page.next_cursor from the response back as the cursor parameter. When page.has_more is false there is nothing left. Every page is its own call at $0.002.
Do I need a YouTube account, cookies or a QR login?
No. You send only your okdata API key. The data is public data from YouTube; nothing is fetched with your own YouTube account.
호출이 실패해도 과금되나요?
Yes, once, when the call reached the platform: an empty answer, a not_found, a failure or a timeout on the platform's side costs one call (one item for per-item endpoints), and the error says charged: true with amount. Calls refused before reaching the platform, such as bad parameters or a low balance, cost nothing.
YouTube에 필드가 표시되지 않으면?
The field is null, and meta.unavailable names it with the reason: platform (the platform never shows it) or capability (we cannot fetch it yet).
AI에서 사용하기
Paste this into Claude, ChatGPT, Cursor or any agent that can open a web page. It reads this endpoint’s page and calls it with your key.
Read https://okdata.online/apis/youtube/comments/replies/list.md, then call this endpoint for me through okdata; my key is in the OKDATA_API_KEY environment variable. Use YouTube 댓글 답글, read the first two pages and sum up what people praise and complain about.
MCP 서버를 연결하고 이렇게 물어보세요: Use YouTube 댓글 답글, read the first two pages and sum up what people praise and complain about.
다른 플랫폼의 같은 데이터
The same kind of data from other platforms, in the same Comment shape: