Videosuche
Video-Suchergebnisse als JSON.
GET /v1/videosErfordert einen gültigen API-Schlüssel, eine aktive Mitgliedschaft und verfügbares API-Guthaben.
Suchparameter
| Name | Typ | Erforderlich | Vorgabe | Beschreibung |
|---|---|---|---|---|
q |
string | ja | — | Die Suchanfrage. |
safe |
string | nein | on |
Stufe der sicheren Suche: off oder on. |
gl |
string | nein | (auto) | Zweibuchstabiger Regions-/Ländercode (z. B. us, gb). |
hl |
string | nein | (auto) | Zweibuchstabiger Sprachcode (z. B. en, de). |
time |
string | nein | any |
Aktualitätsfilter: any, hour, day, week, month, year. |
num |
integer | nein | (Anbietervorgabe) | Gewünschte Ergebnisanzahl. Auf 5–100 begrenzt (außerhalb des Bereichs → 20). |
Antwort
{
"query": "how to make pasta",
"kind": "video",
"results": [
{
"title": "Perfect Fresh Pasta in 10 Minutes",
"url": "https://video.example.com/watch?v=abc123",
"description": "A quick guide to homemade pasta…",
"thumbnail": "https://video.example.com/abc123/thumb.jpg",
"price": null,
"meta": "Example Kitchen",
"extra": "10:32"
}
]
}
| Feld | Typ | Beschreibung |
|---|---|---|
query |
string | Die ausgeführte Suchanfrage. |
kind |
string | Für diesen Endpunkt stets video. |
results[].title |
string | Titel des Videos. |
results[].url |
string | URL des Videos / der Wiedergabeseite. |
results[].description |
string | null | Beschreibung, sofern verfügbar. |
results[].thumbnail |
string | null | URL des Vorschaubildes. |
results[].meta |
string | null | Kanal / Quelle. |
results[].extra |
string | null | Dauer, sofern verfügbar. |
results[].price |
string | null | Wird für Videos nicht verwendet. |
Beispiele
curl -G "https://api.suede.io/v1/videos" \ -H "Authorization: Bearer $SUEDE_API_KEY" \ --data-urlencode "q=how to make pasta"
using var http = new HttpClient(); http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("SUEDE_API_KEY")); var url = "https://api.suede.io/v1/videos?q=" + Uri.EscapeDataString("how to make pasta"); Console.WriteLine(await http.GetStringAsync(url));
const res = await fetch( "https://api.suede.io/v1/videos?q=" + encodeURIComponent("how to make pasta"), { headers: { Authorization: `Bearer ${process.env.SUEDE_API_KEY}` } }, ); const data = await res.json(); for (const r of data.results) console.log(`${r.title} [${r.extra}] — ${r.meta}`);