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

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:

  • The producer is TFL
  • The product is Tube
  • The channel is tube:northern:940GZZLUEUS:arrivals which corresponds to Euston Underground station NAPTAN code, for the Northern Line. Find more station NAPTAN codes.
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 */
});