Workflows and reference
View Markdown ↗Dated click reports
Read one bounded UTC report on the website or REST API, with bot filters, event-ID deduplication and explicit data limitations.
English · Updated 2026-11-28
Read the same report on the web and API
Open Analytics in a paid workspace. Choose up to 90 inclusive UTC calendar days, optionally a saved link, and all traffic, not flagged as bots, or flagged as bots. Read report applies the selection. The JSON download contains the same metrics, source links, definitions and quality metadata shown on the web. The daily CSV uses that same selected report and includes UTC dates, traffic selection, metric version, generation time and unverified-completeness labels.
curl --fail-with-body 'https://linkdevi.com/api/v1/analytics/report?startDate=2026-11-26&endDate=2026-11-28&traffic=unflagged' \
--header "Authorization: Bearer $LINKDEVI_API_KEY"Use a scoped analytics:read credential in a paid workspace. Add linkId only for a saved link in that workspace. Omitted dates select the last 30 days including today. Future, invalid, reversed and more than 90-day windows, repeated parameters and unsupported filters are rejected. The website's session route is /api/analytics/report with the same query and contract.
This is a separate read-only REST report, not a new tool in the currently published MCP or SDK package. campaign_stats still returns lifetime best-effort redirect counters and cannot answer a dated question.
Interpret recorded events precisely
| Field | Meaning |
|---|---|
| recordedEvents | Retained click events deduplicated by event_id in the workspace and UTC window, then filtered by traffic selection. Not the PostgreSQL lifetime redirect counter. |
| botFlaggedEvents / unflaggedEvents | Events matching or not matching the stored heuristic user-agent/IP bot flag. Unflagged does not establish human traffic. Each count respects the selected filter. |
| uniqueMarkedEvents | Stored legacy is_unique flags on unflagged events after event-ID deduplication. Per-link/IP-hash/UTC-day Redis markers; not unique people across days/links. Historical client-IP or marker gaps can affect accuracy. |
| duplicateRowsExcluded | Repeated event-ID raw rows excluded before the traffic filter. Distinct IDs from old ingestion cannot be inferred as duplicates. |
| series / breakdowns | Same query snapshot, period and traffic selection as the summary. Daily rows use UTC; dimension lists show the top 20. Unknown location/referrer is labelled Unknown. |
The report does not calculate conversions, sales, revenue or ROI. Separate source-labelled conversion records are reported events and do not establish payment verification.
Coverage, missing data and freshness
quality.status is observed when any retained events exist in the requested window before filtering, no_observed_events when none are stored, or unavailable when the report cannot be read. Successful zero counts mean zero observed matching stored events; they do not establish zero actual traffic. An unavailable report has metrics: null and no daily rows, not zero counts.
Completeness is unverified. coverageStart and completeThrough are null. firstObservedEventAt/latestObservedEventAt describe event timestamps found in this window before filtering; they are not ingestion timestamps or watermarks. generatedAt is report generation time, including when a response is served from the 30-second cache. Late events can change the result.
The report reads retained raw events. The source configuration has a two-year event TTL; actual historical retention, missing queue events and client-IP coverage are not established by the first observed timestamp. Empty calendar days mean no stored matching events, not proven complete collection.
Query budgets and source links
Web and API share a workspace report budget of 12 requests/minute and one uncached query at a time. Regular bearer limits also apply. Results are cached per workspace, link, period and traffic filter for up to 30 seconds. Query time, rows read, aggregation memory and result size are bounded; exceeding a limit fails rather than returning partial counts. Respect Retry-After on 429; try a smaller window after a 503.
Each report includes sources.dashboard, sources.sessionJson, sources.apiJson and sources.documentation. These relative links preserve the report selection; authentication is still required and credentials are never placed in the URL. Cite period, traffic policy, metricVersion, generatedAt and quality when explaining results.