API v1.0


With the Beak API comes the ability to programmatically obtain real-time analytics for any tracker that you have created.

To get started with the API, you must create an account and then generate an API Key.

API Usage


View Count stats

View Count stats service covers Total, Unique, and Repeat view count datasets for any Tracker in your account. This service supports date-range filtering.

Web Service Example
{
    "result": "success",
    "tracker_id": "1a2b3c4d",
    "overall": {
        "view_count_total": 39,
        "view_count_total_daily": 13,
        "view_count_unique": 4,
        "view_count_unique_daily": 1.5,
        "view_count_repeat": 10,
        "view_count_repeat_daily": 3.5,
        "days_since_created": 23,
        "view_day_count": 2,
        "view_last_date": "2021-05-03"
    },
    "series": {
        "date_range_from": "2021-05-19",
        "date_range_to": "2021-05-25",
        "total_entries": 3,
        "total_entries_with_view_count": 3,
        "dates": [
            "2021-05-02",
            "2021-05-03",
            "2021-05-04"
        ],
        "total_count": [
            30,
            8,
            1
        ],
        "unique_count": [
            2,
            1,
            1
        ],
        "repeat_count": [
            6,
            4,
            0
        ]
    },
    "plan_limit_exceeded": 0
}
Parameters
Name Description
key (required) API Key.
tracker_id (required) ID of a Tracker that you created.
from From date (YYYY-MM-DD). Defaults to past 7 days if blank.
to To date (YYYY-MM-DD). Defaults to past 7 days if blank.
Response
Field Description
result "success" or "error".
tracker_id Tracker ID that you used while querying.
overall.view_count_total Total view count overall.
overall.view_count_total_daily Total view count on average each day overall.
overall.view_count_unique Unique view count overall.
overall.view_count_unique_daily Unique view count on on average each day overall.
overall.view_count_repeat Repeat view count overall.
overall.view_count_repeat_daily Repeat view count on average each day overall.
overall.days_since_created Number of days since the tracker was created.
overall.view_day_count Number of days that views occurred on.
overall.view_last_date Last date in which a view took place.
series.date_range_from Beginning date in the filtered date-range series.
series.date_range_to Ending date in the filtered date-range series.
series.total_entries Number of entries in the time series
series.total_entries_with_view_count Number of entries with views in the time series.
series.dates Series dates, where each value has YYYY-MM-DD format (array).
series.total_count Total view count for each date in the series (array).
series.unique_count Unique view count for each date in the series (array).
series.repeat_count Repeat view count for each day in the series (array).
plan_limit_exceeded 0 (false) or 1 (true). Indicates if plan limit has been exceeded.