JD.comショップ詳細API
APIの稼働状況
- 24時間の稼働状況
- 正常
- 良好/正常
- 利用可能
過去24時間
過去30日間
Get one JD.com shop by its shop ID or mall link: name, seller ID, whether it is self-operated, avatar and banner images, follower count, whether it is closed, and the star rating when JD gives one.
POST https://api.everyinfra.com/api/v1/socialを送信し、platformにjd、actionにshop_infoを指定します。 料金は1,000リクエストあたり$0.56(1回あたり$0.000556)です。失敗した呼び出しと空の結果には課金されません。 同期処理です。時間のかかるジョブでは、ボディに"mode": "async"を追加し、job_idを取得してポーリングしてください。
AIプロンプト
#EveryInfraのJD.com ショップ詳細エンドポイント(jd/shop_info)を使ったデータ収集スクリプトの作成を手伝ってください。
エンドポイントの仕組み:
- リクエスト:ヘッダーにAuthorization: Bearer <API key>を指定して、https://api.everyinfra.com/api/v1/socialにPOSTします。APIキーは環境変数EVERYINFRA_API_KEYから読み込み、ハードコードしないでください。
- リクエストボディでplatformにjd、actionにshop_infoを指定し、パラメータはparamsの中に入れます。
- 必須パラメータ:
- shop_id: The JD.com shop: the digit string (the shop_id in product_detail or shop rows) or https://mall.jd.com/index-<digits>.html without a query or fragment; not a product ID.
- 1つのオブジェクトを返します。主なフィールド: shop_id(JDの数値ショップID)、shop_name(公開されているショップ名)、shop_url(Public JD shop page (https://mall.jd.co…)、seller_id(Numeric ID of the seller (merchant) (pr…)、is_jd_self(Whether this is a JD self-operated (JD.…)、logo_url(URL of the shop's avatar image (shop_in…)、banner_url(URL of the shop's banner image (shop_in…)、follower_count(Number of followers of the shop, as JD…)、shop_rating(Shop star rating as JD gives it (shop_i…)、is_closed(Whether the shop is closed (shop_info)).
- リクエストボディの例:
{
"platform": "jd",
"action": "shop_info",
"params": {
"shop_id": "16374386"
}
}
- 料金: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 | はい | shop_info | 機能の識別子です。値は固定です。 |
shop_id | body.params | string | はい | - | The JD.com shop: the digit string (the shop_id in product_detail or shop rows) or https://mall.jd.com/index-<digits>.html without a query or fragment; not a product ID. A shop that does not exist returns an empty result and is not charged. |
コードサンプル
#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": "shop_info",
"params": {
"shop_id": "16374386"
}
}'OpenAPI定義(JSON)サンプルは環境変数EVERYINFRA_API_KEYからAPIキーを読み込みます。コピーしたコードにAPIキーが含まれることはありません。
レスポンス例
#{ "id": "req_…", "platform": "jd", "action": "shop_info", "results": { "shop_id": …, "shop_name": …, "shop_url": …, "seller_id": …, "is_jd_self": …, "logo_url": …, "banner_url": …, "follower_count": …, "shop_rating": …, "is_closed": …, "platform": … }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
レスポンスフィールド
#業務データはresultsに含まれます。この表はレコードに含まれうるフィールドの一覧です。プラットフォームに表示されない値を作り出すことはありません。
| フィールド | 意味 |
|---|---|
shop_id | JDの数値ショップID。 |
shop_name | 公開されているショップ名。 |
shop_url | Public JD shop page (https://mall.jd.com/index-<shop ID>.html). |
seller_id | Numeric ID of the seller (merchant) (product_detail, shop_info). |
is_jd_self | Whether this is a JD self-operated (JD.com retail) product; in shop_info, whether the shop is a JD self-operated store. |
logo_url | URL of the shop's avatar image (shop_info). |
banner_url | URL of the shop's banner image (shop_info). |
follower_count | Number of followers of the shop, as JD gives it (shop_info). |
shop_rating | Shop star rating as JD gives it (shop_info); JD gives none for self-operated stores, and then it is absent. |
is_closed | Whether the shop is closed (shop_info). |
platform | 取得元プラットフォームの識別子で、リクエストのplatformと同じです(例:xiaohongshu、tiktok)。 |
エラーと課金
#- 401
- キーが未指定か無効です。
- 402
- 残高が不足しています。先にチャージしてください。
- 422
- パラメータ名または値が無効です。エラーに含まれる候補を参考に修正してください。課金はされません。
- 429
- 1分あたりのリクエスト上限に達しました。Retry-Afterの指定に従って待ってから再試行してください。
- 503
- 処理を完了できませんでした。保留中の請求額は残高に戻されます。結果が不明な場合は、再試行する前に確認してください。
- 200(空)
- データがありません。課金はされません。
公式リファレンス
#対象と用語の確認にのみ使用しています。プラットフォームによるEveryInfraの承認や推奨を意味するものではありません。
- JD.com JSSDK:SKUとショップのターゲットを区別 ↗
JD.comのリダイレクトに関するドキュメントでは、商品詳細のターゲットに`skuId`、ショップ詳細のターゲットに`shopId`を使用しています。これは商品とショップの識別子を区別して扱う根拠にはなりますが、ウェブページの収集権限、URL解析への対応、ショップの全商品カタログ、EveryInfraのリクエスト動作を裏付けるものではありません。
確認日:2026-09-11