← Quiz: First API Call: all 10 questions
Quiz: First API Call · Question 1 of 10
Where should your API key live?
Where should your API key live?
- A.In the JavaScript of your website
- B.Hard-coded in the Python file
- C.In an environment variable on your server
- D.In a public GitHub repo's README
Answer & explanation
Correct answer: In an environment variable on your server
Anyone can read client-side code and public repos.
Can you get the rest right without peeking?
Take the timed Quiz: First API Call quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →