# Calling /transcoders/{id}/recordings right after finishing recording gives empty array, returns results some times with delay

**URL:** <https://community.wowza.com/t/calling-transcoders-id-recordings-right-after-finishing-recording-gives-empty-array-returns-results-some-times-with-delay/53873>\
**Category:** Wowza Video (Formerly Streaming Cloud)\
**Tags:** recording\
**Created:** [August 28, 2019, 5:41pm UTC](https://community.wowza.com/t/calling-transcoders-id-recordings-right-after-finishing-recording-gives-empty-array-returns-results-some-times-with-delay/53873 "2019-08-28T17:41:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaheer\_Shahab](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Shaheer\_Shahab](https://community.wowza.com/u/Shaheer_Shahab)\
**Post date:** [August 28, 2019, 5:41pm UTC](https://community.wowza.com/t/calling-transcoders-id-recordings-right-after-finishing-recording-gives-empty-array-returns-results-some-times-with-delay/53873/1 "2019-08-28T17:41:18Z")

</div>

Is there a way i could check whether or not a recording is available against a transcoder right after i finish recording? Or if i have to add a delay how much of delay should i add to reliably fetch recordings against a transcoder?

To give you some background, I’m using Wowza Cloud REST API to record a live stream and right after it finishes pick up the recordings created.

In my experience right after i stop recording, when i try to fetch recordings against that transcoder (using /transcoders/{id}/recordings), i get empty array. However if i wait for a little while i start getting recordings.

Problem is there’s no certain delay that has worked for me so far. I have seen that depending on the size of the recording delay adds up.

Hoping for someone to help me.

---

<div class="post-metadata">

**Author:** ![Mac\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/mac_hill/32/434_2.png) [@Mac\_Hill](https://community.wowza.com/u/Mac_Hill)\
**Post date:** [October 21, 2019, 5:23pm UTC](https://community.wowza.com/t/calling-transcoders-id-recordings-right-after-finishing-recording-gives-empty-array-returns-results-some-times-with-delay/53873/2 "2019-10-21T17:23:55Z")

</div>

Hello Shaheer,

You can poll the recording conversion status via API after the transcoder is stopped.

[https://sandbox.cloud.wowza.com/api/1.3/docs?locale=en#operation/showRecordingState](https://sandbox.cloud.wowza.com/api/1.3/docs?locale=en#operation/showRecordingState)

This will provide you with the following states:  
“uploading” “converting” “removing” “completed” “failed”

The time it takes to get to a “completed” state depends on the length of the event. So, in your case, polling at a 1 minute interval may be sufficient.

I hope this helps.

Regards,

Mac
