Tools
Get ad text statistics
GET
https://api.smsedge.com/v1/country-analysis/statistic-ad-text/Returns the top 30 ad texts of your campaigns in one country, with sent, clicks and CTR.
The statistics cover your campaign messages from the start of date_from to the end of date_to. ctr is a percent string, for example "0.88%". ctr and clicks are null when the text has no clicks.
cpc (cost per click, in your account currency), leads and sales are returned only for accounts in expert mode.
Query params
country_idintegerrequiredCountry ID. See List countries.
date_fromstringrequiredStart date, YYYY-MM-DD.
date_tostringrequiredEnd date, YYYY-MM-DD. The full day is included.
Responses
- 200Ad text statistics
- 400A required parameter is missing. Each missing parameter is listed.
- 401The API key is missing, wrong or the account is blocked
curl -X GET "https://api.smsedge.com/v1/country-analysis/statistic-ad-text/?country_id=225&date_from=2026-10-01&date_to=2026-11-15" \
-H "X-API-KEY: YOUR_API_KEY"[
{
"success": true,
"data": [
{
"ad_text": "Hi, please click here {{{domain}}}",
"ctr": "0.88%",
"sent": "1699",
"clicks": "15",
"cpc": "€0.00",
"leads": null,
"sales": null
},
{
"ad_text": "Flash sale alert! Save up to 30% on top items for the next 24 hours only. Shop now: {{{domain}}} Text STOP to unsubscribe.",
"ctr": null,
"sent": "528",
"clicks": null,
"cpc": null,
"leads": null,
"sales": null
}
],
"errors": [],
"response": {
"code": 200,
"description": "OK",
"date": "2026-11-16 14:00:45"
},
"api": {
"version": "v1",
"module": "country-analysis",
"function": "statistic-ad-text"
},
"user": {
"id": 736
}
}
]All requests need your API key in the X-API-KEY header. See Authentication.