# How to create a data explorer query with the APIs?

**URL:** <https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776>\
**Category:** Development\
**Tags:** data-explorer, rest-api\
**Created:** [November 8, 2023, 4:48am UTC](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776 "2023-11-08T04:48:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [November 9, 2023, 3:27pm UTC](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776/7 "2023-11-09T15:27:33Z")

</div>

I think the correct way is the following:

```plaintext
-F 'query[name]=test1234'
-F 'query[sql]=SELECT * FROM topics'

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-data-explorer-query-with-the-apis/284776)._
