---
title: "Liquid / Shopify theme lint"
method: POST
path: "/api/lint/liquid"
tags: ["Dev Tools"]
---

# Liquid / Shopify theme lint

`POST /api/lint/liquid`

## Request

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

Liquid / Shopify theme lint: POST {code}, get the bugs with line numbers. Deterministic — never rendered, no AI. Catches unbalanced/misnested blocks, unknown tags/filters with did-you-mean, the JS-isms every dev writes in Liquid (&&, !, ternaries, arithmetic in output, parens in conditions), deprecated img_url/include, and FULL {% schema %} validation: setting types, duplicate ids, range/select rules, blocks, presets. POST bare schema JSON to test just a schema. Max 128 KB.

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

## Request body

- object
  - `code` string, required: Liquid template source to lint, max 128 KB

## Response `200`

Success

- object
  - `language` string
  - `syntax` object
  - `issues` unknown[]
    - unknown
  - `counts` object
  - `verdict` string

## 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)
