Skip to main content
GET
/
api
/
v1
/
campaigns
/
{id}
/
statistics
Statystyki kampanii
curl --request GET \
  --url https://api.example.com/api/v1/campaigns/{id}/statistics
{
  "success": true,
  "data": {
    "sent": 10000,
    "delivered": 9800,
    "opened": 4500,
    "clicked": 1200,
    "bounced": 200,
    "complained": 5,
    "unsubscribed": 15,
    "open_rate": 45.92,
    "click_rate": 12.24,
    "bounce_rate": 2.04,
    "click_to_open_rate": 26.67,
    "unsubscribe_rate": 0.15
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.mailist.pl/llms.txt

Use this file to discover all available pages before exploring further.

Parametry ścieżki

id
integer
required
ID kampanii

Odpowiedź

success
boolean
Wskazuje czy żądanie zakończyło się sukcesem
data
object
Obiekt statystyk kampanii

Przykład

curl https://api.mailist.com/api/v1/campaigns/456/statistics \
  -H "X-API-Key: YOUR_API_KEY"

Odpowiedź

{
  "success": true,
  "data": {
    "sent": 10000,
    "delivered": 9800,
    "opened": 4500,
    "clicked": 1200,
    "bounced": 200,
    "complained": 5,
    "unsubscribed": 15,
    "open_rate": 45.92,
    "click_rate": 12.24,
    "bounce_rate": 2.04,
    "click_to_open_rate": 26.67,
    "unsubscribe_rate": 0.15
  }
}

Uwagi

  • Statystyki są obliczane w czasie rzeczywistym na podstawie odbiorców kampanii
  • Współczynniki są zaokrąglane do 2 miejsc po przecinku
  • Ten endpoint wymaga uprawnienia campaigns.read dla klucza API
  • Statystyki są dostępne tylko dla kampanii ze statusem SENT