Controlling Minuflux with its Go API client
March 9, 2025 in SoftwareMiniflux is a wonderful self-hosted RSS reader that can also serve as backend aggregator for various apps - thanks to the support of the “Google Reader” aggregator API and several others.
But one more of its wonderful features is a convenient API that can fill in any gaps in the UI. As Miniflux is written in Go, the official API client is also in Go.
For example, here is a script to wipe a category of feeds. Useful to fix botched imports:
package main
import (
"log"
miniflux "miniflux.app/client"
)
func main() {
client := miniflux.New("https://myminifluxinstance.com", "myapikey")
categoryID := int64(7) // look up on Categories page
feeds, err := client.CategoryFeeds(categoryID)
if err != nil {
log.Fatal(err)
}
for _, feed := range feeds {
err := client.DeleteFeed(feed.ID)
if err != nil {
log.Fatal(err)
}
}
}
Liked the post? Treat me to a coffee