{
    "id": "youtube-data",
    "name": "YouTube Data",
    "category": "Media",
    "description": "Search YouTube videos, retrieve channel info, playlists, and video metadata via the YouTube Data API v3.",
    "baseUrl": "https://www.googleapis.com/youtube/v3",
    "authStrategy": "query",
    "authKey": "key",
    "fields": [
        { "name": "apiKey", "label": "API Key", "type": "password" }
    ],
    "hints": [
        "Search videos: GET /search?part=snippet&q={query}&type=video&maxResults=10",
        "Get video details: GET /videos?part=snippet,statistics&id={videoId}",
        "Get channel: GET /channels?part=snippet,statistics&id={channelId}",
        "Get playlist items: GET /playlistItems?part=snippet&playlistId={playlistId}&maxResults=10",
        "Response (search): { items: [{ id: { videoId }, snippet: { title, description, thumbnails, channelTitle } }] }",
        "Embed video: <iframe src=\"https://www.youtube.com/embed/{videoId}\"></iframe>",
        "Free quota: 10,000 units/day. Search costs 100 units, most reads cost 1-3 units."
    ],
    "onboarding": {
        "url": "https://console.cloud.google.com/apis/library/youtube.googleapis.com",
        "steps": [
            "Go to the Google Cloud Console and create or select a project",
            "Enable the YouTube Data API v3",
            "Go to Credentials and create an API key",
            "Copy the API key"
        ]
    }
}
