JD.com質問API
APIの稼働状況
- 24時間の稼働状況
- 正常
- 良好/正常
- 利用可能
過去24時間
過去30日間
Read the Q&A ("Ask everyone") questions on a JD.com product, about 10 per page, each with its text, date, masked asker, answer and seller-answer counts and up to 2 answers. Page with next_page_token; question_count is the product's total.
POST https://api.everyinfra.com/api/v1/socialを送信し、platformにjd、actionにquestionsを指定します。 料金は1,000リクエストあたり$0.56(1回あたり$0.000556)です。失敗した呼び出しと空の結果には課金されません。 同期処理です。時間のかかるジョブでは、ボディに"mode": "async"を追加し、job_idを取得してポーリングしてください。
AIプロンプト
#EveryInfraのJD.com 質問エンドポイント(jd/questions)を使ったデータ収集スクリプトの作成を手伝ってください。
エンドポイントの仕組み:
- リクエスト:ヘッダーにAuthorization: Bearer <API key>を指定して、https://api.everyinfra.com/api/v1/socialにPOSTします。APIキーは環境変数EVERYINFRA_API_KEYから読み込み、ハードコードしないでください。
- リクエストボディでplatformにjd、actionにquestionsを指定し、パラメータはparamsの中に入れます。
- 必須パラメータ:
- item_id: The JD.com product whose Q&A you want: the digit string or https://item.jd.com/<digits>.html without a query or fragment. A product that does not exist returns an empty result and is not charged.
- 任意パラメータ:
- page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Usually 10 questions per page.
- レコードのリストを返します。各レコードの主なフィールド: id、item_id(JDの数値商品ID)、text、posted_date(Date posted (questions, question_answer…)、author_name(Reviewer nickname, returned as JD shows…)、ip_location(IP-based location JD shows (a province)…)、answer_count(Total number of answers to the question…)、seller_answer_count(Number of seller answers under the ques…)、answers(Answers JD shows together with the ques…)、has_more_answers(Whether there are answers beyond those…)、position(Position, starting at 1: in description…)、question_count(Total number of questions on the produc…).
- リクエストボディの例:
{
"platform": "jd",
"action": "questions",
"params": {
"item_id": "100270865468"
}
}
- 料金: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 | はい | questions | 機能の識別子です。値は固定です。 |
item_id | body.params | string | はい | - | The JD.com product whose Q&A you want: the digit string or https://item.jd.com/<digits>.html without a query or fragment. A product that does not exist returns an empty result and is not charged. |
page_token | body.params | string | いいえ | - | Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Usually 10 questions per page; each page is one call and limit has no effect. Neighboring pages can repeat a question, so drop duplicates by id. Tokens last 24 hours, and the last page has no next_page_token. |
コードサンプル
#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": "questions",
"params": {
"item_id": "100270865468"
}
}'OpenAPI定義(JSON)サンプルは環境変数EVERYINFRA_API_KEYからAPIキーを読み込みます。コピーしたコードにAPIキーが含まれることはありません。
レスポンス例
#{ "id": "req_…", "platform": "jd", "action": "questions", "results": [ { "id": …, "item_id": …, "text": …, "posted_date": …, "author_name": …, "ip_location": …, "answer_count": …, "seller_answer_count": …, "answers": …, "has_more_answers": …, "position": …, "question_count": …, "platform": … } ], "next_page_token": …, "pagination": { … }, "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
レスポンスフィールド
#業務データはresultsに含まれます。この表はレコードに含まれうるフィールドの一覧です。プラットフォームに表示されない値を作り出すことはありません。
| フィールド | 意味 |
|---|---|
id | プラットフォーム上でのレコードの一意なIDです。一意性は1つのプラットフォーム内に限られ、プラットフォームが異なるとIDが重複する場合があります。 |
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. |
ip_location | IP-based location JD shows (a province), set by the platform, not by the user (questions and the answers in them); absent when JD does not give it. |
answer_count | Total number of answers to the question as JD gives it, seller answers included (questions); it is usually larger than the number of entries in answers. |
seller_answer_count | Number of seller answers under the question (questions); when it is above 0, pass this row's id as question_id to question_answers for them. |
answers | Answers JD shows together with the question, at most 2, as an array whose entries have id, text, posted_date, author_name, ip_location and like_count (questions); not necessarily all answers, see has_more_answers. |
has_more_answers | Whether there are answers beyond those in answers (questions); when true, the others cannot be returned here. |
position | Position, starting at 1: in description_images, where this image sits in the description section, from the top of the page; in questions, where the question sits in the Q&A list, counting on across pages. |
question_count | Total number of questions on the product as JD gives it (questions), the same on every row; whether more pages exist is told by next_page_token alone. |
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