# Discourse Data Explorer SQL Query

**URL:** https://meta.discourse.org/t/discourse-data-explorer-sql-query/357351
**Category:** Support
**Tags:** data-explorer
**Created:** [March 15, 2025, 1:26am UTC](https://meta.discourse.org/t/discourse-data-explorer-sql-query/357351 "2025-03-15T01:26:40Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![JohnMcDonald](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@JohnMcDonald](https://meta.discourse.org/u/JohnMcDonald)
#### Post date: [March 15, 2025, 4:39pm UTC](https://meta.discourse.org/t/discourse-data-explorer-sql-query/357351/3 "2025-03-15T16:39:00Z")

</div>

I had to try a lot of different alternatives, but this worked:

````response
                         headers=headers, data={'params': '{\"topic_id\": "398"}'})```

So, the answer is a combination of that prior post (which said you have to escape the quotes when you are sending from a Windows machine and Arkshine's post which says it needs to be passed as data and not as a params kwarg. What I find odd though, is I thought the whole point of the params kwarg in the Python requests module was to pass parameter information.
````

---

_[View the full topic](https://meta.discourse.org/t/discourse-data-explorer-sql-query/357351)._
