Skip to content

About

1688 scraper API: 1688 Product Details, 1688 Product Search as clean JSON. Python examples with requests, Scrapy, asyncio and the DataGuru SDK.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

1688 Scraper API

Scrape 1688 with a JSON API. This repo has working Python examples for DataGuru's 1688 scraper APIs: 1688 Product Details and 1688 Product Search.

DataGuru runs the scraping, proxies, retries and parsing, and returns clean JSON. You pay only for successful requests, from $0.0012 per request, out of a prepaid balance: no subscription. New accounts get $1.00 of free credit.

1688 APIs

API What it returns Price Page
1688 Product Details Get maximum detailed wholesale product data from a 1688.com offer URL including tiered wholesale price ladders, MOQ, full specifications, SKU variation matrix, supplier profile, and high-res media gallery. $0.0022 https://dataguru.cc/apis/1688-product-details/
1688 Product Search Search 1688.com wholesale offers by keyword and get products with wholesale prices, MOQ, transaction volumes, repeat purchase rates, seller locations, and trust badges. $0.0012 https://dataguru.cc/apis/1688-product-search/

Quick start

  1. Create a free account and an API key at dashboard.dataguru.cc.
  2. Install and run:
git clone https://github.com/dataguru-cc/1688-scraper-api.git
cd 1688-scraper-api
pip install -r requirements.txt
export DATAGURU_API_KEY="your key"
python examples/sdk_example.py 1688-product-details

Examples

Every example covers all 2 1688 APIs. Pass an API name to run just one; with no name each script runs them all, and each call is billed at the price above.

File Style Run
examples/sdk_example.py DataGuru Python SDK (pip install dataguru-sdk), one function per API, saves JSON to output/ python examples/sdk_example.py
examples/requests_example.py Plain requests, synchronous python examples/requests_example.py
examples/async_example.py asyncio + httpx, concurrent with a limit python examples/async_example.py
examples/scrapy_spider.py Scrapy spider, items to JSON/CSV scrapy runspider examples/scrapy_spider.py -O 1688.json

All requests use the header Authorization: Api-Key YOUR_API_KEY. Errors return {"success": false, "error": {"code", "message", "request_id"}}, with HTTP 402 when the balance runs out and 429 (with Retry-After) when rate limited. Failed requests are not charged.

API reference

1688 Product Details

Get maximum detailed wholesale product data from a 1688.com offer URL including tiered wholesale price ladders, MOQ, full specifications, SKU variation matrix, supplier profile, and high-res media gallery.

Parameter Type Required Description
location string no Two-letter country code for proxy routing (default CN).
product_url string yes Full 1688 offer URL (e.g. https://detail.1688.com/offer/896192389922.html).

Response fields: offer_id, title, url, category, pricing, trade_info, seller, specifications, specifications_detailed, sku_props, skus, images, video, services, package_info, detail_url, error, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/1688/products/details" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_url": "https://detail.1688.com/offer/940552377308.html"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "offer_id": "1234567890",
  "title": "string",
  "url": "https://example.com/...",
  "category": {
    "id": 0,
    "name": "string"
  },
  "pricing": {
    "display_price": "string",
    "min_price": 0.0,
    "max_price": 0.0,
    "currency": "CNY",
    "unit": "string",
    "price_ladder": [
      {
        "begin_amount": 0,
        "price": 0.0
      }
    ]
  },
  "trade_info": {
    "min_order_quantity": 0,
    "total_inventory": 0,
    "total_sold": 0
  },
  "seller": {
    "company_name": "string",
    "login_id": "1234567890",
    "user_id": 0,
    "member_id": "1234567890",
    "shop_url": "https://example.com/...",
    "service_score": "string",
    "repeat_purchase_rate": "string"
  },
  "specifications": {},
  "specifications_detailed": [
    {
      "fid": 0,
      "name": "string",
      "value": "string",
      "values": [
        "string"
      ]
    }
  ],
  "sku_props": [
    {
      "property_name": "string",
      "options": [
        {
          "name": "string",
          "image_url": "https://example.com/..."
        }
      ]
    }
  ],
  "skus": [
    {
      "sku_id": "1234567890",
      "spec_id": "1234567890",
      "name": "string",
      "price": 0.0,
      "stock": 0,
      "sale_count": 0
    }
  ],
  "images": [
    "string"
  ],
  "video": {},
  "services": [
    {
      "name": "string",
      "description": "string",
      "link": "https://example.com/..."
    }
  ],
  "package_info": {},
  "detail_url": "https://example.com/...",
  "error": "string",
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "1688 Product Details",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

1688 Product Search

Search 1688.com wholesale offers by keyword and get products with wholesale prices, MOQ, transaction volumes, repeat purchase rates, seller locations, and trust badges.

Parameter Type Required Description
limit integer no Maximum number of search results to return. Default: 20.
location string no Two-letter country code for proxy routing (default CN).
page integer no Page number for pagination. Default: 1.
query string yes Search keywords, e.g. "手机壳" or "t shirt"

Response fields: query, total_results, total_found, returned_results, returned_count, filter_tags, products, error, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/1688/products/search" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "手机壳"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "query": "string",
  "total_results": 0,
  "total_found": 0,
  "returned_results": 0,
  "returned_count": 0,
  "filter_tags": [
    "string"
  ],
  "products": [
    {
      "offer_id": "1234567890",
      "title": "string",
      "price": 0.0,
      "currency": "CNY",
      "sales_volume": "string",
      "repeat_purchase_rate": "string",
      "location": "string",
      "tags": [
        "string"
      ],
      "image": "string",
      "url": "https://example.com/...",
      "mobile_url": "https://example.com/..."
    }
  ],
  "error": "string",
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "1688 Product Search",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

More

License

The example code is MIT licensed. Use of the DataGuru API is subject to the terms of service.

About

1688 scraper API: 1688 Product Details, 1688 Product Search as clean JSON. Python examples with requests, Scrapy, asyncio and the DataGuru SDK.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors