In this Project you can find the REST API implementation in Salesforce APEX and Displaying it on the Lightning Web Development Component
For the API Key follow these steps:-
- Go to Weather API.
- Sign up for a Free account.
- Free Account has 1 million API calls and gives you a personal key.
- Store this key in a Custom Label in Salesforce.