Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sqlformat-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/sqlformat-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sqlformat-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sqlformat-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/sqlformat-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "auth": "none upstream; this gateway requires x-api-key",
        "name": "SQL Formatter API",
        "note": "Format/beautify SQL (/v1/format?sql=...&dialect=postgresql&keyword_case=upper&tab_width=2) across 15+ dialects (Postgres, MySQL, SQLite, BigQuery, Snowflake, T-SQL, …), and minify SQL to one line (/v1/minify, comments stripped, string literals preserved). /v1/dialects lists the dialects. Instant, nothing stored.",
        "source": "Local SQL formatting (sql-formatter) — no key, no upstream",
        "endpoints": 4
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:58.554Z",
        "request_id": "366de6de-b72f-40dd-8ca2-c107f67b625d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}