Please be aware that you are viewing our bleeding edge unstable documentation. Unless you wanted to view the bleeding edge (and possibly unstable) documentation, we recommend you use our stable docs.

Go to Ably's stable canonical documentation »

I know what I'm doing, let me see the bleeding edge docs »

You are viewing our bleeding edge unstable documentation. We recommend you use our stable documentation »
Fork me on GitHub

Live Examples

Coindesk – bitcoin prices live stream

CoinDesk provides current pricing for Bitcoin. This data is available for free on their website. Using API Streamer, it’s easy to access this data as a realtime stream. View the documentation for this product on Ably Hub to learn how to implement this yourself.

Live Demo:

Open Weather News – a live stream of weather related data

OpenWeatherMap provides live weather data for almost any location over the world. This data is available for free on their website. Using API Streamer, it’s easy to access this data as a realtime stream. View the documentation for this product on Ably Hub to learn how to implement this yourself.

Live Demo:

City:

Bitflyer – bitcoin prices live stream

Bitflyer provides current pricing for Bitcoin. This data is available for free on their website. Using API Streamer, it’s easy to access this data as a realtime stream. View the documentation for this product on Ably Hub to learn how to implement this yourself.

Live Demo:

BBC News – a live stream of the latest news articles

The British Broadcasting Corporation is a British public service broadcaster. Their latest news is available for free on their website. Using API Streamer, it’s easy to access this data as a realtime stream. View the documentation for this product on Ably Hub to learn how to implement this yourself.

Live Demo:

Watch this space for latest news as it’s updated by BBC

Hacker News – a live stream of the latest tech and startup links submitted on HN

HackerNews is a social news website focusing on computer science and entrepreneurship. In general, content that can be submitted is defined as “anything that gratifies one’s intellectual curiosity”. Using API Streamer, it’s easy to access this data as a realtime stream. View the documentation for this product on Ably Hub to learn how to implement this yourself.

Live Demo:

Watch this space for latest news as links are submitted on HackerNews

Transport for London

TFL publishes information such as arrivals at stations and existing disruptions into the Ably Hub. Using the Ably API Streamer, you can trivially subscribe to this data for free. See the example below:

Station:
Due Destination Platform Line

Code example

Subscribing to a data stream product requires the producer and product identifier, and then the channel name. In the example below:

let ably = new Ably.Realtime('YOUR_API_KEY');
let channelName = '[product:ably-tfl/tube]tube:northern:940GZZLUEUS:arrivals';
let channel = ably.channels.get(channelName);
channel.subscribe((msg) => {
  /* station update in msg */
});

Back to top