Articles on: API

Get blog posts

GET
https://app.unicornplatform.com/api/v1/blog_posts/get_posts/{subdomain}

Get a list of your published blog posts.

{subdomain} is the default subdomain of your blog's website:



Query parameters



NameTypeDescriptionRequired
amountnumberLimits the number of posts.No
exclude_post_contentbooleanOmits body_json and body_html from response.No


Response



200 OK

[
    {
        "id": number,
        "blog": number,
        "url": string,
        "blogUrl": string,
        "excerpt": string,
        "status": "public" | "draft" | "direct_url",
        "editor_type": string,
        "is_locked": boolean,
        "is_deleted": boolean,
        "title": string,
        "meta_title": string,
        "meta_description": string,
        "meta_keywords": string,
        "is_meta_description_inherited": boolean,
        "is_meta_keywords_inherited": boolean,
        "likes": number,
        "author_id": number,
        "body_json": Json,
        "body_html": string,
        "og_image_url": string,
        "og_image_uuid": string,
        "og_image_width": number,
        "og_image_height": number,
        "thumbnail_alt": string,
        "og_title": string,
        "og_description": string,
        "first_image_url": string,
        "first_image_width": number,
        "first_image_height": number,
        "comments": Json,
        "shares": Json,
        "custom_head_html_code": string,
        "published_on": string,
        "updated_on": string,
        "is_seobot_post": boolean,
        "modified": string,
        "created": string,
        "first_paragraph_text": string
    }
]

Updated on: 20/02/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!