# API creation

**URL:** <https://community.n8n.io/t/api-creation/33855>\
**Category:** Questions\
**Tags:** rest-api\
**Created:** [December 5, 2023, 5:27pm UTC](https://community.n8n.io/t/api-creation/33855 "2023-12-05T17:27:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibault](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thibault/32/23467_2.png) [@Thibault](https://community.n8n.io/u/Thibault)\
**Post date:** [December 5, 2023, 5:27pm UTC](https://community.n8n.io/t/api-creation/33855/1 "2023-12-05T17:27:49Z")

</div>

Hello everybody  
I’m not professional but I love to use this tool, this time I would like to send datas via an url, so that an external program can read this datas every day and import them.  
The software wants json, it makes an “API call” and I should give him an url.  
I have ordered my datas and transformed them but I don’t know how to create the url ?  
Sorry I have no knowledges I’m just searching on the web.

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

Here is my workflow

---

<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:** [December 5, 2023, 5:27pm UTC](https://community.n8n.io/t/api-creation/33855/2 "2023-12-05T17:27:50Z")

</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:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [December 6, 2023, 9:13am UTC](https://community.n8n.io/t/api-creation/33855/3 "2023-12-06T09:13:03Z")

</div>

Hey @Thibault,

Just to check, you want to call a url then have n8n return the result from your workflow? If that is the case you will need to add a webhook node to your workflow and that will give you the url you can call. Something like the below will do the job and will result in a json array being returned when you visit the webhook url.

---

<div class="post-metadata">

**Author:** ![Thibault](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thibault/32/23467_2.png) [@Thibault](https://community.n8n.io/u/Thibault)\
**Post date:** [December 6, 2023, 9:51pm UTC](https://community.n8n.io/t/api-creation/33855/4 "2023-12-06T21:51:45Z")

</div>

Hey @Jon ! Thar’s really great !! Thanks for your quick answser, it works pefectly. I didn’t know that a this webhook node could do that. In my mind it has always been a trigger. Thanks for your advice !

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [December 7, 2023, 5:08pm UTC](https://community.n8n.io/t/api-creation/33855/5 "2023-12-07T17:08:45Z")

</div>

Hey @Thibault,

I guess it is a trigger really, You are calling the webhook url and that is triggering the workflow.

---

<div class="post-metadata">

**Author:** ![Thibault](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thibault/32/23467_2.png) [@Thibault](https://community.n8n.io/u/Thibault)\
**Post date:** [December 8, 2023, 8:56am UTC](https://community.n8n.io/t/api-creation/33855/6 "2023-12-08T08:56:49Z")

</div>

You are right @Jon I just begin to understand how webhooks work 😇

---

<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:** [December 15, 2023, 8:56am UTC](https://community.n8n.io/t/api-creation/33855/7 "2023-12-15T08:56:52Z")

</div>

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