Export post insights to CSV
export_insightsWrites Instagram post insights to a CSV for spreadsheets, with one row per post and metrics like reach, likes, comments, saves, shares, views, and profile visits.
Instructions
Writes a CSV (one row per post: date, type, link, caption, views, reach, likes, comments, saves, shares, interactions, follows, profile visits, reel watch time, skip rate) for spreadsheets. Saved in the data folder's exports/ (a bare file name goes there too). Writing anywhere else needs the user's approval. Never overwrites a file: a -1, -2... suffix is added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File name (saved in exports/), or an absolute / ~/ path (needs approval). | |
| limit | No | How many recent posts. | |
| since | No | ||
| until | No | ||
| account | No | Which connected account: @username or Instagram user ID. Omit to use the default account. | |
| confirmation_token | No | Only after the user approved: the confirmation_token returned by the previous call with identical arguments. |