# 数据浏览器有什么变化吗？无法通过 API 获取查询

**URL:** <https://meta.discourse.org/t/has-something-changed-in-the-data-explorer-cant-get-query-via-api/398172>\
**Category:** Support\
**Tags:** data-explorer, rest-api\
**Created:** [2026年三月11日 14:33 UTC](https://meta.discourse.org/t/has-something-changed-in-the-data-explorer-cant-get-query-via-api/398172 "2026-03-11T14:33:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [2026年三月11日 14:33 UTC](https://meta.discourse.org/t/has-something-changed-in-the-data-explorer-cant-get-query-via-api/398172/1 "2026-03-11T14:33:52Z")

</div>

This stopped working two days ago for a hosted customer:

```plaintext

  HTTP_STATUS=$(curl -s -o /tmp/discourse_response.json -w \"%{http_code}\" \
    -X POST \"https://HOSTNAME/admin/plugins/discourse-data-explorer/queries/3/run\" \
    -H \"Content-Type: multipart/form-data;\" \
    -H \"Api-Key: $DISCOURSE_API_KEY\" \
    -H \"Api-Username: $DISCOURSE_API_USER\" \
    -F \"limit=ALL\")

```

I see successful use of that key:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/4/2/c423e3f12139ab318fdba8ba0e9e63b406c7ddf4.png)

It has query-only permissions:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/8/1/b81f2616dfbc9b3caa0034ef462604fb46c3834a.png)

I double-checked that the URL of the query hadn’t changed again by [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576).

Then I generated a new global key and I’m still getting a 400 error.

I don’t know what the problme could be

---

_[View the full topic](https://meta.discourse.org/t/has-something-changed-in-the-data-explorer-cant-get-query-via-api/398172)._
