登录
使用 JS token

AliExpress scrapers 配合您的 JavaScript token 效果最佳。

API 用法

Crawling API 请求中添加 &scraper=aliexpress-serp。在 url 参数中对目标 URL 进行 URL 编码。

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.aliexpress.com/wholesale?SearchText=water+bottle' \
  --data-urlencode 'scraper=aliexpress-serp' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.aliexpress.com/wholesale?SearchText=water+bottle',
    {'scraper': 'aliexpress-serp'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.aliexpress.com/wholesale?SearchText=water+bottle',
  { scraper: 'aliexpress-serp' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.aliexpress.com/wholesale?SearchText=water+bottle', scraper: 'aliexpress-serp')
data = JSON.parse(res.body)

示例输入 URL

传入 url 参数的 URL(为便于阅读已 URL 解码):

https://www.aliexpress.com/wholesale?SearchText=water+bottle

响应结构

JSON 响应体。当源页面省略值时,字段类型可能为 null

query
string
搜索查询。
products
array
产品摘要。
products[].product_id
string
产品 ID。
products[].title
string
标题。
products[].price
string
价格。
products[].url
string
URL。
products[].rating
number
评分。
products[].orders_count
integer
订单数。
products[].image_url
string
缩略图。

示例响应

{
  "query": "water bottle",
  "products": [
    {
      "product_id": "1005008227636051",
      "title": "Insulated Stainless Steel Water Bottle",
      "price": "$8.99",
      "rating": 4.7,
      "orders_count": 12430
    }
  ]
}