# HTML to Shopify Liquid Section Converter

> HTML to Shopify Liquid Section Converter is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts static HTML into a drop-in Shopify theme section with Liquid {{ section.settings.* }} references and a matching {% schema %} block, with original content as editable defaults.

## Facts

- Endpoint: POST https://api.webbersites.com/api/liquid/section
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-to-shopify-liquid-section-converter-abbc4933
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GSpiILWYseRa78iNHngAz

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 html-to-shopify-liquid-section-converter-abbc4933 -d '<json body>'
```

Example prompt: Take this HTML snippet for my product hero section and convert it into a Shopify Liquid section file — name it 'Hero Banner' — so I can drop it into my theme and edit the text and images in the theme editor.

## When to prefer this

Choose this endpoint when you need a deterministic, rule-based conversion of static HTML into a Shopify-compatible Liquid section — no AI hallucination risk, output is linted before delivery. Ideal for Shopify theme developers, migration workflows, or any pipeline that needs to make static content editable in the Shopify theme editor without manual Liquid templating.

## Known failure modes

- HTML exceeds 256 KB limit — request rejected
- Malformed or unparseable HTML — transform may produce incomplete output
- Missing required 'html' field in POST body — validation error returned
- Network timeout on large HTML payloads
- Self-lint detects invalid Liquid output — error returned before delivery

## How this service works

HTML → Shopify section converter. POST static HTML; get back a drop-in theme section: headings, paragraphs, images, links, and buttons are lifted into {{ section.settings.* }} references and a matching {% schema %} is generated with your original content as the defaults — immediately editable in the Shopify theme editor. Deterministic transform, no AI; output is self-linted before it's returned.

## Output

A complete Shopify Liquid section file with all headings, paragraphs, images, links, and buttons replaced by {{ section.settings.* }} Liquid references, plus a fully generated {% schema %} block with the original HTML content pre-populated as default values — ready to paste into a Shopify theme and immediately editable in the theme editor.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "html"
     ],
     "properties": {
      "html": {
       "type": "string",
       "description": "Static HTML to convert (fragment or full page), max 256 KB"
      },
      "name": {
       "type": "string",
       "description": "Section name for the schema (default: first heading)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "lint": {
       "type": "object",
       "description": "self-lint of the generated Liquid"
      },
      "name": {
       "type": "string"
      },
      "notes": {
       "type": "array"
      },
      "liquid": {
       "type": "string",
       "description": "the finished section file — markup + generated {% schema %}"
      },
      "replacements": {
       "type": "array"
      },
      "settings_count": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lint": {
   "verdict": "clean"
  },
  "name": "Summer Sale",
  "liquid": "<section class=\"hero\"><h1>{{ section.settings.heading }}</h1>…{% schema %}{…}{% endschema %}",
  "replacements": [
   {
    "from": "Summer Sale",
    "type": "text",
    "element": "h1",
    "setting": "heading"
   }
  ],
  "settings_count": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-shopify-liquid-section-converter-abbc4933/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webbersites.com](https://www.zero.xyz/host/api.webbersites.com/llms.txt)
