# Connecting to the external API

**URL:** <https://community.n8n.io/t/connecting-to-the-external-api/33237>\
**Category:** Questions\
**Tags:** external-api\
**Created:** [November 21, 2023, 5:03pm UTC](https://community.n8n.io/t/connecting-to-the-external-api/33237 "2023-11-21T17:03:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![denverfix](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/denverfix/32/16202_2.png) [@denverfix](https://community.n8n.io/u/denverfix)\
**Post date:** [November 21, 2023, 5:03pm UTC](https://community.n8n.io/t/connecting-to-the-external-api/33237/1 "2023-11-21T17:03:22Z")

</div>

Hello, friends,

I have an API for a service similar to OpenAI. I’d like to use their API.

What is the best way to connect their api with n8n?

The API only has a name and code.

Thank you all in advance.

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [November 21, 2023, 5:03pm UTC](https://community.n8n.io/t/connecting-to-the-external-api/33237/2 "2023-11-21T17:03:23Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [November 22, 2023, 1:56pm UTC](https://community.n8n.io/t/connecting-to-the-external-api/33237/3 "2023-11-22T13:56:35Z")

</div>

Hi @denverfix, you can use n8n’s HTTP Request node to send generic HTTP Requests to APIs:

> **[HTTP Request | n8n Docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/)**
>
> Documentation for the HTTP Request node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 20, 2024, 1:56pm UTC](https://community.n8n.io/t/connecting-to-the-external-api/33237/4 "2024-02-20T13:56:43Z")

</div>

Closed on February 20, 2024, 1:56pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
