aliexpress-api

1.2.3 • Public • Published

aliexpress-api

A Node.js package that wraps the Aliexpress API for affiliate marketing and product data access.

Description

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

Installation

npm install aliexpress-api

Dependencies

  • request: ^2.88.2
  • mime: ^3.0.0

Usage

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);

Configuration

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

Development

To run tests:

npm test

Version History

  • 1.2.2
    • Current version
  • 1.2.0
    • Migrated to use new Aliexpress endpoint and standards
  • 1.0.0
    • Initial Release

License

ISC

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.

If you have any questions, you can:

Author

Alon Segal

Package Sidebar

Install

npm i aliexpress-api

Weekly Downloads

48

Version

1.2.3

License

ISC

Unpacked Size

19.7 kB

Total Files

9

Last publish

Collaborators

  • alonseg