Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Getting Started with Mastodon's Conversations API

· 1 comment · 1,550 words · Viewed ~1,341 times


A threaded conversation. You can see the order in which people have replied to each other - and what posts they are referencing.

The social network service "Mastodon" allows people to publish posts. People can reply to those posts. Other people can reply to those replies - and so on. What does that look like in the API? Here's a quick guide to the concepts you need to know - and some code to help you visualise conversations. When you scroll through the website, you normally see a list of replies. It looks like this: …

Searching online for books in local libraries

· 3 comments · 550 words


List of items matching the search "Song of Achilles" - includes two versions of the book, an audio book, and other work by the author.

This is a mixture of lament and how-to guide. Suppose you've reviewed lots of books. It's pretty easy to generate a link to let people buy the book at Amazon or any other online store. But how do you link to a user's local library? You can't. There is no "search every library in the UK" service. You can search the British Library, but they generally don't deliver to your local town centre. …

What's your API's "Time To 200"?

· 3 comments · 300 words · Viewed ~11,885 times


Scrap of JSON which doesn't say much.

M'colleague Charles has introduced me to the most spectacular phrase - "Time To 200". That's a measurement of the length of time it takes a new user to go from signing up to your API to getting their first HTTP 200 response. Think about the last time you started using a new API... Fill in a tediously long registration form Set up billing in case you go over the free trial limits Wait for a…

Are APIs Elitist?

· 2 comments · 500 words · Viewed ~1,341 times


Binary code displayed on a screen.

(This post written partly to tease my delightful colleague Charles, but also as a way of thinking about user needs.) During a recent Open Data Café, one of the guests made an entirely reasonable point. An API only method of getting data is elitist. Martine Wauben@MHWaubenAlready having my assumptions tested - are APIs elitist? food for thought for me #ODCafe❤️ 2💬 0🔁 011:44 - Sat 10 April 2021 I…

How to track down the original owners of stolen Twitter accounts

· 2 comments · 450 words · Viewed ~1,459 times


The Twitter logo drawn in circles.

Recently, one of the accounts I follow on Twitter was hijacked. It was turned into a PS5 giveaway scam. The people who hijacked the account changed the name, avatar, and deleted all the previous Tweets. Here's how I found who the original owner was, and managed to contact them. A Twitter account has a screen name. Mine is @edent. It is possible to change your screen name. Each Twitter account…

Disintermediate The State

· 1 comment · 700 words


The "That's a paddling" meme - saying "Renew your goose tax? That's an API!"

As part of my MSc, I'm being asked to think about "digital disruption" - so here are some personal thoughts about the future of transactions with the state. The UK Government has a lot of APIs to let computers communicate with each other. Most of them are department-to-department. For example, the Ministry of Birds wants to get an updated list of incidents from the Department of Avian Accidents …

WordPress's undocumented stats API

· 2 comments · 400 words · Viewed ~237 times


WordPress console showing a JSON output.

This blog runs on WordPress. Using their JetPack plugin, I get fairly detailed stats on views and visitors. But, bizarrely, the API is undocumented. Well, sort of... Let me explain: Just Show Me The Code Here's the API call to get a year's worth of data about your blog. https://public-api.wordpress.com/rest/v1.1/sites/shkspr.mobi::blog/stats/visits ?unit=day &date=2021-01-03 &quantity=365 …

Introducing - On This Day in Twistory

· 3 comments · 400 words · Viewed ~342 times


A list of columns with Tweets in them.

One of the things I loved about Facebook was its "On This Day" feature. There's something delightful about seeing what nonsense you were talking about on this day a decade ago. Twitter doesn't have anything like that. So I built it. Introducing - Twistory.ml Note: Twitter's recent changes means this no longer works. Stick your @ name in, hit the big button, and you'll get a list of everything…

Moneyed - a personal OpenBanking API

· 3 comments · 450 words · Viewed ~287 times


API Token generation screen.

Update! Moneyed shut down in 2021. After writing about how to use MoneyDashboard's unofficial API, the good folk at Moneyed told me about their officially supported API! So here's a quick review & howto guide. Moneyed is a slightly strange service. I think it is designed for companies to give as a benefit to their employees. But you can sign up as an individual. The first month is free - but I…

Unofficial MoneyDashboard Neon API

· 700 words · Viewed ~258 times


A tiny lego Storm Trooper eats a chocolate coin.

Note: MoneyDashboard is now closed. Yesterday, I wrote up how to use the MoneyDashboard Classic API. Read that blog post first before reading this one. MoneyDashboard have launched a new "Neon" service. The API is a bit more simple, but authentication is harder. Here's a quick guide to the bits of the API that I found useful. I've lightly redacted some of the API responses for my privacy. …

Unofficial MoneyDashboard API

· 8 comments · 1,000 words · Viewed ~1,533 times


A tiny lego Storm Trooper eats a chocolate coin.

Note: MoneyDashboard is now closed. The OpenBanking specification is brilliant. It allows you to aggregate all of your financial accounts in one place. You can give read or write access to apps and services. Magic! API access is restricted to registered financial institutions. That's good, because it puts up a barrier to entry preventing dodgy companies slurping up your data and sending all…

OMG! Twitter release an OFFICIAL conversations API!

· 4 comments · 850 words · Viewed ~1,976 times


An organic, branching tree view of a conversation.

One of the most requested Twitter API features is now available - the ability to get replies to a Tweet as a thread. Long time readers know that I've long been a fan of Visualising Twitter Conversations in 2D Space. But up until now you had to use horrible hacks to get the data. As trailed in their recent blogpost - conversation threading is now part of the official API! This allows you to…