• Quick Start
  • Send Survey
  • Get Contact
  • Remove Contact
  • Delete Contact (GDPR)
  • Get Unsubscribed
  • Get Responses
  • Get NPS
  • Sent Statistics
  • Historical Stats
  • Deactivate All
  • Bulk Add with CSV
  • Inapp Surveys
  • Bulk Add/Send

Change Log

  • Changes

Get Sent Statistics

Get statistics of your sent surveys

Arguments

Make a GET request to https://DEMO.asknice.ly/api/v1/sentstats/days/field (optional)/value (optional)
Add filters[]=custom_field_c and values[]=Custom%20Value to your request parameter to filter on multiple fields. See the example how to filter by multiple properties below.

Argument Example Required Description
days 30 Optional Number of days since today for emails sent, default is 30
field rating Optional The name of a custom property field you want to filter on.
value 10 Optional The value of your custom property you want to filter on.

Example GET requests

Example to get your statistics of your sent surveys in the last 30 days
https://DEMO.asknice.ly/api/v1/sentstats/30?X-apikey=
Example filtered by one property
https://DEMO.asknice.ly/api/v1/sentstats/30/custom_field_c/Custom%20Value?X-apikey=
Example filtered by multiple properties
https://DEMO.asknice.ly/api/v1/sentstats/30?filters[]=custom_field_c&filters[]=another_custom_field_c&values[]=Custom%20Value&values[]=Another%20Custom%20Value&X-apikey=

Response

The response is always in JSON format
{
  "sent": 6,
  "delivered": 6,
  "opened": 3,
  "responded": 2,
  "promoters": 0,
  "passives": 0,
  "detractors": 2,
  "responserate": "33.3 %"
}