# Fetching content failed, expected apiKey to be defined instead got: null

**URL:** <https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235>\
**Category:** Technical Questions\
**Tags:** visual-editor, react, api, nextjs\
**Created:** [June 3, 2022, 10:54am UTC](https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235 "2022-06-03T10:54:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [June 3, 2022, 10:54am UTC](https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235/1 "2022-06-03T10:54:38Z")

</div>

Hi there, I’m facing an error while try to make a new page in next.js. The error is from [builder.io](http://builder.io).  
Can you please explain what this error mean. because I tried a lot but didn’t find any solution.

**Screenshots or video link**  
\*

 ![error](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/3/32c453e718ee05c55129267f36fbbdc889049f75.png)  
\*

**Code stack you are integrating Builder with**  
_NextJS, react_

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [June 3, 2022, 12:18pm UTC](https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235/2 "2022-06-03T12:18:35Z")

</div>

Hi Anupama!  
I hope you’re doing well.

Could you please, confirm that you have configured the Builder Public API key on your next.js project pages directory?

For creating a new page and configuring dynamic routing in next.js, you can find help at [Setting up visual drag-and-drop page building with Next.js](https://www.builder.io/blog/visual-next-js)

 ![Screenshot 2022-06-03 at 5.40.16 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/d/d0e4bada4324730c7bd10343f0c1f15654257b14.jpeg)

---

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [June 6, 2022, 7:14am UTC](https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235/3 "2022-06-06T07:14:13Z")

</div>

Thank you so much @manish-sharma, It worked 😇.

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [June 6, 2022, 8:31am UTC](https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235/4 "2022-06-06T08:31:24Z")

</div>

Hi @anupama.sharmaa,

We are really glad to hear that.

Feel free to reach out to us for any further questions. Thank you!

---

<div class="post-metadata">

**Author:** ![marcelxv](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@marcelxv](https://forum.builder.io/u/marcelxv)\
**Post date:** [January 12, 2024, 10:16pm UTC](https://forum.builder.io/t/fetching-content-failed-expected-apikey-to-be-defined-instead-got-null/2235/5 "2024-01-12T22:16:53Z")

</div>

Facing same issue, but already setup keys in builder.init.
