# Export a link's clicks as CSV

Raw enriched click log for one link over the requested window as a CSV attachment (at, country, device, browser, os, referrerHost, referrer, isBot). Bot rows are included and flagged, unlike the in-app analytics which exclude them. Capped at 50000 rows; a trailing "truncated" row signals the cap.

Canonical: https://easerix.com/docs/developers/api/links/analytics/exportLinkClicks

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="links" operations={[{"path":"/v1/links/{id}/clicks.csv","method":"get"}]} />
    </>
  );
}
