Compare 2 to 5 of the brand's campaigns side by side (the first one is the base for the differences)
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/reports/comparison?campaigns=cmp_01hx0000000000000000000000%2Ccmp_01hx0000000000000000000001';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/reports/comparison?campaigns=cmp_01hx0000000000000000000000%2Ccmp_01hx0000000000000000000001' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
brd_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”Comma-separated campaign ids, 2 to 5, no duplicates
Example
cmp_01hx0000000000000000000000,cmp_01hx0000000000000000000001Comma-separated campaign ids, 2 to 5, no duplicates
Responses
Section titled “Responses”Comparison
object
object
object
Unified status with reason (if any) and recommended action as i18n keys; same as in Campaign
object
Full i18n key of the reason (e.g. campaign.pause_reason.bounce_rate); null if not applicable
Full i18n key of the recommended action (e.g. campaign.action.resume_or_cancel)
object
object
object
Deliveries confirmed by the provider; 0 if the provider does not report them
object
object
object
object
Base for the open and click rates
Fractions from 0 to 1; null if the base is 0. Opens and clicks: real and unique only
object
object
object
object
object
Share of the campaign’s real clicks (0 to 1)
Revenue attributed to the campaign, by currency (M8.8)
object
Last update of the aggregates; null if there are no events yet
Difference of each rate against the first campaign (null for the first one)
object
Example
{ "campaigns": [ { "campaign": { "statusInfo": { "status": "draft" }, "rateBase": "delivered" } } ]}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}