Why doesn't Ghost Admin API return `html` for drafts

I run the ghost Admin API v3 like this:

   const GhostAdminAPI = require("@tryghost/admin-api");

    const api = new GhostAdminAPI({
        url: "some url",
        key: "somekey",
        version: "v3",

    api.posts.browse().then((results) => {

when I explore the drafts, there’s no html field that is available through Content API for published posts. I need this field to implement custom preview functionality. Any way to get it?

Admin API has formats, the same as Content API, it just returns different formats by default:

1 Like

Awesome, thanks, works like this:

api.posts.browse({ formats: "html" }).then(....)