Retrieve comprehensive core engagement metrics for a short URL, including total clicks, unique visitors, new vs. returning visitors, and engagement over time.
Parameters
The unique ID or short code of the URL.
Filter data starting from this date (ISO 8601 format).
Filter data up to this date (ISO 8601 format).
Time granularity for the response (day, hour).
Request Examples
curl -X GET "https://jmpy.me/api/v1/analytics/analytics/google-redirect?startDate=2024-01-01&endDate=2024-01-30" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch ( 'https://jmpy.me/api/v1/analytics/analytics/google-redirect?startDate=2024-01-01&endDate=2024-01-30' , {
headers: {
'Authorization' : 'Bearer YOUR_API_KEY'
}
});
const data = await response . json ();
console . log ( data );
import requests
headers = {
'Authorization' : 'Bearer YOUR_API_KEY'
}
params = {
'startDate' : '2024-01-01' ,
'endDate' : '2024-01-30'
}
response = requests.get( 'https://jmpy.me/api/v1/analytics/analytics/google-redirect' , headers = headers, params = params)
print (response.json())
Response Examples
{
"total_clicks" : 1500 ,
"unique_clicks" : 1200 ,
"new_visitors" : 1100 ,
"returning_visitors" : 400 ,
"avg_session_duration" : 45.5 ,
"active_days" : 30 ,
"active_hours" : 24 ,
"filters" : {
"startDate" : "2024-01-01T00:00:00.000Z" ,
"endDate" : "2024-01-30T00:00:00.000Z" ,
"groupBy" : "day"
}
}
Response Fields
Total number of clicks recorded in the period.
Number of unique visitors (distinct IPs/sessions).
Number of first-time visitors.
Number of returning visitors.
Average time spent by users (in seconds).
Number of days with at least one click.
Total count of active hours with traffic.
Use Cases
Analyze Visitor Retention
Use the new_visitors and returning_visitors metrics to understand how well your content retains audience interest. A high ratio of returning visitors indicates strong engagement.
Campaign Performance Reporting
Fetch core metrics for a specific date range matching your marketing campaign flight dates to report on total reach (unique_clicks) and engagement volume (total_clicks).
Traffic Quality Analyze bot vs. human traffic
Complete Analytics Get all analytics data in one call