Zum Inhalt springen
GET /v1/search/videos

Search videos

Video-Suche.

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/youtube-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 24,
        "query": "mrbeast",
        "videos": [
            {
                "type": "video",
                "title": "I Stranded 100 People In The Wilderness For $250,000",
                "duration": "37:00",
                "video_id": "6Zy5VLcEbZc",
                "thumbnail": "https://i.ytimg.com/vi/6Zy5VLcEbZc/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDjXGQvpaoEr8q2zGy3Ulz-w0aV1w",
                "watch_url": "https://www.youtube.com/watch?v=6Zy5VLcEbZc",
                "view_count": "51873537",
                "channel_url": "https://www.youtube.com/@MrBeast",
                "channel_name": "MrBeast",
                "published_time": "1 day ago",
                "view_count_text": "51,873,537 views"
            },
            {
                "type": "video",
                "title": "Last To Leave Grocery Store, Wins $250,000",
                "duration": "42:57",
                "video_id": "zRtGL0-5rg4",
                "thumbnail": "https://i.ytimg.com/vi/zRtGL0-5rg4/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAf-HGlB3_13-Tqb54BYAOiy_3lHg",
                "watch_url": "https://www.youtube.com/watch?v=zRtGL0-5rg4",
                "view_count": "120870136",
                "channel_url": "https://www.youtube.com/@MrBeast",
                "channel_name": "MrBeast",
                "published_time": "2 weeks ago",
                "view_count_text": "120,870,136 views"
            },
            {
                "type": "video",
                "title": "50 Streamers Fight for $1,000,000",
                "duration": "49:31",
                "video_id": "DXVHmGoCTco",
                "thumbnail": "https://i.ytimg.com/vi/DXVHmGoCTco/hq720_custom_2.jpg?sqp=CLTK4s8G-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBvytBu0uZHCEXPDJU_DekRFvOY5A",
                "watch_url": "https://www.youtube.com/watch?v=DXVHmGoCTco",
                "view_count": "101566003",
                "channel_url": "https://www.youtube.com/@MrBeast",
                "channel_name": "MrBeast",
                "published_time": "4 weeks ago",
                "view_count_text": "101,566,003 views"
            },
            {
                "type": "video",
                "title": "Trapped On An Island Until I Build A Boat",
                "duration": "30:13",
                "video_id": "JFtlf8RoPZY",
                "thumbnail": "https://i.ytimg.com/vi/JFtlf8RoPZY/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBnd7JzGg0L5d8tE7enchu1cvZxLg",
                "watch_url": "https://www.youtube.com/watch?v=JFtlf8RoPZY",
                "view_count": "118084506",
                "channel_url": "https://www.youtube.com/@MrBeast",
                "channel_name": "MrBeast",
                "published_time": "1 month ago",
                "view_count_text": "118,084,506 views"
            },
            {
                "type": "video",
…