# Fetch API Request

**URL:** <https://community.n8n.io/t/fetch-api-request/9130>\
**Category:** Questions\
**Tags:** node\
**Created:** [November 13, 2021, 12:47pm UTC](https://community.n8n.io/t/fetch-api-request/9130 "2021-11-13T12:47:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![82rocker](https://avatars.discourse-cdn.com/v4/letter/8/ee7513/32.png) [@82rocker](https://community.n8n.io/u/82rocker)\
**Post date:** [November 13, 2021, 12:47pm UTC](https://community.n8n.io/t/fetch-api-request/9130/1 "2021-11-13T12:47:37Z")

</div>

Hi,

I’m new to the N8N and automation world, would you please guide how we could make fetch API calls from n8n, we are using a service in our flow that has their API accessible through fetch function, here is a code sample from their API’s.

```auto
fetch("apiurl.com", {
"headers": {
"accept": "application/json, text/plain, / ",
"authorization": "ourpassword",
"x-requested-with": "XMLHttpRequest"
},
"body": null,
"method": "GET"
});

```

Thanks.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 13, 2021, 1:13pm UTC](https://community.n8n.io/t/fetch-api-request/9130/2 "2021-11-13T13:13:55Z")

</div>

That can be done with the HTTP Request node in n8n. You can find the documentation [here](https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/#example-usage).

The parameters on the node are named identically as in your example above.
