Skip to main content
GET
/
v1
/
analytics
/
timeseries
Retrieve timeseries
curl --request GET \
  --url https://linkryse.com/v1/analytics/timeseries \
  --header 'Authorization: Bearer <token>'

Query Parameters

The ID of the link to retrieve analytics for.
interval
string
The interval for the analytics. values: 24h, 7d, 30d, 90d. Defaults to 30d.

Response

Returns an array of objects, each containing a start (timestamp) and clicks (count).
[
  {
    "start": "2023-11-01T00:00:00.000Z",
    "clicks": 50
  },
  {
    "start": "2023-11-02T00:00:00.000Z",
    "clicks": 120
  }
]

Code Examples

cURL
curl --request GET \
  --url 'https://linkryse.com/v1/analytics/timeseries?linkId=link_123&interval=24h' \
  --header 'Authorization: Bearer sk_live_...'
Node.js
const timeseries = await linkryse.analytics.timeseries({
  linkId: 'link_123',
  interval: '24h'
});