How to get and configure the AliExpress Affiliates API (AliExpress Open Platform)

Wasabi Team
Wasabi Team

A part of the product data may be automatically obtained by using the AliExpress Affiliate API (AliExpress Open Platform). To enjoy this feature, you have to obtain API credentials first. Once you have them, you can take advantage of them on as many websites as you want.

How to sign up as an affiliate and create a Tracking ID on AliExpress Portals

  1. Before joining the AliExpress Affiliate program, you must create an AliExpress account.
  2. Sign in to AliExpress Portals (AliExpress Affiliate Dashboard).
  3. You will be asked for information regarding why and how you are going to promote their products; answer in the most authentic and precise way possible. For example, if you have a website with traffic, indicate its URL so that the proposal will seem more legit.
AliExpress Portals
  1. Be honest when filling in the fields since the proposal will be reviewed manually.

How to get AliExpress Affiliate API Credentials

  1. Before joining the AliExpress developer program, you must create an AliExpress account.
  2. Sign in to AliExpress Open Platform with your AliExpress credentials.
  3. Follow the steps to activate your developer account.
  4. Once inside the AliExpress Open Platform, you have to create an application. Go to the «App Management» tab and click on «Create App» to do so.
AAliExpress Affiliates API
  1. Now you will have to choose between “Affiliate API”, “Self-Developer” and “Commercial Developer”. It will generally be “Affiliate API”. You can see the differences between one and the other here. Once you have it, click on “Click to apply”.
  2. Fill in all the fields with accurate and authentic information since this will speed up the approval process. If you are asked for a “Business license”, upload a copy of your company’s ID or person (if you are self-employed).
  3. Check the information and submit the request. Once the request has been sent, you will see a confirmation message.
  1. Your application has been placed under review. It is usually processed in 2 business days, but contact them through a support ticket if you do not receive an email response in 3 or 4 days (approval or rejection regarding the request).
  2. From here on, we will assume that your application has been approved.
  3. Sign back into the AliExpress Open Platform Console
  4. Go to the “App Management” tab and click on “Create App” (same as step 4).
  5. You will notice that “Click to Apply” no longer appears in the last column of the developer type for which you requested approval. Instead, now appears a “Create App” tab.
  1. Fill in the required fields and create the application. It is not necessary to create an application for each one of your websites, one will be enough. This is why we recommend using a generic name. For example: “Affiliate websites”.
  2. You will now see your newly created app listed under the “App Management” tab. Click on “Management” to see the API keys needed to set up Wasabi Theme.
  1. Write down the “App Key” and “App Secret” in a safe place, as you will need them later. To see “App Secret”, click on “View”.

How to set up AliExpress API in Wasabi Theme

You need to follow these steps to set up Wasabi Theme with the AliExpress Affiliate API:

In the WordPress menu, click on WasabiAffiliate

Click on AliExpress Settings and fill in the following fields:

  • App Key: corresponds to the “App Key” value obtained in the previous step.
  • App Secret: corresponds to the “App Secret” value obtained in the previous step.
  • Tracking ID: corresponds to the “Tracking ID” created in AliExpress Portals.
  • Country: This is the country where the products will be searched for and linked to from the generated affiliate links. This value can change the product’s name language and currency of the price.
  • Cache expiration time: represents the time that requests to AliExpress API remain in the cache. Thanks to this setting, we can increase the website’s loading speed and reduce the number of requests to AliExpress’ API. Adjust it with the value which best suits your case, although the default value (86400) usually works in most cases.
  • Speed ​​limiter:default value will do.

Once you have completed all the data, press the blue “Publish” button to save the changes.

How to find a product ID

To find the ID of an AliExpress product, simply:

  1. Open it in the browser
  2. Look at the URL
  3. You will see a series of numbers after the product’s name and before “.html”. hat is the product ID.

For example:

  • For this product in particular: https://es.aliexpress.com/item/4001016061682.html
  • Its ID is 4001016061682

How do I know if it can obtain the product with the API?

You may be trying to add an ID, but Wasabi tells you that it does not exist or that AliExpress API does not have data regarding that product. If the ID is correct, this may be because AliExpress does not allow to get any data if the product cannot be promoted.

What does “cannot promote” mean? The product does not have affiliate commissions, and AliExpress’s affiliate link builder tool does not allow you to create the link for that specific product.

This product, for example, could not be obtained with the API (because it does not have a commission and its affiliate URL cannot be created):

However, you could obtain this one with the API:

A quick method to search for products that do have commissions

  1. Sign in to Aliexpress Portals
  2. Look for the sponsored products search engine on: https://portals.aliexpress.com/adcenter/affiliateProductSearch.htm
  3. Look for your product directly from there.

What are the AliExpress Affiliate’s API usage limits?

As of today, 5,000 requests can be made daily.

Keep reading on: How to make money with AliExpress Affiliate program.