Geographic breakdown of real opens and clicks by country
GET
/v1/campaigns/{campaign}/stats/countries
const url = 'https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/stats/countries';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/campaigns/cmp_01hx0000000000000000000000/stats/countries \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”campaign
required
string
Example
cmp_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”limit
Only the N countries with the most opens (the report shows 10)
integer
Only the N countries with the most opens (the report shows 10)
Responses
Section titled “Responses”Breakdown by country
Media typeapplication/json
Array<object>
object
country
required
ISO 3166-1 alpha-2 code, or null if unknown
string
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" }}