Threads 返信 API

パラメータは 2026-10-25 の仕様スナップショット、レスポンスの行は 2026-11-21 の実レスポンスで確認

要点

POST /threads/pushs/task に投稿 URL を指定すると、その投稿への返信を収集する非同期タスクが始まります。GET /threads/pushs/task/{task_id} をポーリングすると、data に元の投稿とその返信が入り、total_count が行数を示します。各返信には reply_level(1 は直接の返信、2 は返信への返信)、reply_to_author、返信自身の URL、投稿者、本文、タイムスタンプ、いいね・返信・シェアの件数が含まれ、第 2 階層の返信には parent_id(返信先の返信の comment_id)も付きます。データは Threads で公開されているコンテンツをウェブクローラーで収集したものです。

主な用途

  • ブランドの告知、キャンペーン投稿、ニュース投稿に読者がどう反応したかを、投稿の内容だけでなく返信から確認する。
  • 直接の返信と、返信への返信をたどって、投稿の下の会話を追う。
  • reactions API と組み合わせ、返信を投稿の閲覧数・いいね数・シェア数と照らし合わせる。

エンドポイント

Base URL は https://api.infominer.io/api/v2 です。API キーは auth-header リクエストヘッダーで送信します。

メソッドパス説明
POST /threads/pushs/task 投稿 URL から返信の収集タスクを作成します。
GET /threads/pushs/task/{task_id} 返信タスクのステータスと件数、および元の投稿と返信(data)を返します。

リクエストパラメータ

POST /threads/pushs/task

パラメータ位置型必須既定値/指定可能な値説明
post_url body string はい Threads の投稿 URL(例:https://www.threads.com/@username/post/{id})。
mask_author body boolean — false true にすると、このレスポンスから投稿者の識別フィールドを除きます。返される行を伏せるには、GET でポーリングするたびに指定します。
max_scroll body integer — クロール時のスクロール上限(整数)。
rerun body boolean — 真偽値。収集をやり直します。

GET /threads/pushs/task/{task_id}

パラメータ位置型必須既定値/指定可能な値説明
task_id path string はい タスク作成時に返されたタスク ID。
mask_author query boolean — false true にすると、このレスポンスから投稿者の識別フィールドを除きます。返される行を伏せるには、GET でポーリングするたびに指定します。

レスポンスのフィールド

データフィールドエンドポイント
返信 id, comment_id, post_id, url, post_url, root_post_id, parent_id, reply_level, reply_to_author, author, author_id, content, tm, tm_crawler, like_count, reaction_count, comment_count, share_count, is_reply, is_quote GET /threads/pushs/task/{task_id}

コード例

curl:タスクを作成

curl -X POST https://api.infominer.io/api/v2/threads/pushs/task \
  -H "auth-header: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"post_url": "https://www.threads.com/@sample_user_1/post/00000000001", "mask_author": false}'

curl:タスク ID でポーリング

curl "https://api.infominer.io/api/v2/threads/pushs/task/$TASK_ID?page=1&per_page=1000" \
  -H "auth-header: YOUR_API_KEY"

Python(requests):作成・ポーリング・読み取り

import time
import requests

BASE_URL = "https://api.infominer.io/api/v2"
HEADERS = {"auth-header": "YOUR_API_KEY"}

# 1. Create the task
resp = requests.post(
    f"{BASE_URL}/threads/pushs/task",
    headers=HEADERS,
    json={
        "post_url": "https://www.threads.com/@sample_user_1/post/00000000001",
        "mask_author": False,
    },
    timeout=30,
)
resp.raise_for_status()
task = resp.json()

# 2. Poll until the task leaves INIT / RUNNING
for _ in range(120):
    resp = requests.get(
        f"{BASE_URL}/threads/pushs/task/{task['id']}",
        headers=HEADERS,
        params={
            "page": 1,
            "per_page": 1000,
        },
        timeout=30,
    )
    resp.raise_for_status()
    result = resp.json()
    status = result.get("status") or result.get("task", {}).get("status")
    if status not in ("INIT", "RUNNING"):
        break
    time.sleep(15)
else:
    raise SystemExit("task still running; poll it again later")

if status == "FAILED":
    raise SystemExit("task failed")
if status != "DONE":
    print("task ended with status", status, "- results may be incomplete")

# 3. Read the records (use page / per_page to fetch further pages)
for row in result.get("data", []):
    print(row.get("reply_level"), row.get("author"), (row.get("content") or "")[:60])

レスポンス例

手作業で作成したサンプルデータです。アカウントは sample_user_n、ID は明らかなダミー値です。フィールド名は 2026-11-21 に確認した実際の API レスポンスに基づき、一部のフィールドのみを示しています。

タスク完了後のポーリングレスポンス(サンプルデータ)

{
  "id": "00000000-0000-4000-8000-000000000001",
  "status": "DONE",
  "post_url": "https://www.threads.com/@sample_user_1/post/00000000001",
  "total": 2,
  "completed": 2,
  "partial": false,
  "timed_out": false,
  "failed_articles": 0,
  "failed_pages": 0,
  "total_count": 3,
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000003",
      "post_id": "00000000001",
      "root_post_id": "00000000001",
      "url": "https://www.threads.com/@sample_user_1/post/00000000001",
      "author": "sample_user_1",
      "author_id": "0000000001",
      "content": "週末走了一條不太熱門的步道,沿途視野很開闊,建議早點出發避開人潮",
      "tm": 1781056800,
      "tm_crawler": 1781143200,
      "like_count": 34,
      "reaction_count": 34,
      "comment_count": 2,
      "share_count": 1,
      "is_reply": false,
      "is_quote": false,
      "reply_to_author": ""
    },
    {
      "id": "00000000-0000-4000-8000-000000000004",
      "comment_id": "00000000002",
      "post_id": "00000000-0000-4000-8000-000000000003",
      "post_url": "https://www.threads.com/@sample_user_1/post/00000000001",
      "root_post_id": "00000000001",
      "url": "https://www.threads.com/@sample_user_2/post/00000000002",
      "reply_level": 1,
      "reply_to_author": "sample_user_1",
      "author": "sample_user_2",
      "author_id": "0000000002",
      "content": "請問這條步道雨天好走嗎?下週想安排家人一起去",
      "tm": 1781060400,
      "tm_crawler": 1781143200,
      "like_count": 3,
      "reaction_count": 3,
      "comment_count": 1,
      "share_count": 0,
      "is_reply": true,
      "is_quote": false
    },
    {
      "id": "00000000-0000-4000-8000-000000000005",
      "comment_id": "00000000003",
      "post_id": "00000000-0000-4000-8000-000000000003",
      "post_url": "https://www.threads.com/@sample_user_1/post/00000000001",
      "root_post_id": "00000000001",
      "parent_id": "00000000002",
      "url": "https://www.threads.com/@sample_user_1/post/00000000003",
      "reply_level": 2,
      "reply_to_author": "sample_user_2",
      "author": "sample_user_1",
      "author_id": "0000000001",
      "content": "下雨後石階會比較滑,建議穿防滑的鞋子",
      "tm": 1781064000,
      "tm_crawler": 1781143200,
      "like_count": 1,
      "reaction_count": 1,
      "comment_count": 0,
      "share_count": 0,
      "is_reply": true,
      "is_quote": false
    }
  ]
}

制限と注意点

  • data には、タスク作成元の投稿が 1 行として、その返信とともに含まれます。
  • ポーリングレスポンスはページ単位で返ります。GET リクエストで page と per_page を指定します(per_page は既定値・上限とも 1000)。レスポンスには page、per_page と、その時点までの総件数 total_count が示されるので、total_count 件に達するまで次のページを読み取ってください。
  • reply_level は階層を示します(1 は直接の返信、2 は返信への返信)。
  • max_scroll は整数で指定します。
  • 1 投稿あたりの件数と更新頻度はプロジェクトの範囲に応じて確認します。
収集方法:各プラットフォームで公開されているコンテンツをウェブクローラーで収集しています。ご利用目的に適するかどうかは、用途と法域に応じて買い手側の法務部門でご判断ください。収集元と収集方法の説明はご提供できます。

ほかの Threads API ページ

トライアルの申し込み

下の申込フォームに Threads と明記し、キーワードやアカウント、返信と reactions の要否、投稿者フィールドを伏せる必要があるかをお知らせください。範囲を確認し、トライアルと API キーの進め方についてご連絡します。

フォームにご記入のうえ、トライアルをお申し込みください。担当者が範囲を確認のうえ、トライアルと連携の進め方をご返信します。

申込フォームに記入する

よくある質問

post_url にはどの URL を指定しますか?
Threads の投稿 URL(https://www.threads.com/@username/post/{id} の形式)です。
返信は投稿や他の返信とどう対応付けますか?
すべての返信行に、タスク作成元の投稿を示す post_url と root_post_id があります。第 2 階層の返信には parent_id もあり、返信先の返信の comment_id と一致します。
複数の投稿の返信を収集できますか?
投稿 URL ごとに返信タスクを 1 つ作成します。投稿 URL はキーワード検索やタイムラインの行の url フィールドから取得できます。
データはどのように収集していますか?Threads の公式 API ですか?
Threads で公開されているコンテンツをウェブクローラーで収集しています。当社は Meta および Threads と提携しておらず、Meta が提供する Threads API ではありません。ご利用目的に適するかどうかは、用途と法域に応じて買い手側の法務部門でご判断ください。収集元と収集方法の説明はご提供できます。