/v1/typescript
Infer TypeScript interfaces
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}