Skip to Content
API referenceAnalytics

Analytics API

Click events are recorded by the redirect service and become available asynchronously. Analytics endpoints require the links:read scope.

Workspace summary

GET/v1/analytics/summaryscope links:readreturns 200 OK

By default, the endpoint reports the last 30 days. Pass optional from and to query parameters in YYYY-MM-DD format to select a range of up to 366 days. The to date is inclusive. Dates are interpreted in UTC.

curl --fail-with-body \ 'https://api.fupisha.link/v1/analytics/summary?from=2026-11-01&to=2026-11-12' \ -H "Authorization: Bearer $FUPISHA_API_KEY"

Response fields include total_clicks, total_links, active_links, daily_clicks (date and clicks), and top_links (up to ten links).

GET/v1/links/{code}/analyticsscope links:readreturns 200 OK

Returns daily_clicks for the recent seven-day window. Each entry contains a UTC date and a clicks count.

{ "daily_clicks": [ { "date": "2026-11-10T00:00:00Z", "clicks": 18 }, { "date": "2026-11-11T00:00:00Z", "clicks": 24 } ] }

What these metrics mean

clicks counts redirect requests captured by the service; it is not a deduplicated people count. Click recording is asynchronous, so a newly received redirect may take a short time to appear. City, country, device, browser, operating system, unique people, and conversion attribution are not provided by these API endpoints.