Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Jump to examples ↓
    Query

    mediaContents

    Return media contents (images / videos) for items or Competitor Insights posts. Pass exactly one of itemIds or competitorBrandItemIds; both, or neither, is a GraphQL error. itemIds must belong to the current workspace. competitorBrandItemIds come from competitorBrandItems; posts of a brand the workspace does not track return no rows. While the workspace is in App Review mode, where the Archive app hides Competitor Insights, competitorBrandItemIds returns a FIELD_NOT_AVAILABLE error with extensions.field = "mediaContents.competitorBrandItemIds".

    Arguments

    competitorBrandItemIds [ID!]
    CompetitorBrandItem UUIDs to fetch contents for (1 to 100 per request). Obtain them from the competitorBrandItems(brandId:, filter:) query. Mutually exclusive with itemIds. While the workspace is in App Review mode, where the Archive app hides Competitor Insights, competitorBrandItemIds returns a FIELD_NOT_AVAILABLE error with extensions.field = "mediaContents.competitorBrandItemIds".
    itemIds [ID!]
    Item UUIDs to fetch contents for (1 to 100 per request). Mutually exclusive with competitorBrandItemIds.

    Returns

    Returns [MediaContent!]!.