# Export your data

> All your data as CSV on every plan, by API on Plus, and last month on one page you can save as PDF.

Your numbers are yours. On every plan you can download all the data Okidoki keeps about your sites, whenever you want, as CSV files that open in Excel, Numbers or Google Sheets. With Plus you can also read the same data through the API, and put last month on one page you can save as PDF.

| | Free | Plus |
| --- | --- | --- |
| All your data in one zip of CSV files | Yes, the whole history | Yes, the whole history |
| A report for the period you are looking at, as CSV | Yes | Yes |
| All your data through the API and MCP | | Yes |
| Monthly report as PDF | | Yes |

## Download all your data

1. Open **Settings → Account**, or go straight to [Your data](https://okidoki.sh/app/settings?tab=account#export).
2. Press **Download all your data**.
3. Unzip the file. There is a folder per site, with one CSV file per table.

Everything comes along, also on Free: the dashboard on Free shows the last 12 months, but nothing older is deleted, and the download has all of it.

The zip holds `README.txt`, `sites.csv` with your sites, and a folder per site with these files:

| File or table | What a row holds |
| --- | --- |
| `visitors` | Visitors, page views, bounces and time on the site, per day. |
| `pages` | Per day and page: page views, and visitors whose visit started on the page. |
| `channels` | Visitors per day and channel: Search, Social, Email, Paid, AI assistants and so on. |
| `sources` | Visitors per day and source: the referring site or utm_source. |
| `campaigns` | Visitors per day and utm_campaign. |
| `utm_sources` | Visitors per day and utm_source. |
| `utm_mediums` | Visitors per day and utm_medium. |
| `countries` | Visitors per day and country (ISO code, ?? when unknown). |
| `regions` | Visitors per day and region (ISO 3166-2, like SE-AB). |
| `devices` | Visitors per day and device: mobile, tablet or desktop. |
| `browsers` | Visitors per day and browser. |
| `operating_systems` | Visitors per day and operating system. |
| `events` | Clicks, downloads, forms and your own events per day, with what they were on. |
| `goal_completions` | How many times each goal was reached, per day. |
| `sales` | Orders and sales per day from your connected shop or payments, by channel. Plus adds source and campaign. |
| `deals` (Plus) | Deals and invoices from your CRM or accounting, per day they were created, by status, source and campaign. |
| `ad_results` | What the ad platforms report per day and campaign: clicks, purchases and purchase value. |
| `imported_history` | Daily totals brought in from Google Analytics or another tool, as they were imported. |
| `goals` | Your goals and what each one counts. |
| `funnels` | Your funnels and their steps. |
| `campaign_costs` | What your campaigns cost, entered by you or fetched from your ad accounts. |
| `occasions` | Occasions you added yourself: sales, launches, newsletters and the like. |
| `segments` | Your segments and the filters behind them. |
| `saved_views` | Your saved views: page, filters and question, and whether they are sent as a report. |
| `ab_tests` | Your A/B tests: the pages, the goal and when they ran. |
| `uptime` | The watch's checks of the home page per day: how many, how many found the site up, and how fast it answered. |
| `speed` | How fast pages loaded for real visitors, per day, page, phone or computer and measure: how many page loads fell in each range. lcp and inp in ms, cls in thousandths; up_to is the upper edge of the range. |
| `site_searches` | What visitors typed in the site's own search box, per day and term, and how many of those searches found nothing. |
| `downtime` | Every time the watch found something wrong: the site down, no visits, a goal or sales that stopped, from when to when. |
| `lighthouse` | Google's Lighthouse test of the site on a phone, once a week: scores 0 to 100 and the lab measures. |
| `share_links` | Your share links: when each was made and whether it was turned off. The link itself is left out, since anyone with it can see the site. |
| `alert_rules` | Your own alert rules: what they watch, how big a change sets them off, and whether they email. |

Days are the site's own days, in its time zone. In the visitor tables, `visitors` are visits that started that day (on that page, from that source and so on), `bounce_rate` is in percent and `engaged_seconds` is the visible time on the pages, added up. To get a total for a month, add up `visitors`, `pageviews` and `engaged_seconds`; work out the bounce rate again rather than adding it up.

On Free, `sales` has the store, currency and channel; Plus adds the source and campaign, and the `deals` file from your CRM.

## Download a report as CSV

1. Pick the period and filters in your dashboard, like **Last month**.
2. Under **Download**, choose every report or just one, and press **Download CSV**.

The file is named after your site, the report and the first day, like `okidoki-mysite.com-all-2026-10-01.csv`. It starts with the summary sentence, then one table per list in the report, each with a title row and a header row:

```csv title="okidoki-mysite.com-pages-2026-10-01.csv"
312 visitors came last month, 18% more than the month before.

pages: pages
path,pageviews,visitors
/,1204,880
/pricing,611,402
/blog/launch,298,251
```

## From the API

> [!PLUS]
> Reading your data with an API key is part of Plus. See [Plans and pricing](https://docs.okidoki.sh/plans).

The whole account as the same zip:

```bash
curl -H "Authorization: Bearer oks_..." -o okidoki.zip "https://okidoki.sh/api/v1/export"

# One site only
curl -H "Authorization: Bearer oks_..." -o mysite.zip "https://okidoki.sh/api/v1/export?site=mysite.com"
```

One table at a time, for a script or a data warehouse. `GET /api/v1/sites/:site/data` lists the tables and their columns:

```bash
# A page of rows as JSON
curl -H "Authorization: Bearer oks_..." \
  "https://okidoki.sh/api/v1/sites/mysite.com/data/pages?from=2026-10-01&to=2026-10-31"

# The whole range as one CSV file
curl -H "Authorization: Bearer oks_..." -o sources.csv \
  "https://okidoki.sh/api/v1/sites/mysite.com/data/sources?format=csv"
```

```json title="Answer"
{
  "message": "1000 rows from the pages table for mysite.com. There are more: ask again with cursor=2026-10-15.",
  "data": {
    "table": "pages",
    "columns": ["day", "page", "visitors", "pageviews", "bounces", "bounce_rate", "engaged_seconds"],
    "rows": [{ "day": "2026-10-01", "page": "/", "visitors": 41, "pageviews": 58, "bounces": 19, "bounce_rate": 46, "engaged_seconds": 2210 }],
    "next_cursor": "2026-10-15",
    "has_more": true
  }
}
```

| Parameter | Values |
| --- | --- |
| `from`, `to` | Days like `2026-10-01`. Default: from the first day with data to today |
| `limit` | About this many rows per page, up to 10000. Defaults to 1000. A page always ends between two days |
| `cursor` | `next_cursor` from the page before. Keep asking while `has_more` is true |
| `format` | `json` (the default) or `csv` for the whole range as one file |

Reports for a period work too, as CSV:

```bash
curl -H "Authorization: Bearer oks_..." -o last-month.csv \
  "https://okidoki.sh/api/v1/sites/mysite.com/export?report=all&period=last_month"
```

`report` is `all` or one of `overview`, `pages`, `sources`, `locations`, `technology`, `events`, `videos`, `goals`, `revenue`, `deals`, `health`, `realtime`, `search`, `bing`, `paths`, `funnels`, `customers`, `campaigns`, `reconcile`, `patterns`, `calendar`, `business`, `forecast`, `uptime`, `notfound`, `speed`, `sitesearch`, `heatmap`, `forms`, `budgets`, `impact`, `metrics`, `rhythm`. Periods and filters work as everywhere else. Lists hold up to 100 rows each. Add `format=json` to get the CSV inside the usual JSON answer.

AI agents get the same through MCP: `get_data` reads a table, and `export_csv` a report.

## The monthly report

Press **Monthly report (PDF)** under **Download** to open last month on one clean page: the summary in words, the key numbers and the top rows of every report. Use your browser's **Print → Save as PDF** to send it on. The monthly report is part of Plus.

## What it does not contain

Only totals per day. Okidoki keeps nothing about single visitors, so no export has anything like that: no IDs, no IP addresses, no order or customer numbers, no click IDs from ads. One export per account runs at a time.

