naystack - v1.9.9
    Preparing search index...

    Type Alias SocialPost

    One piece of content from a connected account.

    Every metric is number | null, and null always means the platform did not give us this — hidden, unrequested, or nonexistent on that platform. Adapters never substitute 0: "nobody liked it" and "likes are hidden" are different facts, and only the caller knows which its averages should skip.

    type SocialPost = {
        caption: string | null;
        comments: number | null;
        kind: SocialMediaKind;
        likes: number | null;
        mediaURL: string | null;
        metadata: Record<string, unknown>;
        permalink: string;
        platform: SocialPlatform;
        platformMediaId: string;
        publishedAt: string;
        shares: number | null;
        thumbnail: string | null;
        views: number | null;
    }
    Index

    Properties

    caption: string | null
    comments: number | null
    likes: number | null
    mediaURL: string | null
    metadata: Record<string, unknown>

    Platform extras, display-only, same contract as SocialProfile.

    permalink: string
    platform: SocialPlatform
    platformMediaId: string

    Unique within a platform, not across them.

    publishedAt: string

    ISO 8601.

    shares: number | null
    thumbnail: string | null

    Usually a signed CDN URL that expires; copy it to your own storage.

    views: number | null