# Is there any way to Stop Stream using Wowza Engine Rest APIs?

**URL:** <https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183>\
**Category:** Wowza Developer Dojo\
**Created:** [October 24, 2018, 4:01pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183 "2018-10-24T16:01:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naveen\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Naveen\_Kumar1](https://community.wowza.com/u/Naveen_Kumar1)\
**Post date:** [October 24, 2018, 4:01pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/1 "2018-10-24T16:01:37Z")

</div>

How can we stop Stream using Wowza Engine Rest API ?

If there is no such way then how to stop it using Wowza JAVA APIs ?

I am starting my stream using Wowza GoCoder App.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 24, 2018, 4:04pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/2 "2018-10-24T16:04:43Z")

</div>

Yes @Naveen Kumar, you can disconnect the stream through the Engine REST API.

After that, you have the choice to delete it. Here are the the various ways to query the REST API:

[https://www.wowza.com/docs/stream-management-query-examples#disconnectstreamfile](https://www.wowza.com/docs/stream-management-query-examples#disconnectstreamfile)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 24, 2018, 4:06pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/3 "2018-10-24T16:06:20Z")

</div>

Please also refer to the left nav bar where you see this doc highlighted and you will see other docs for API query examples.

---

<div class="post-metadata">

**Author:** ![Menno\_Prakken](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@Menno\_Prakken](https://community.wowza.com/u/Menno_Prakken)\
**Post date:** [October 24, 2018, 4:10pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/4 "2018-10-24T16:10:38Z")

</div>

Stop the application **testlive** :

```auto
curl -X PUT --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/stop

```

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 24, 2018, 5:03pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/5 "2018-10-24T17:03:13Z")

</div>

Thanks @Menno Prakken!

---

<div class="post-metadata">

**Author:** ![Naveen\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Naveen\_Kumar1](https://community.wowza.com/u/Naveen_Kumar1)\
**Post date:** [October 25, 2018, 3:13pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/6 "2018-10-25T15:13:19Z")

</div>

I need to stop a particular Stream. Your above command will stop the application and not a particular stream. Anything else u can suggest ?

---

<div class="post-metadata">

**Author:** ![Naveen\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Naveen\_Kumar1](https://community.wowza.com/u/Naveen_Kumar1)\
**Post date:** [October 25, 2018, 9:24am UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/7 "2018-10-25T09:24:15Z")

</div>

This will work if I am using MediaCaster, I am not using Mediacaster so creating StreamFile won’t help. Have already check this doc before.

---

<div class="post-metadata">

**Author:** ![Naveen\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Naveen\_Kumar1](https://community.wowza.com/u/Naveen_Kumar1)\
**Post date:** [October 25, 2018, 9:24am UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/8 "2018-10-25T09:24:32Z")

</div>

Any other solution you can suggest ?

---

<div class="post-metadata">

**Author:** ![Naveen\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Naveen\_Kumar1](https://community.wowza.com/u/Naveen_Kumar1)\
**Post date:** [October 25, 2018, 3:13pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/9 "2018-10-25T15:13:20Z")

</div>

This will stop the application and not a particular Stream. I want to stop a particular stream using Rest API or Java API.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 25, 2018, 3:14pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/10 "2018-10-25T15:14:53Z")

</div>

Let me check with the engineers and I will let you know shortly.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 25, 2018, 5:46pm UTC](https://community.wowza.com/t/is-there-any-way-to-stop-stream-using-wowza-engine-rest-apis/52183/11 "2018-10-25T17:46:48Z")

</div>

Hello @Naveen Kumar, I spoke with our engineers and we only have the workflow to stop a stream through the Engine REST API using MediaCaster. I know you said you are not using that, however.

BUT, there was a suggestion to try this:

1. You would have to customize this example code so that you can disconnect the RTMP publisher based on your own trigger (for example, as an HTTP request).

[https://www.wowza.com/docs/how-to-monitor-bandwidth-of-published-streams-modulelimitpublishedstreambandwidth](https://www.wowza.com/docs/how-to-monitor-bandwidth-of-published-streams-modulelimitpublishedstreambandwidth)
