Go to Google Console:
Navigate to API and Services -> Library:
Search for places API
Enable the API
Reload the Page and Click on Manage:
Navigate to Credentials Page:
Click on Create Credential Button and API Key:
Restrict the key to only use Places API: