Links
Link Analytics
Get analytics on shortened links
GET
Return analytics for all shortened links or a single link for a given link ID. For example:Documentation Index
Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
https://api.ayrshare.com/api/links/yC0fTlreturns analytics for IDyC0fTlhttps://api.ayrshare.com/api/linksreturns all link analytics.
Header Parameters
Path Parameters
Provide the shortened link ID returned from the POST /links request as a path parameter. For
example:
https://api.ayrshare.com/api/links/yC0fTl If no link ID is provided, all links are
returned.Query Parameters
Get history of links shortened after this date. Accepts a UTC date time.For example, use format
YYYY-MM-DDThh:mm:ssZ and send as 2026-07-08T12:30:00Z.
Please see utctime for more examples.Get history of links shortened before this date. Accepts a UTC date time.For example, use format
YYYY-MM-DDThh:mm:ssZ and send as 2026-07-08T12:30:00Z.
Please see utctime for more examples.Get history of links clicked after this date. Accepts a UTC date time.For example, use format
YYYY-MM-DDThh:mm:ssZ and send as 2026-07-08T12:30:00Z.
Please see utctime for more examples.Get history of links clicked before this date. Accepts a UTC date time.For example, use format
YYYY-MM-DDThh:mm:ssZ and send as 2026-07-08T12:30:00Z.
Please see utctime for more examples.