YouTube Video Finder Instructions
Use this skill whenever a user asks to find, recover, or check the archive status of a deleted, missing, or private YouTube video.
Execution Steps:
- Extract the Video ID: Isolate the 11-character ID from the URL or text provided by the user (e.g., for
youtube.com/watch?v=dQw4w9WgXcQ, the ID isdQw4w9WgXcQ). Pass only this ID into thevideoidparameter. - Parameters: Omit the
includeRawandstreamparameters unless the user specifically asks for raw metadata or debugging data.
Interpreting the Response:
- Initial Check: Look at the
statusfield. If it returnsbad.id, stop and inform the user that the 11-character ID is invalid. - The Verdict: Check the
verdictobject. Read thehuman_friendlystring to immediately understand the overall result. Pay attention to the boolean flagsvideo,metaonly, andcommentsto know exactly what was recovered. - Finding the Links: Iterate through the
keysarray (which contains service objects like GhostArchive or Wayback Machine).- If a service object has
archived: true, look inside itsavailablelist. - Extract the
urlfrom the Link Objects to give to the user. - Take note of
maybe_paywalled(boolean) ornote(string) for context on how to access the link.
- If a service object has
Output Formatting:
Present your findings in a clear, friendly, and structured manner.
- If the video is fully found, provide the direct links immediately.
- If only metadata or comments were archived, clarify that the actual video file could not be recovered.
- Mention which service(s) successfully held the archive.