eBay API

eBay 商品详情 API

通过 URL 获取一条 eBay 商品,返回完整的报价记录:价格、成色、运费、物品所在地、卖家信用评价、数量、关注人数,以及实时拍卖状态(出价次数和结束时间)。

US$1.20/千次请求,按请求付费,无需订阅。

Sony WH-1000XM5 Wireless Noise Cancelling Headphones - Black | eBay
ebay.com/itm/195847162389
Hi! Sign inor registerDaily DealsBrand OutletGift CardsHelp & ContactShip toSellWatchlistMy eBay
ebay
All Categories
Advanced
Electronics>Portable Audio & Headphones>Headphones
product photo

Sony WH-1000XM5 Wireless Noise Cancelling Headphones - Black

New·214 sold

$248.00

Buy It Now
Add to cart
Watch(38)

Shipping:Free shipping

Returns:30 days returns. Buyer pays for return shipping.

electronics_outlet_99(18,452)

99.2% positive feedback

API 返回的内容items[0]
{
"itemId": "195847162389",
"title": "Sony WH-1000XM5 Wireless Noise Cancelling Headphones - Black",
"url": "https://www.ebay.com/itm/195847162389",
"price": 248,
"currency": "USD",
"condition": "New",
"listingType": "Buy It Now",
"availability": "InStock",
... 还有 24 个字段
}
可用率
97.58%
30d · 1,158 次调用
请求数
1,159
30d · 按周,近 12 周
响应时间
3.2s
中位数 · 30d

价格

eBay 商品详情 API 价格

你需支付
US$12.00
US$1.20/千次请求,只为实际用量付费。没有月度套餐。
有了 US$0.10 的初始余额,你的前 83 次请求免费。

试一试

一个请求获取 eBay 商品详情

打开于
获取免费密钥
示例响应
免费运行只返回前 3 条结果。为密钥充值即可获得完整响应。

这个示例展示了 39 个字段中的 36 个。查看全部字段

{
  "found": true,
  "data": {
    "items": [
      {
        "itemId": "195847162389",
        "title": "Sony WH-1000XM5 Wireless Noise Cancelling Headphones - Black",
        "url": "https://www.ebay.com/itm/195847162389",
        "price": 248,
        "currency": "USD",
        "condition": "New",
        "listingType": "Buy It Now",
        "availability": "InStock",
        "quantityAvailable": 7,
        "quantitySold": 214,
        "watchers": 38,
        "brand": "Sony",
        "model": "WH-1000XM5",
        "mpn": "WH1000XM5/B",
        "itemLocation": "Brooklyn, New York, United States",
        "shippingCost": 0,
        "freeShipping": true,
        "returnsAccepted": true,
        "sellerName": "electronics_outlet_99",
        "sellerUrl": "https://www.ebay.com/str/electronicsoutlet99",
        "sellerFeedbackPercent": 99.2,
        "sellerFeedbackCount": 18452,
        "image": "https://i.ebayimg.com/images/g/8x0AAOSwR4Fk3z2Q/s-l1600.jpg",
        "subtitle": "Industry Leading Noise Cancellation with Auto NC Optimizer",
        "productId": "3055421789",
        "gtin": "027242920199",
        "categories": [
          "Consumer Electronics",
          "Portable Audio & Headphones",
          "Headphones"
        ],
        "bestOfferEnabled": true,
        "updatedUtc": 1790467200,
        "images": [
          {
            "url": "https://i.ebayimg.com/images/g/8x0AAOSwR4Fk3z2Q/s-l1600.jpg",
            "width": 1600,
            "height": 1600
          },
          {
            "url": "https://i.ebayimg.com/images/g/9baAAOSwtOhk3z2R/s-l1600.jpg",
            "width": 1600,
            "height": 1600
          },
          {
            "url": "https://i.ebayimg.com/images/g/2AoAAOSwPYVk3z2S/s-l1600.jpg",
            "width": 1600,
            "height": 1600
          }
        ]
      }
    ]
  }
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

一个请求,一种响应结构。

你发送的每个字段和收到的每个字段,都附有真实示例。

最近验证于 2026-11-14 · 可用率和延迟按 30d 统计

请求体

JSON,POST 到这个接口。

  • urlstring

    https://www.ebay.com/itm/195847162389

    完整的 eBay 商品 URL(例如 https://www.ebay.com/itm/133576802017)。站点由主机名决定,因此 ebay.co.uk 或 ebay.de 的 URL 会返回该站点的商品和币种。ebay.search 和 ebay.sold_listings 的每一行结果都会返回物品 ID。

你发送。 一个简短的 JSON 请求体。显示的值只是示例,请换成你自己的。

响应

JSON,每个字段一个示例值。

each itemdata.items[]

Listing detail record (one element, for the requested listing URL). Populated whenever the provider has data for the entity.

  • availabilitystring

    InStock

    Stock state as eBay reports it (e.g. InStock, OutOfStock).

  • bestOfferEnabledboolean

    true

    True when the seller accepts Best Offer on this listing.

  • bidCountinteger

    Bids placed so far, for auction listings.

  • brandstring

    Sony

    Brand as listed, when the seller filled it in.

  • categoriesstring[]

    eBay category path the listing sits in.

  • conditionstring

    New

    Item condition as listed (e.g. New, Used). Populated whenever the provider has data for the entity.

  • currencystring

    USD

    ISO currency code of the price (e.g. USD, GBP).

  • endsUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • freeShippingboolean

    true

    True when the listing ships free.

  • gtinstring

    027242920199

    Global Trade Item Number (UPC/EAN) as listed.

  • imagestring

    https://i.ebayimg.com/images/g/8x0AAOSwR4Fk3z2Q/s-l1600.jpg

    Primary listing image URL. Populated whenever the provider has data for the entity.

  • itemIdstring

    195847162389

    eBay item identifier. Populated whenever the provider has data for the entity.

  • itemLocationstring

    Brooklyn, New York, United States

    Where the item ships from, as displayed (e.g. Brooklyn, New York, United States).

  • listingTypestring

    Buy It Now

    Sale format (e.g. Buy It Now, Auction).

  • modelstring

    WH-1000XM5

    Model as listed, when the seller filled it in.

  • mpnstring

    WH1000XM5/B

    Manufacturer part number as listed. eBay sellers frequently set this to the literal "Does Not Apply"; ebay.product_full returns the full item-specifics table instead.

  • pricenumber

    248

    Current asking price, or the current bid on a live auction, in the site currency. Populated whenever the provider has data for the entity.

  • productIdstring

    3055421789

    eBay catalog product identifier the listing is matched to.

  • quantityAvailableinteger

    7

    Units the seller still has available, when the listing shows a quantity.

  • quantitySoldinteger

    214

    Units sold on this listing, when eBay shows a sold count.

  • returnsAcceptedboolean

    true

    True when the seller accepts returns.

  • sellerFeedbackCountinteger

    18452

    Seller's lifetime feedback count.

  • sellerFeedbackPercentnumber

    99.2

    Seller's positive-feedback percentage.

  • sellerNamestring

    electronics_outlet_99

    Seller's eBay username, or the store's display name when the seller runs an eBay Store. Populated whenever the provider has data for the entity.

  • sellerUrlstring

    https://www.ebay.com/str/electronicsoutlet99

    Seller's eBay store or listings page.

  • shippingCostnumber

    0

    Shipping cost to the default destination as a numeric amount; absent when eBay quotes no flat cost.

  • subtitlestring

    Industry Leading Noise Cancellation with Auto NC Optimizer

    Seller subtitle shown under the listing title.

  • titlestring

    Sony WH-1000XM5 Wireless Noise Cancelling Headphones - Black

    Listing title as it appears on eBay. Populated whenever the provider has data for the entity.

  • updatedUtcnumber

    1790467200

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the listing was last modified.

  • urlstring

    https://www.ebay.com/itm/195847162389

    Canonical listing URL (tracking query params stripped). Populated whenever the provider has data for the entity.

  • watchersinteger

    38

    Number of shoppers watching the listing, when eBay shows it.

each imagedata.items[].images[]

All listing images, primary first.

  • heightinteger

    1600

    Image height in pixels.

  • urlstring

    https://i.ebayimg.com/images/g/8x0AAOSwR4Fk3z2Q/s-l1600.jpg

    Image URL.

  • widthinteger

    1600

    Image width in pixels.

top level
  • foundboolean

    true

    True when the listing was found.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

你收到。 字段有名称、有类型,无论哪个数据源响应,结构都一样。

常见问题

关于 eBay 商品详情 API

AnyAPI 的 eBay 商品详情 API 只需一次 POST 请求 /v1/run/ebay.product,就以统一格式的 JSON 返回 eBay 数据。通过 URL 获取一条 eBay 商品,返回完整的报价记录:价格、成色、运费、物品所在地、卖家信用评价、数量、关注人数,以及实时拍卖状态(出价次数和结束时间)。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 eBay 商品详情 API 调用中有 97.6% 成功,响应时间中位数为 3.2 秒,共测量 1,158 次调用。

费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

通过 URL 获取一条 eBay 商品,返回完整的报价记录:价格、成色、运费、物品所在地、卖家信用评价、数量、关注人数,以及实时拍卖状态(出价次数和结束时间)。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 eBay 商品详情 API 调用中有 97.6% 成功,响应时间中位数为 3.2 秒,共测量 1,158 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。

可以。新的 AnyAPI 账户自带 US$0.10 免费余额,无需绑卡,足够调用 83 次 eBay 商品详情,每次 US$0.0012。

向 https://api.getanyapi.com/v1/run/ebay.product 发送 POST 请求,在 “Authorization: Bearer” 请求头中放入你的 AnyAPI 密钥,并以 JSON 请求体传入参数。同一个密钥和同一个钱包适用于所有 AnyAPI 接口。

不需要。你向一个预付费的 AnyAPI 余额充值美元,每个请求从中扣费。没有月度套餐,也没有最低消费,同一个余额可用于所有 AnyAPI 接口。

有。TypeScript 用 npm 安装 @getanyapi/sdk,Python 用 pip 安装 getanyapi。两者都用同一个密钥调用所有 AnyAPI 接口,任何 HTTP 客户端也都可以。

可以。智能体可以连接 https://api.getanyapi.com/mcp 上的 AnyAPI MCP 服务器,或者向 https://api.getanyapi.com/agent/signup 发送一次无需认证的 POST 来创建自己的免费试用密钥,再通过 HTTP 调用这个接口。