Query
competitorBrandItems
Paginate Competitor Insights posts for a brand within a required filter.takenAt window. Posts for a given month become queryable on day 9 of the following month.
Arguments
Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.
- after String default null
- Opaque cursor for fetching the next page of results. Cursors are positional: reuse one only with identical
brandId,filterandsortingarguments. A malformed cursor, including one minted by an earlier release, is rejected with anInvalid cursorerror. Pagination depth is capped at 10,000 posts per query; narrow thetakenAtwindow to page beyond that. - brandId ID! required
- Competitor Insights brand UUID. If the brand is not tracked by the current workspace, the query returns an empty connection.
- filter CompetitorBrandItemFilterInput! required
- Filter criteria. A
takenAttime window is required; unbounded queries are not supported. - takenAt FilterDateRangeInput! required
- Time window over post publication date. Both
fromandtoare required; unbounded time windows are not supported. - from DateTime
- Inclusive lower bound (ISO 8601). Omit for no lower bound.
- to DateTime
- Inclusive upper bound (ISO 8601). Omit for no upper bound.
- first Int default 20
- Number of posts to return (page size).
- sorting [CompetitorBrandItemSortingInput!] default [{sortKey: TAKEN_AT, sortOrder: DESC}]
- Sort configuration. Currently accepts a list of at most one entry; multiple entries are rejected. The list shape exists for forward compatibility: a future release may honor compound sort additively without a breaking schema change. Defaults to
[{ sortKey: TAKEN_AT, sortOrder: DESC }]when omitted.EARNED_MEDIA_VALUEranks posts as a single ordering across the entire requestedtakenAtwindow. Ties are broken by the post identifier, ascending. - sortKey CompetitorBrandItemSortKey! required
- Which field to sort by.
- EARNED_MEDIA_VALUE
- Sort by earned media value (EMV). Posts are ranked as a single ordering across the entire requested
takenAtwindow, regardless of how many calendar months it spans. - TAKEN_AT
- Sort by when the content was originally posted on the social platform.
- sortOrder SortOrder! required
- Whether to sort ascending (ASC) or descending (DESC).
- ASC
- Sort in ascending order (for example oldest date or smallest number first).
- DESC
- Sort in descending order (for example newest date or largest number first).
Returns
A paginated connection of CompetitorBrandItem nodes. See Pagination for the connection shape.
- edges [CompetitorBrandItemEdge!]!
- List of edges with cursors.
- cursor String!
- Cursor for this node.
- node CompetitorBrandItem!
- The competitor brand item.
- archivePublicUrl String
- Stable Archive permalink for this post. Unlike
originalUrl, this URL keeps resolving after the source post is deleted on the originating platform. MirrorsItem.archivePublicUrlfor parity. - caption String
- Caption text of the post, when available. Mirrors
Item.captionfor parity. - currentEngagement Engagement
- Most recent engagement metrics (likes, comments, views, shares, EMV) and virality score for this post.
- comments BigInt
- Total number of comments.
- earnedMediaValue BigInt
- Estimated earned media value (EMV) in cents.
- impressions BigInt
- Number of views, plays, or estimated impressions.
- likes BigInt
- Total number of likes.
- linearViralityScore ViralityScore!
- Bucketed virality score.
- HIGH
- Content that significantly outperforms its expected reach. Typically corresponds to a view-to-follower ratio of 4.0 or higher.
- LOW
- Content performing close to expected baseline relative to audience size. Typically corresponds to a view-to-follower ratio between ~1.0 and 2.0.
- MEDIUM
- Content performing above average relative to audience size. Typically corresponds to a view-to-follower ratio between ~2.0 and 4.0.
- NOT_VIRAL
- Content performing below expected reach, with low relative visibility. Typically corresponds to a view-to-follower ratio below ~1.0.
- shares BigInt
- Number of shares.
- views BigInt
- Number of views.
- externalId ID!
- Platform-side identifier (Instagram media id, TikTok video id, etc.).
- hashtags [String!]
- List of hashtags used in the post. Mirrors
Item.hashtagsfor parity. - id ID!
- Unique identifier of the underlying media item in Archive's system.
- mentions [String!]
- List of @-mentions used in the post. Mirrors
Item.mentionsfor parity. - originalUrl String
- Direct URL to the post on the source platform. Null for content types without a public URL (e.g. Instagram Stories).
- provider Provider!
- Platform the post was published on.
- Instagram platform integration, including posts, reels, stories, and profile data.
- INTERNAL
- Internal Archive-managed source used for synthetic or system-generated content.
- TIKTOK
- TikTok platform integration, including videos and creator profile data.
- YOUTUBE
- YouTube platform integration, including Shorts, videos, thumbnails, and profile data.
- socialProfile SocialProfile!
- Social media profile that posted this content.
- accountName String!
- Username or handle of the social media account.
- avatar String
- URL of the account's profile picture, if available.
- creator Creator
- Creator associated with this social profile in the current workspace. Use this to get the unified creator ID for deduplicating creators across platforms. Returns null if the profile has no creator record in this workspace.
- customAttributes JSON!
- Custom metadata fields associated with the creator (for example CRM attributes).
- id ID!
- Unique identifier for the creator in Archive's system.
- socialProfiles [SocialProfile!]! ↻ circular view SocialProfile →
- Social media profiles linked to this creator across all platforms (for example Instagram, TikTok, YouTube). Returns an empty list if no profiles are linked.
- email String
- Email address associated with the account, if available.
- followers Int!
- Number of followers on the social media account (when available).
- following Int!
- Number of accounts this profile is following (when available).
- fullName String
- Display name or full name shown on the social media profile.
- id ID!
- Unique identifier of the social profile in Archive's system.
- originalUrl String!
- Direct URL to the profile on the social platform (e.g., https://instagram.com/account_name).
- phoneNumbers [String!]
- Phone numbers associated with the account, when present.
- private Boolean!
- Whether the social media account is currently set to private.
- proAccount Boolean!
- Whether the account is marked as a professional or business account on the platform.
- provider Provider!
- Platform where the social profile exists (for example INSTAGRAM, TIKTOK, YOUTUBE, or INTERNAL).
- Instagram platform integration, including posts, reels, stories, and profile data.
- INTERNAL
- Internal Archive-managed source used for synthetic or system-generated content.
- TIKTOK
- TikTok platform integration, including videos and creator profile data.
- YOUTUBE
- YouTube platform integration, including Shorts, videos, thumbnails, and profile data.
- verified Boolean!
- Whether the account has a verified/badge status on the platform.
- takenAt DateTime!
- When the post was published on the source platform.
- transcriptions [Transcription!]!
- Text transcriptions and subtitles generated for video content in this post. Mirrors
Item.transcriptionsfor parity. - mediaContentId ID!
- Identifier of the media content this transcription belongs to.
- transcript String
- Plain text transcription of the spoken content.
- type ItemType!
- Type of post (post / reel / story / short). Mirrors
Item.typefor parity. - POST
- Standard feed post, such as a single image or carousel post on Instagram.
- REEL
- Short-form vertical video published as a Reel or equivalent format.
- SHORT
- Short-form vertical video such as a YouTube Short or similar format.
- STORY
- Ephemeral story content, typically available for a limited time.
- nodes [CompetitorBrandItem!]!
- List of competitor brand items.
- archivePublicUrl String
- Stable Archive permalink for this post. Unlike
originalUrl, this URL keeps resolving after the source post is deleted on the originating platform. MirrorsItem.archivePublicUrlfor parity. - caption String
- Caption text of the post, when available. Mirrors
Item.captionfor parity. - currentEngagement Engagement
- Most recent engagement metrics (likes, comments, views, shares, EMV) and virality score for this post.
- comments BigInt
- Total number of comments.
- earnedMediaValue BigInt
- Estimated earned media value (EMV) in cents.
- impressions BigInt
- Number of views, plays, or estimated impressions.
- likes BigInt
- Total number of likes.
- linearViralityScore ViralityScore!
- Bucketed virality score.
- HIGH
- Content that significantly outperforms its expected reach. Typically corresponds to a view-to-follower ratio of 4.0 or higher.
- LOW
- Content performing close to expected baseline relative to audience size. Typically corresponds to a view-to-follower ratio between ~1.0 and 2.0.
- MEDIUM
- Content performing above average relative to audience size. Typically corresponds to a view-to-follower ratio between ~2.0 and 4.0.
- NOT_VIRAL
- Content performing below expected reach, with low relative visibility. Typically corresponds to a view-to-follower ratio below ~1.0.
- shares BigInt
- Number of shares.
- views BigInt
- Number of views.
- externalId ID!
- Platform-side identifier (Instagram media id, TikTok video id, etc.).
- hashtags [String!]
- List of hashtags used in the post. Mirrors
Item.hashtagsfor parity. - id ID!
- Unique identifier of the underlying media item in Archive's system.
- mentions [String!]
- List of @-mentions used in the post. Mirrors
Item.mentionsfor parity. - originalUrl String
- Direct URL to the post on the source platform. Null for content types without a public URL (e.g. Instagram Stories).
- provider Provider!
- Platform the post was published on.
- Instagram platform integration, including posts, reels, stories, and profile data.
- INTERNAL
- Internal Archive-managed source used for synthetic or system-generated content.
- TIKTOK
- TikTok platform integration, including videos and creator profile data.
- YOUTUBE
- YouTube platform integration, including Shorts, videos, thumbnails, and profile data.
- socialProfile SocialProfile!
- Social media profile that posted this content.
- accountName String!
- Username or handle of the social media account.
- avatar String
- URL of the account's profile picture, if available.
- creator Creator
- Creator associated with this social profile in the current workspace. Use this to get the unified creator ID for deduplicating creators across platforms. Returns null if the profile has no creator record in this workspace.
- customAttributes JSON!
- Custom metadata fields associated with the creator (for example CRM attributes).
- id ID!
- Unique identifier for the creator in Archive's system.
- socialProfiles [SocialProfile!]! ↻ circular view SocialProfile →
- Social media profiles linked to this creator across all platforms (for example Instagram, TikTok, YouTube). Returns an empty list if no profiles are linked.
- email String
- Email address associated with the account, if available.
- followers Int!
- Number of followers on the social media account (when available).
- following Int!
- Number of accounts this profile is following (when available).
- fullName String
- Display name or full name shown on the social media profile.
- id ID!
- Unique identifier of the social profile in Archive's system.
- originalUrl String!
- Direct URL to the profile on the social platform (e.g., https://instagram.com/account_name).
- phoneNumbers [String!]
- Phone numbers associated with the account, when present.
- private Boolean!
- Whether the social media account is currently set to private.
- proAccount Boolean!
- Whether the account is marked as a professional or business account on the platform.
- provider Provider!
- Platform where the social profile exists (for example INSTAGRAM, TIKTOK, YOUTUBE, or INTERNAL).
- Instagram platform integration, including posts, reels, stories, and profile data.
- INTERNAL
- Internal Archive-managed source used for synthetic or system-generated content.
- TIKTOK
- TikTok platform integration, including videos and creator profile data.
- YOUTUBE
- YouTube platform integration, including Shorts, videos, thumbnails, and profile data.
- verified Boolean!
- Whether the account has a verified/badge status on the platform.
- takenAt DateTime!
- When the post was published on the source platform.
- transcriptions [Transcription!]!
- Text transcriptions and subtitles generated for video content in this post. Mirrors
Item.transcriptionsfor parity. - mediaContentId ID!
- Identifier of the media content this transcription belongs to.
- transcript String
- Plain text transcription of the spoken content.
- type ItemType!
- Type of post (post / reel / story / short). Mirrors
Item.typefor parity. - POST
- Standard feed post, such as a single image or carousel post on Instagram.
- REEL
- Short-form vertical video published as a Reel or equivalent format.
- SHORT
- Short-form vertical video such as a YouTube Short or similar format.
- STORY
- Ephemeral story content, typically available for a limited time.
- pageInfo PageInfo!
- Pagination information.
- endCursor String
- Cursor for the last node in this page.
- hasNextPage Boolean!
- Whether there are more results after this page.
- hasPreviousPage Boolean!
- Whether there are results before this page.
- startCursor String
- Cursor for the first node in this page.
- totalCount Int
- Total number of items available.