PHPackages                             clchangnet/aliexapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. clchangnet/aliexapi

ActiveLibrary[HTTP &amp; Networking](/categories/http)

clchangnet/aliexapi
===================

AliExpress Affiliate API PHP Library

1.2.0(7y ago)157114.2k↓75%51[1 issues](https://github.com/clchangnet/aliexapi/issues)MITPHPCI failing

Since Apr 2Pushed 5y ago17 watchersCompare

[ Source](https://github.com/clchangnet/aliexapi)[ Packagist](https://packagist.org/packages/clchangnet/aliexapi)[ Docs](https://github.com/clchangnet/aliexapi)[ RSS](/packages/clchangnet-aliexapi/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

THIS WILL NOT WORK WITH THE UPDATED ALIEXPRESS API, TAOBAO OPEN PLATFORM API
============================================================================

[](#this-will-not-work-with-the-updated-aliexpress-api-taobao-open-platform-api)

aliexapi
========

[](#aliexapi)

[![Build Status](https://camo.githubusercontent.com/dff9e952d8b453ba06cf79fed6887822d421e18159338a614a1773fea4f11401/68747470733a2f2f7472617669732d63692e6f72672f636c6368616e676e65742f616c6965786170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/clchangnet/aliexapi) [![Latest Stable Version](https://camo.githubusercontent.com/1c9a2bb266db95a07b46c6fbb197800d9167b6b3dcfcecaab15cbf9d3c034fca/68747470733a2f2f706f7365722e707567782e6f72672f636c6368616e676e65742f616c6965786170692f762f737461626c65)](https://packagist.org/packages/clchangnet/aliexapi) [![Total Downloads](https://camo.githubusercontent.com/02a3a9d32cc700aceef76e280211ab5dab1067e52084e8f79a51b5a62e01860b/68747470733a2f2f706f7365722e707567782e6f72672f636c6368616e676e65742f616c6965786170692f646f776e6c6f616473)](https://packagist.org/packages/clchangnet/aliexapi) [![License](https://camo.githubusercontent.com/15ef6aaea42cd77f34a41e9e2eadd2733772e6beefd04b43c87e6a86c8fa1d4a/68747470733a2f2f706f7365722e707567782e6f72672f636c6368616e676e65742f616c6965786170692f6c6963656e7365)](https://packagist.org/packages/clchangnet/aliexapi)

AliexApi is a PHP library for AliExpress Affiliate API program. You can use it to fetch product data. It interfaces with Aliexpress API functions such as listPromotionProduct, getPromotionProductDetail and getPromotionLinks. For more info on the API, visit [http://portals.aliexpress.com/help/help\_center\_API.html](http://portals.aliexpress.com/help/help_center_API.html). To see a working demo site, goto [clothes, warmers and headwear](https://apparel.iopenshop.net/).

This Library based on Jan Eichhorn's [Amazon Product Advertising API](https://github.com/Exeu/apai-io).

If you like this package, feel free to [buy me a coffee](https://www.paypal.me/aliexapi/5) ☕️

AliExpress Affiliate Program
----------------------------

[](#aliexpress-affiliate-program)

To signup and join the program, goto , you need to apply for API Key to get access.

Installation
------------

[](#installation)

### Composer

[](#composer)

Add the package 'clchangnet/aliexapi' to composer.json file:

```
{
    "require": {
        "clchangnet/aliexapi": "~1.0"
    }
}
```

Update composer of the new package and download. Once done, you should see a folder 'clchangnet' under 'vendor' folder.

```
$ composer update
$ composer install
```

This will update the autoloader file and the library would be found once you include it in your code.

\##Basic Usage:

Here is an example how to use Aliexpress API listPromotionProduct to search for products using keywords.

\###Search Products

*Note:*To search by category. uncomment 'categoryId' and comment 'keywords' in searchItems and listPromotionProduct

```
