/v1/typescript
Infer TypeScript interfaces
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/jsontypes-api/v1/typescript" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/jsontypes-api/v1/typescript", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/jsontypes-api/v1/typescript");
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/typescript",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"root": "Root",
"typescript": "interface Address {\n city: string;\n}\n\ninterface Root {\n id: string;\n name: string;\n email: string;\n age: number;\n tags: string[];\n address: Address;\n}"
},
"meta": {
"timestamp": "2026-06-01T23:40:43.824Z",
"request_id": "520a3d60-3c7d-4447-b146-8365259eba71"
},
"status": "ok",
"message": "TypeScript inferred",
"success": true
}