# Any way to return what template is active on layer?

**URL:** <https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097>\
**Category:** FAQ\
**Created:** [January 27, 2025, 12:28am UTC](https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097 "2025-01-27T00:28:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Falkiner](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@Falkiner](https://casparcgforum.org/u/Falkiner)\
**Post date:** [January 27, 2025, 12:28am UTC](https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097/1 "2025-01-27T00:28:43Z")

</div>

I was looking at AMCP Documentation, and noticed that we have CG INFO, but I’ve tried using and doesn’t return anything.

I’m creating some automations, and would be good to know if the Template is active already, so I don’t CG PLAY again.

There’s some way to do this?

---

<div class="post-metadata">

**Author:** ![rrebuffo](https://casparcgforum.org/user_avatar/casparcgforum.org/rrebuffo/32/165_2.png) [@rrebuffo](https://casparcgforum.org/u/rrebuffo)\
**Post date:** [January 27, 2025, 2:22am UTC](https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097/2 "2025-01-27T02:22:22Z")

</div>

`INFO 1` will return all the info on the producers of channel 1

---

<div class="post-metadata">

**Author:** ![Falkiner](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@Falkiner](https://casparcgforum.org/u/Falkiner)\
**Post date:** [January 27, 2025, 2:54pm UTC](https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097/3 "2025-01-27T14:54:18Z")

</div>

Thanks! That definetly works, I’m build my automations using [GitHub - SuperFlyTV/casparcg-connection: node.js Javascript/TypeScript library for CasparCG connection and commands.](https://github.com/SuperFlyTV/casparcg-connection) but when I try to use infoChannel, it doesnt get any response.

Do you have any ideas on how to retrieve the INFO 1? Or how would you do it?

* * *

Just in case anyone need

```auto
const caspar = new CasparCG({host: '127.0.0.1', port:5250})
const info = await caspar.infoChannel({
            channel:1
        })
        
        console.log('------------')
        console.log(info.request)
        return info.request

```

I wasn’t using .request at the end

But I would still appreciate other ways to retrieve data from Caspar Server in case anyone knows

---

<div class="post-metadata">

**Author:** ![rrebuffo](https://casparcgforum.org/user_avatar/casparcgforum.org/rrebuffo/32/165_2.png) [@rrebuffo](https://casparcgforum.org/u/rrebuffo)\
**Post date:** [January 27, 2025, 6:59pm UTC](https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097/4 "2025-01-27T18:59:28Z")

</div>

Have you tried just `caspar.info({ channel: 1 })`?

---

<div class="post-metadata">

**Author:** ![Falkiner](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@Falkiner](https://casparcgforum.org/u/Falkiner)\
**Post date:** [January 31, 2025, 6:05pm UTC](https://casparcgforum.org/t/any-way-to-return-what-template-is-active-on-layer/7097/5 "2025-01-31T18:05:46Z")

</div>

.info doesn’t work with the channel parameter, but that’s fine, since I was able to use infoChannel! 🙂
