AliExpress API

32907241499
4Pack Mini SMA-F Female Dual Band Soft Antenna for BAOFENG Walkie Talkie UV-5R Plus UV-5RE Plus UV5RC UV-82 UVB5 UVB6
originalPrice: US .41
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

4000556677197
2 in 1 Capacitive Resistive Pen Touch Screen Stylus Pencil for Tablet iPad Cell Phone PC Capacitive Pen
originalPrice: 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 ‘‘;
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

4000790842352
Rino3 Pro 5.8 Inch Screen Android Phone Purple Water Drop Screen Smartphone Solid Color Mobile Phone Cool Shape Fashion
originalPrice: US .73
salePrice: US .30
discount: 25%
Link
4000382984956
200D Curved Protective Tempered Glass For iPhone X XS 11 Pro Xs Max XR Glass Screen Protector on iPhone 7 8 6 6S Plus Glass Film
originalPrice: US .46
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

32816378081
1pc Dual Band Antenna UHF+VHF SRH805S SMA Female Antenna for TK3107 2107 for Baofeng UV-5R 888S UV-82 Walkie Talkie Radio
originalPrice: US .45
salePrice: US .45
discount: 0%
Link

Pin It on Pinterest