JD.com質問への回答API
APIの稼働状況
- 24時間の稼働状況
- 正常
- 良好/正常
- 利用可能
過去24時間
過去30日間
Get every seller answer under one question on a JD.com product, in one call. Pass the product's item_id and the question's id from questions as question_id. Each answer has its text, date, the answerer label and likes.
POST https://api.everyinfra.com/api/v1/socialを送信し、platformにjd、actionにquestion_answersを指定します。 料金は1,000リクエストあたり$0.56(1回あたり$0.000556)です。失敗した呼び出しと空の結果には課金されません。 同期処理です。時間のかかるジョブでは、ボディに"mode": "async"を追加し、job_idを取得してポーリングしてください。
AIプロンプト
#EveryInfraのJD.com 質問への回答エンドポイント(jd/question_answers)を使ったデータ収集スクリプトの作成を手伝ってください。
エンドポイントの仕組み:
- リクエスト:ヘッダーにAuthorization: Bearer <API key>を指定して、https://api.everyinfra.com/api/v1/socialにPOSTします。APIキーは環境変数EVERYINFRA_API_KEYから読み込み、ハードコードしないでください。
- リクエストボディでplatformにjd、actionにquestion_answersを指定し、パラメータはparamsの中に入れます。
- 必須パラメータ:
- item_id: The JD.com product the question is on, the same item_id you passed to questions: the digit string or https://item.jd.com/<digits>.html without a query or fragment.
- question_id: The ID of a JD.com question, the id of a questions row (digits only). question_answers returns every seller answer JD shows under it in one call, with no paging; pass the item_id of the product the question is on.
- 任意パラメータ:
- limit: 正の整数(1以上):返す結果の最大件数です。省略すると、この呼び出しの結果をすべて返します。指定してもレスポンスをこの件数以内に切り詰めるだけで、それ以上取得することはありません。課金はlimitの有無や値にかかわらず同じです。
- レコードのリストを返します。各レコードの主なフィールド: id、question_id(ID of the question (question_answers),…)、item_id(JDの数値商品ID)、text、posted_date(Date posted (questions, question_answer…)、author_name(Reviewer nickname, returned as JD shows…)、author_type(JD's numeric code for the kind of answe…)、like_count(Number of likes (the answers in questio…).
- リクエストボディの例:
{
"platform": "jd",
"action": "question_answers",
"params": {
"item_id": "100270865468",
"question_id": "166721745"
}
}
- 料金:1,000リクエストあたり$0.56。失敗時および結果が空の場合は課金されません。
- 対象が数十〜数百件ある場合は、ボディに"mode": "async"を追加します。すぐにjob_idが返されるので、GET https://api.everyinfra.com/api/v1/jobs/{job_id}をポーリングして結果を取得します。
- 422の場合は、エラーに含まれる推奨パラメータ名と指定可能な値を使ってリクエストを修正します。429または503の場合は、Retry-Afterの指定に従って待ってから再試行します。
コードを書く前に、必要な対象とその件数、必要なフィールド、希望する出力形式を私に質問してください。そのうえで、計画と概算費用を私に確認してください。リクエストパラメータ
#| 名前 | 場所 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|---|
Authorization | header | string | はい | - | Bearerの後にAPIキーを続けます。APIキーはコンソールで作成してください。URLやコードリポジトリには絶対に含めないでください。 |
platform | body | string | はい | jd | プラットフォームの識別子です。値は固定です。 |
action | body | string | はい | question_answers | 機能の識別子です。値は固定です。 |
item_id | body.params | string | はい | - | The JD.com product the question is on, the same item_id you passed to questions: the digit string or https://item.jd.com/<digits>.html without a query or fragment. |
question_id | body.params | string | はい | - | The ID of a JD.com question, the id of a questions row (digits only). question_answers returns every seller answer JD shows under it in one call, with no paging; pass the item_id of the product the question is on. A question whose seller_answer_count is 0 returns an empty result and is not charged; any other form returns 422 and is not charged. |
limit | body.params | integer (1–) | いいえ | - | 正の整数(1以上):返す結果の最大件数です。省略すると、この呼び出しの結果をすべて返します。指定してもレスポンスをこの件数以内に切り詰めるだけで、それ以上取得することはありません。課金はlimitの有無や値にかかわらず同じです。 |
コードサンプル
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "jd",
"action": "question_answers",
"params": {
"item_id": "100270865468",
"question_id": "166721745"
}
}'OpenAPI定義(JSON)サンプルは環境変数EVERYINFRA_API_KEYからAPIキーを読み込みます。コピーしたコードにAPIキーが含まれることはありません。
レスポンス例
#{ "id": "req_…", "platform": "jd", "action": "question_answers", "results": [ { "id": …, "question_id": …, "item_id": …, "text": …, "posted_date": …, "author_name": …, "author_type": …, "like_count": …, "platform": … } ], "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
レスポンスフィールド
#業務データはresultsに含まれます。この表はレコードに含まれうるフィールドの一覧です。プラットフォームに表示されない値を作り出すことはありません。
| フィールド | 意味 |
|---|---|
id | プラットフォーム上でのレコードの一意なIDです。一意性は1つのプラットフォーム内に限られ、プラットフォームが異なるとIDが重複する場合があります。 |
question_id | ID of the question (question_answers), the same as the requested question_id; it is the id of a questions row. |
item_id | JDの数値商品ID。検索結果から取得したIDを、そのまま詳細、レビュー、価格の各呼び出しに渡せます。 |
text | HTMLを除去した本文です。省略されることなく全文が返されます(一部のプラットフォームでは一覧結果自体に抜粋しか含まれません。その場合は各プラットフォームのフィールドの注記に記載しています)。 |
posted_date | Date posted (questions, question_answers), YYYY-MM-DD: JD gives the day only, with no time. |
author_name | Reviewer nickname, returned as JD shows it (JD may already partially mask it); in questions, the nickname of the asker or answerer as JD masks it; in question_answers, how JD labels the answerer, usually as the supplier. |
author_type | JD's numeric code for the kind of answerer (question_answers); 5 has been the supplier (seller) in every answer seen. |
like_count | Number of likes (the answers in questions, and question_answers). |
platform | 取得元プラットフォームの識別子で、リクエストのplatformと同じです(例:xiaohongshu、tiktok)。 |
エラーと課金
#- 401
- キーが未指定か無効です。
- 402
- 残高が不足しています。先にチャージしてください。
- 422
- パラメータ名または値が無効です。エラーに含まれる候補を参考に修正してください。課金はされません。
- 429
- 1分あたりのリクエスト上限に達しました。Retry-Afterの指定に従って待ってから再試行してください。
- 503
- 処理を完了できませんでした。保留中の請求額は残高に戻されます。結果が不明な場合は、再試行する前に確認してください。
- 200(空)
- データがありません。課金はされません。
公式リファレンス
#対象と用語の確認にのみ使用しています。プラットフォームによるEveryInfraの承認や推奨を意味するものではありません。
- JD.comユーザーサービス規約(2026年1月20日発効):公開レビューとアクセスの範囲 ↗
JD.comユーザーサービス規約では、レビュー情報は公開されるものであり、JD.comが規約に基づいて利用できると定めています。また、個人情報は原則として許可なく第三者に開示されないとし、個人情報の窃取や正当な権利の侵害を禁止しています。これはアクセスと許可の範囲を裏付けるものにすぎず、EveryInfraや呼び出し元に対し、テキスト、画像、ユーザー情報を再配布、学習に利用、または商用で再利用する権利を付与するものではありません。
確認日:2026-12-03