跳转到主要内容

获取产品数据源

作者:Natalya Yefimenko

开始之前

获取产品数据源

若要获取商品数据源文件并进一步加以利用,请执行以下操作:

  1. 前往推广活动 > 某个推广活动 > 产品数据源。

  2. 点击生成以获取最新版本的产品数据源文件。

  3. 点击“请求并下载”以下载可直接使用的文件。

Screen Recording 2024-06-28 at 01.31.44 PM

文件示例:

2_8528_1719570709_667430bbf20d7ce48041ea72 [Compatibility Mode] 2024-06-28 at 1.52.37 PM

使用公共 API

除了下载文件,您还可以使用公共 API。只需通过简单的 API 调用即可获取数据源数据。数据每小时更新一次,因此数据源始终保持最新状态。

让我们详细了解一下其工作原理。您需要发送以下请求:

curl "https://api-aimarkit.affise.com/ui/product-feed/685a595fcde5729d988585cc/items?affiliate_id=1&offer_id=17265" \
-H 'API-Key: 47ea4cedfe10d5c376b05b68c0d90ce7'

其中

  • 685a595fcde5729d988585cc - 产品数据源 ID。

  • affiliate_id=1&offer_id=17265 - 联盟 ID 和推广活动 ID。这些信息对于生成正确的追踪链接必不可少。

系统将返回以下响应,其中 affise_url 是修改后的追踪链接,url 是原始链接。

{
"data": [
{
"affise_url": "http://aimarkit.media-412.com/click?pid=1&offer_id=17265&redirect=https%3A%2F%2Fwww.ndtv.com%2Fworld-news%2Fintercepted-iranian-communications-downplay-damage-from-us-attack-washington-post-reports-8793994%3Futm_source%3Dtraffic%26utm_medium%3DJason%26utm_campaign%3DOEM",
"availability": "",
"brand": "",
"brand_sku": "",
"category": "",
"client_id": 5832,
"currency": "",
"description": "Intercepted Iranian communications downplayed the extent of damage caused by U.S. strikes on Iran's nuclear program, the Washington Post reported on Sunday, citing four people familiar with classified intelligence circulating within the US government",
"id": "68618d12a03b6a183ffd8638",
"image_url": "https://c.ndtvimg.com/2025-06/nfmgivp8_fordow-reuters_625x300_25_June_25.jpeg?im=FeatureCrop,algorithm=dnn,width=240,height=180",
"name": "Intercepted Iranian Communications Downplay Damage From US Strikes: Report",
"price": "",
"product_feed_id": "685a595fcde5729d988585cc",
"sku": "8793994",
"subcategory": "",
"url": "https://www.ndtv.com/world-news/intercepted-iranian-communications-downplay-damage-from-us-attack-washington-post-reports-8793994?utm_source=traffic&utm_medium=Jason&utm_campaign=OEM"
}
],
"pagination": {
"page": 1,
"per_page": 100,
"total_count": 10
},
"status": 1
}


如有任何疑问,请通过电子邮件 [email protected] 联系 Affise 客户支持团队。

这是否解答了您的问题?