Basic JavaScript example for Node.js 14 and newer Usage Setup environment variables Duplicate .env.example and name it .env. Replace YOUR_API_KEY with your SerpApi API key. Install dependencies and run example npm i npm start