# Access reports JSON data via Pipedream

**URL:** https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367
**Category:** Development
**Tags:** rest-api
**Created:** [July 27, 2021, 9:55pm UTC](https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367 "2021-07-27T21:55:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![paigen11](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paigen11/32/229055_2.png) [@paigen11](https://meta.discourse.org/u/paigen11)
#### Post date: [July 27, 2021, 9:55pm UTC](https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367/1 "2021-07-27T21:55:49Z")

</div>

Hello,

I’m trying to pull Discourse report info via Pipedream so I can send it to Segment for analytics purposes.

The Pipedream integration with Discourse works when I run the starting query of `https://${auths.discourse.domain}/admin/users/list/active.json` with my credentials. As soon as I try to run another query (which works in the browser, I might add) like `https://${auths.discourse.domain}/admin/reports/signups.json`, Pipedream throws back a 404 with the error `The requested URL or resource could not be found`.

I know the resource exists (I can paste the same URL into the browser and it works), so can you help me figure out why Pipedream can’t access these reports?

Any help is much appreciated.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 27, 2021, 10:31pm UTC](https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367/2 "2021-07-27T22:31:37Z")

</div>

> [@paigen11](#):
>
> I know the resource exists (I can paste the same URL into the browser and it works), so can you help me figure out why Pipedream can’t access these reports?

Is it passing your API username and key via the correct headers? See [Discourse API Documentation](https://meta.discourse.org/t/discourse-api-documentation/22706), perhaps?

---

<div class="post-metadata">

### Author: ![paigen11](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paigen11/32/229055_2.png) [@paigen11](https://meta.discourse.org/u/paigen11)
#### Post date: [July 28, 2021, 1:31pm UTC](https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367/3 "2021-07-28T13:31:58Z")

</div>

I was, but I had generated an API key for all users, and this morning when I tried generating one tied to my admin username things began working. 😅

Maybe it’s worth noting that in the docs somewhere - or in the post about reverse-engineering undocumented API endpoints? I thought for sure I was doing something wrong by the end of yesterday, but I couldn’t see any mention in the docs of different permission levels for certain API routes versus others.

Thanks for the help - I appreciate it!
