# Liquid/Shopify Theme Linter

> Liquid/Shopify Theme Linter is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Lints Liquid/Shopify template code or schema JSON, returning bugs with line numbers including block nesting errors, unknown tags/filters, JS-isms, deprecated syntax, and full schema validation.

## Facts

- Endpoint: POST https://api.webbersites.com/api/lint/liquid?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquid-shopify-theme-linter-38e35e8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-31HKnSC6u4ob2iP2Wfml

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 liquid-shopify-theme-linter-38e35e8d -d '<json body>'
```

Example prompt: Can you lint this Liquid template code for me and tell me what's broken? I want to know about unbalanced blocks, any JS-isms, deprecated tags like img_url, and whether the schema section is valid — include line numbers.

## When to prefer this

Use this endpoint when you need deterministic, rule-based linting of Liquid/Shopify templates without any AI interpretation. It is the right choice for CI/CD pipelines, pre-publish checks, or any time you need structured error output with exact line numbers for Shopify theme code or section schemas.

## Known failure modes

- Code exceeds 128 KB limit — returns error rejecting oversized input
- Malformed JSON when posting bare schema — returns parse error
- Empty or missing code field — returns validation error
- Network timeout for very complex templates near size limit

## How this service works

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.

## Output

A list of lint findings, each with a line number, error type, description, and optionally a did-you-mean suggestion. Covers unbalanced/misnested blocks, unknown tags and filters, JS-isms (&&, !, ternaries, arithmetic in output, parentheses in conditions), deprecated syntax (img_url, include), and full schema validation errors (setting types, duplicate IDs, range/select rules, blocks, presets).

## 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": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Liquid template source to lint, max 128 KB"
      }
     }
    },
    "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": {
      "counts": {
       "type": "object"
      },
      "issues": {
       "type": "array"
      },
      "syntax": {
       "type": "object"
      },
      "verdict": {
       "type": "string"
      },
      "language": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "info": 0,
   "error": 3,
   "warning": 0
  },
  "issues": [
   {
    "hint": "use 'and'",
    "line": 1,
    "rule": "logic/js-operator",
    "message": "'&&' is not Liquid (condition) — expressions with it fail",
    "severity": "error"
   }
  ],
  "syntax": {
   "ok": false,
   "errors": [
    {
     "line": 3,
     "rule": "syntax/unbalanced-block",
     "message": "{% endfor %} closes {% for %}, but the innermost open block is {% if %} (line 1)",
     "severity": "error"
    }
   ]
  },
  "verdict": "errors",
  "language": "liquid"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquid-shopify-theme-linter-38e35e8d/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)
