# Streaming API Query

**URL:** <http://forum.companieshouse.gov.uk/t/streaming-api-query/5588>\
**Category:** Uncategorized\
**Created:** [October 19, 2022, 6:22am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588 "2022-10-19T06:22:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbajaj](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pbajaj](http://forum.companieshouse.gov.uk/u/pbajaj)\
**Post date:** [October 19, 2022, 6:22am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/1 "2022-10-19T06:22:44Z")

</div>

I am new to the CH API’s and trying to learn Streaming API in particular. As per documentation, [https://stream.companieshouse.gov.uk/filings](https://stream.companieshouse.gov.uk/filings) helps to fetch filings on real-time basis. This API has query parameter `timepoint` which helps to create time window to fetch data within that particular window if my understanding is correct. There is no information given what should be the value of this parameter `timepoint`. Can some one help me with the sample request and share more detailed documentation on how to run this API from local setup.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![phillip](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@phillip](http://forum.companieshouse.gov.uk/u/phillip)\
**Post date:** [October 19, 2022, 5:16pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/2 "2022-10-19T17:16:27Z")

</div>

The timepoint is provided in each payload from the API and all streaming API endpoints have their own timepoint. As such, your initial connection is without this parameter. You then store the timepoint from that last payload you receive. If you disconnect from the service (or when you are disconnected every 24 hrs), you then re-connect with the last timepoint that you saved (so that you do not miss any payloads from the stream) otherwise you only get the latest payload.

PS: There is a limit as to how far back the streaming API’s can ‘rewind’ - where the timepoint goes further back than the limit, the stream will be resumed at that limit point

---

<div class="post-metadata">

**Author:** ![pbajaj](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pbajaj](http://forum.companieshouse.gov.uk/u/pbajaj)\
**Post date:** [October 20, 2022, 5:56am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/3 "2022-10-20T05:56:18Z")

</div>

Thanks for the reply. Really appreciate it.  
Here _The timepoint is provided in each payload from the API_ by API you mean streaming API right?  
I am trying to run the streaming API to fetch filing **[https://stream.companieshouse.gov.uk/filings](https://stream.companieshouse.gov.uk/filings)**  
for the first time. So, I am sending it without any **timepoint** parameter value. The API continues to run for a long time without any response.  
So, I am not sure how exactly to use these streaming APIs. What possible and valid timepoint values can be used as query parameters?

---

<div class="post-metadata">

**Author:** ![phillip](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@phillip](http://forum.companieshouse.gov.uk/u/phillip)\
**Post date:** [October 20, 2022, 11:10am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/4 "2022-10-20T11:10:11Z")

</div>

> [@pbajaj](#):
>
> you mean streaming API right

Yes, the streaming API endpoint(s).

> [@pbajaj](#):
>
> The API continues to run for a long time without any response

You need to resolve any connection issues you may have. I can attest to the (streaming) filling API endpoint being ‘alive’ and streaming data. Here are the total payload sizes I have seen in the last 5 hours (from 7am to 12noon) from the filling endpoint

1.58 MB  
2.18 MB  
6.23 MB  
6.52 MB  
6.47 MB

---

<div class="post-metadata">

**Author:** ![ebrian101](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/ebrian101/32/1145_2.png) [@ebrian101](http://forum.companieshouse.gov.uk/u/ebrian101)\
**Post date:** [October 21, 2022, 11:29am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/5 "2022-10-21T11:29:55Z")

</div>

You can use [https://companies.stream/](https://companies.stream/) to see if the streams are alive/active. I made it a simple website to view the streaming APIs.

---

<div class="post-metadata">

**Author:** ![ash](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@ash](http://forum.companieshouse.gov.uk/u/ash)\
**Post date:** [October 21, 2022, 12:08pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/6 "2022-10-21T12:08:37Z")

</div>

That’s really neat. We have no current use for the streaming APIs, so have never really looked into them. Very cool to see them in action like that though.

---

<div class="post-metadata">

**Author:** ![pbajaj](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pbajaj](http://forum.companieshouse.gov.uk/u/pbajaj)\
**Post date:** [November 1, 2022, 8:51am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/7 "2022-11-01T08:51:04Z")

</div>

Thanks everyone for the input. I am able to connect and fetch data from stream API.

---

<div class="post-metadata">

**Author:** ![kartik.patel](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/k/e56c9b/32.png) [@kartik.patel](http://forum.companieshouse.gov.uk/u/kartik.patel)\
**Post date:** [February 27, 2024, 10:50am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-query/5588/9 "2024-02-27T10:50:30Z")

</div>

@pbajaj How did you solve the issue? I am having the same issue “The API continues to run for a long time without any response” FYI @phillip

 ![image](http://discourselive.s3.dualstack.eu-west-1.amazonaws.com/original/2X/d/d0f577a4ad28341af73a75b8031ec3e1857490c0.png)
