provider Library Analytics GET
/v1/analytics/libraries/{file_key}/variable/actions @utdk/figma
/v1/analytics/libraries/{file_key}/variable/actions Get library analytics variable action data.
Returns a list of library analytics variable actions data broken down by the requested dimension.
- file_key path required
- File key of the library to fetch analytics data for.
- string
- cursor query
- Cursor indicating what page of data to fetch. Obtained from prior API call.
- string
- group_by query required
- A dimension to group returned analytics data by.
- enum: variable, team
- start_date query
- ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one year prior.
- string
- end_date query
- ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the latest computed week.
- string
Try it
Authentication
Configure credentials for Figma API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import figma from '@utdk/figma';
await figma.getlibraryanalyticsvariableactions()