Skip to content
APISeeker
GET/v1/format

JavaScript Formatter

Best-effort pretty-print for JavaScript source.

Part of JavaScript Formatter· Rate limits: 30 req/min

Parameters

  • codequerystringrequired

    JavaScript source

  • X-SEEKER-Keyheaderstringrequired

    Your API Seeker key

Code examples

cURL
curl -s "https://jsfmt.apiseeker.com/v1/format" \
  -H "X-SEEKER-Key: YOUR_API_KEY"

Response

JSON
{
  "success": true,
  "data": {
    "formatted": "function x() {\n  return 1\n}"
  },
  "request_id": "req_example"
}

Errors

  • 400Invalid or missing parameters
  • 401Missing or invalid API key
  • 429Rate limit exceeded

Try this endpoint

API Playground

JavaScript Formatter

Login required
Live testing requires an account. Log in or create an API key to send requests. Docs and snippets stay available without login.
GETjsfmt.apiseeker.com
https://jsfmt.apiseeker.com/v1/format
Log in to test endpoint
Status: Latency:

Response headers

Log in to run a test and see headers.

Response body

Log in required for live testing.

Generated snippets

cURL
curl -s "https://jsfmt.apiseeker.com/v1/format" \
  -H "X-SEEKER-Key: YOUR_API_KEY"