Quantcast
Viewing all articles
Browse latest Browse all 3

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?

Read full topic


Viewing all articles
Browse latest Browse all 3

Trending Articles