# Integration of an API with Netlify website

**URL:** <https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612>\
**Category:** Everything Else\
**Tags:** deployment, netlify-api\
**Created:** [January 31, 2025, 7:21am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612 "2025-01-31T07:21:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves611-haswany](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Yves611-haswany](https://answers.netlify.com/u/Yves611-haswany)\
**Post date:** [January 31, 2025, 7:21am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/1 "2025-01-31T07:21:46Z")

</div>

I am designing a netlify website using contentful as a CMS. I configured and integrated netlify and contentful but now I want to integrate a third API with the Netlify and Contentful API. I added some code to my GitHub repository but I have no idea how to test it to see if it is integrated correctly. How can I do that?

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [January 31, 2025, 9:52am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/2 "2025-01-31T09:52:42Z")

</div>

@Yves611-haswany This is a very open ended question, which is hard to answer.

Are you talking about the site you’ve previously discussed here?  
[https://answers.netlify.com/t/netlify-access-to-contenful/135068](https://answers.netlify.com/t/netlify-access-to-contenful/135068)

Where you’re using the Visual Editor?

I can’t answer regarding a Visual Editor based site, but usually if you had a site connected to a git repository, upon pushing code to the main branch Netlify would automatically perform a rebuild/deployment of the new code.

Can you provide more details that would help others answer?

---

<div class="post-metadata">

**Author:** ![Yves611-haswany](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Yves611-haswany](https://answers.netlify.com/u/Yves611-haswany)\
**Post date:** [January 31, 2025, 10:00am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/3 "2025-01-31T10:00:56Z")

</div>

No. I am not talking about Contentful it is already integrated very well and the visual editor is working very well. I want to integrate another API and I added a code and I need to test the code to see if it is well integrated

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [January 31, 2025, 10:05am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/4 "2025-01-31T10:05:13Z")

</div>

@Yves611-haswany I’m not asking if you’re talking about Contentful, I’m asking if you’re talking about that same site (`codo10.netlitfy.app`)?

I’m also asking that you provide more detail, as I may not be able to help you, but the more detail you already have here, the easier it will be for Netlify’s staff to answer you immediately (instead of them asking questions).

---

<div class="post-metadata">

**Author:** ![Yves611-haswany](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Yves611-haswany](https://answers.netlify.com/u/Yves611-haswany)\
**Post date:** [January 31, 2025, 11:47am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/5 "2025-01-31T11:47:19Z")

</div>

I am working on the same website codo10.netlify.app. I am trying to access a third API to get billing data. I created a netlify environment variable in which I stored the key of the third party API and added code to try to access the data from the API. But I need to test the code I added

---

<div class="post-metadata">

**Author:** ![Yves611-haswany](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Yves611-haswany](https://answers.netlify.com/u/Yves611-haswany)\
**Post date:** [February 5, 2025, 9:44am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/6 "2025-02-05T09:44:14Z")

</div>

I need to visualize how my added code in the GitHub repository integrates the third party API with my Netlify Website? Are there any tools that can help me do this?

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [February 5, 2025, 11:26am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/7 "2025-02-05T11:26:27Z")

</div>

@Yves611-haswany It’s hard to provide suggestions with no visibility or concrete details.

Is your repository public?  
Are you able to point to the code you added?

Seeing what you’re trying to do may help me, (or someone else), point you in the right direction.

---

<div class="post-metadata">

**Author:** ![Yves611-haswany](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@Yves611-haswany](https://answers.netlify.com/u/Yves611-haswany)\
**Post date:** [February 5, 2025, 11:34am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/8 "2025-02-05T11:34:29Z")

</div>

yes it is public. httpps://github.com/yves-haswany/codo5.

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [February 5, 2025, 11:54am UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/9 "2025-02-05T11:54:46Z")

</div>

@Yves611-haswany This repository is from the [Next.js on Netlify Platform Starter](https://github.com/netlify-templates/next-platform-starter).

The `README.md` visible on GitHub includes instructions for **Developing Locally**.

Is that something that you’re doing?

Because that’s how you would traditionally make changes and test them prior to deploying to Netlify.

 ![image](https://global.discourse-cdn.com/netlify/original/3X/0/8/086b86b32048510b7a17a928902fbac370ea2e5a.png)

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [February 5, 2025, 12:52pm UTC](https://answers.netlify.com/t/integration-of-an-api-with-netlify-website/138612/10 "2025-02-05T12:52:45Z")

</div>


