# Module 4 Capstone - Invalid or missing API key

**URL:** <https://community.deeplearning.ai/t/module-4-capstone-invalid-or-missing-api-key/883596>\
**Category:** Data I/O and Processing with Python and SQL\
**Tags:** week-module-4, coursera-platform\
**Created:** [November 18, 2025, 6:37pm UTC](https://community.deeplearning.ai/t/module-4-capstone-invalid-or-missing-api-key/883596 "2025-11-18T18:37:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradmg](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@bradmg](https://community.deeplearning.ai/u/bradmg)\
**Post date:** [November 18, 2025, 6:37pm UTC](https://community.deeplearning.ai/t/module-4-capstone-invalid-or-missing-api-key/883596/1 "2025-11-18T18:37:14Z")

</div>

I am unable to load data in Ex 2. I can successfully print an API\_KEY so there is an environment variable, but the request fails and it says that API key is missing or invalid.

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [November 18, 2025, 6:57pm UTC](https://community.deeplearning.ai/t/module-4-capstone-invalid-or-missing-api-key/883596/2 "2025-11-18T18:57:52Z")

</div>

Hi. The cell is working fine on my end. Perhaps you mistyped the variable name. Please check the instructions to confirm. Thanks.

---

<div class="post-metadata">

**Author:** ![bradmg](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@bradmg](https://community.deeplearning.ai/u/bradmg)\
**Post date:** [November 18, 2025, 7:32pm UTC](https://community.deeplearning.ai/t/module-4-capstone-invalid-or-missing-api-key/883596/3 "2025-11-18T19:32:17Z")

</div>

You are right the key works. It was my own error. I forgot the params argument. There isn’t a None placeholder so I overlooked it. Thank you!
