Get Web Push Top Metrics Analytics

Prev Next

Insider One's Web Push API enables you to retrieve campaign analytics for your Web Push notifications directly from your back-end. This API returns top metric analytics (without campaign information) in the given time interval in the API request payload. It corresponds to the data displayed below on the Web Push Analytics page.

Endpoint and Headers

POST https://web-push.api.useinsider.com/v1/statistics/top-metrics

Visit our Postman collection to test this request.

Headers

HeaderSample ValueDescription
AuthorizationBearer 1a2b3c4d5e6fThis key is required to authorize your request. Refer to API Authentication Tokens to generate your token.
Content-Typeapplication/jsonThis header specifies the media type of the resource.

Body Parameters

ParameterDescriptionData TypeRequired
partner_idThis is your partner identification number, available from Inone Settings > Account Settings.StringYes
start_dateThis specifies the date on which you will start requesting campaign analytics. The date format should be YYYY-MM-DD. The Start Date cannot be earlier than the Campaign Create Date.StringYes
end_dateThis specifies the date on which you will stop requesting campaign analytics. The date format should be YYYY-MM-DD.StringYes

Sample Request

The sample below displays a request to fetch top metrics statistics for Web Push campaigns within a specific date range.

Before sending the request, make sure:

  • To replace the authorization value with your API key.
  • To replace the sample values in partner_id, start_date, and end_date with your values in the required data type.
curl --location --request POST 'https://web-push.api.useinsider.com/v1/statistics/top-metrics' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1a2b3c4d5e6f' \
--data '{
 "partner_id": "YOURPARTNERID",
 "start_date" : "2023-06-01",
 "end_date" : "2023-06-08"
}'

Sample Responses

200 OK

{
    "success": true,
    "overview": {
        "total": {
            "targeted": "470,621,008",
            "deliveryRate": "0.00%",
            "ctr": "0.63%",
            "conversionRate": "0.00%"
        },
        "targeted": {
            "sent": "468,743,394",
            "dropped": "1,877,614"
        },
        "deliveryRate": {
            "delivered": "6,221",
            "undelivered": "468,737,173"
        },
        "ctr": {
            "clicks": "39"
        },
        "conversionRate": {
            "conversions": "0"
        },
        "revenue": "0 TRY"
    },
    "performance": [
        {
            "label": "Single",
            "campaignCount": 2172,
            "deliveryRate": "0.00",
            "ctr": "0.47",
            "conversionRate": "0.00",
            "revenue": "0"
        },
        {
            "label": "Trigger",
            "campaignCount": 3,
            "deliveryRate": "20.00",
            "ctr": "0.00",
            "conversionRate": "0.00",
            "revenue": "0"
        },
        {
            "label": "Cart Reminder",
            "campaignCount": 1,
            "deliveryRate": "0.00",
            "ctr": "0.00",
            "conversionRate": "0.00",
            "revenue": "0"
        },
        {
            "label": "Back In Stock",
            "campaignCount": 5,
            "deliveryRate": "0.00",
            "ctr": "0.00",
            "conversionRate": "0.00",
            "revenue": "0"
        },
        {
            "label": "Price Drop",
            "campaignCount": 1,
            "deliveryRate": "200.00",
            "ctr": "16.67",
            "conversionRate": "0.00",
            "revenue": "0"
        },
        {
            "label": "Single API",
            "campaignCount": 14,
            "deliveryRate": "0.00",
            "ctr": "11.69",
            "conversionRate": "0.00",
            "revenue": "0"
        }
    ],
    "dropped": [
        {
            "label": "frequencyCapped",
            "count": "0",
            "percentage": "0.00"
        },
        {
            "label": "silentHours",
            "count": "0",
            "percentage": "0.00"
        },
        {
            "label": "unsubscriptions",
            "count": "63",
            "percentage": "3.51"
        },
        {
            "label": "serviceProviderErrors",
            "count": "1,734",
            "percentage": "96.49"
        },
        {
            "label": "internalErrors",
            "count": "0",
            "percentage": "0.00"
        }
    ],
    "undelivered": [
        {
            "label": "offlineRecipients",
            "count": "468,737,173",
            "percentage": "100.00"
        },
        {
            "label": "other",
            "count": "0",
            "percentage": "0.00"
        }
    ]
}
Your title goes here
You can refer to Web Push Analytics Key Metrics for further details.

401 Unauthorized

{
"message": "Unauthorized"
}

424 Failed Dependency

{
  "message": "SERVICE:-"
}

Error Codes

  • 400 Bad Request
  • 401 Unauthorized Request
  • 424 Failed Dependency
  • 429 Request limit exceeded

Limitations

  • All functions must be executed with an HTTPS POST request.
  • The API Key should be provided as the authorization key in the request header. If the key is incorrect, the operation will not be executed, and an authorization error will return in the response.
  • You can make 30 requests per minute in aggregate.

The default limit shown here is a standard baseline. If your use case requires higher capacity, feel free to reach out to the Insider One team — we can adjust it to fit your needs.