Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Code Snippet

Using curl:

$ curl http://stackoverflow.hewgill.com:8080/firehose/stackoverflow

or, in a browser, http://stackoverflow.hewgill.com:8080/firehose/stackoverflow.


This "firehose" service repackages the stream provided by the /events service into a form similar to the Twitter Streaming API.

Each event is sent in an individual snippet of JSON. Each snippet is followed by a carriage return (\r) plus one or more newlines (\n). Newlines may be sent periodically between snippets to help keep connections open.

The current average rate of new events from Stack Overflow is less than one per second.

At present, only the stackoverflow event feed is supported. Supporting all SE sites would currently require too many separate API requests to the /events service.

This is mostly intended as a "proof of concept" demonstrating how such an API could be offered; hopefully this sort of streaming service will be available in a future version of the Stack Exchange API.


This streaming service can be used by any HTTP client that can consume a response of indefinite length. The responses have an Access-Control-Allow-Origin: * header which makes this possible to use in a browser.


Greg Hewgill

Please let me know if you are using this service, as I may change things that affect users.


This service is written in Erlang using Mochiweb.

share|improve this question
+1 - Looks awesome. –  Nathan Osman Apr 18 '12 at 5:18
curl does the trick too: curl http://stackoverflow.hewgill.com:8080/firehose/stackoverflow –  russau Apr 18 '12 at 23:27
@russau: Good idea, a single command example is nicer. –  Greg Hewgill Apr 18 '12 at 23:36
@GregHewgill is there any way to get the tags related to the question? –  Sarath Saleem Feb 13 at 15:14
@SarathSaleem: I'm afraid not. The /events service does not return tag information, so a request would need to be made for each question (these can be batched). This is something a client can do if required. –  Greg Hewgill Feb 13 at 17:22

You must log in to answer this question.

Browse other questions tagged .