# Extract Normalized Walmart Product Data (d402)

> Extract Normalized Walmart Product Data (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, last successful call 2026-05-11).

Extracts structured product data (title, price, availability, images, SKU, brand, rating, variants, etc.) from a Walmart product page URL via a paid d402 gateway.

## Facts

- Endpoint: POST https://gateway.d402.xyz/v1/commerce/walmart/extract-product
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Last successful call: 2026-05-11
- Success rate: 100% of calls made through Zero
- Activations on Zero: 2
- Provider: gateway.d402.xyz
- Website: https://gateway.d402.xyz
- Canonical page: https://www.zero.xyz/c/gateway-d402-xyz-extract-normalized-walmart-product-data-d402-b9306382
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XbIXJYws8U4IDAgB7vhke

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-extract-normalized-walmart-product-data-d402-b9306382 -d '<json body>'
```

Example prompt: Can you pull the full product details — title, price, availability, brand, SKU, and images — from this Walmart listing: https://www.walmart.com/ip/some-product/123456789?

## When to prefer this

Use this endpoint when you specifically need to extract product data from Walmart (walmart.com) and want a Walmart-optimized adapter rather than the generic commerce extractor. Prefer this over the generic extract_product route when you know the URL is from Walmart, as the Walmart adapter is purpose-built and independently testable. Choose this over manual scraping or browser automation when you need normalized, structured JSON output with confidence scores and content hashing for verification.

## Known failure modes

- Non-Walmart URL submitted — extractor adapter only supports walmart.com pages
- Product page not publicly accessible or requires login — extraction fails or returns partial data
- Walmart blocks or rate-limits the fetch — status may return 'error' with a provider-side error message
- Invalid URL format — validation error returned before processing
- Timeout exceeded (above 45000ms cap) — gateway rejects request
- Task accepted but result not yet ready — status returns 'accepted' or 'running', requiring polling via task link

## How this service works

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

## Output

Returns a taskId and status ('accepted', 'running', 'error', or 'rejected'), plus a result object containing normalized product fields: title, price, currency, SKU, brand, availability, images array, rating, review count, seller, description, variants, canonical URL, content hash, snapshot CID, per-field confidence scores, extractor version, and fetch timestamp. Also includes settlement and receipt links.

## 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-extract-normalized-walmart-product-data-d402-b9306382/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)
