Alibaba APIalibaba.com ↗
Search Alibaba.com Ready to Ship products, fetch price tiers, MOQ, HS codes, and supplier info via 3 structured endpoints.
What is the Alibaba API?
The Alibaba.com API exposes 3 endpoints covering product search, full product detail, and import classification data from one of the world's largest B2B marketplaces. The search_products endpoint returns paginated listings pre-filtered to Ready to Ship inventory, while get_product and get_import_data expose price tiers, supplier details, HS codes, and logistics dimensions at the individual product level.
curl -X GET 'https://api.parse.bot/scraper/ba2822dd-f985-4faa-8d3b-81d795bda2a7/search_products?page=1&sort=best_match&query=7+inch+1024x600+ips+rgb' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace alibaba-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: Alibaba SDK — bounded, re-runnable; every call capped."""
from parse_apis.alibaba_com_api import Alibaba, Sort, InputNotFound
client = Alibaba()
# Search for Ready to Ship products with pagination auto-iterated.
for item in client.product_summaries.search(query="7 inch 1024x600 ips rgb", sort=Sort.BEST_MATCH, limit=3):
print(item.title, item.price, item.company_name)
# Drill-down: take one item and navigate to full product details.
hit = client.product_summaries.search(query="raspberry pi display", limit=1).first()
if hit:
detail = hit.details()
print(detail.title, detail.price_display, detail.moq)
for tier in detail.price_tiers[:3]:
print(f" {tier.min_quantity}-{tier.max_quantity}: {tier.unit_price}")
# Fetch import/logistics data from the same product.
import_info = hit.import_data()
print(import_info.supplier_country, import_info.quantity_unit)
print(import_info.packaging.package_weight, import_info.packaging.package_dimensions)
for lt in import_info.lead_time:
print(f" {lt.min_quantity}-{lt.max_quantity} units: {lt.processing_days} days")
# Typed error handling for a product lookup.
try:
product = client.products.get(product_id="9999999999999")
print(product.title)
except InputNotFound:
print("product not found")
print("exercised: product_summaries.search / ProductSummary.details / ProductSummary.import_data / products.get")
Search Alibaba.com for Ready to Ship products. All results are pre-filtered to Ready to Ship inventory. Returns product listings with pricing, supplier info, and service badges. Results are auto-iterated across pages (48 products per page).
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination (1-based). |
| sort | string | Sort order for results. Omitted returns relevance-sorted results. |
| queryrequired | string | Search keywords describing the product (e.g. '7 inch 1024x600 ips rgb'). |
{
"type": "object",
"fields": {
"products": "array of product listings with title, price, supplier info, and selling points",
"total_count": "integer total number of matching products",
"total_pages": "integer total number of pages available",
"current_page": "integer current page number"
},
"sample": {
"data": {
"products": [
{
"is_ad": false,
"price": "$9.80",
"title": "7 Inch Tft Display RGB IPS 40PIN 1024X600 LCD DISPLAY SCREEN MODULE",
"image_url": "https://s.alicdn.com/@sc04/kf/H1b5efa7da8b34e1a91b465d876d637c2U.png_300x300.png",
"min_order": "Min. order: 2 pieces",
"company_id": "241332330",
"product_id": "62497841129",
"product_url": "//www.alibaba.com/product-detail/7-Inch-Tft-Display-RGB-IPS_62497841129.html",
"sold_orders": "2 sold",
"company_name": "Shenzhen Chuanglixin Electronics Co., Ltd.",
"country_code": "CN",
"review_count": "5",
"review_score": "4.8",
"selling_points": [
{
"text": "FREE shipping",
"type": "free_shipping"
},
{
"text": "5-day dispatch",
"type": "x_day_dispatch"
}
],
"supplier_years": "9 yrs",
"supplier_service_score": "5.0"
}
],
"total_count": 1254,
"total_pages": 27,
"current_page": 1
},
"status": "success"
}
}About the Alibaba API
Product Search
The search_products endpoint accepts a query string and an optional page integer (1-based) plus a sort parameter. Each page returns up to 48 product listings. The response includes total_count, total_pages, and current_page alongside an array of product objects carrying title, price, supplier info, and selling-point badges. All results are scoped to Ready to Ship inventory, so any listing returned has confirmed stock availability.
Product Detail
Passing a product_id obtained from search results to get_product returns the full product record: price_tiers (each tier specifying a min/max quantity and unit price), moq, image_urls, review_score, review_count, and a shipping_info object with unit_weight, unit_size, and lead_time. The price_display field gives a pre-formatted price range string suitable for display without additional processing.
Import Classification and Logistics
get_import_data targets sourcing and trade workflows. For a given product_id it returns hs_code (the tariff classification string, or null if not listed), lead_time as an array of tiers keyed by quantity range and processing_days, packaging dimensions and weight, and a tariff_info object when tariff support data is available. price_tiers here include a price_value field for numeric comparison. Supplier country and supplier name are also returned, which matters when evaluating origin for customs purposes.
The Alibaba API is a managed, monitored endpoint for alibaba.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when alibaba.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official alibaba.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a price-monitoring tool that tracks
price_tierschanges for specific Alibaba product IDs over time. - Automate landed-cost calculations by combining
hs_codeandunit_weightfromget_import_datawith a tariff rate lookup. - Populate a supplier comparison dashboard with MOQ, lead time tiers, and review scores from
get_product. - Scrape Ready to Ship inventory for a given category using
search_productspagination to feed a procurement catalog. - Validate supplier country of origin for import compliance using the supplier country field in
get_import_data. - Generate product data sheets by pulling
image_urls, full titles, and specification fields fromget_product. - Identify competitive pricing bands across suppliers by querying multiple product IDs and comparing
price_tiers.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 200 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
| Team | $300/mo | 20,000 | 300 req/min |
| Company | $1,000/mo | 100,000 | 500 req/min |
Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Alibaba.com have an official developer API?+
What does `get_import_data` return that `get_product` does not?+
get_import_data returns fields specific to trade and logistics workflows: hs_code for tariff classification, tariff_info (including tariff tag and details when available), lead_time tiers broken down by quantity, packaging dimensions and weight, unit_volume, and supplier country. get_product focuses on buyer-facing data — price display, images, review scores, and shipping info — without the classification and packaging data needed for import planning.Are products from regions outside the US included in search results?+
search_products endpoint reflects the Alibaba.com US site results. Supplier locations will vary internationally since Alibaba is a global platform, but the search context and Ready to Ship filter follow the US storefront. Region-specific storefronts (e.g. alibaba.com country-specific portals) are not covered. You can fork this API on Parse and revise it to target a different regional endpoint if needed.Does the API return seller contact information or RFQ (Request for Quotation) data?+
How does pagination work in `search_products`?+
total_count, total_pages, and current_page so you can iterate programmatically. Pass the page parameter (1-based integer) to retrieve subsequent pages. If page is omitted, the first page is returned.