Interface BlogPostsParams

interface BlogPostsParams {
    id?: string;
    limit?: number;
    notes_info?: boolean;
    npf?: boolean;
    offset?: number;
    reblog_info?: boolean;
    tag?: string | string[];
    type?: PostType;
}

Properties

id?: string

A specific post ID. Returns the single post specified or (if not found) a 404 error.

limit?: number

The number of posts to return: 1–20, inclusive.

notes_info?: boolean

Indicates whether to return notes information (specify true or false). Returns note count and note metadata.

npf?: boolean

Returns posts' content in NPF format instead of the legacy format.

offset?: number

Offset post number (0 to start from first post).

reblog_info?: boolean

Indicates whether to return reblog information (specify true or false). Returns the various reblogged_ fields.

tag?: string | string[]

Limits the response to posts with the specified tags

When multiple tags are provided, posts will be returned that have all of the provided tags. A maximum of four tags can be provided.

type?: PostType

The type of post to return.