API Streamer examples using Open Data in the Ably Hub

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:

  • 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 */
});

Ready to get started?

Our free plan includes 3m messages per month, 100 peak connections, 100 peak channels, and loads of features.