Vai al contenuto
GET /v1/meta

Outputs & detected formats

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/jsontypes-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/jsontypes-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/jsontypes-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/jsontypes-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/jsontypes-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Infer a schema or types from a sample JSON document — the fastest way to get a contract out of an example API response. /v1/schema returns a JSON Schema (Draft 2020-12) with detected types, required keys, array item schemas (merged across elements) and string formats (email, uri, uuid, date-time, date, ipv4). /v1/typescript returns ready-to-paste TypeScript interfaces with named nested interfaces, arrays, unions for mixed types and structural de-duplication. Supply the sample via ?json=, a query parameter or a request body. Everything is computed locally with no network calls. Ideal for scaffolding types from real API responses, generating validation schemas, documentation and contract testing. A JSON type/schema inferer — distinct from JSON-Schema validation (jsonschema), JSON pretty-print/convert (json) and JSON diff/patch (jsondiff). No key, no cache.",
        "outputs": [
            "JSON Schema (Draft 2020-12)",
            "TypeScript interfaces"
        ],
        "endpoints": [
            "/v1/schema",
            "/v1/typescript",
            "/v1/meta"
        ],
        "detected_string_formats": [
            "email",
            "uri",
            "uuid",
            "date-time",
            "date",
            "ipv4"
        ]
    },
    "meta": {
        "timestamp": "2026-06-01T23:40:43.899Z",
        "request_id": "2285c6b0-f632-46e0-91d8-db851f294dc4"
    },
    "status": "ok",
    "message": "Meta retrieved",
    "success": true
}