# API Scope for pulling data explorer queries

**URL:** https://meta.discourse.org/t/api-scope-for-pulling-data-explorer-queries/174738
**Category:** Feature
**Tags:** data-explorer, rest-api, completed
**Created:** [January 1, 2021, 11:30am UTC](https://meta.discourse.org/t/api-scope-for-pulling-data-explorer-queries/174738 "2021-01-01T11:30:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gingerman](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gingerman](https://meta.discourse.org/u/gingerman)
#### Post date: [January 1, 2021, 11:30am UTC](https://meta.discourse.org/t/api-scope-for-pulling-data-explorer-queries/174738/1 "2021-01-01T11:30:17Z")

</div>

API responses for [Data explorer](https://meta.discourse.org/t/32566?silent=true) queries are only available when an API key is generated with global scope.

Tried with different scope options existing now (read, read\_lists) but it didnt work with them.

It would be great if we have limited API key scope created for this operation.

---

<div class="post-metadata">

### Author: ![Hooksmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hooksmith/32/142826_2.png) [@Hooksmith](https://meta.discourse.org/u/Hooksmith)
#### Post date: [April 7, 2021, 4:25pm UTC](https://meta.discourse.org/t/api-scope-for-pulling-data-explorer-queries/174738/2 "2021-04-07T16:25:23Z")

</div>

I second this feature request, was surprised it doesn’t exist yet!

We have several teams that invoke reports from an external source (e.g. spreadsheet) and they want to be able to do that without putting overly sensitive secrets in the external tooling.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [March 4, 2022, 6:32pm UTC](https://meta.discourse.org/t/api-scope-for-pulling-data-explorer-queries/174738/3 "2022-03-04T18:32:51Z")

</div>

> [@gingerman](#):
>
> API responses for [Data explorer](https://meta.discourse.org/t/32566?silent=true) queries are only available when an API key is generated with global scope.

A data\_explorer scope was recently added. It allows you to make `POST` requests to the `/queries/:id/run` route.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [March 4, 2022, 10:11pm UTC](https://meta.discourse.org/t/api-scope-for-pulling-data-explorer-queries/174738/4 "2022-03-04T22:11:55Z")

</div>


