The Hub API Now Available

The Hub has a database of over 35,000 items related to Scottish independence, covering things such as articles, videos, streams, podcasts, fundraisers & events. In addition, there are almost 400 groups including local Yes groups, political parties, blogs & think-tanks.

The core idea of the Hub was to collate as much content as possible regarding Scottish independence & Scottish politics, making it easier for people to stay up to date with what is happening. It also allows a place to comment & give opinion on what you've read, seen & heard.

In addition, I wanted to make it as easy as possible to get that information back out there. There is very little point in collating information if there is no effective means of distributing it. The Hub has a number of ways of doing this:

  • Using the "share" button in the app & website to share on other social media sites
  • Using scripts the Hub has developed to embed posts, timelines & events on your own website
  • The creation of an easy to use app that gives enough of a brief outline of what each item of content is, to generate discussion in the "real world" (e.g a quick skim over your timeline on the Hub could lead to asking someone if they "had seen what the Tories did the other day, with the Repeal Bill").

As you can see from this post on the Hub, embedding posts can be a great way to catch someones eye to the content you are showing (and is very easy to do), however these scripts are limited in that they are only available for a few select areas.

The best way to get information out there is to open up the The Hub API to the public, allowing anyone who wishes to, to interrogate it to get the information they want, and displaying that information in a way that suits them.

You can display content by group (filtered to just show one specific area such as media), you could list events happening in a specific area, you can show upcoming livestreams and embed the stream on your website when it goes live, you could show all content that contains the word #indyref2.

Maybe you want to help people find their nearest Yes group? You can do that too!

All of the information contained in API results is "live", so every time you query it you're getting the most up to date information. It's intentionally been kept simple, with no need to "swap authentication tokens", no rate limiting & no requirement to get additional permissions from users. All that is required is to call each query with a valid API key which you can get by emailing

For further information regarding the API, please see the Developer API page on The Hub.

Please support The Hub by become a Patron & making a monthly donation. With your help we can unlock the app's potential and help bring more voters over to Yes.


Creator of The Hub, social media platform promoting Scottish Independence.

1 thought on “The Hub API Now Available”

Leave a Reply

Your email address will not be published. Required fields are marked *