Skip to main content
This guide shows you how to use the Campaigns API to retrieve campaign details and KPIs across all channels. Campaigns in Dash Social unify owned, earned, and creator content into a single cross-channel view for holistic measurement.

Use case examples

Campaign ROI Reporting

Pull topline KPIs for a product launch campaign to measure total reach, engagements, and video views across all channels.

UGC Impact Analysis

Fetch UGC content associated with a campaign to quantify earned media alongside owned posts.

Campaign Comparison

List all campaigns to compare topline metrics across multiple initiatives (e.g., Spring 2026 vs. Spring 2025).

Before you start

Make sure you have:
  • API access token with permissions to the relevant brand.
  • Brand ID for the account you want to query.
See API Quickstart for more details.

Implementation

Step 1: Retrieve all campaigns

Fetch the full list of campaigns for a brand. Use the returned id values to query individual campaigns in subsequent steps.

Key path parameters

  • brand_id: Your brand’s unique ID.
Sample Response:

Key response fields


Step 2: Retrieve a specific campaign

Fetch the full details for a single campaign by its ID.

Key path parameters

  • brand_id: Your brand’s unique ID.
  • campaign_id: The campaign ID from Step 1.
Sample Response:

Key response fields


Step 3: Retrieve campaign media

Fetch owned posts associated with a campaign, filtered by channel and date range.

Key query parameters

Available source values

INSTAGRAM, PINTEREST, FACEBOOK, INSTAGRAM_STORY, TWITTER, TIKTOK, YOUTUBE, LIKESHOP, TIKTOK_LIKESHOP, RELATIONSHIPS, UGC, CREATORS_INSTAGRAM, CREATORS_INSTAGRAM_STORIES Example request for Facebook posts:
Sample Response:

Key response fields

Pagination: Use paging.next to detect additional pages, and increment offset by your limit value to retrieve them.

Step 4: Retrieve campaign UGC

Fetch user-generated content associated with a campaign.

Key query parameters

Available type values

Example request:
Sample Response:

Key response fields


Step 5: Retrieve campaign statistics

Fetch aggregated daily statistics broken down by channel for a campaign. This powers the time-series charts in the Campaign Summary.

Key path parameters

  • brand_id: Your brand’s unique ID.
  • campaign_id: The campaign ID from Step 1.
Sample Response:

Response structure

The response is a dictionary keyed by date (YYYY-MM-DD). Each date contains a breakdown by channel. Only dates on which posts were published are returned — dates with no activity are omitted.

Key metrics by channel

Channels with number_of_media: 0 on a given date had no posts published that day. Metric fields for those channels will be null.