# Delx Commerce — Page Links Summary (HTML Regex Extract)

> Delx Commerce — Page Links Summary (HTML Regex Extract) is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Extracts all hyperlinks from raw HTML using regex, returning a deduplicated list of URLs up to an optional limit.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/page-links-summary?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-page-links-summary-html-regex-extract-388f105b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zqkngq9-DlLDl6gAmhyt4

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 delx-commerce-page-links-summary-html-regex-extract-388f105b -d '<json body>'
```

Example prompt: Here's the raw HTML I fetched from a page — can you extract all the links from it, up to 50, and give me the list?

## When to prefer this

Choose this endpoint when you already have raw HTML content in memory and need a fast, cheap ($0.002 USDC), no-signup link extraction without spinning up a headless browser. Ideal for pipeline steps in an agent crawl loop where you've already fetched HTML and need to enumerate links for further processing. Not suitable if you need JavaScript-rendered links or full page rendering.

## Known failure modes

- Malformed or empty HTML input may return an empty links array with count 0
- JavaScript-rendered content will not be extracted since this is regex-based, not a headless browser
- Very large HTML strings may hit request size limits
- Limit parameter set to 0 or negative values may produce unexpected behavior
- Relative URLs (e.g. /about) are returned as-is without being resolved to absolute URLs

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with: `ok` boolean, a `note` clarifying that extraction is regex-based (not browser-rendered), `count` of links found, a `links` array of extracted URL strings, the schema identifier `delx/util-page-links-summary/v1`, and a `truncated` boolean indicating whether the result was capped by the limit parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "Input field: html."
  },
  "limit": {
   "type": "integer",
   "description": "Input field: limit."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "note": "Local HTML regex extract; not a browser",
  "count": 2,
  "links": [
   "https://example.com",
   "/about"
  ],
  "schema": "delx/util-page-links-summary/v1",
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-page-links-summary-html-regex-extract-388f105b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
