provider Library Analytics GET
/v1/analytics/libraries/{file_key}/variable/usages @utdk/figma
/v1/analytics/libraries/{file_key}/variable/usages Get library analytics variable usage data.
Returns a list of library analytics variable usage 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, file
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.getlibraryanalyticsvariableusages()