AliExpress Parser API
Project description
aligate
Real-time AliExpress data parser covering products, product reviews, sellers, store coupons, a seller's product catalog, and product search by text or image. Products: pricing, stock status, shipping options, seller information, product configurations (SKUs), and more - scoped to a specific country and currency. Reviews: customer ratings and feedback for a product. Sellers: full store profile with ratings, feedback, and categories. Coupons: active seller coupon codes with discounts, thresholds, budgets, and expiry. Seller products: a store's product catalog, paginated and best-selling first. Search: find products by keyword or by uploading an image, returning paginated product results with their categories.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.1.1
- Package version: 2.1.1
- Generator version: 7.23.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import aligate
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import aligate
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import aligate
from aligate.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://aligate-aliexpress-data-api.p.rapidapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = aligate.Configuration(
host = "https://aligate-aliexpress-data-api.p.rapidapi.com"
)
# Enter a context with an instance of the API client
with aligate.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = aligate.DefaultApi(api_client)
product_id = 1005004530469845 # int | AliExpress product ID, taken from the product page URL.
country = 'PL' # str | Country code (ISO 3166-1 alpha-2) used for pricing and shipping eligibility.
currency = 'PLN' # str | Currency code (ISO 4217) for the returned prices.
locale = en_US # str | Response language locale. (optional) (default to en_US)
with_welcome_discount = False # bool | Apply the new-buyer welcome discount to the returned price. (optional) (default to False)
with_description = False # bool | Fetch the full product description (formatted HTML, plain text, and image gallery), returned in the `description` field. Note: enabling this adds approximately 600-750 ms to the response time. (optional) (default to False)
try:
# Get Product Info
api_response = api_instance.get_product_info(product_id, country, currency, locale=locale, with_welcome_discount=with_welcome_discount, with_description=with_description)
print("The response of DefaultApi->get_product_info:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->get_product_info: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://aligate-aliexpress-data-api.p.rapidapi.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | get_product_info | GET /api/v2/product | Get Product Info |
| DefaultApi | get_product_reviews | GET /api/v2/product/reviews | Get Product Reviews |
| DefaultApi | get_seller_coupons | GET /api/v2/seller/coupons | Get Seller Coupons |
| DefaultApi | get_seller_info | GET /api/v2/seller | Get Seller Info |
| DefaultApi | get_seller_products | GET /api/v2/seller/products | Get Seller Products |
| DefaultApi | health_check | GET /api/v2/health | Health check |
| DefaultApi | search_by_image | POST /api/v2/search/image | Search By Image |
| DefaultApi | search_by_text | GET /api/v2/search/text | Search By Text |
Documentation For Models
- ConfigurationPrice
- ConfigurationProperty
- Coupon
- CouponMeta
- CouponSettings
- CouponsParseResponse
- Error
- HealthCheck200Response
- ImageSearchMeta
- ImageSearchParseResponse
- ImageSearchRequest
- ImageSearchSettings
- ParseMeta
- ParseResponse
- ParseSettings
- Price
- Product
- ProductConfiguration
- ProductDescription
- ProductSeller
- ProductVideo
- RatingBreakdown
- Review
- ReviewBuyer
- ReviewContent
- ReviewFilterStat
- ReviewLabel
- ReviewsMeta
- ReviewsParseResponse
- ReviewsResult
- ReviewsSettings
- SearchCategory
- SearchMeta
- SearchParseResponse
- SearchResult
- SearchSettings
- SellerItem
- SellerMeta
- SellerParseResponse
- SellerProductsMeta
- SellerProductsParseResponse
- SellerProductsResult
- SellerProductsSettings
- SellerSettings
- ShippingMethod
- StoreCategory
Documentation For Authorization
Endpoints do not require authorization.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aligate-2.1.1.tar.gz.
File metadata
- Download URL: aligate-2.1.1.tar.gz
- Upload date:
- Size: 56.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73c440fcd5bfde0474b7911a5600ff52d1d9c78f1417e1c4321c3c5a33fc91f2
|
|
| MD5 |
1fa3e61cae2af227dfa95ba14fd31fc4
|
|
| BLAKE2b-256 |
30cd96c91d3cb9ba98c4bc5ec9dd28a34d888fb9b8b98266f8630247675aeea8
|
Provenance
The following attestation bundles were made for aligate-2.1.1.tar.gz:
Publisher:
release.yml on aligate-io/aliexpress-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aligate-2.1.1.tar.gz -
Subject digest:
73c440fcd5bfde0474b7911a5600ff52d1d9c78f1417e1c4321c3c5a33fc91f2 - Sigstore transparency entry: 1940962068
- Sigstore integration time:
-
Permalink:
aligate-io/aliexpress-api@b7d89c7673914bd21d5f21e9197a2e665aded99c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/aligate-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b7d89c7673914bd21d5f21e9197a2e665aded99c -
Trigger Event:
push
-
Statement type:
File details
Details for the file aligate-2.1.1-py3-none-any.whl.
File metadata
- Download URL: aligate-2.1.1-py3-none-any.whl
- Upload date:
- Size: 112.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68634a031a284f8ba6284a43e664f01734eb9c90c9d6de4ca87c78ce8b17ee71
|
|
| MD5 |
cd61a8c1c4557cabde0263d19f1cf620
|
|
| BLAKE2b-256 |
83e5b72200c5d4739bdf27d8b913fb73a017cdaa3f615df7edad8ec6cc4929ef
|
Provenance
The following attestation bundles were made for aligate-2.1.1-py3-none-any.whl:
Publisher:
release.yml on aligate-io/aliexpress-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aligate-2.1.1-py3-none-any.whl -
Subject digest:
68634a031a284f8ba6284a43e664f01734eb9c90c9d6de4ca87c78ce8b17ee71 - Sigstore transparency entry: 1940962133
- Sigstore integration time:
-
Permalink:
aligate-io/aliexpress-api@b7d89c7673914bd21d5f21e9197a2e665aded99c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/aligate-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b7d89c7673914bd21d5f21e9197a2e665aded99c -
Trigger Event:
push
-
Statement type: