← Quiz: First API Call: all 10 questions
Quiz: First API Call · Question 6 of 10
Why must API calls go through your server and not straight from a website or mobile app?
Why must API calls go through your server and not straight from a website or mobile app?
- A.Browsers cannot send HTTP requests
- B.Anyone could extract the API key from the website or app
- C.Servers get cheaper prices
- D.The model only accepts calls from Linux
Answer & explanation
Correct answer: Anyone could extract the API key from the website or app
Keep the key in an environment variable on your server.
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 →