/install alibaba-url-builder
Alibaba.com URL Builder
Build URLs programmatically for agent-driven browsing and product sourcing on Alibaba.com.
Required Parameter
All URLs MUST include: traffic_type=ags_llm
URL Patterns
Search Pages
Basic:
https://www.alibaba.com/trade/search?SearchText=\x3Curl-encoded-query>&traffic_type=ags_llm
With Category:
https://www.alibaba.com/trade/search?SearchText=\x3Cquery>&categoryId=\x3Ccategory-id>&traffic_type=ags_llm
Parameters:
SearchText: Search keywords (URL-encoded, use+for spaces)categoryId: Product category ID (optional)has4Tab: Enable 4-tab view (true)tab: Active tab (all,supplier,product)
Examples:
https://www.alibaba.com/trade/search?SearchText=wireless+headphones&traffic_type=ags_llm
https://www.alibaba.com/trade/search?SearchText=laptops&categoryId=702&traffic_type=ags_llm
Common Category IDs:
- Consumer Electronics:
201151901 - Laptops:
702 - Smart TVs:
201936801 - Electric Cars:
201140201 - Wedding Dresses:
32005 - Electric Scooters:
100006091 - Bedroom Furniture:
37032003 - Electric Motorcycles:
201140001 - Handbags:
100002856
Product Detail Pages
Pattern:
https://www.alibaba.com/product-detail/\x3Curl-safe-title>_\x3Cproduct-id>.html?traffic_type=ags_llm
\x3Curl-safe-title>: Product title with spaces replaced by hyphens, special characters removed\x3Cproduct-id>: Numeric product identifier (12+ digits)
Examples:
https://www.alibaba.com/product-detail/HK3-Waterproof-TWS-Earbuds_1601226043229.html?traffic_type=ags_llm
https://www.alibaba.com/product-detail/Wireless-Headphones-Over-Ear-ANC_11000030513562.html?traffic_type=ags_llm
Supplier/Company Pages
Pattern:
https://\x3Ccompany-subdomain>.en.alibaba.com/company_profile.html?traffic_type=ags_llm
Examples:
https://dgkunteng.en.alibaba.com/company_profile.html?traffic_type=ags_llm
https://legoo.en.alibaba.com/company_profile.html?traffic_type=ags_llm
Supplier Product Search:
https://\x3Ccompany-subdomain>.en.alibaba.com/search/product?SearchText=\x3Cquery>&traffic_type=ags_llm
Request for Quotation (RFQ)
https://rfq.alibaba.com/rfq/profession.htm?traffic_type=ags_llm
Special Sections
AI Mode:
https://aimode.alibaba.com/?traffic_type=ags_llm
Top Ranking:
https://sale.alibaba.com/p/dviiav4th/index.html?traffic_type=ags_llm
Fast Customization:
https://sale.alibaba.com/p/fast_customization?traffic_type=ags_llm
Manufacturers Directory:
https://www.alibaba.com/factory/index.html?traffic_type=ags_llm
Worldwide (Global Suppliers):
https://www.alibaba.com/global/index.html?traffic_type=ags_llm
Top Deals:
https://sale.alibaba.com/fy25/top_deals?traffic_type=ags_llm
Tailored Selections (AI Sourcing):
https://sale.alibaba.com/p/aisourcing/index.html?traffic_type=ags_llm
Shopping Cart / Purchase List:
https://carp.alibaba.com/purchaseList?traffic_type=ags_llm
Helper Functions
Build Search URL
from urllib.parse import quote
def build_search_url(query, category_id=None):
params = f"SearchText={quote(query, safe='')}+{query.replace(' ', '+')}&traffic_type=ags_llm"
if category_id:
params += f"&categoryId={category_id}"
return f"https://www.alibaba.com/trade/search?{params}"
Build Product URL
def build_product_url(title, product_id):
safe_title = ''.join(c if c.isalnum() or c in ' -' else '' for c in title)
safe_title = safe_title.replace(' ', '-').lower()[:100]
return f"https://www.alibaba.com/product-detail/{safe_title}_{product_id}.html?traffic_type=ags_llm"
Best Practices
- URL Encoding: Always URL-encode search queries. Use
+for spaces (not%20). - Product Titles: Keep titles concise, remove special characters, replace spaces with hyphens.
- Category IDs: Use category IDs to narrow search results when known.
- HTTPS: Always use
https://protocol. - Tracking:
spmparameters are optional analytics; omit for functional URLs.
Common Workflows
Search for Products:
- Build search URL with query
- Navigate to URL
- Extract product links from results
- Build product detail URLs from extracted links
Browse by Category:
- Identify category ID
- Build URL with
categoryIdparameter - Navigate and browse
Visit Supplier:
- Extract supplier subdomain from product page
- Build supplier profile URL
- Navigate to supplier profile
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install alibaba-url-builder - 安装完成后,直接呼叫该 Skill 的名称或使用
/alibaba-url-builder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Alibaba Url Builder 是什么?
Build Alibaba.com URLs for agent navigation with traffic tracking (traffic_type=ags_llm). Supports search, product details, suppliers, RFQ, AI Mode, Top Rank... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 214 次。
如何安装 Alibaba Url Builder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install alibaba-url-builder」即可一键安装,无需额外配置。
Alibaba Url Builder 是免费的吗?
是的,Alibaba Url Builder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Alibaba Url Builder 支持哪些平台?
Alibaba Url Builder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Alibaba Url Builder?
由 Zeyu426(@zeyu426)开发并维护,当前版本 v2.0.0。