# Amazon Product Data Extractor (d402)

> Amazon Product Data Extractor (d402) is a paid API for AI agents from gateway.d402.xyz, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Extracts and normalizes product data from an Amazon product page URL, returning title, price, availability, images, ratings, and more.

## Facts

- Endpoint: POST https://gateway.d402.xyz/v1/commerce/amazon/extract-product
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Provider: gateway.d402.xyz
- Website: https://gateway.d402.xyz
- Canonical page: https://www.zero.xyz/c/gateway-d402-xyz-amazon-product-data-extractor-d402-f38f34ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Pg3XXaYzZRuGIXw4gQKq

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 gateway-d402-xyz-amazon-product-data-extractor-d402-f38f34ef -d '<json body>'
```

Example prompt: Can you pull the normalized product details — title, price, availability, images, and rating — from this Amazon listing: https://www.amazon.com/dp/B08N5WRWNW?

## When to prefer this

Use this endpoint when you specifically need Amazon product data with the Amazon-specific adapter, independent from other commerce providers. Prefer this over the generic commerce.extract_product route when you want to test or audit the Amazon extraction pipeline in isolation, or when you need Amazon-specific fields like ASIN/providerProductId. It is suitable for price monitoring, product enrichment, catalog building, and comparison shopping focused on Amazon listings.

## Known failure modes

- Invalid or non-Amazon URL returns validation error
- Private or region-locked product pages may return empty or low-confidence results
- Timeout exceeded if page load surpasses timeoutMs cap (max 45000ms)
- Amazon anti-bot measures may cause extraction failure or partial data
- status:error returned when worker encounters an unrecoverable fetch issue
- Rejected payment or x402 settlement failure prevents task execution

## How this service works

Paid d402 provider-scoped capability alias for commerce.extract_product.amazon@1. Workers use the Amazon adapter only, so this route can be tested and registered independently from other commerce providers.

## Output

Returns a task ID and status, plus a result object containing normalized Amazon product fields: title, price, currency, brand, SKU, availability, images array, rating, review count, description, variants, seller, canonical URL, content hash, snapshot CID, confidence scores per field, and extraction metadata including adapter version and fetch timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Public product page URL to extract."
  },
  "sync": {
   "type": "boolean",
   "description": "Optional d402 sync flag. Defaults to gateway policy."
  },
  "locale": {
   "type": "string",
   "description": "Optional locale hint used by provider adapters, for example en-US."
  },
  "timeoutMs": {
   "type": "number",
   "maximum": 45000,
   "minimum": 1,
   "description": "Optional per-request timeout, capped by gateway policy."
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "taskId",
  "status"
 ],
 "properties": {
  "error": {
   "type": [
    "string",
    "null"
   ]
  },
  "links": {
   "type": "object",
   "properties": {
    "task": {
     "type": "string"
    },
    "result": {
     "type": "string"
    },
    "receipt": {
     "type": "string"
    }
   }
  },
  "result": {
   "type": "object",
   "required": [
    "url",
    "title",
    "contentHash",
    "snapshotCid",
    "extractorVersion"
   ],
   "properties": {
    "sku": {
     "type": [
      "string",
      "null"
     ]
    },
    "url": {
     "type": "string"
    },
    "brand": {
     "type": [
      "string",
      "null"
     ]
    },
    "price": {
     "type": [
      "string",
      "number",
      "null"
     ]
    },
    "title": {
     "type": "string"
    },
    "images": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "rating": {
     "type": [
      "number",
      "null"
     ]
    },
    "seller": {
     "type": [
      "string",
      "null"
     ]
    },
    "currency": {
     "type": [
      "string",
      "null"
     ]
    },
    "evidence": {
     "type": "array",
     "items": {
      "type": "object"
     }
    },
    "provider": {
     "type": [
      "string",
      "null"
     ]
    },
    "variants": {
     "type": "array",
     "items": {
      "type": "object"
     }
    },
    "fetchedAt": {
     "type": "string"
    },
    "sourceCid": {
     "type": [
      "string",
      "null"
     ]
    },
    "confidence": {
     "type": [
      "number",
      "null"
     ]
    },
    "sourceHash": {
     "type": [
      "string",
      "null"
     ]
    },
    "sourceType": {
     "type": [
      "string",
      "null"
     ]
    },
    "contentHash": {
     "type": "string"
    },
    "description": {
     "type": [
      "string",
      "null"
     ]
    },
    "reviewCount": {
     "type": [
      "number",
      "null"
     ]
    },
    "serviceName": {
     "type": "string"
    },
    "snapshotCid": {
     "type": "string"
    },
    "availability": {
     "type": [
      "string",
      "null"
     ]
    },
    "canonicalUrl": {
     "type": [
      "string",
      "null"
     ]
    },
    "providerHost": {
     "type": [
      "string",
      "null"
     ]
    },
    "serviceVersion": {
     "type": "string"
    },
    "apiEndpointHost": {
     "type": [
      "string",
      "null"
     ]
    },
    "fieldConfidence": {
     "type": "object"
    },
    "ext
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-d402-xyz-amazon-product-data-extractor-d402-f38f34ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.d402.xyz](https://www.zero.xyz/host/gateway.d402.xyz/llms.txt)
