---
title: "HTML → Shopify section converter"
method: POST
path: "/api/liquid/section"
tags: ["Dev Tools"]
---

# HTML → Shopify section converter

`POST /api/liquid/section`

## Request

- Base URL: `https://api.webbersites.com`
- URL: `https://api.webbersites.com/api/liquid/section`
- Auth: API key in header `X-PAYMENT`

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.

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

## Request body

- object
  - `html` string, required: Static HTML to convert (fragment or full page), max 256 KB
  - `name` string: Section name for the schema (default: first heading)

## Response `200`

Success

- object
  - `name` string
  - `liquid` string: the finished section file — markup + generated {% schema %}
  - `settings_count` number
  - `replacements` unknown[]
    - unknown
  - `notes` unknown[]
    - unknown
  - `lint` object: self-lint of the generated Liquid

## Other responses

- `402`: Payment required — the response body lists accepted payment methods (amount, asset, network, pay-to address). Retry the request with a signed X-PAYMENT header.

---

[API](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api.md) · [All operations](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/revisions/c14a76c67a94?raw)
