Linuxine :penguin: [Migré] is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Is there an authentication-less API (ideally REST) letting you fetch one or several toots without having to parse HTML ?

All the API I find seem to be designed for complex clients and involve registering with the involved instances.

@Linuxine Thanks. I see how I can get a user's feed. But how would I get a specific toot (having the instance's URL, the author's name and the toot's ID) ?

@denys_seguret With the toot url ? by clicking on the xx minutes ago link for example ?

@Linuxine yes but this gives you the toot in HTML. I was looking for something clean, without having to parse HTML (XML would be OK, JSON would be great).

@denys_seguret oh ok, sorry, I didn't understood ^^ not sure this is possible, but I am still discovering the service !

@denys_seguret if you find an easy way to embed the toots in a website, like the twitter widget, I'm interested :D

@Linuxine The URL of the relevant atom message is in the HTTP headers. So it looks like we can simply do a HEAD request to get the atom URL:

curl -I octodon.social/@denys_seguret/

I'll probably do a toot boxing for the Miaou chat

Linuxine :penguin: [Migré] @Linuxine

@denys_seguret didn"t know Miaou, seems nice :)

· Web · 0 · 0