---
title: "JavaScript / Node lint"
method: POST
path: "/api/lint/javascript"
tags: ["Dev Tools"]
---

# JavaScript / Node lint

`POST /api/lint/javascript`

## Request

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

JavaScript / Node lint: POST {code}, get the bugs back with line numbers. Syntax errors come from the real V8 parser (compile-only — code is never executed), plus deterministic checks: loose == coercion, assignment in conditions, comparisons with NaN, const reassignment (runtime TypeError), var pitfalls, unused variables, leftover console.log. Handles ESM imports, template literals, regex. No AI. 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: JavaScript/Node 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)
