Erste Schritte
Quickstart
Sende deine erste API-Anfrage in 60 Sekunden
API Key holen
Registriere dich und hol dir deinen API Key, um Thunderbit zu nutzen.
Im Playground testen
Teste die API sofort — ohne eine Zeile Code zu schreiben.
Authentifizierung
Alle API-Anfragen benötigen einen API Key im Request-Header:
Authorization: Bearer YOUR_API_KEYHol dir deinen API Key im Thunderbit Dashboard. Keys sind widerrufbar und pro Umgebung getrennt — bette niemals einen Produktions-Key in Client-Code ein.
1. Eine einzelne Seite zu Markdown destillieren
cURL:
curl -X POST https://openapi.thunderbit.com/openapi/v1/distill \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://thunderbit.com/playground"}'Python:
import httpx
resp = httpx.post(
"https://openapi.thunderbit.com/openapi/v1/distill",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"url": "https://thunderbit.com/playground"},
timeout=60.0,
)
resp.raise_for_status()
print(resp.json()["data"]["markdown"])Node.js:
const r = await fetch("https://openapi.thunderbit.com/openapi/v1/distill", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://thunderbit.com/playground" }),
});
const { data } = await r.json();
console.log(data.markdown);2. Strukturierte Daten mit einem JSON Schema extrahieren
curl -X POST https://openapi.thunderbit.com/openapi/v1/extract \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/product/iphone-15-pro",
"schema": {
"type": "object",
"properties": {
"name": { "type": "string" },
"price": { "type": "number" },
"currency": { "type": "string" },
"inStock": { "type": "boolean" }
},
"required": ["name", "price"]
}
}'3. Einen Batch-Job mit Webhook-Callback einreichen
curl -X POST https://openapi.thunderbit.com/openapi/v1/batch/distill \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"urls": [
"https://example.com/page1",
"https://example.com/page2",
"https://example.com/page3"
],
"webhook": {
"url": "https://your-server.com/api/webhook/distill",
"secret": "whsec_your_secret_key"
}
}'