AliExpress API

33014719830
AI-9 Multi-language Automatic Six Motors Intelligent FTTH Fiber Optic Splicing Machine Optical Fiber Fusion Splicer
originalPrice: US 0.00
salePrice: US 0.00
discount: 0%
Link
4000548279101
2 in 1 9D Camera Glass For Samsung Galaxy A51 Tempered Glass Back Camera Protector on Samsun A 51 6.5 Protective Glass SM-A515F
originalPrice: US .05
salePrice: US [insert_php]
$api=91644;
$fields=’productTitle,productUrl,imageUrl,productId,originalPrice,salePrice,discount’;
$cat=509;
$trID=’mivzakon’;
$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.listPromotionProduct/’.$api.’?fields=’.$fields.’&categoryId=’.$cat.’&pageSize=5′;

$data = json_decode(file_get_contents($li));
//print_r($data->result->products);

//exit;
echo ‘

‘;
foreach($data->result->products as $k=>$d) {
echo ‘

‘;
echo $d->productId.’
‘;
echo $d->productTitle.’
‘;
echo ‘originalPrice: ‘.$d->originalPrice.’
‘;
echo ‘salePrice: ‘.$d->salePrice.’
‘;
echo ‘discount: ‘.$d->discount.’
‘;

$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getPromotionLinks/’.$api.’?fields=’.$fields.’&trackingId=’.$trID.’&urls=’.$d->productUrl.”;
$dataLink = json_decode(file_get_contents($li));
//print_r($dataLink->result->promotionUrls);
foreach($dataLink->result->promotionUrls as $kL=>$dL) {
echo ‘Link

33038386610
Baofeng Walkie Talkie Headset PTT Wireless Bluetooth Earphone for Two way Radio K Port Wireless headphone for UV 5R 82 8W 888s
originalPrice: US .25
salePrice: US .42
discount: 31%
Link
4000558734851
2 in 1 Full Cover 9D Tempered Glass For Xiaomi A3 Lite cc9 pro Redmi 7 8 7A 8A Note 7 8 pro 8T Protective Screen Protector Film
originalPrice: US .00
salePrice: US .53
discount: 49%
Link
33022282524
1-3Pcs Full Cover Glass on the For iPhone X XS Max XR Tempered Glass For iPhone 7 8 6 6s Plus 5 5S SE 11 Pro Screen Protector
originalPrice: US .76
salePrice: US [insert_php]
$api=91644;
$fields=’productTitle,productUrl,imageUrl,productId,originalPrice,salePrice,discount’;
$cat=509;
$trID=’mivzakon’;
$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.listPromotionProduct/’.$api.’?fields=’.$fields.’&categoryId=’.$cat.’&pageSize=5′;

$data = json_decode(file_get_contents($li));
//print_r($data->result->products);

//exit;
echo ‘

‘;
foreach($data->result->products as $k=>$d) {
echo ‘

‘;
echo $d->productId.’
‘;
echo $d->productTitle.’
‘;
echo ‘originalPrice: ‘.$d->originalPrice.’
‘;
echo ‘salePrice: ‘.$d->salePrice.’
‘;
echo ‘discount: ‘.$d->discount.’
‘;

$li=’http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getPromotionLinks/’.$api.’?fields=’.$fields.’&trackingId=’.$trID.’&urls=’.$d->productUrl.”;
$dataLink = json_decode(file_get_contents($li));
//print_r($dataLink->result->promotionUrls);
foreach($dataLink->result->promotionUrls as $kL=>$dL) {
echo ‘Link

Pin It on Pinterest