Skip to content

Geographic breakdown of real opens and clicks by country

GET
/v1/campaigns/{campaign}/stats/countries
curl --request GET \
--url https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/stats/countries \
--header 'Authorization: Bearer <token>'
campaign
required
string
/^cmp_[a-z0-9]{26}$/

Example

cmp_01hx0000000000000000000000
limit

Only the N countries with the most opens (the report shows 10)

integer
>= 1 <= 250

Only the N countries with the most opens (the report shows 10)

Breakdown by country

Media typeapplication/json
Array<object>
object
country
required

ISO 3166-1 alpha-2 code, or null if unknown

string
nullable
opens
required
number
clicks
required
number

Example generated

[
{
"country": "example",
"opens": 1,
"clicks": 1
}
]

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}