📡 QR Analytics
Overview
Use these endpoints to programmatically retrieve analytics data from your QR experiences. These endpoints integrate with the https://api.dub.co (opens in a new tab) API and allow for metrics tracking, including link performance, click distribution by city, and time series insights.
End-point: List Links
Returns a list of shortened links in the workspace.
Method: POST
https://api.dub.co/links?workspaceId=ws_clqv4gehe0022ji08plnlnuk6
Headers
Key | Value |
---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
workspaceId | ws_clqv4gehe0022ji08plnlnuk6 |
Body
{
"domain": "go.qrexperiences.com",
"url": "go.qrexperiences.com"
}
End-point: Top Links Analytics
Retrieves the most popular links in the workspace.
Method: GET
https://api.dub.co/analytics/top_links?workspaceId=ws_clqv4gehe0022ji08plnlnuk6
End-point: Geo Analytics by City (Clicks)
Returns a breakdown of clicks grouped by city over the past 90 days.
Method: GET
https://api.dub.co/events?workspaceId=ws_clqv4gehe0022ji08plnlnuk6&domain=go.qrexperiences.com&event=clicks&groupby=cities&interval=90d
End-point: Detailed Analytics by Key
Returns detailed QR analytics filtered by key and grouped by city.
Method: GET
https://api.dub.co/analytics?workspaceId=ws_clqv4gehe0022ji08plnlnuk6&domain=go.qrexperiences.com&key=app&groupby=cities
End-point: Timeseries Analytics for Specific Key
Returns time-based analytics for a given QR key over the last 90 days.
Method: GET
https://api.dub.co/analytics?workspaceId=ws_clqv4gehe0022ji08plnlnuk6&domain=go.qrexperiences.com&groupBy=timeseries&interval=90d&key=kennyqr