Note: For security, in a real application, API keys should be managed on a backend server. For this demo, the key is hardcoded in the script.