ℹ️ Twitter import and tweets API

Micro.blog can now import an archive of tweets, with a companion Micro.blog plug-in to use on your blog. Tweets are stored as blog posts in a separate blog, but they are a little special so there’s some new support built up around them.

Tweets imported to Micro.blog are considered public because the goal is to share them on your blog. There’s a new API to get tweets that doesn’t need authentication, so it’s easy to use from JavaScript.

To get a simple JSON list of years for tweets, e.g. [ 2023, 2022 ]:

/twitter/archive/[site_id]/years.json

The rest of the endpoints return JSON Feed:

/twitter/archive/[site_id]/recent.json
/twitter/archive/[site_id]/search.json?q=hello
/twitter/archive/[site_id]/[year]/[month].json

I’ll update this help page with some more details as the feature rolls out.

1 Like