# Curl command to list all topics in Lenses 6.0

**URL:** <https://ask.lenses.io/t/curl-command-to-list-all-topics-in-lenses-6-0/355>\
**Category:** Lenses\
**Created:** [April 14, 2025, 9:51am UTC](https://ask.lenses.io/t/curl-command-to-list-all-topics-in-lenses-6-0/355 "2025-04-14T09:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james1985](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@james1985](https://ask.lenses.io/u/james1985)\
**Post date:** [April 14, 2025, 9:51am UTC](https://ask.lenses.io/t/curl-command-to-list-all-topics-in-lenses-6-0/355/1 "2025-04-14T09:51:00Z")

</div>

What’s the curl command to list all the topics for connected Kafka clusters in Lenses 6.0?

---

<div class="post-metadata">

**Author:** ![guillaume.ayme](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/guillaume.ayme/32/64_2.png) [@guillaume.ayme](https://ask.lenses.io/u/guillaume.ayme)\
**Post date:** [April 14, 2025, 9:53am UTC](https://ask.lenses.io/t/curl-command-to-list-all-topics-in-lenses-6-0/355/2 "2025-04-14T09:53:02Z")

</div>

As of today, you’ll need to query each environment for their topics individually. An endpoint to query at the global level will be created soon. `datasets` is how Lenses refers to `topics`

In the meantime, query each environment (in example below, the environment is called “`demo`”)

`curl http://YOUR_LENSES_HOST:9991/api/v1/environments/demo/proxy/api/v1/datasets?pageSize=1 -H 'Authorization: Bearer sa_key_PsfmWOcph3W3dpoT_lQ13lrqAZJH4DJpaz4WMrSHxxxxx'`

If you get  
`zsh: no matches found:` error, just make sure you’re using the right shell and change accordingly (I’ll be because of the ? character in the url)

```auto
> sh
> curl http://YOUR_LENSES_HOST:9991/api/v1/environments/demo/proxy/api/v1/datasets?pageSize=1 -H 'Authorization: Bearer sa_key_PsfmWOcph3W3dpoT_lQ13lrqAZJH4DJpaz4WMrSHxxxxx'

```
