SerpBase

接口参考 · 电商零售

Myntra Product Details

从 /buy URL 读取单个 Myntra 商品,与 Myntra 搜索接口分开。

POSThttps://api.serpbase.dev/myntra/product
2 积分在 Playground 中调用

示例

BASH
curl -X POST 'https://api.serpbase.dev/myntra/product' \
  -H "Content-Type: application/json" \
  -H 'X-API-Key: YOUR_API_KEY' \
  --max-time 60 \
  -d '{"url":"https://www.myntra.com/casual-shoes/hrx+by+hrithik+roshan/hrx-by-hrithik-roshan-unisex-round-toe-lace-ups-sneakers/32064729/buy"}'
返回 · 真实返回,已缩短
{
  "status": 0,
  "credits_charged": 2,
  "request_id": "r-4b27fe8a36d9ac303a5da7dd",
  "product_id": "myntra_product",
  "action": "product",
  "product": {
    "brand": "HRX by Hrithik Roshan",
    "country_of_origin": "India",
    "id": "32064729",
    "link": "https://www.myntra.com/casual-shoes/hrx+by+hrithik+roshan/hrx-by-hrithik-roshan-unisex-round-toe-lac…",
    "list_price": {
      "amount": "3399",
      "currency": "INR",
      "display": "3399"
    },
    "media": [
      {
        "image_url": "http://assets.myntassets.com/h_($height),q_($qualityPercentage),w_($width)/v1/assets/images/2026/JUL…",
        "type": "image",
        "url": "http://assets.myntassets.com/h_($height),q_($qualityPercentage),w_($width)/v1/assets/images/2026/JUL…"
      }
    ],
    "title": "HRX by Hrithik Roshan Unisex Round Toe Lace-Ups Sneakers",
    "url": "https://www.myntra.com/casual-shoes/hrx+by+hrithik+roshan/hrx-by-hrithik-roshan-unisex-round-toe-lac…",
    "variants": [
      {
        "id": "103246801",
        "in_stock": true,
        "inventory": [
          {
            "available_count": "16",
            "country_of_origin": "India",
            "discount_id": "32064729:1020918394",
            "expiry_date": "0",
            "frg_list_url": "https://www.myntra.com/free-gift-list?baseStyleId=32064729&sellerPartnerId=22530&skuId=103246801&src=pdp",
            "list_price": {
              "amount": "3399",
              "currency": "INR",
              "display": "3399"
            },
            "manufacturer_info": "SOBTI FOOTWEAR, F-70 site c, upsidc industrial area, sikandra, agra, (U.P) - 282007",
            "packer_info": "SOBTI FOOTWEAR, F-70 site c, upsidc industrial area, sikandra, agra, (U.P) - 282007",
            "price": {
              "amount": "827",
              "currency": "INR",
              "display": "827"
            },
            "procurement_time_days": 1,
            "sellable_inventory_count": "16",
            "seller": {
              "id": "22530"
            },
            "supply_type": "ON_HAND",
            "warehouse_refs": [
              "28817"
            ]
          }
        ],
        "type": "size",
        "value": "3"
      }
    ]
  },
  "source": "myntra",
  "url": "https://www.myntra.com/casual-shoes/hrx+by+hrithik+roshan/hrx-by-hrithik-roshan-unisex-round-toe-lac…"
}

参数

format
"json" | "markdown"
json(默认)返回解析后的结果。
更多

markdown 以 Markdown 文本(text/markdown)返回同样的结果,便于大模型直接读取:不含外层信封、重复的别名字段和内嵌图片。扣费相同;失败时仍返回 JSON 错误信封。

url
string
示例值: "https://www.myntra.com/casual-shoes/hrx+by+hrithik+roshan/hrx-by-hrithik-roshan-unisex-round-toe-lace-ups-sneakers/32064729/buy"
country
string
locale.country 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

cursor
string
pagination.cursor 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

device
string
options.device 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

gl
string
locale.country 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

hl
string
locale.language 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

html
boolean
include_html 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

language
string
locale.language 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

limit
integer
pagination.limit 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

markdown
boolean
include_markdown 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

mobile
boolean
options.device 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

num
integer
pagination.limit 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

page
integer
pagination.page 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

q
string
query 的兼容写法。
更多

每次使用其中一种;接口会校验本产品支持的参数与取值。

示例展示请求参数用法,不代表完整契约。接口会校验已知字段,并允许额外参数。

返回字段

字段见上面的返回示例;每个接口都包含 status、credits_charged 和 request_id。

失败时

失败的请求 status 不为 0 并带有 error,不扣费。这个接口常见的有:

1000参数缺失或有误修改请求
1020积分不足充值
1029超过每秒请求数等待 Retry-After 秒
1502 · 1504这次没能读取到目标网站重试
全部状态码 →