API reference / Analytics
List short links and pixels
The short links and the pixels of the site, newest first, each with its hits in the period. hits counts every click or open, and visitors counts each person one time a day. A link sends a visitor on to a page of the site with ref=<slug>, so the visit shows where it came from. A pixel counts the opens of an email, or the views of a page with no script.
/api/v1/analytics/linksOther ways to call it
troopy analytics links listtroopy_list_analytics_linksQuery parameters
periodenum<string>now is the last 10 minutes. 7d and 30d end today. 3m, 6m and 12m are whole months that end with this month. week starts on Monday. custom needs from and to
nowtodayyesterday24h7d30d3m6m12mweekmonthyearallcustom
Default "30d"
fromstringYYYY-MM-DD, in the workspace's time zone
date
tostringYYYY-MM-DD. The period includes this day
date
Response
200 · application/jsondata*array<object>8 properties
id*stringA 24-character id
kind*enum<string>linkpixel
name*stringurl*string | nullLinks only: the page of the site
short*stringThe address to share: the link, or the image of the pixel
hits*integerClicks or opens in the period
visitors*integerPeople in the period, each one time a day
createdAt*stringISO 8601 date and time