# Libretime API V1 unreachable when there is no scheduled show

**URL:** <https://discourse.libretime.org/t/libretime-api-v1-unreachable-when-there-is-no-scheduled-show/1350>\
**Category:** Get Help\
**Created:** [October 24, 2022, 8:19pm UTC](https://discourse.libretime.org/t/libretime-api-v1-unreachable-when-there-is-no-scheduled-show/1350 "2022-10-24T20:19:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor-zorro](https://avatars.discourse-cdn.com/v4/letter/v/ecccb3/32.png) [@victor-zorro](https://discourse.libretime.org/u/victor-zorro)\
**Post date:** [October 24, 2022, 8:19pm UTC](https://discourse.libretime.org/t/libretime-api-v1-unreachable-when-there-is-no-scheduled-show/1350/1 "2022-10-24T20:19:05Z")

</div>

Hi there,

I am running into a weird issue, and, probably I am missing something.  
What I want to do? I want to use the API call to start recording of a live show and create an automated ON-AIR-LIGHT.  
I do this in Node-Red on a separate machine. Basically, I wrote a function node to read the API, and decide if there is a live show or not.  
If on air, recording starts, when of air, recording stops.

There is little documentation on the api, But when music is playing through a scheduled show, the api works, when the show is finished, the api does not work. Also not when I have a live input on the master input, or live input. (I tested both)

**Here is the api I use:**  
[https://libretime.example.com/api/api-action/format/json/api\_key/XXXXXX](https://libretime.example.com/api/api-action/format/json/api_key/XXXXXX)  
converted for me to:

-my-local-server-ip-/api/on-air-light/format/json/api\_key/Mysupersecretapikeyfromtheconfigfile

So, when there is a scheduled event running API works, when there is no scheduled event, API does not work.

It is a pity, because I would also like to make an ON AIR light, and A LIVE Light.

Any help or direction would be highly appreciated!

Thanks,  
Vincent
