Conversion cap usage history
const url = 'https://app.affisemmp.com/api/v2/client/applications/12/conversion-caps/7/history?from=1763251200&to=1763856000';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://app.affisemmp.com/api/v2/client/applications/12/conversion-caps/7/history?from=1763251200&to=1763856000' \ --header 'Authorization: Bearer <token>'The usage of the cap by periods of its window in the range of from and to, oldest first. Periods nothing was counted in come with zeros and no segments. An interval or total cap has a single period, and from and to do not apply to it. A segment is what the cap counted between two resets under one limit: an edit of the limit starts a new segment in the period, a reset or a change of the type, window or filters starts a segment with a new reset_at; current marks the segment the cap counts in now. used of a period sums its segments of the current limit type of the cap. Rows counted under another window of the cap are not shown. A range of more than 1000 periods is rejected with 400.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The ID of the application.
Example
12The ID of the conversion cap.
Example
7Query Parameters
Section titled “Query Parameters ”Range start, unix seconds. Defaults to 48 hours, 30 days, 12 weeks or 12 months back for an hour, day, week or month cap.
Range start, unix seconds. Defaults to 48 hours, 30 days, 12 weeks or 12 months back for an hour, day, week or month cap.
Example
1763251200Range end, unix seconds, not before from. Defaults to and is capped at now.
Range end, unix seconds, not before from. Defaults to and is capped at now.
Example
1763856000Responses
Section titled “ Responses ”object
object
object
object
Example
{ "data": { "cap_id": 7, "app_id": 12, "limit_type": "count", "window": "day", "timezone": "Europe/Berlin", "currency": "USD", "periods": [ { "period_start": "2026-11-22T00:00:00+01:00", "used": 1000, "over": 37, "segments": [ { "reset_at": null, "limit_type": "count", "limit": 1000, "used": 1000, "over": 37, "current": false } ] }, { "period_start": "2026-11-23T00:00:00+01:00", "used": 640, "over": 0, "segments": [ { "reset_at": null, "limit_type": "count", "limit": 1000, "used": 640, "over": 0, "current": true } ] } ] }}Cap of another application or deleted
object
Example
{ "message": "Not found"}object
Example
{ "message": "Conversion caps usage is temporarily unavailable."}