/social-utils

Social utilities that supplement the functionality of my hosted website: APIs, styles, scripts and media.

Primary LanguageTypeScript

Social utilities

scheduled-syndication

Server side APIs used to source, modify and combine data from other services.


APIs

Request type URI Params
GET /api/books None

This API returns the books I'm currently reading on Oku, transformed from the RSS feed available on the appropriate collection.

Request type URI Params
GET /api/movies None

This API returns the movies I've recently logged on Letterboxd, transformed from the RSS feed available on my profile.

Request type URI Params
GET /api/music { type?: string; limit?: string; format?: string; period?: string }

This API returns the music I've recently listened to and scrobbled to Last.fm. It supports several parameters, namely type which is used to determine what whether albums, artists or tracks are returned. The limit parameter controls the number of entries in te response. The format parameter controls the response format (XML or JSON) and the period parameter controls the time period covered in the response.

Request type URI Params
GET /api/tv None

This API returns the tv episodes I've recently logged on Trakt fetched from their API.

Request type URI Params
GET /api/tv { target: string }

This returns webmentions for a given post on my site, with the target parameter accepting a url for the target post.