def get_video_data(url: str) -> Dict[str, Any]:
        """
        Get metadata about a YouTube video.
        
        Args:
            url: The URL of the YouTube video
            
        Returns:
            Dictionary containing video metadata
        """
        import json
        from urllib.request import urlopen
        from urllib.parse import urlencode
        
        video_id = YouTubeVideo.get_video_id(url)
        if not video_id:
            return {"error": "Could not extract video ID from URL"}
            
        try:
            params = {"format": "json", "url": f"https://www.youtube.com/watch?v={video_id}"}
            oembed_url = "https://www.youtube.com/oembed"
            query_string = urlencode(params)
            full_url = f"{oembed_url}?{query_string}"
            
            with urlopen(full_url) as response:
                response_text = response.read()
                video_data = json.loads(response_text.decode())
                
                return {
                    "title": video_data.get("title"),
                    "author_name": video_data.get("author_name"),
                    "author_url": video_data.get("author_url"),
                    "type": video_data.get("type"),
                    "height": video_data.get("height"),
                    "width": video_data.get("width"),
                    "version": video_data.get("version"),
                    "provider_name": video_data.get("provider_name"),
                    "provider_url": video_data.get("provider_url"),
                    "thumbnail_url": video_data.get("thumbnail_url"),
                    "video_id": video_id,
                    "video_url": f"https://www.youtube.com/watch?v={video_id}"
                }
        except Exception as e:
            return {"error": f"Error getting video data: {str(e)}"}

        Get metadata about a YouTube video.
        
        Args:
            url: The URL of the YouTube video
            
        Returns:
            Dictionary containing video metadata
        
src/upsonic/tools.py