Closed benbluehyve closed 1 year ago
The URL to the View Item page of the item, which includes the affiliate tracking ID. This field is only returned if the seller enables affiliate tracking for the item by including the X-EBAY-C-ENDUSERCTX request header in the method.
eBay.buy.browse.api({
headers: {
'X-EBAY-C-ENDUSERCTX': '...'
}})
.search({
q: query,
limit: 3,
}).then((item) => {
console.log(item)
})
Example: X-EBAY-C-ENDUSERCTX: affiliateCampaignId=
,affiliateReferenceId= , contextualLocation=country=<2-digitCountryCode>,zip= , deviceId=
thank you so much! it works!
Describe the bug A clear and concise description of what the bug is.
Code
Output
expected data
There should be another item like
"itemAffiliateWebUrl": "https://www.ebay.com/itm/...."
Would you like to work on this issue?