Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed Practice Fetch API!
You have completed Practice Fetch API!
Instruction
Set Up Your REST Countries API Key
Before You Start: Set Up Your REST Countries API Key
The REST Countries API now requires an API key. You also need to add your Workspace's URL as an allowed CORS origin. This takes about 5 minutes, and you only need to do it once.
1. Create your account
Go to restcountries.com.
Create a free account and log in.
2. Get your Workspace preview URL
In your Workspace, click the eyeball icon ...