# Make requests to the Discourse API with Zapier

**URL:** <https://meta.discourse.org/t/make-requests-to-the-discourse-api-with-zapier/122126>\
**Category:** Integrations\
**Tags:** rest-api, how-to, tasks, zapier\
**Created:** [July 4, 2019, 11:40pm UTC](https://meta.discourse.org/t/make-requests-to-the-discourse-api-with-zapier/122126 "2019-07-04T23:40:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Post date:** [December 2, 2019, 6:53pm UTC](https://meta.discourse.org/t/make-requests-to-the-discourse-api-with-zapier/122126/6 "2019-12-02T18:53:49Z")

</div>

Is there a reason why this works for me when I do it in Zapier, but I get an empty response when I try to do my own `fetch` request?

I’m using [ObservableHQ](https://observablehq.com/), but the idea is the same. Shouldn’t this work?:

```plaintext
fetch("https://mycommunity.com/g.json", {
  headers: {
    "Content-Type": "multipart/form-data",
    "Api-Username": Secret("DISCOURSE_USERNAME"),
    "Api-Key": Secret("DISCOURSE_KEY")
  },
  method: "GET",
  mode: "no-cors"
})

```

---

_[View the full topic](https://meta.discourse.org/t/make-requests-to-the-discourse-api-with-zapier/122126)._
