# Target Product Data Extractor (d402)

> Target 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 normalized product data (title, price, availability, images, variants, etc.) from a Target product page URL via the d402 gateway.

## Facts

- Endpoint: POST https://gateway.d402.xyz/v1/commerce/target/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-target-product-data-extractor-d402-f97eb6f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_anrOqwe1SY-E7dHA0W_O-

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-target-product-data-extractor-d402-f97eb6f3 -d '<json body>'
```

Example prompt: Pull the full product details from this Target listing — title, price, availability, SKU, images, and variants: https://www.target.com/p/some-product/-/A-12345678

## When to prefer this

Use this endpoint when you specifically need normalized product data from Target (target.com) and want a Target-optimized adapter rather than the generic commerce extractor. Prefer this over the generic extract-product route when you know the URL is from Target, as the dedicated adapter is tuned for Target's page structure and may return higher-confidence field extractions.

## Known failure modes

- Non-Target URL submitted — adapter rejects or returns low-confidence result
- Target page is behind login or geo-restriction — fetch fails
- Product page no longer exists (404) — error or empty result
- Timeout exceeded (over 45000ms) — gateway returns error status
- Malformed URL input — validation error with rejected status
- Target anti-bot measures block the fetch — error or empty extraction

## How this service works

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

## Output

Returns a taskId and status, plus a result object containing normalized product fields: title, price, currency, availability, SKU, brand, images array, variants array, rating, reviewCount, description, canonicalUrl, fetchedAt timestamp, contentHash, snapshotCid, and per-field confidence scores. Also includes settlement and validation receipt metadata for the d402 payment.

## 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-target-product-data-extractor-d402-f97eb6f3/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)
