# DHgate Product Scraper (x402)

> DHgate Product Scraper (x402) is a paid API for AI agents from x402.186-241-26-229.sslip.io, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Scrapes structured product listings from DHgate by keyword search queries or listing URLs, returning product details like names, images, and links.

## Facts

- Endpoint: POST https://x402.186-241-26-229.sslip.io/v1/dhgate?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dhgate-product-scraper-x402-b45c0e6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JCEMlTcGFh72lLDN7B4BH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dhgate-product-scraper-x402-b45c0e6d -d '<json body>'
```

Example prompt: Search DHgate for 'wireless earbuds' and 'phone cases' and pull up to 100 products each so I can compare wholesale listings and prices.

## When to prefer this

Use this endpoint when you need structured product data from DHgate specifically — for wholesale sourcing, dropshipping research, price benchmarking, or catalog building. Prefer it over generic web scrapers when you want consistently structured DHgate-specific fields (productId, itemCode, imageUrl) without parsing raw HTML. The pay-per-call x402 model with no charge for failed runs makes it low-risk for exploratory searches.

## Known failure modes

- Empty result set if keywords match no DHgate listings — call is not charged
- DHgate blocks or rate-limits the scraper, returning an empty or failed run — call is not charged
- Invalid URL format in queries array causes parsing errors
- maxProducts value outside 10–500 range is rejected with a validation error
- Network timeout reaching DHgate returns an error response

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of products found, the target platform name ('dhgate'), and an array of product items each containing productId, productName, productDetailUrl, imageUrl, itemCode, queryType, queryValue, and alt text fields. Fields may be null if not available on the listing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "queries": {
   "type": "array",
   "description": "Enter DHgate search keywords or listing URLs, one per line. Each query has its own product limit."
  },
  "maxProducts": {
   "type": "integer",
   "default": 60,
   "maximum": 500,
   "minimum": 10,
   "description": "Maximum distinct products to collect for each keyword or URL."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "alt": null,
    "imageUrl": null,
    "itemCode": null,
    "productId": null,
    "queryType": null,
    "queryValue": null,
    "productName": null,
    "productDetailUrl": null
   }
  ],
  "product": "dhgate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dhgate-product-scraper-x402-b45c0e6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.186-241-26-229.sslip.io](https://www.zero.xyz/host/x402.186-241-26-229.sslip.io/llms.txt)
