> ## Documentation Index
> Fetch the complete documentation index at: https://growi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Creator TikTok Shop analytics

> Pull the TikTok Shop sales, posts, products, order lines and samples of the creators who share with you, or a creator's own, for any date range.

Creators link their own TikTok Shop accounts in Growi. Growi imports every order line, back
to when the shop started, and matches sales to the posts and products behind them. The same
numbers the dashboard shows come out of these endpoints, for any date range.

All endpoints are `GET` and live under:

```
https://api.growi.io/api/public/v1/tiktok_shop/creator_analytics
```

## Two kinds of key

| | Organization key | Creator key |
| - | - | - |
| Starts with | `growi-sk-` | `growi-ck-` |
| Who creates it | A member of your organization, under **Settings → Developer → API keys** ([authentication](https://growi.mintlify.site/api-reference/authentication.md)) | The creator, in Growi under **TikTok Shop → Accounts → API** |
| What it reads | Every TikTok Shop account a creator in your programs shares with your organization | Only the creator's own linked accounts |
| Access | Full and view-only keys both work (everything here is `GET`) | Read-only. Up to 5 active keys per creator |

An organization key reads an account while all three hold: the creator shares it with your
organization, the creator is in one of your programs, and the account is still linked.
When a creator turns sharing off, leaves your programs or unlinks the account, it drops out
on the next call. Creators share with your main organization, so pass no `organization_id`;
a child brand answers `403`.

A creator key reads the creator's own accounts, exactly what their dashboard shows, and
nothing shared with them by anyone else. It works only on these endpoints: every other
endpoint and the MCP server answer `401` to it.

The full key is shown once, when it's created. Revoking a key stops it right away.

## Choosing creators and accounts

| Param | Organization key | Creator key |
| - | - | - |
| `user_id` | One creator: their accounts that share with you. A creator with none answers `404` | Optional; only your own user id. Anyone else's answers `422` |
| *(no `user_id`)* | Every account that shares with you | Your own accounts |
| `account_ids` | Comma-separated ids from [`GET /accounts`](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-accounts), at most 1,000. Narrows the selection; an id you can't read answers `404` | Same, among your own accounts |
| `q` | Without `user_id`: creators whose name, email or @handle contains this | `422` |
| `exclude_account_ids` | Without `user_id`: every account except these | `422` |

With `user_id`, `q` and `exclude_account_ids` are ignored.

To go creator by creator, list [`GET /creators`](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-creators)
(or `GET /accounts`), then pass each `user_id`.

## Dates

| Param | Meaning |
| - | - |
| `from` | First day, `YYYY-MM-DD`. Default: the first day of this month |
| `to` | Last day, inclusive. Default: today. At most 3,660 days in all |
| `tz` | IANA time zone the days are counted in, for example `America/New_York`. Default `UTC` |
| `include_pending` | `true` (default) counts orders that haven't settled yet: potential GMV and estimated commission. `false` counts settled orders only |

Comparisons (`overview`, `daily`) use the same number of days just before `from`.

## Paging

* Lists (`creators`, `posts`, `products`, `showcase`) take `page` (from 1), `per_page`
  (1 to 100) and `sort` / `dir`.
* [Order lines](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-orders.md) page with a cursor:
  pass `limit` (1 to 100) and then `cursor=<next_cursor>` from each answer until
  `next_cursor` is `null`.
* For a whole range at once, [export the order lines](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/export-orders.md)
  as one CSV file. One export runs at a time per key; a second one while the first is
  still running answers `429` with `export_in_progress`. Past the row cap the file stops
  and the response carries `X-Truncated: true`; split the range and export again.

## Posts

[`GET /posts`](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-posts) has two tabs:
`tab=with_sales` (posts that sold something in the range) and `tab=no_sales` (posts with no
sales, with the product they tagged). Rows carry views, likes, comments, shares and saves.

TikTok counts slideshows (photo carousels) as videos in its order data. Each post row says
what it really is in `post_kind`: `video`, `slideshow`, `live`, `other`, or `null` for a
post Growi hasn't fetched yet. LIVEs show their sales per LIVE; LIVE viewer counts aren't
included.

## Rate limits

Creator analytics calls have their own budget per key, apart from your other API calls:

| Limit | Value |
| - | - |
| Hourly | **1,000 calls** per key per hour |
| Spacing | **2 seconds** between calls |

Neither budget affects the other: paging through order lines doesn't make your other
integrations wait, and the reverse. Every answer counts, errors included (`404`, `422`,
`503`); calls refused before they run (`401`, `403`, `429`) don't. The `X-RateLimit-*`
headers and `Retry-After` work as described in [rate limits](https://growi.mintlify.site/api-reference/rate-limits.md).
At 100 order lines a page that's up to 100,000 lines an hour.

## Errors

| Status | When | Body |
| - | - | - |
| `401` | Missing, invalid or revoked key, or a creator key on another endpoint | `{"error": "Not Authenticated"}` |
| `403` | `organization_id` names a child brand | `{"error": {"code": "forbidden", "message": "..."}}` |
| `404` | A creator, account, post or product the key can't read | `{"error": {"code": "not_found", "message": "..."}}` |
| `422` | Invalid params; `message` says which | `{"error": {"code": "invalid_params", "message": "..."}}` |
| `429` | Rate limited, or another export is running (`export_in_progress`) | See `Retry-After` |
| `503` | TikTok Shop data is unavailable for a moment | `{"error": {"code": "data_unavailable", "message": "..."}}`. Retry shortly |

## Examples

Set your key and the base URL once:

```bash theme={"dark"}
KEY=growi-sk-YOUR-API-KEY   # or a creator key, growi-ck-...
BASE=https://api.growi.io/api/public/v1/tiktok_shop/creator_analytics
```

| Endpoint | Example |
| - | - |
| [Creators](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-creators.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/creators?from=2026-11-01&to=2026-11-24&sort=gmv"` |
| [Accounts](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-accounts.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/accounts"` |
| [Overview](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/overview.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/overview?from=2026-11-01&to=2026-11-24&tz=America/New_York"` |
| [Daily](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/daily.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/daily?from=2026-11-01&to=2026-11-24"` |
| [Posts with sales](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-posts.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/posts?user_id=12345&tab=with_sales&sort=gmv&from=2026-10-01&to=2026-11-24"` |
| [Posts with no sales](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-posts.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/posts?user_id=12345&tab=no_sales&from=2026-10-01&to=2026-11-24"` |
| [One post](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/get-post.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/posts/POST_ID?user_id=12345&from=2026-10-01&to=2026-11-24"` |
| [Products](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-products.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/products?from=2026-11-01&to=2026-11-24&sort=gmv"` |
| [One product](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/get-product.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/products/PRODUCT_ID?from=2026-11-01&to=2026-11-24"` |
| [Order lines](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-orders.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/orders?user_id=12345&from=2025-01-01&to=2026-11-24&limit=100"` |
| [Next page](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-orders.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/orders?user_id=12345&from=2025-01-01&to=2026-11-24&limit=100&cursor=NEXT_CURSOR"` |
| [Export order lines](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/export-orders.md) | `curl -H "Authorization: Bearer $KEY" -o orders.csv "$BASE/orders/export?from=2026-11-01&to=2026-11-24"` |
| [Free samples](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-samples.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/samples?user_id=12345"` |
| [Showcase](https://growi.mintlify.site/api-reference/endpoint/creator-tiktok-shop/list-showcase.md) | `curl -H "Authorization: Bearer $KEY" "$BASE/showcase?user_id=12345&sort=account&from=2026-11-01&to=2026-11-24"` |

With a creator key, leave out `user_id`: every call reads your own accounts.

## Pulling everything

**1. List the accounts**

`GET /accounts` (or `GET /creators` for one row per account with its numbers).

**2. Pull the order lines**

`GET /orders` with `from` and `to`, then `cursor=<next_cursor>` until it's `null`. Or
`GET /orders/export` for one CSV per range.

**3. Add posts, products, samples and showcase**

Per creator with `user_id`, or across everyone at once (`showcase` needs `user_id` or
`account_ids` with an organization key).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.