このエンドポイントが役立つこと
レスポンスには、会話の要素、投稿者の公開データ、エンゲージメントのシグナル、ページネーションのフィールドが含まれます。
使用に適した場面
会話のテキスト、投稿者、タイムスタンプ、継続的なページネーションが必要な場合に「投稿 ID によるコメント」を使用します。
まず結果と一般的なワークフローを確認し、次にパラメーターと動作するリクエスト例に進んでください。
レスポンスには、会話の要素、投稿者の公開データ、エンゲージメントのシグナル、ページネーションのフィールドが含まれます。
会話のテキスト、投稿者、タイムスタンプ、継続的なページネーションが必要な場合に「投稿 ID によるコメント」を使用します。
コンテンツの下や選択したオブジェクトの周辺で、オーディエンスの反応を追跡します。
公開メッセージを確認、分類、品質管理のキューに送ります。
会話のテキストとメタデータをレポートやオーディエンス調査に活用します。
どちらのバージョンも同じタスクを解決し、同じパラメーターを受け付けます。切り替えを使ってレスポンス構造を比較し、クライアントが想定するバージョンを選んでください。
このページでバージョンを切り替えると、同じドキュメント URL でレスポンス構造を比較できます。
認証、必須パラメーター、リクエストの形は V1 と V2 で同じです。実際には、エンドポイントのパスを組み立てるときとレスポンスを読み取るときにバージョンを選びます。
主な違いはレスポンスのエンベロープです。新しい連携では V2 を使用し、既存のクライアント契約との互換性が必要な場合にのみ V1 を残してください。
どちらのバージョンでも、同じ API キーのヘッダーと同じクエリパラメーターを使用します。このドキュメントでは、まず共通のパラメーターを示し、次に各バージョンのパスとコードスニペットを示します。
| パラメーター | 必須 | 型 | 例 | 説明 |
|---|---|---|---|---|
media_id |
はい | str |
7358140719266102561 |
データを取得したい Instagram 投稿の数値 ID。 |
cursor |
いいえ | str | None |
20 |
前のレスポンスで返された次のページのカーソル。最初のページでは省略します。 |
エンドポイントの正確なパス、URL の例、コードスニペットをコピーするときにバージョンを選んでください。上のパラメーター一覧は変わりません。
GET /api/v2/tiktok.com/videos/comments-by-media-idcurl --request GET \
--url "https://www.scrapestorm.net/api/v2/tiktok.com/videos/comments-by-media-id" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'media_id=7358140719266102561' \
# Optional parameters:
# --data-urlencode 'cursor=20'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v2/tiktok.com/videos/comments-by-media-id"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"media_id": "7358140719266102561",
}
# Optional parameters
# params["cursor"] = "20"
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v2/tiktok.com/videos/comments-by-media-id";
const params = new URLSearchParams({
media_id: "7358140719266102561",
});
// Optional parameters
// params.set("cursor", "20");
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
media_id: "7358140719266102561",
};
// Optional parameters
// params.cursor = "20";
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"media_id" => "7358140719266102561",
];
// Optional parameters
// $query["cursor"] = "20";
try {
$response = $client->request("GET", "/api/v2/tiktok.com/videos/comments-by-media-id", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v2/tiktok.com/videos/comments-by-media-id"
params := url.Values{}
params.Set("media_id", "7358140719266102561")
// Optional parameters
// params.Set("cursor", "20")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
エンドポイントの正確なパス、URL の例、コードスニペットをコピーするときにバージョンを選んでください。上のパラメーター一覧は変わりません。
GET /api/v1/tiktok.com/videos/comments-by-media-idcurl --request GET \
--url "https://www.scrapestorm.net/api/v1/tiktok.com/videos/comments-by-media-id" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'media_id=7358140719266102561' \
# Optional parameters:
# --data-urlencode 'cursor=20'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v1/tiktok.com/videos/comments-by-media-id"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"media_id": "7358140719266102561",
}
# Optional parameters
# params["cursor"] = "20"
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v1/tiktok.com/videos/comments-by-media-id";
const params = new URLSearchParams({
media_id: "7358140719266102561",
});
// Optional parameters
// params.set("cursor", "20");
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
media_id: "7358140719266102561",
};
// Optional parameters
// params.cursor = "20";
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"media_id" => "7358140719266102561",
];
// Optional parameters
// $query["cursor"] = "20";
try {
$response = $client->request("GET", "/api/v1/tiktok.com/videos/comments-by-media-id", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v1/tiktok.com/videos/comments-by-media-id"
params := url.Values{}
params.Set("media_id", "7358140719266102561")
// Optional parameters
// params.Set("cursor", "20")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
プレビューには主要なフィールドとコレクションの最初の要素が含まれているため、レスポンスの形をすばやく確認できます。バージョンを切り替えると JSON の形式が変わります。
このコンパクトな JSON の例は、V2 の直近の成功した検証実行から取得したものです。
{
"success": true,
"status": "ok",
"pagination": {
"cursor": "20",
"has_more": true
},
"search_context": {
"media_id": "7628619815690833183"
},
"data": {
"comments": {
"count": 20,
"items": [
{
"url": null,
"created_at": "2026-04-16T12:29:47Z",
"comment_id": "7629333241903973142",
"text": "Why is the \"ALLOW AI TO remix content automatically\" setting on for all videos in privacy settings?",
"author": {
"url": "https://www.tiktok.com/@Stylesanctuary",
"user_id": null,
"sec_uid": null,
"username": "Stylesanctuary",
"display_name": "Stylesanctuary",
"avatar_url": "https://example.com/image.jpg",
"avatar_urls": "https://example.com/image.jpg"
},
"like_count": 109,
"reply_count": null,
"reply_id": "0",
"parent_comment_id": "0",
"is_author_liked": false,
"is_pinned": null
},
{
"url": null,
"created_at": "2026-04-17T13:21:54Z",
"comment_id": "7629717687844832013",
"text": "Give us a master switch off for AI remix. You can’t make us go back through everything on our page for a feature that was just added.",
"author": {
"url": "https://www.tiktok.com/@MalikaNgozi🇸🇩🇵🇸🇨🇩",
"user_id": null,
"sec_uid": null,
"username": "MalikaNgozi🇸🇩🇵🇸🇨🇩",
"display_name": "MalikaNgozi🇸🇩🇵🇸🇨🇩",
"avatar_url": "https://example.com/image.jpg",
"avatar_urls": "https://example.com/image.jpg"
},
"like_count": 263,
"reply_count": 5,
"reply_id": "0",
"parent_comment_id": "0",
"is_author_liked": false,
"is_pinned": null
},
{
"_more_items": 18
}
]
}
}
}
このコンパクトな JSON の例は、V1 の直近の成功した検証実行から取得したものです。
{
"success": true,
"status": "ok",
"pagination": {
"cursor": "20",
"has_more": true
},
"search_context": {
"media_id": "7628619815690833183"
},
"data": {
"alias_comment_deleted": false,
"comments": [
{
"allow_download_photo": true,
"author_pin": false,
"aweme_id": "7628619815690833183",
"cid": "7629717687844832013",
"collect_stat": 0,
"comment_language": "en",
"comment_post_item_ids": null,
"create_time": 1776432114,
"digg_count": 266,
"fold_status": -1,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": true,
"is_high_purchase_intent": false,
"label_list": null,
"no_show": false,
"reply_comment": null,
"reply_comment_total": 4,
"reply_id": "0",
"reply_to_reply_id": "0",
"seeking_help_model_type": 0,
"share_info": {
"acl": {
"add_to_story_code": 0,
"code": 0,
"extra": "{}"
},
"desc": "MalikaNgozi🇸🇩🇵🇸🇨🇩’s comment: Give us a master switch off for AI remix. You can’t make us go back through everything on our page for a feature that was just added.",
"title": "a reminder to romanticize the little moments ❤️",
"url": "https://m.tiktok.com/v/7628619815690833183.html?_d=el402017iak894&comment_author_id=6859751381797749765&preview_pb=0&share_comment_id=7629717687844832013&share_item_id=762861981…"
},
"sort_extra_score": {
"reply_score": 0.000482,
"show_more_score": 0.11821
},
"sort_tags": "{\"top_list\":1}",
"_more_fields": "12 more fields"
},
{
"allow_download_photo": true,
"author_pin": false,
"aweme_id": "7628619815690833183",
"cid": "7629529708057936671",
"collect_stat": 0,
"comment_language": "en",
"comment_post_item_ids": null,
"create_time": 1776388359,
"digg_count": 106,
"fold_status": -1,
"image_list": null,
"is_author_digged": false,
"is_comment_translatable": true,
"is_high_purchase_intent": true,
"label_list": null,
"no_show": false,
"reply_comment": null,
"reply_comment_total": 1,
"reply_id": "0",
"reply_to_reply_id": "0",
"seeking_help_model_type": 0,
"share_info": {
"acl": {
"add_to_story_code": 0,
"code": 0,
"extra": "{}"
},
"desc": "Miami’s comment: I WANT AN EASIER OPTION TO OPT OUT OF ALL AI USAGE ON MY POSTS.... WHY IS IT AUTOMATICALLY ON AND WHY DO I HAVE TO GO THROUGH ALL MY POSTS JUST TO TURN IT OFF?!?!?",
"title": "a reminder to romanticize the little moments ❤️",
"url": "https://m.tiktok.com/v/7628619815690833183.html?_d=el402017iak894&comment_author_id=7271677067216700458&preview_pb=0&share_comment_id=7629529708057936671&share_item_id=762861981…"
},
"sort_extra_score": {
"reply_score": 0.000259,
"show_more_score": 0.00848
},
"sort_tags": "{\"top_list\":1}",
"_more_fields": "12 more fields"
},
{
"_more_items": 18
}
],
"cursor": 20,
"extra": {
"api_debug_info": null,
"fatal_item_ids": null,
"now": 1786905327000
},
"has_filtered_comments": 0,
"has_more": 1,
"log_pb": {
"impr_id": "202608161835272AC077468026AC94307A"
},
"reply_style": 2,
"status_code": 0,
"status_msg": "",
"top_gifts": null,
"total": 2682
}
}
このドキュメントを最初の判断材料とし、継続的な利用のためにエンドポイントを接続する前に、料金、プラットフォームのカバー範囲、連携ルールを確認してください。
これらの回答を参考に、この API メソッドがワークフロー、バージョンの選択、導入計画に合うかどうかを判断してください。
このメソッドは 動画 に対して「投稿 ID によるコメント」を実行します。以下のコンパクトなレスポンス例で、フィールドの正確な構造を確認できます。
新しい連携では、正規化された構造を提供する V2 を選んでください。V1 は、既にプラットフォーム固有の形式を処理しているクライアントとの互換性のためにのみ使用してください。
API キーを作成し、リクエストヘッダーで送信し、表の必須パラメーターを指定してください。コード例には、正しいパスとリクエスト構造が既に含まれています。