Get page-view analytics
analytics_get_viewsRead-onlyIdempotent
Return page views and unique visitors for an owned media kit, link in bio, agency roster, deck, or campaign report. Omit resource_id to aggregate all owned resources of that type. Link in bio is creator-only; roster and deck are agency-only.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | IANA timezone for day boundaries, e.g. Europe/Paris | UTC |
| timeframe | No | Reporting period; wtd, mtd, ytd mean week, month, year to date | all |
| resource_id | No | ID of one owned resource; omit to aggregate all of that type | |
| resource_type | Yes | Kind of page to report on |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |