# Streaming API compression

**URL:** <http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499>\
**Category:** Uncategorized\
**Created:** [December 31, 2020, 5:41pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499 "2020-12-31T17:41:42Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [December 31, 2020, 5:41pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/1 "2020-12-31T17:41:42Z")

</div>

I’ve been testing the streaming API and have a few queries.

1. Using the following endpoint: **[stream.companieshouse.gov.uk/companies](http://stream.companieshouse.gov.uk/companies)** , is it possible to simply subscribe to updates for specific companies rather than receiving all updates to the CoHo database?
2. If the above is not possible, what is the estimated bandwidth usage for just the companies endpoint per month/quarter/year?
3. Nothing is mentioned in the documentation about compressing output, nevertheless, I supplied the following header: \*_Accept-Encoding: br;q=1.0, gzip;q=0.8, ;q=0.1_ however I still received a plain chunked text response. What headers do we need to apply to ensure compressed output from the streaming endpoints if at all supported?  
If there is no functionality to filter the updates we get from the streaming endpoints, surely compression should be implemented to reduce on bandwidth waste.

---

<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:** [January 1, 2021, 1:45am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/2 "2021-01-01T01:45:06Z")

</div>

No, the stream contains all updates, BUT you only need to process the ones you are interested in of course.  
We have no estimated for bandwidth usage. If you require that, you would have to do that yourself.  
There is no compression on the streaming API, that is why it is not mentioned.

---

<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:** [January 3, 2021, 3:42pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/3 "2021-01-03T15:42:02Z")

</div>

Thanks for the reply.  
The only way I can process the updates I am interested in is by processing all the updates in order to be able to filter out the ones I am interested in. Over 95% (and that is being conservative) of the bandwidth consumed will be for data to be discarded. It’d go a long way to reduce that waste if compression is enabled on the stream, even if it was an opt-in via the headers. Is this the correct forum to request enabling of compression (and / or filtering)?

---

<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:** [January 4, 2021, 2:27pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/4 "2021-01-04T14:27:38Z")

</div>

There are no plans to enable compression or filtering on the streaming API  
If bandwidth is an issue for you, we do have other services including a number of bulk products and the Follow service on CHS.

---

<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:** [January 4, 2021, 6:54pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/5 "2021-01-04T18:54:36Z")

</div>

Bandwidth is ‘not an issue’ for me per-se, and I know (if you are a developer) you understand what my point is.  
Does the follow service on CHS have an API (or is it just the email fired off)?

---

<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:** [January 4, 2021, 7:53pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/6 "2021-01-04T19:53:25Z")

</div>

Just an email fired off.

---

<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:** [January 4, 2021, 8:26pm UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/7 "2021-01-04T20:26:36Z")

</div>

So CH have the API but have simply not exposed it to the public aside from it’s own service, I am correct?  
Is there anything that bars me from setting up a publicly accessible (and chargeable) filtering API service (feeding off CH’s http streaming endpoints)?

---

<div class="post-metadata">

**Author:** ![fgenuardi](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/f/ce7236/32.png) [@fgenuardi](http://forum.companieshouse.gov.uk/u/fgenuardi)\
**Post date:** [March 29, 2021, 8:05am UTC](http://forum.companieshouse.gov.uk/t/streaming-api-compression/3499/9 "2021-03-29T08:05:32Z")

</div>

> [@phillip](#):
>
> So CH have the API but have simply not exposed it to the public aside from it’s own service, I am correct?  
> Is there anything that bars me from setting up a publicly accessible (and chargeable) filtering API service (feeding off CH’s http streaming endpoints)?

I have the same problem about filtering updates from Streaming.

@MArkWilliams Can we have more information about that?  
Is there any intention of integrating the follow service via streaming in addition to having it via email?

The process that is present now is very complex and it requires a lot of resources

Please, I wait your answer  
Thanks
