UNET API - v0.0.0
    Preparing search index...

    Type Alias Post

    type Post = {
        id: number;
        url: string;
        content: string;
        createdAt: string;
        updatedAt: string;
        hashtags: string[];
        isNsfw: boolean;
        isAiContent: boolean;
        language: string | null;
        allowTranslation?: boolean;
        isPinned?: boolean;
        hashId?: string;
        quotePostId: number | null;
        quoteCommentId?: number | null;
        topic?: { id: number; name: string } | null;
        place?: { id: string; name: string; lat: number; lon: number } | null;
        views?: number;
        author: ApiAuthor;
        images: {
            url: string;
            mediumUrl?: string;
            thumbUrl?: string;
            width?: number;
            height?: number;
            altText?: string | null;
        }[];
        video: { url: string; mimeType?: string; posterUrl?: string }
        | null;
        audioUrl: string | null;
        scheduledAt?: string;
        counts?: { likes: number; reposts: number; replies: number };
        viewer?: { liked: boolean; reposted: boolean; saved?: boolean };
        gifUrl: string | null;
        longForm: { characterCount: number; hasMore: boolean } | null;
    }
    Index
    id: number
    url: string
    content: string
    createdAt: string
    updatedAt: string
    hashtags: string[]
    isNsfw: boolean
    isAiContent: boolean
    language: string | null
    allowTranslation?: boolean

    The author allows api.translatePost() (absent on older servers).

    isPinned?: boolean

    Pinned to the author's profile (present only when true; on a profile the pinned post comes first). Absent on older servers.

    hashId?: string

    The short id used in post links; api.post() takes it as well as id. Absent on older servers.

    quotePostId: number | null
    quoteCommentId?: number | null

    The post quotes this comment: load it with api.getComment() (absent on older servers).

    topic?: { id: number; name: string } | null

    Topic of the post (absent on older servers).

    place?: { id: string; name: string; lat: number; lon: number } | null
    views?: number

    Anonymous view count; only on api.post() (absent on older servers).

    author: ApiAuthor
    images: {
        url: string;
        mediumUrl?: string;
        thumbUrl?: string;
        width?: number;
        height?: number;
        altText?: string | null;
    }[]
    video: { url: string; mimeType?: string; posterUrl?: string } | null

    posterUrl: a still picture of the video, a plain image URL (absent on older servers).

    audioUrl: string | null
    scheduledAt?: string

    Set on your own scheduled (unpublished) posts.

    counts?: { likes: number; reposts: number; replies: number }

    Present on lists and api.post() (counts follow the apps' rules: blocked/banned users excluded).

    viewer?: { liked: boolean; reposted: boolean; saved?: boolean }
    gifUrl: string | null

    GIF attached to the post.

    longForm: { characterCount: number; hasMore: boolean } | null

    Long posts: content is only the lead; read the rest with api.longForm(id).