This website requires JavaScript to run properly.
to.it.com
api reference

Analytics

Read short link click analytics via the public API.

All docs

to.it.com/docs/api-reference/analytics

Read short link click analytics via the public API.

GET /public/v1/short-links/{shortLinkId}/analytics

Returns click data for a short link within your plan's analytics retention window.

Response fields

FieldDescription
shortLinkIdThe short link UUID
sinceStart of the retention window
totalClicksClicks counted in ClickEvent records
clickCountDenormalized counter on the short link
lastClickedAtTimestamp of the most recent click
dailyDaily click series (Pro/Business with advanced analytics)

Example

curl https://api.to.it.com/v1/short-links/SHORT_LINK_ID/analytics \
  -H "Authorization: Bearer toit_YOUR_KEY"

Retention windows

Analytics retention depends on your plan:

PlanRaw analyticsAggregate analytics
Free7 days30 days
Personal30 days12 months
Pro90 days24 months
Business365 days36 months

Next steps

Put the API to work.

Create short links and track clicks from your own apps with a paid plan and API key.