{"uid":"cap_-31HKnSC6u4ob2iP2Wfml","slug":"liquid-shopify-theme-linter-38e35e8d","name":"Liquid/Shopify Theme Linter","description":"WebberSites – Branding, Web Design, Photography, Marketing Strategy - Youngstown Ohio","url":"https://api.webbersites.com/api/lint/liquid?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.2000","medianCents":"0.2000","p90Cents":"0.2000","minCents":"0.2000","maxCents":"0.2000","p95Cents":"0.2000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MDuhSeogDEJ6D3SGOmG77","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-publish theme quality check","prompt":"Before I push this theme to production, can you scan all the Liquid files for bugs? I need to catch any unbalanced blocks, unknown filters, deprecated syntax, and schema validation errors with exact line numbers so I can fix them."},{"title":"CI/CD lint validation pipeline","prompt":"Set up automated linting on our theme repository — check every Liquid file and schema JSON that gets committed for syntax errors, JS-isms, misnested blocks, and unknown tags. Fail the build if critical issues are found."},{"title":"Custom section schema debugging","prompt":"I'm building a custom Shopify section but the schema isn't loading correctly. Can you validate the entire schema block for me? Check for duplicate setting IDs, invalid types, broken range/select rules, and any malformed blocks or presets."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:46:59.215Z","isFirstParty":false,"canonicalSlug":"liquid-shopify-theme-linter-38e35e8d"}