A Node.js package that wraps the Aliexpress API for affiliate marketing and product data access.
This package provides a simple interface to interact with the Aliexpress Open Platform API. It's particularly useful for affiliate marketing and product data retrieval.
Based on the Aliexpress Open Platform API Documentation
npm install aliexpress-api
- request: ^2.88.2
- mime: ^3.0.0
const AliexpressApiService = require("aliexpress-api");
// Initialize the service with your credentials
const aliexpressApiService = new AliexpressApiService(
ALIEXPRESS_APP_KEY,
ALIEXPRESS_APP_SECRET,
ALIEXPRESS_APP_SIGNATURE,
ALIEXPRESS_TRACKING_ID
);
// Get affiliate link for a product
const affiliateLink = await aliexpressApiService.getAffiliateLink(aliexpressUrl);
You'll need the following credentials from Aliexpress Open Platform:
-
ALIEXPRESS_APP_KEY
: Your application key -
ALIEXPRESS_APP_SECRET
: Your application secret -
ALIEXPRESS_APP_SIGNATURE
: Your application signature -
ALIEXPRESS_TRACKING_ID
: Your tracking ID
To run tests:
npm test
- 1.2.2
- Current version
- 1.2.0
- Migrated to use new Aliexpress endpoint and standards
- 1.0.0
- Initial Release
ISC
Contributions are welcome! Feel free to submit issues and pull requests.
If you have any questions, you can:
- Reach out on GitHub
- Join the Facebook affiliate group: Aliexpress Affiliate Marketing
Alon Segal