# Schedule function to extract data instead of stream

**URL:** <http://forum.companieshouse.gov.uk/t/schedule-function-to-extract-data-instead-of-stream/6860>\
**Category:** API Question\
**Created:** [September 20, 2023, 1:05pm UTC](http://forum.companieshouse.gov.uk/t/schedule-function-to-extract-data-instead-of-stream/6860 "2023-09-20T13:05:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![buracant](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/buracant/32/1531_2.png) [@buracant](http://forum.companieshouse.gov.uk/u/buracant)\
**Post date:** [September 20, 2023, 1:05pm UTC](http://forum.companieshouse.gov.uk/t/schedule-function-to-extract-data-instead-of-stream/6860/1 "2023-09-20T13:05:34Z")

</div>

Hello friends,

I have a question, is it possible to extract the data from Companies House, with the latest new companies registered, for example from the last hour, at a time interval, instead of using the Stream?

Because we see that the stream does not always work as it should!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [September 21, 2023, 12:10pm UTC](http://forum.companieshouse.gov.uk/t/schedule-function-to-extract-data-instead-of-stream/6860/2 "2023-09-21T12:10:50Z")

</div>

The streaming API is exactly what you need.  
When you say ‘Because we see that the stream does not always work as it should!’ what EXACTLY do you mean by that?  
If you have a specific issue or error, please report it to us.

---

<div class="post-metadata">

**Author:** ![buracant](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/buracant/32/1531_2.png) [@buracant](http://forum.companieshouse.gov.uk/u/buracant)\
**Post date:** [September 22, 2023, 1:50pm UTC](http://forum.companieshouse.gov.uk/t/schedule-function-to-extract-data-instead-of-stream/6860/3 "2023-09-22T13:50:39Z")

</div>

Hi @MArkWilliams, thanks for your suggestion, I will do it like you mentioned, thanks!
