更新情報改善

Source InfluenceがタスクIDを受け付けます

Source Influence
追跡する回答を尋ねる出典の影響度の画面。タスク ID を入力し、最近の回答が並んでいます

完了した回答のtaskIdをSource Influenceに送ると、回答と引用を読み取って分析します。

変更点

  • querying.aiで得た回答は、taskIdひとつで分析を依頼できます。
  • 回答のMarkdown、エンジンが並べた順の引用URL、質問、国、エンジンをタスクからそのまま取り込みます。
  • 引用URLは先頭から100件まで分析し、そのうちディスカッションスレッドは10件まで含みます。

仕組み

GET /v1/async/task/{id}でまだ取得できる自分の完了タスクなら、IDだけで分析できます。回答のMarkdown(エンジンがプレーンテキストを返した場合はテキスト)と、エンジンが並べた順の引用URLを使います。

実際のページにつながる引用を分析するため、商品カード、動画カード、Google検索のリンクは対象から外れます。

活用例

  • 定期ジョブで集めた回答を、IDごとに分析できます。
  • 回答タスクが完了したらすぐ分析まで進むパイプラインを組めます。

リクエストを送る

API キーを Authorization ヘッダーに入れてリクエストを送ります。

curl -X POST https://api.querying.ai/v1/source-influence \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskId": "e5aba119-a26e-4f82-a965-35c9234a428b" }'

リクエストのフィールド

taskIdstring必須
完了した自分の回答タスクの ID。その回答と引用ページが answer と citations になります。
countrystring
引用ページを読み込む国。既定値は US。
webhook.urlstring
サーバーの HTTPS アドレス。タスクが完了した瞬間に結果をここへ送ります。
idempotencyKeystring
リクエストに付ける独自の ID。1つのキーはアカウント内で1つのタスクを作るため、再送してもタスクは1つのままです。

レスポンス

完了したタスクはこの形で届きます。長さを抑えて抜粋しています。

JSON
{
  "success": true,
  "task": {
    "id": "1d0521d6-26fe-4fbf-9e54-3a97c0e566a3",
    "taskType": "SOURCE_INFLUENCE",
    "status": "COMPLETED",
    "createdAt": "2026-10-02T15:44:12.823Z"
  },
  "credits": { "creditsToCharge": 133, "creditsCharged": 133 },
  "response": {
    "answer": "Here are several **nearby cafés that look particularly suitable for laptop work**, based on current local listings and work-friendly details:\n…",
    "sources": [
      {
        "id": "s0",
        "url": "https://awifiplace.com/cities/new-york",
        "paragraphs": [
          {
            "id": "s0p4",
            "text": "100 Cafés to Work in New York\n\nCarefully curated from Google reviews: All locations offer WiFi and are verified as laptop-friendly by remote …"
          }
        ]
      }
    ],
    "links": [
      {
        "id": "l0",
        "paragraphId": "s0p4",
        "answerRanges": [
          { "start": 0, "end": 141 },
          { "start": 179, "end": 247 },
          { "start": 248, "end": 288 },
          { "start": 869, "end": 938 }
        ],
        "explanation": "The page describes 100 New York cafés as offering WiFi and verified as laptop-friendly by remote workers, supporting their suitability for laptop work and Wi-Fi use."
      }
    ],
    "insights": [
      {
        "summary": "The recommendations are best read as promising laptop-work options, not guaranteed workspaces: the underlying guides rely on reported Wi‑Fi and work-friendly listings, while noting that connection quality, outlets, and seating can vary.",
        "linkIds": ["l0", "l2", "l3", "l4", "l6", "l7", "l8"]
      }
    ]
  }
}
task.statusstring
QUEUED、PROCESSING を経て、回答付きの COMPLETED か error 付きの FAILED で終わります。
credits.creditsChargedinteger
完了したタスクに請求されたクレジット。失敗したタスクは0です。
response.answerstring
送った回答そのもの。範囲はこのテキストの UTF-16 オフセットです。
response.sourcesarray
引用ページごとに1件。url と、結果に含まれる paragraphs(各 id と text)。
response.linksarray
各リンクは1つの段落と、それが対応する answerRanges、1文の explanation を結びます。
response.insightsarray
リンク全体が示す内容の短い要約。根拠となるリンクを linkIds で示します。

結果を受け取る

リクエストすると status が QUEUED のタスクがすぐに返ります。status が COMPLETED か FAILED になるまで GET /v1/async/task/{id} で取得するか、webhook.url を指定して同じ task、credits、response をサーバーで受け取ります。結果はタスクの完了から24時間取得できます。

curl https://api.querying.ai/v1/async/task/$TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

料金

料金はこれまでと同じです。分析開始時にクレジットを確保し、完了時に精算します。

ほかの更新

最新情報を受け取る

製品の更新をメールでお届けします。

RSS フィード