API Reference

Table of Contents:

Authentication

The API supports two authentication mechanisms:

To generate a new API token, got to “Settings > API Keys > Create a new API key”.

HTTP Basic Authentication Example

curl -u your-miniflux-username https://miniflux.example.org/v1/me

API Token Authentication Example

Miniflux uses the HTTP header X-Auth-Token for API token authentication.

curl -H "X-Auth-Token: your-token" https://miniflux.example.org/v1/me

Clients

There are two official API clients, one written in Go and another one written in Python.

Golang Client

Installation:

go get -u miniflux.app/v2/client

Usage Example:

package main

import (
    "fmt"

    miniflux "miniflux.app/v2/client"
)

func main() {
    // Authentication using username/password.
    client := miniflux.NewClient("https://miniflux.example.org", "admin", "secret")

    // Authentication using API token.
    client := miniflux.NewClient("https://miniflux.example.org", "My secret token")

    // Fetch all feeds.
    feeds, err := client.Feeds()
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println(feeds)
}

Python Client

Installation:

pip install miniflux

Usage example:

import miniflux

# Authentication using username/password
client = miniflux.Client("https://miniflux.example.org", "my_username", "my_secret_password")

# Authentication using an API token
client = miniflux.Client("https://miniflux.example.org", api_key="My Secret Token")

# Get all feeds
feeds = client.get_feeds()

# Refresh a feed
client.refresh_feed(123)

# Discover subscriptions from a website
subscriptions = client.discover("https://example.org")

# Create a new feed, with a personalized user agent and with the crawler enabled
feed_id = client.create_feed("http://example.org/feed.xml", 42, crawler=True, user_agent="GoogleBot")

# Fetch 10 starred entries
entries = client.get_entries(starred=True, limit=10)

# Fetch last 5 feed entries
feed_entries = client.get_feed_entries(123, direction='desc', order='published_at', limit=5)

# Update a feed category
client.update_feed(123, category_id=456)

API Endpoints

Status Codes

Error Response

{
    "error_message": "Some error"
}

Discover Subscriptions

Request:

POST /v1/discover
Content-Type: application/json

{
    "url": "http://example.org"
}

Response:

[
    {
        "url": "http://example.org/feed.atom",
        "title": "Atom Feed",
        "type": "atom"
    },
    {
        "url": "http://example.org/feed.rss",
        "title": "RSS Feed",
        "type": "rss"
    }
]

Optional fields:

Flush History

Request:

PUT /v1/flush-history

Note that DELETE is also supported.

Returns a 202 Accepted status code for success.

This API endpoint is available since Miniflux v2.0.49.

Get Feeds

Request:

GET /v1/feeds

Response:

[
    {
        "id": 42,
        "user_id": 123,
        "title": "Example Feed",
        "site_url": "http://example.org",
        "feed_url": "http://example.org/feed.atom",
        "checked_at": "2017-12-22T21:06:03.133839-05:00",
        "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
        "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
        "parsing_error_message": "",
        "parsing_error_count": 0,
        "scraper_rules": "",
        "rewrite_rules": "",
        "crawler": false,
        "blocklist_rules": "",
        "keeplist_rules": "",
        "user_agent": "",
        "username": "",
        "password": "",
        "disabled": false,
        "ignore_http_cache": false,
        "fetch_via_proxy": false,
        "category": {
            "id": 793,
            "user_id": 123,
            "title": "Some category"
        },
        "icon": {
            "feed_id": 42,
            "icon_id": 84
        }
    }
]

Notes:

Get Category Feeds

Request:

GET /v1/categories/40/feeds

Response:

[
    {
        "id": 42,
        "user_id": 123,
        "title": "Example Feed",
        "site_url": "http://example.org",
        "feed_url": "http://example.org/feed.atom",
        "checked_at": "2017-12-22T21:06:03.133839-05:00",
        "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
        "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
        "parsing_error_message": "",
        "parsing_error_count": 0,
        "scraper_rules": "",
        "rewrite_rules": "",
        "crawler": false,
        "blocklist_rules": "",
        "keeplist_rules": "",
        "user_agent": "",
        "username": "",
        "password": "",
        "disabled": false,
        "ignore_http_cache": false,
        "fetch_via_proxy": false,
        "category": {
            "id": 40,
            "user_id": 123,
            "title": "Some category"
        },
        "icon": {
            "feed_id": 42,
            "icon_id": 84
        }
    }
]
This API endpoint is available since Miniflux v2.0.29.

Get Feed

Request:

GET /v1/feeds/42

Response:

{
    "id": 42,
    "user_id": 123,
    "title": "Example Feed",
    "site_url": "http://example.org",
    "feed_url": "http://example.org/feed.atom",
    "checked_at": "2017-12-22T21:06:03.133839-05:00",
    "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
    "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
    "parsing_error_message": "",
    "parsing_error_count": 0,
    "scraper_rules": "",
    "rewrite_rules": "",
    "crawler": false,
    "blocklist_rules": "",
    "keeplist_rules": "",
    "user_agent": "",
    "username": "",
    "password": "",
    "disabled": false,
    "ignore_http_cache": false,
    "fetch_via_proxy": false,
    "category": {
        "id": 793,
        "user_id": 123,
        "title": "Some category"
    },
    "icon": {
        "feed_id": 42,
        "icon_id": 84
    }
}

Notes:

Get Feed Icon By Feed ID

Request:

GET /v1/feeds/{feedID}/icon

Response:

{
    "id": 262,
    "data": "image/png;base64,iVBORw0KGgoAAA....",
    "mime_type": "image/png"
}

If the feed doesn’t have any favicon, a 404 is returned.

Get Feed Icon By Icon ID

Request:

GET /v1/icons/{iconID}

Response:

{
    "id": 262,
    "data": "image/png;base64,iVBORw0KGgoAAA....",
    "mime_type": "image/png"
}
This API endpoint is available since Miniflux v2.0.49.

Create Feed

Request:

POST /v1/feeds
Content-Type: application/json

{
    "feed_url": "http://example.org/feed.atom",
    "category_id": 22
}

Response:

{
    "feed_id": 262,
}

Required fields:

Optional fields:

Update Feed

Request:

PUT /v1/feeds/42
Content-Type: application/json

{
    "title": "New Feed Title",
    "category_id": 22
}

Response:

{
    "id": 42,
    "user_id": 123,
    "title": "New Feed Title",
    "site_url": "http://example.org",
    "feed_url": "http://example.org/feed.atom",
    "checked_at": "2017-12-22T21:06:03.133839-05:00",
    "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
    "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
    "parsing_error_message": "",
    "parsing_error_count": 0,
    "scraper_rules": "",
    "rewrite_rules": "",
    "crawler": false,
    "blocklist_rules": "",
    "keeplist_rules": "",
    "user_agent": "",
    "username": "",
    "password": "",
    "disabled": false,
    "ignore_http_cache": false,
    "fetch_via_proxy": false,
    "category": {
        "id": 22,
        "user_id": 123,
        "title": "Another category"
    },
    "icon": {
        "feed_id": 42,
        "icon_id": 84
    }
}

Available fields:

Refresh Feed

Request:

PUT /v1/feeds/42/refresh

Optional query parameters:

Refresh all Feeds

Request:

PUT /v1/feeds/refresh

Remove Feed

Request:

DELETE /v1/feeds/42

Get Feed Entry

Request:

GET /v1/feeds/42/entries/888

Response:

{
    "id": 888,
    "user_id": 123,
    "feed_id": 42,
    "title": "Entry Title",
    "url": "http://example.org/article.html",
    "comments_url": "",
    "author": "Foobar",
    "content": "<p>HTML contents</p>",
    "hash": "29f99e4074cdacca1766f47697d03c66070ef6a14770a1fd5a867483c207a1bb",
    "published_at": "2016-12-12T16:15:19Z",
    "created_at": "2016-12-27T16:15:19Z",
    "status": "unread",
    "share_code": "",
    "starred": false,
    "reading_time": 1,
    "enclosures": null,
    "feed": {
        "id": 42,
        "user_id": 123,
        "title": "New Feed Title",
        "site_url": "http://example.org",
        "feed_url": "http://example.org/feed.atom",
        "checked_at": "2017-12-22T21:06:03.133839-05:00",
        "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
        "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
        "parsing_error_message": "",
        "parsing_error_count": 0,
        "scraper_rules": "",
        "rewrite_rules": "",
        "crawler": false,
        "blocklist_rules": "",
        "keeplist_rules": "",
        "user_agent": "",
        "username": "",
        "password": "",
        "disabled": false,
        "ignore_http_cache": false,
        "fetch_via_proxy": false,
        "category": {
            "id": 22,
            "user_id": 123,
            "title": "Another category"
        },
        "icon": {
            "feed_id": 42,
            "icon_id": 84
        }
    }
}

Get Entry

Request:

GET /v1/entries/888

Response:

{
    "id": 888,
    "user_id": 123,
    "feed_id": 42,
    "title": "Entry Title",
    "url": "http://example.org/article.html",
    "comments_url": "",
    "author": "Foobar",
    "content": "<p>HTML contents</p>",
    "hash": "29f99e4074cdacca1766f47697d03c66070ef6a14770a1fd5a867483c207a1bb",
    "published_at": "2016-12-12T16:15:19Z",
    "created_at": "2016-12-27T16:15:19Z",
    "status": "unread",
    "share_code": "",
    "starred": false,
    "reading_time": 1,
    "enclosures": null,
    "feed": {
        "id": 42,
        "user_id": 123,
        "title": "New Feed Title",
        "site_url": "http://example.org",
        "feed_url": "http://example.org/feed.atom",
        "checked_at": "2017-12-22T21:06:03.133839-05:00",
        "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
        "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
        "parsing_error_message": "",
        "parsing_error_count": 0,
        "scraper_rules": "",
        "rewrite_rules": "",
        "crawler": false,
        "blocklist_rules": "",
        "keeplist_rules": "",
        "user_agent": "",
        "username": "",
        "password": "",
        "disabled": false,
        "ignore_http_cache": false,
        "fetch_via_proxy": false,
        "category": {
            "id": 22,
            "user_id": 123,
            "title": "Another category"
        },
        "icon": {
            "feed_id": 42,
            "icon_id": 84
        }
    }
}

Import Entry

Request:

POST /feeds/{feedID}/entries/import
Content-Type: application/json

{
    "title": "Entry Title",
    "url": "http://example.org/article.html",
    "author": "Foobar",
    "content": "<p>HTML contents</p>",
    "published_at": 1736200000,
    "status": "unread",
    "starred": false,
    "tags": ["tag1", "tag2"],
    "external_id": "unique-id-123",
    "comments_url": "http://example.org/article.html#comments"
}

Note: All fields are optional except url.

Response:

{
    "id": 1790
}

Returns a 201 Created status code when the entry is created, and a 200 OK status code when the entry already exists.

This API endpoint is available since Miniflux v2.2.16.

Update Entry

Both fields title and content are optional.

Request:

PUT /v1/entries/{entryID}

{
    "title": "New title",
    "content": "Some text"
}

Response:

{
  "id": 1790,
  "user_id": 1,
  "feed_id": 21,
  "status": "unread",
  "hash": "22a6795131770d9577c91c7816e7c05f78586fc82e8ad0881bce69155f63edb6",
  "title": "New title",
  "url": "https://miniflux.app/releases/1.0.1.html",
  "comments_url": "",
  "published_at": "2013-03-20T00:00:00Z",
  "created_at": "2023-10-07T03:52:50.013556Z",
  "changed_at": "2023-10-07T03:52:50.013556Z",
  "content": "Some text",
  "author": "Frédéric Guillot",
  "share_code": "",
  "starred": false,
  "reading_time": 1,
  "enclosures": [],
  "feed": {
    "id": 21,
    "user_id": 1,
    "feed_url": "https://miniflux.app/feed.xml",
    "site_url": "https://miniflux.app",
    "title": "Miniflux",
    "checked_at": "2023-10-08T23:56:44.853427Z",
    "next_check_at": "0001-01-01T00:00:00Z",
    "etag_header": "",
    "last_modified_header": "",
    "parsing_error_message": "",
    "parsing_error_count": 0,
    "scraper_rules": "",
    "rewrite_rules": "",
    "crawler": false,
    "blocklist_rules": "",
    "keeplist_rules": "",
    "urlrewrite_rules": "",
    "user_agent": "",
    "cookie": "",
    "username": "",
    "password": "",
    "disabled": false,
    "no_media_player": false,
    "ignore_http_cache": false,
    "allow_self_signed_certificates": false,
    "fetch_via_proxy": false,
    "category": {
      "id": 2,
      "title": "000",
      "user_id": 1,
      "hide_globally": false
    },
    "icon": {
      "feed_id": 21,
      "icon_id": 11
    },
    "hide_globally": false,
    "apprise_service_urls": ""
  },
  "tags": []
}

Returns a 201 Created status code for success.

This API endpoint is available since Miniflux v2.0.49.

Save entry to third-party services

Request:

POST /v1/entries/{entryID}/save

Response:

Returns a 202 Accepted status code for success.

Fetch original article

Request:

GET /v1/entries/{entryID}/fetch-content?update_content=true

Available fields:

Response:

{"content": "html content"}
This API endpoint is available since Miniflux v2.0.36.

Get Category Entries

Request:

GET /v1/categories/22/entries?limit=1&order=id&direction=asc

Available filters:

The category ID in the URL always takes precedence over the category_id query parameter. A feed_id query parameter narrows the results to one feed of the category. Before Miniflux 2.3.6, a category_id query parameter replaced the ID in the URL.

Since Miniflux 2.3.6, timestamps past PostgreSQL’s finite timestamp range, and search or tags values with null bytes or invalid UTF-8, return a 400 Bad Request error instead of a server error.

Response:

{
    "total": 10,
    "entries": [
        {
            "id": 888,
            "user_id": 123,
            "feed_id": 42,
            "title": "Entry Title",
            "url": "http://example.org/article.html",
            "comments_url": "",
            "author": "Foobar",
            "content": "<p>HTML contents</p>",
            "hash": "29f99e4074cdacca1766f47697d03c66070ef6a14770a1fd5a867483c207a1bb",
            "published_at": "2016-12-12T16:15:19Z",
            "created_at": "2016-12-27T16:15:19Z",
            "status": "unread",
            "share_code": "",
            "starred": false,
            "reading_time": 1,
            "enclosures": null,
            "feed": {
                "id": 42,
                "user_id": 123,
                "title": "New Feed Title",
                "site_url": "http://example.org",
                "feed_url": "http://example.org/feed.atom",
                "checked_at": "2017-12-22T21:06:03.133839-05:00",
                "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
                "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
                "parsing_error_message": "",
                "parsing_error_count": 0,
                "scraper_rules": "",
                "rewrite_rules": "",
                "crawler": false,
                "blocklist_rules": "",
                "keeplist_rules": "",
                "user_agent": "",
                "username": "",
                "password": "",
                "disabled": false,
                "ignore_http_cache": false,
                "fetch_via_proxy": false,
                "category": {
                    "id": 22,
                    "user_id": 123,
                    "title": "Another category"
                },
                "icon": {
                    "feed_id": 42,
                    "icon_id": 84
                }
            }
        }
    ]
}

Get Feed Entries

Request:

GET /v1/feeds/42/entries?limit=1&order=id&direction=asc

Available filters:

The feed ID in the URL always takes precedence over the feed_id query parameter. Before Miniflux 2.3.6, a feed_id query parameter replaced the ID in the URL.

Since Miniflux 2.3.6, timestamps past PostgreSQL’s finite timestamp range, and search or tags values with null bytes or invalid UTF-8, return a 400 Bad Request error instead of a server error.

Response:

{
    "total": 10,
    "entries": [
        {
            "id": 888,
            "user_id": 123,
            "feed_id": 42,
            "title": "Entry Title",
            "url": "http://example.org/article.html",
            "comments_url": "",
            "author": "Foobar",
            "content": "<p>HTML contents</p>",
            "hash": "29f99e4074cdacca1766f47697d03c66070ef6a14770a1fd5a867483c207a1bb",
            "published_at": "2016-12-12T16:15:19Z",
            "created_at": "2016-12-27T16:15:19Z",
            "status": "unread",
            "share_code": "",
            "starred": false,
            "reading_time": 1,
            "enclosures": null,
            "feed": {
                "id": 42,
                "user_id": 123,
                "title": "New Feed Title",
                "site_url": "http://example.org",
                "feed_url": "http://example.org/feed.atom",
                "checked_at": "2017-12-22T21:06:03.133839-05:00",
                "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
                "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
                "parsing_error_message": "",
                "parsing_error_count": 0,
                "scraper_rules": "",
                "rewrite_rules": "",
                "crawler": false,
                "blocklist_rules": "",
                "keeplist_rules": "",
                "user_agent": "",
                "username": "",
                "password": "",
                "disabled": false,
                "ignore_http_cache": false,
                "fetch_via_proxy": false,
                "category": {
                    "id": 22,
                    "user_id": 123,
                    "title": "Another category"
                },
                "icon": {
                    "feed_id": 42,
                    "icon_id": 84
                }
            }
        }
    ]
}

Mark Feed Entries as Read

Request:

PUT /v1/feeds/123/mark-all-as-read

Returns 204 Not Content status code for success.

This API endpoint is available since Miniflux v2.0.26.

Get Entries

Request:

GET /v1/entries?status=unread&direction=desc

Available filters:

Since Miniflux 2.3.6, timestamps past PostgreSQL’s finite timestamp range, and search or tags values with null bytes or invalid UTF-8, return a 400 Bad Request error instead of a server error.

Response:

{
    "total": 10,
    "entries": [
        {
            "id": 888,
            "user_id": 123,
            "feed_id": 42,
            "title": "Entry Title",
            "url": "http://example.org/article.html",
            "comments_url": "",
            "author": "Foobar",
            "content": "<p>HTML contents</p>",
            "hash": "29f99e4074cdacca1766f47697d03c66070ef6a14770a1fd5a867483c207a1bb",
            "published_at": "2016-12-12T16:15:19Z",
            "created_at": "2016-12-27T16:15:19Z",
            "status": "unread",
            "share_code": "",
            "starred": false,
            "reading_time": 1,
            "enclosures": null,
            "feed": {
                "id": 42,
                "user_id": 123,
                "title": "New Feed Title",
                "site_url": "http://example.org",
                "feed_url": "http://example.org/feed.atom",
                "checked_at": "2017-12-22T21:06:03.133839-05:00",
                "etag_header": "KyLxEflwnTGF5ecaiqZ2G0TxBCc",
                "last_modified_header": "Sat, 23 Dec 2017 01:04:21 GMT",
                "parsing_error_message": "",
                "parsing_error_count": 0,
                "scraper_rules": "",
                "rewrite_rules": "",
                "crawler": false,
                "blocklist_rules": "",
                "keeplist_rules": "",
                "user_agent": "",
                "username": "",
                "password": "",
                "disabled": false,
                "ignore_http_cache": false,
                "fetch_via_proxy": false,
                "category": {
                    "id": 22,
                    "user_id": 123,
                    "title": "Another category"
                },
                "icon": {
                    "feed_id": 42,
                    "icon_id": 84
                }
            }
        }
    ]
}

Get Entry IDs

Returns entry IDs matching the filters. The default sort is descending entry ID (order=id&direction=desc), independent of the Get Entries defaults. The default and maximum page size is 10,000 IDs.

Request:

GET /v1/entries/ids?status=unread&order=id&direction=desc&limit=2

Available filters and pagination parameters:

Filters are combined with AND. globally_visible=true excludes entries whose feed or category is hidden globally. When globally_visible=false or the parameter is omitted, both visible and hidden entries may match the other filters; false does not mean “hidden entries only”.

Feed IDs, category IDs, and entry ID boundaries must be positive 64-bit integers. Time filters must be non-negative Unix timestamps in seconds within PostgreSQL’s finite timestamp range; 0 leaves that time filter inactive. Invalid ID or time values return 400 Bad Request.

All active boundaries are exclusive:

Response:

{
    "total": 3,
    "entry_ids": [
        15548,
        15540
    ]
}

total counts entries matching all filters, including entry ID and time boundaries, before applying limit or offset, not just IDs on the current page. Changing a boundary changes the set counted by total.

ID-boundary pagination

For the descending ID order above, keep the filters, sort order, and page size unchanged. Set before_entry_id to the last ID on the previous page and leave offset unset or 0:

GET /v1/entries/ids?status=unread&order=id&direction=desc&limit=2&before_entry_id=15540

If the matching entries have not changed, the next response could be:

{
    "total": 1,
    "entry_ids": [
        15512
    ]
}

Continue with before_entry_id=15512, and stop when entry_ids is empty. For ascending ID pagination, start with order=id&direction=asc and no ID boundary, then set after_entry_id to the last ID returned on each page. Keep the other filters unchanged and do not increase offset.

For non-ID sorting, the entry ID is the final tie-breaker in the same direction, giving deterministic ordering for unchanged data. The last returned ID is not a next-page cursor for sorts such as published_at: adding an ID boundary can skip matching entries. Use limit and offset for non-ID sorting, or order=id for ID-boundary pagination. Changes to matching entries between requests can still affect pagination; deterministic ordering does not provide a snapshot.

Compatibility warning: Servers older than Miniflux v2.3.6 silently ignore the parameters they don’t support and return broader results. A successful response does not prove that the requested filters or ID boundaries were applied. Check the server version with the version endpoint before relying on them, especially for ID-boundary pagination.

This API endpoint was introduced in Miniflux v2.3.2 with the status (single value), starred, limit, and offset parameters. The other filters, repeated status values, and the sorting options are available since Miniflux v2.3.6.

Update Entries

Request:

PUT /v1/entries
Content-Type: application/json

{
    "entry_ids": [1234, 4567],
    "status": "read",
    "starred": true
}

The client must send “entry_ids”, and either “status”, “starred”, or both. Returns a 204 status code for success.

The ability to send "starred" is available since Miniflux v2.3.2.

Toggle Entry Bookmark

Request:

PUT /v1/entries/1234/bookmark

Returns a 204 status code for success.

Share Entry

Creates a public share link for an entry, like the “Share” button in the web UI.

Request:

POST /v1/entries/1234/share

Response:

{
    "share_code": "3f9a1c0e7b2d4a6f8e5c1b9d0a7e3f2c4b6d8a1e"
}
This API endpoint is available since Miniflux v2.3.6.

Unshare Entry

Removes the share code of an entry. The public share link stops working.

Request:

DELETE /v1/entries/1234/share
This API endpoint is available since Miniflux v2.3.6.

Get Enclosure

Request:

GET /v1/enclosures/{enclosureID}

Response:

{
  "id": 278,
  "user_id": 1,
  "entry_id": 195,
  "url": "https://example.org/file",
  "mime_type": "application/octet-stream",
  "size": 0,
  "media_progression": 0
}
This API endpoint has been available since Miniflux v2.2.0.

Update Enclosure

Request:

PUT /v1/enclosures/{enclosureID}

{
    "media_progression": 42
}

Returns a 204 status code for success.

This API endpoint has been available since Miniflux v2.2.0.

Get Categories

Request:

GET /v1/categories

Response:

[
    {"title": "All", "user_id": 267, "id": 792, "hide_globally": false},
    {"title": "Engineering Blogs", "user_id": 267, "id": 793, "hide_globally": false}
]

Since Miniflux 2.0.46, you can pass the argument ?counts=true to include total_unread and feed_count in the response:

Request:

GET /v1/categories?counts=true

Response:

[
  {
    "id": 1,
    "title": "All",
    "user_id": 1,
    "hide_globally": false,
    "feed_count": 7,
    "total_unread": 268
  }
]

Create Category

Request:

POST /v1/categories
Content-Type: application/json

{
    "title": "My category"
}

Response:

{
    "id": 802,
    "user_id": 267,
    "title": "My category",
    "hide_globally": false
}

Since Miniflux 2.2.8, you can also pass the hide_globally field when creating a category:

POST /v1/categories
Content-Type: application/json

{
    "title": "My category",
    "hide_globally": true
}

Update Category

Request:

PUT /v1/categories/802
Content-Type: application/json

{
    "title": "My new title"
}

Response:

{
    "id": 802,
    "user_id": 267,
    "title": "My new title",
    "hide_globally": false
}

Since Miniflux 2.2.8, you can also pass the hide_globally field when updating a category:

PUT /v1/categories/123
Content-Type: application/json

{
    "hide_globally": true
}

Refresh Category Feeds

Request:

PUT /v1/categories/123/refresh
This API endpoint is available since Miniflux v2.0.42.

Delete Category

Request:

DELETE /v1/categories/802

Returns a 204 status code when successful.

Mark Category Entries as Read

Request:

PUT /v1/categories/123/mark-all-as-read

Returns 204 Not Content status code for success.

This API endpoint is available since Miniflux v2.0.26.

OPML Export

Request:

GET /v1/export

The response is a XML document (OPML file).

This API call is available since Miniflux v2.0.1.

OPML Import

Request:

POST /v1/import

XML data

Response:

{
  "message": "Feeds imported successfully"
}
This API call is available since Miniflux v2.0.7.

Create User

Request:

POST /v1/users
Content-Type: application/json

{
    "username": "bob",
    "password": "test123",
    "is_admin": false
}

Available Fields:

FieldType
usernamestring
passwordstring
google_idstring
openid_connect_idstring
is_adminboolean

Response:

{
    "id": 270,
    "username": "bob",
    "theme": "system_serif",
    "language": "en_US",
    "timezone": "UTC",
    "entry_sorting_direction": "desc",
    "stylesheet": "",
    "google_id": "",
    "openid_connect_id": "",
    "entries_per_page": 100,
    "keyboard_shortcuts": true,
    "show_reading_time": true,
    "entry_swipe": true,
    "last_login_at": null
}
You must be an administrator to create users.

Update User

Request:

PUT /v1/users/270
Content-Type: application/json

{
    "username": "joe"
}

Available fields:

FieldTypeExample
usernamestring
passwordstring
themestring“dark_serif”
languagestring“fr_FR”
timezonestring“Europe/Paris”
entry_sorting_directionstring“desc” or “asc”
stylesheetstring
google_idstring
openid_connect_idstring
entries_per_pageint
is_adminboolean
keyboard_shortcutsboolean
show_reading_timeboolean
entry_swipeboolean

Response:

{
    "id": 270,
    "username": "joe",
    "theme": "system_serif",
    "language": "en_US",
    "timezone": "America/Los_Angeles",
    "entry_sorting_direction": "desc",
    "stylesheet": "",
    "google_id": "",
    "openid_connect_id": "",
    "entries_per_page": 100,
    "keyboard_shortcuts": true,
    "show_reading_time": true,
    "entry_swipe": true,
    "last_login_at": "2021-01-05T06:46:06.461189Z"
}
You must be an administrator to update users.

Notes:

Get Current User

Request:

GET /v1/me

Response:

{
    "id": 1,
    "username": "admin",
    "is_admin": true,
    "theme": "dark_serif",
    "language": "en_US",
    "timezone": "America/Vancouver",
    "entry_sorting_direction": "desc",
    "stylesheet": "",
    "google_id": "",
    "openid_connect_id": "",
    "entries_per_page": 100,
    "keyboard_shortcuts": true,
    "show_reading_time": true,
    "entry_swipe": true,
    "last_login_at": "2021-01-05T04:51:45.118524Z"
}
This API endpoint is available since Miniflux v2.0.8.

Get User

Request:

# Get user by user ID
GET /v1/users/270

# Get user by username
GET /v1/users/foobar

Response:

{
    "id": 270,
    "username": "test",
    "is_admin": false,
    "theme": "light_serif",
    "language": "en_US",
    "timezone": "America/Los_Angeles",
    "entry_sorting_direction": "desc",
    "stylesheet": "",
    "google_id": "",
    "openid_connect_id": "",
    "entries_per_page": 100,
    "keyboard_shortcuts": true,
    "show_reading_time": true,
    "entry_swipe": true,
    "last_login_at": "2021-01-04T20:57:34.447789-08:00"
}
You must be an administrator to fetch users.

Get Users

Request:

GET /v1/users

Response:

[
    {
        "id": 270,
        "username": "test",
        "is_admin": false,
        "theme": "light_serif",
        "language": "en_US",
        "timezone": "America/Los_Angeles",
        "entry_sorting_direction": "desc",
        "stylesheet": "",
        "google_id": "",
        "openid_connect_id": "",
        "entries_per_page": 100,
        "keyboard_shortcuts": true,
        "show_reading_time": true,
        "entry_swipe": true,
        "last_login_at": "2021-01-04T20:57:34.447789-08:00"
    }
]
You must be an administrator to fetch users.

Delete User

Request:

DELETE /v1/users/270

Returns a 204 No Content status code once the user and all their data are deleted. Administrators cannot delete their own account.

You must be an administrator to delete users. Before Miniflux 2.3.6, the deletion ran in the background after the response was sent, and failures were only logged.

Integrations Status

This API endpoint returns true if the authenticated user has enabled an integration to save entries to a third-party service (e.g., Wallabag, Shiori, Shaarli). Note that the Google Reader API and Fever API are not considered.

Request:

GET /integrations/status

Response:

{"has_integrations": true}
This API endpoint is available since Miniflux v2.2.2.

Mark User Entries as Read

Request:

PUT /v1/users/123/mark-all-as-read

Returns 204 Not Content status code for success.

This API endpoint is available since Miniflux v2.0.26.

Fetch Read/Unread Counters

Request:

GET /v1/feeds/counters

Response Example:

{
  "reads": {
    "1": 12,
    "3": 1,
    "4": 1
  },
  "unreads": {
    "1": 7,
    "3": 99,
    "4": 14
  }
}
This endpoint is available since Miniflux 2.0.37.

Get API Keys

Request:

GET /v1/api-keys

Response:

[
    {
        "id": 1,
        "user_id": 1,
        "description": "My API Key",
        "created_at": "2023-10-07T03:52:50.013556Z",
        "last_used_at": "2023-10-07T03:52:50.013556Z"
    }
]
This endpoint is available since Miniflux 2.2.9. Since Miniflux 2.3.6, the response no longer includes the token of each key: Miniflux only stores a SHA-256 digest of it.

Create API Key

Request:

POST /v1/api-keys

{"description": "My API Key"}

Response:

{
    "id": 1,
    "user_id": 1,
    "description": "My API Key",
    "token": "1234567890abcdef1234567890abcdef",
    "created_at": "2023-10-07T03:52:50.013556Z",
    "last_used_at": "2023-10-07T03:52:50.013556Z"
}

Since Miniflux 2.3.6, this is the only response that includes the token. Store it securely: it can’t be retrieved later. To replace a lost token, delete the key and create a new one.

This endpoint is available since Miniflux 2.2.9.

Delete API Key

Request:

DELETE /v1/api-keys/1

Returns a 204 No Content status code for success.

This endpoint is available since Miniflux 2.2.9.

Healthcheck

The healthcheck endpoint is useful for monitoring and load-balancer configuration.

Request:

GET /healthcheck

Response:

OK

Liveness

Request:

GET /liveness

Alternatively:

GET /healthz

Response:

OK

Readiness

Request:

GET /readiness

Alternatively:

GET /readyz

Response:

OK

Application version

The version endpoint returns Miniflux build version.

Request:

GET /version

Response:

2.0.22
- This API endpoint is available since Miniflux v2.0.22 - It's deprecated since version 2.0.49 - It has been removed in Miniflux v2.2.17

Application version and build information

The version endpoint returns Miniflux version and build information.

Request:

GET /v1/version

Response:

{
    "version":"2.0.49",
    "commit":"69779e795",
    "build_date":"2023-10-14T20:12:04-0700",
    "go_version":"go1.21.1",
    "compiler":"gc",
    "arch":"amd64",
    "os":"linux"
}
This API endpoint is available since Miniflux v2.0.49.