Install
openclaw skills install youtube-channel-api-skillThis skill helps users automatically extract structured channel data from YouTube search results via BrowserAct API. Agent should proactively apply this skil...
openclaw skills install youtube-channel-api-skillThis skill provides users with a one-stop channel data extraction service through BrowserAct's YouTube Channel API template. It can directly extract structured channel results from YouTube search. By simply entering search keywords and optional upload date filters, you can get clean, usable channel data directly.
Before running, you must first check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any other actions; you should request and wait for the user to provide it.
The Agent must inform the user at this point:
"Since you have not configured the BrowserAct API Key yet, please go to the BrowserAct Console to get your Key."
Agent should flexibly configure the following parameters according to user needs when calling the script:
KeyWords
stringAI, automation, tech reviewsUpload_date
stringThis week, Any time, etc.Any timeAgent should execute the following standalone script to achieve "one command gets results":
# Example call
python -u ./scripts/youtube_channel_api.py "Search Keywords" "Upload date"
Since this task involves automated browser operations, it may take a long time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running) while running.
Agent Notes:
After successful execution, the script will directly parse and print the results from the API response. The results include:
channel_title: Channel name displayed on YouTubechannel_link: Channel page URLverified: Whether the channel is verifiedhandle: Channel handlesubscribers: Subscriber countdescription: Channel description textthumbnail: Channel avatar or thumbnail image URLDuring the execution of the script, if an error occurs (such as network fluctuations or task failure), the Agent should follow this logic:
Check the output content:
"Invalid authorization", it means the API Key is invalid or expired. At this point, do not retry; you should guide the user to recheck and provide the correct API Key."Invalid authorization" but the task execution fails (for example, the output starts with Error: or returns empty results), the Agent should automatically try to execute the script one more time.Retry limit: