通过购物从 eBay 列表中检索 ISBN API

Retrieve ISBN from eBay listing via Shopping API

我正在尝试使用 eBay 购物 API 来尝试从图书列表中检索 ISBN。我已经有了我感兴趣的列表的 eBay ID。很可能大多数列表的 Item Specifications 中都包含 ISBN(有些不会,这些可以忽略不计)。 因此,人们会假设从 API 检索 Item Specifications 会给出 ISBN 作为一个值,但输出似乎给出了几乎所有来自 ISBN apart 的东西。例如,除了 ISBN 本身之外,以下 API 请求提供了有关列表的许多有趣细节:

http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=MYAPPID&siteid=1&version=897&ItemID=EBAYID&IncludeSelector=ItemSpecifics

我在 API 文档中搜索从列表中获取此特定元素的解决方案并没有太多乐趣 - 有人对此有解决方案吗?或者,如果根本不可能通过 API 干净地获取 ISBN,是否有替代方法? (这适用于非常小规模的个人使用。)

ISBN、UPC、EAN 等属于 productID 字段。

此字段是使用 IncludeSelectorDetails 值返回的。所以你想要的 url 是:

http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=MYAPPID&siteid=1&version=897&ItemID=EBAYID&IncludeSelector=Details

http://developer.ebay.com/devzone/shopping/docs/CallRef/GetSingleItem.html#Response.Item.ProductID

编辑:

要从目录产品中获取 ISBN,您需要使用 productID 值向 Product API 发出请求。

您需要调用 getProductDetails 输入:

 <productDetailsRequest>
    <productIdentifier>
       <ePID>91515717</ePID>
    </productIdentifier>
    <datasetPropertyName>ISBN</datasetPropertyName>
 </productDetailsRequest>

您可以使用 ISBN10ISBN13 作为 datasetPropertyName 的值,具体取决于您想要哪个。

http://svcs.ebay.com/services/marketplacecatalog/ProductService/v1?OPERATION-NAME=getProductDetails&SECURITY-APPNAME=APPID&SERVICE-VERSION=1.3.0&productDetailsRequest.productIdentifier.ePID=REFERENCE&productDetailsRequest.datasetPropertyName=ISBN

http://developer.ebay.com/DevZone/product/CallRef/getProductDetails.html